{
  "openapi": "3.1.0",
  "info": {
    "title": "CADCAMFUN sidecar API",
    "version": "0.0.1"
  },
  "paths": {
    "/api/health": {
      "get": {
        "tags": [
          "health"
        ],
        "operationId": "health.check",
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string"
                    },
                    "jobs": {
                      "type": "object",
                      "properties": {
                        "workers": {
                          "type": "integer"
                        },
                        "running": {
                          "type": "integer"
                        },
                        "waiting": {
                          "type": "integer"
                        },
                        "cached": {
                          "type": "integer"
                        },
                        "closing": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "workers",
                        "running",
                        "waiting",
                        "cached",
                        "closing"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "status",
                    "timestamp"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "system"
        ],
        "operationId": "system.ready",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string"
                    },
                    "jobs": {
                      "type": "object",
                      "properties": {
                        "workers": {
                          "type": "integer"
                        },
                        "running": {
                          "type": "integer"
                        },
                        "waiting": {
                          "type": "integer"
                        },
                        "cached": {
                          "type": "integer"
                        },
                        "closing": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "workers",
                        "running",
                        "waiting",
                        "cached",
                        "closing"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "status",
                    "timestamp"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/version": {
      "get": {
        "tags": [
          "system"
        ],
        "operationId": "system.version",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "version"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/identity/start": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.identityStart",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "issuer": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "url",
                    "issuer"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/identity/poll": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.identityPoll",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending"
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "complete"
                          ]
                        },
                        "tokens": {
                          "type": "object",
                          "properties": {
                            "access": {
                              "type": "string"
                            },
                            "refresh": {
                              "type": "string"
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "access",
                            "refresh",
                            "expiresAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "status",
                        "tokens"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "failed"
                          ]
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/identity/cancel": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.identityCancel",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/forgot-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.forgotPassword",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "debugResetLink": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "callbackURL": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/reset-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.resetPassword",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "AuthNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "newPassword": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "confirmPassword": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/send-magic-link": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.sendMagicLink",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "debugMagicLink": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "callbackURL": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/send-verification-email": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.sendVerificationEmail",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "debug": {
                      "type": "object",
                      "properties": {
                        "link": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "link"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "debug"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "AuthNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "callbackURL": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/verify-email": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.verifyEmail",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "emailVerified": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "emailVerified"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "AuthNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/signout": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.signout",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "set-cookie": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "required": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/get-session": {
      "get": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.getSession",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "type": "object",
                      "properties": {
                        "user": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "emailVerified": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "name",
                            "emailVerified",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "expires": {
                          "type": "string"
                        },
                        "sessionToken": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "user",
                        "expires"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "session"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "AuthUnauthorized | Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AuthUnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/signin-direct": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.signinDirect",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "set-cookie": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "required": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "emailVerified": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "emailVerified",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "user",
                    "token"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "AuthUnauthorized | Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AuthUnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "AuthNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "password": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/signup": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.signup",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "emailVerified": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "emailVerified",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "password": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "confirmPassword": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/test-direct-create": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.testDirectCreate",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "emailVerified": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "emailVerified",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "TestCreateBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCreateBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "TestCreateFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCreateFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "password": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/verify-magic-link": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.verifyMagicLink",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "set-cookie": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "required": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "token": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AuthBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "AuthNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/auth/passkey-register": {
      "post": {
        "tags": [
          "auth"
        ],
        "operationId": "auth.registerPasskey",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "not": {}
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AuthInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthInternalEncoded"
                }
              }
            }
          },
          "501": {
            "description": "PasskeyNotImplemented",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyNotImplementedEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/waitlist": {
      "post": {
        "tags": [
          "waitlist"
        ],
        "operationId": "waitlist.join",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "WaitlistBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WaitlistBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "409": {
            "description": "WaitlistConflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WaitlistConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "WaitlistInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WaitlistInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/analytics/system-metrics": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.systemMetrics",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cpuUsage": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "memoryUsage": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "storageUsed": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "networkLatency": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "activeConnections": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "cacheHitRatio": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "errorRate": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "responseTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "cpuUsage",
                    "memoryUsage",
                    "storageUsed",
                    "networkLatency",
                    "activeConnections",
                    "cacheHitRatio",
                    "errorRate",
                    "responseTime"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.index",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "itemType",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "action",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "userFilter",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "countByType": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "itemType": {
                                "type": "string"
                              },
                              "_count": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "itemType",
                              "_count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "countByAction": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "action": {
                                "type": "string"
                              },
                              "_count": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "action",
                              "_count"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "countByType",
                        "countByAction"
                      ],
                      "additionalProperties": false
                    },
                    "isAdmin": {
                      "type": "boolean"
                    },
                    "filters": {}
                  },
                  "required": [
                    "success",
                    "data",
                    "isAdmin",
                    "filters"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AnalyticsFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsFailureEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics/dashboard-data": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.dashboardData",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "components": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "trend": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "recentActivity": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "total",
                        "trend",
                        "recentActivity"
                      ],
                      "additionalProperties": false
                    },
                    "projects": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "trend": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "activeProjects": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "total",
                        "trend",
                        "activeProjects"
                      ],
                      "additionalProperties": false
                    },
                    "tools": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "trend": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "mostUsed": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "total",
                        "trend",
                        "mostUsed"
                      ],
                      "additionalProperties": false
                    },
                    "materials": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "trend": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "lowStock": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "total",
                        "trend",
                        "lowStock"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "components",
                    "projects",
                    "tools",
                    "materials"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics/log-view": {
      "post": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.logView",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "path": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "query": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/analytics/recent-activity": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.recentActivity",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "action": {
                        "type": "string"
                      },
                      "itemName": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "userId": {
                        "type": "string"
                      },
                      "userName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "action",
                      "itemName",
                      "timestamp",
                      "userId",
                      "userName"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics/user-history": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.userHistory",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "itemType",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "action",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "logs": {
                      "type": "array"
                    },
                    "total": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "logs",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics/user-metrics": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.userMetrics",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "metric",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "summary": {
                      "type": "object",
                      "properties": {
                        "totalAiRequests": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "totalCadDrawings": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "totalStorageUsage": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "totalProjects": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "totalComponents": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "totalToolpaths": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "totalActivityCount": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "totalAiRequests",
                        "totalCadDrawings",
                        "totalStorageUsage",
                        "totalProjects",
                        "totalComponents",
                        "totalToolpaths"
                      ],
                      "additionalProperties": false
                    },
                    "chartData": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "summary",
                    "chartData"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AnalyticsKeyedBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsKeyedBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics/user-usage": {
      "get": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.userUsage",
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "summary": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "breakdown": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "users": {
                      "anyOf": [
                        {
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "systemStats": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "AnalyticsKeyedForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsKeyedForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.clearUserUsage",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/analytics/track": {
      "post": {
        "tags": [
          "analytics"
        ],
        "operationId": "analytics.track",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "itemType": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "action": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "details": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/user/profile": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.profile",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "image": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "bio": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "website": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "company": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "publicProfile": {
                      "type": "boolean"
                    },
                    "showEmail": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "_count": {
                      "type": "object",
                      "properties": {
                        "projects": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "projects"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "email",
                    "image",
                    "bio",
                    "location",
                    "website",
                    "company",
                    "title",
                    "publicProfile",
                    "showEmail",
                    "createdAt",
                    "_count"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "user"
        ],
        "operationId": "user.updateProfile",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "image": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bio": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "location": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "website": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "company": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publicProfile": {
                          "type": "boolean"
                        },
                        "showEmail": {
                          "type": "boolean"
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email",
                        "image",
                        "bio",
                        "location",
                        "website",
                        "company",
                        "title",
                        "publicProfile",
                        "showEmail",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "image": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "user",
                    "name",
                    "email",
                    "image"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bio": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "location": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "website": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "company": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "publicProfile": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "showEmail": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "profileImage": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "binary"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/user/stats": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.stats",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectsCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "drawingsCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "toolpathsCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "componentsCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "totalDesigns": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "memberSince": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "projectsCount",
                    "drawingsCount",
                    "toolpathsCount",
                    "componentsCount",
                    "totalDesigns",
                    "memberSince"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/components": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.components",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "createdAt",
                      "updatedAt",
                      "thumbnail",
                      "projectId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/projects": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.projects",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "createdAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/toolpaths": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.toolpaths",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "createdAt",
                      "updatedAt",
                      "thumbnail",
                      "projectId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/organizations": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.organizations",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string"
                      },
                      "userCount": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "projectCount": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "createdAt",
                      "updatedAt",
                      "role",
                      "userCount",
                      "projectCount"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/api-keys": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.apiKeys",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "lastUsed": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "createdAt",
                      "lastUsed",
                      "expiresAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "user"
        ],
        "operationId": "user.createApiKey",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "apiKey": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message",
                    "apiKey",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "user"
        ],
        "operationId": "user.revokeApiKey",
        "parameters": [
          {
            "name": "keyId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/delete-account": {
      "delete": {
        "tags": [
          "user"
        ],
        "operationId": "user.deleteAccount",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/password": {
      "put": {
        "tags": [
          "user"
        ],
        "operationId": "user.password",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currentPassword": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "newPassword": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/user/tokens": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.tokens",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tokens": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "prefix": {
                            "type": "string"
                          },
                          "permissions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "lastUsed": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isActive": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "prefix",
                          "permissions",
                          "createdAt",
                          "isActive"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "tokens"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "user"
        ],
        "operationId": "user.createToken",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "prefix": {
                          "type": "string"
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "lastUsed": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "isActive": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "prefix",
                        "permissions",
                        "createdAt",
                        "isActive"
                      ],
                      "additionalProperties": false
                    },
                    "fullToken": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "fullToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "TokenBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "permissions": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "expiresIn": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/user/verify-change": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.verifyChange",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "password",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/git-profile": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.gitProfile",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "email"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "user"
        ],
        "operationId": "user.updateGitProfile",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "email"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "email"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/user/{id}": {
      "get": {
        "tags": [
          "user"
        ],
        "operationId": "user.byId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "image": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "organizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "role"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "email",
                    "image",
                    "createdAt",
                    "organizations"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/actions": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.actions",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "read",
                              "write",
                              "destructive"
                            ]
                          },
                          "actions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "read",
                                    "write",
                                    "destructive"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "parameters": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "id",
                          "description",
                          "kind",
                          "actions",
                          "parameters"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "tools"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/actions/invoke": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.invokeAction",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "action": {
                      "type": "string"
                    },
                    "result": {}
                  },
                  "required": [
                    "tool",
                    "action",
                    "result"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string"
                  },
                  "drawingId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "callId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool": {
                    "type": "string"
                  },
                  "input": {
                    "type": "object"
                  }
                },
                "required": [
                  "projectId",
                  "tool",
                  "input"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/bridge/tokens": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.issueBridgeToken",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "info": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "projectId": {
                          "type": "string"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "read",
                            "write"
                          ]
                        },
                        "userId": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "projectId",
                        "mode",
                        "userId",
                        "createdAt",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "info",
                    "token"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "read",
                      "write"
                    ]
                  },
                  "days": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "projectId",
                  "mode"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.bridgeTokens",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "read",
                          "write"
                        ]
                      },
                      "userId": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "expiresAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "projectId",
                      "mode",
                      "userId",
                      "createdAt",
                      "expiresAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/bridge/tokens/{id}": {
      "delete": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.revokeBridgeToken",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/agents": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.agents",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "tools": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "edits": {
                        "type": "boolean"
                      },
                      "kind": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "canEdit": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "delegates": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "description",
                      "tools",
                      "edits"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/sessions/control": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.sessionControl",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "goal": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "objective": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "paused",
                                    "blocked",
                                    "usage_limited",
                                    "budget_limited",
                                    "complete"
                                  ]
                                },
                                "iteration": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "tokensUsed": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "tokenBudget": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "objective",
                                "status",
                                "iteration",
                                "tokensUsed"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "permissions": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "requestId": {
                                "type": "string"
                              },
                              "sessionId": {
                                "type": "string"
                              },
                              "permission": {
                                "type": "string"
                              },
                              "patterns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "requestId",
                              "sessionId",
                              "permission",
                              "patterns"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "busy": {
                      "type": "boolean"
                    },
                    "text": {
                      "type": "string"
                    },
                    "tasks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "agent": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "completed",
                              "error",
                              "cancelled"
                            ]
                          },
                          "background": {
                            "type": "boolean"
                          },
                          "text": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "finishedAt": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "agent",
                          "description",
                          "status",
                          "background"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "questions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "requestId": {
                            "type": "string"
                          },
                          "questions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "header": {
                                  "type": "string"
                                },
                                "question": {
                                  "type": "string"
                                },
                                "options": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "label": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "label",
                                      "description"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "multiple": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "custom": {
                                  "anyOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "header",
                                "question",
                                "options"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "requestId",
                          "questions"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "engineeringAcceptance": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "accepted",
                                "failed",
                                "unmeasured",
                                "stale",
                                "not_configured"
                              ]
                            },
                            "projectId": {
                              "type": "string"
                            },
                            "drawingId": {
                              "type": "string"
                            },
                            "revision": {
                              "type": "string"
                            },
                            "criteriaDigest": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "pass",
                                      "fail",
                                      "unmeasured",
                                      "stale"
                                    ]
                                  },
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "report": {
                                    "anyOf": [
                                      {},
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "status"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "note": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "projectId",
                            "drawingId",
                            "revision",
                            "checks",
                            "note"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "context": {
                      "type": "object",
                      "properties": {
                        "memory": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "memoryEnabled": {
                                  "type": "boolean"
                                },
                                "minHours": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "minSessions": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "lastBrainAt": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "hoursSinceLastBrain": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "sessionsSinceLastBrain": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "shouldTrigger": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "memoryEnabled",
                                "minHours",
                                "minSessions",
                                "lastBrainAt",
                                "hoursSinceLastBrain",
                                "sessionsSinceLastBrain",
                                "shouldTrigger"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "host-config"
                          ]
                        },
                        "auto": {
                          "type": "boolean"
                        },
                        "prune": {
                          "type": "boolean"
                        },
                        "reserved": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "provider": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "model": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "contextWindow": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxOutput": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inputWindow": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "requestOutput": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "compactAt": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tokens": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "compacted": {
                          "type": "boolean"
                        },
                        "breakdown": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "estimatedTotal": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "categories": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "category": {
                                        "type": "string"
                                      },
                                      "tokens": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "category",
                                      "tokens"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "estimatedTotal",
                                "categories"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source",
                        "auto",
                        "prune",
                        "compacted"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "busy",
                    "text",
                    "tasks",
                    "questions",
                    "context"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string"
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "status",
                      "compact",
                      "cancel_task",
                      "answer_question",
                      "reject_question",
                      "reply_permission",
                      "consolidate_memory",
                      "context",
                      "acceptance",
                      "set_acceptance"
                    ]
                  },
                  "criteria": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taskId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "answers": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "decision": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "once",
                          "always",
                          "reject"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sessionId",
                  "action"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/sessions/state": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.sessionState",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "busy": {
                      "type": "boolean"
                    },
                    "text": {
                      "type": "string"
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tasks": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "agent": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "queued",
                                  "running",
                                  "completed",
                                  "error",
                                  "cancelled"
                                ]
                              },
                              "background": {
                                "type": "boolean"
                              },
                              "text": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "error": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startedAt": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "finishedAt": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "agent",
                              "description",
                              "status",
                              "background"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "events": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "tool_call"
                                    ]
                                  },
                                  "sessionId": {
                                    "type": "string"
                                  },
                                  "agent": {
                                    "type": "string"
                                  },
                                  "callId": {
                                    "type": "string"
                                  },
                                  "tool": {
                                    "type": "string"
                                  },
                                  "input": {}
                                },
                                "required": [
                                  "type",
                                  "sessionId",
                                  "callId",
                                  "tool",
                                  "input"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "tool_result"
                                    ]
                                  },
                                  "sessionId": {
                                    "type": "string"
                                  },
                                  "agent": {
                                    "type": "string"
                                  },
                                  "callId": {
                                    "type": "string"
                                  },
                                  "tool": {
                                    "type": "string"
                                  },
                                  "ok": {
                                    "type": "boolean"
                                  },
                                  "output": {
                                    "type": "string"
                                  },
                                  "images": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 4000100
                                    },
                                    "maxItems": 2
                                  }
                                },
                                "required": [
                                  "type",
                                  "sessionId",
                                  "callId",
                                  "tool",
                                  "ok",
                                  "output"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "todo"
                                    ]
                                  },
                                  "sessionId": {
                                    "type": "string"
                                  },
                                  "todos": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "content": {
                                          "type": "string"
                                        },
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "pending",
                                            "in_progress",
                                            "completed",
                                            "cancelled"
                                          ]
                                        },
                                        "priority": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "content",
                                        "status"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "sessionId",
                                  "todos"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "tool_diagnostic"
                                    ]
                                  },
                                  "sessionId": {
                                    "type": "string"
                                  },
                                  "agent": {
                                    "type": "string"
                                  },
                                  "callId": {
                                    "type": "string"
                                  },
                                  "tool": {
                                    "type": "string"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "argument",
                                      "execution",
                                      "partial",
                                      "verification"
                                    ]
                                  },
                                  "severity": {
                                    "type": "string",
                                    "enum": [
                                      "error",
                                      "warning",
                                      "info"
                                    ]
                                  },
                                  "message": {
                                    "type": "string"
                                  },
                                  "recovery": {
                                    "type": "string"
                                  },
                                  "mutationApplied": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "type",
                                  "sessionId",
                                  "callId",
                                  "tool",
                                  "kind",
                                  "severity",
                                  "message"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "usage": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "inputTokens": {
                              "type": "number",
                              "minimum": 0
                            },
                            "outputTokens": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "inputTokens",
                            "outputTokens"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "busy",
                    "text"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string"
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sessionId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/sessions/remove": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.removeSession",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string"
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sessionId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/extensions/mcp": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.mcpServers",
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "servers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "config": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "local"
                                    ]
                                  },
                                  "command": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "environment": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "timeout": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "command",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "remote"
                                    ]
                                  },
                                  "url": {
                                    "type": "string"
                                  },
                                  "headers": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oauth": {
                                    "anyOf": [
                                      {
                                        "type": "boolean",
                                        "enum": [
                                          false
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "timeout": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "url",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "config",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "servers"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.saveMcpServer",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "servers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "config": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "local"
                                    ]
                                  },
                                  "command": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "environment": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "timeout": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "command",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "remote"
                                    ]
                                  },
                                  "url": {
                                    "type": "string"
                                  },
                                  "headers": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oauth": {
                                    "anyOf": [
                                      {
                                        "type": "boolean",
                                        "enum": [
                                          false
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "timeout": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "url",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "config",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "servers"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "config": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "local"
                            ]
                          },
                          "command": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "environment": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeout": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "command",
                          "enabled"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "remote"
                            ]
                          },
                          "url": {
                            "type": "string"
                          },
                          "headers": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "oauth": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "timeout": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "url",
                          "enabled"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "projectId",
                  "name",
                  "config"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/extensions/mcp/{name}": {
      "delete": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.deleteMcpServer",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "servers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "config": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "local"
                                    ]
                                  },
                                  "command": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "environment": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "timeout": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "command",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "remote"
                                    ]
                                  },
                                  "url": {
                                    "type": "string"
                                  },
                                  "headers": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oauth": {
                                    "anyOf": [
                                      {
                                        "type": "boolean",
                                        "enum": [
                                          false
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "timeout": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "url",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "config",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "servers"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/extensions/plugins/{id}": {
      "delete": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.removeExtensionPlugin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plugins": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "tools": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "mods": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "modes": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "enabled",
                          "tools",
                          "mods",
                          "modes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "plugins"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.toggleExtensionPlugin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plugins": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "tools": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "mods": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "modes": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "enabled",
                          "tools",
                          "mods",
                          "modes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "plugins"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/extensions/plugins": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.extensionPlugins",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plugins": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "tools": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "mods": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "modes": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "enabled",
                          "tools",
                          "mods",
                          "modes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "plugins"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.installExtensionPlugin",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plugins": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "tools": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "mods": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "modes": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "enabled",
                          "tools",
                          "mods",
                          "modes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "plugins"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "manifest": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "files": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "manifest",
                  "source"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/extensions/mods": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.extensionMods",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mods": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "assistant",
                              "user",
                              "plugin"
                            ]
                          },
                          "pluginId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "enabled",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "mods"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/extensions/mods/{id}": {
      "put": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.toggleExtensionMod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mods": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "assistant",
                              "user",
                              "plugin"
                            ]
                          },
                          "pluginId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "enabled",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "mods"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.removeExtensionMod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mods": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "assistant",
                              "user",
                              "plugin"
                            ]
                          },
                          "pluginId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "enabled",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "mods"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/modes": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.modes",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "modes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "pluginId": {
                            "type": "string"
                          },
                          "pluginName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "description",
                          "pluginId",
                          "pluginName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "builtin": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "pluginId": {
                                "type": "string"
                              },
                              "pluginName": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "title",
                              "description",
                              "pluginId",
                              "pluginName"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "modes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/skills": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.skills",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "skills": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "builtIn": {
                            "type": "boolean"
                          },
                          "category": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "description",
                          "builtIn",
                          "category"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "max": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "skills",
                    "max"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.saveSkill",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "skill": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "builtIn": {
                          "type": "boolean"
                        },
                        "category": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "description",
                        "builtIn",
                        "category"
                      ],
                      "additionalProperties": false
                    },
                    "skills": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "builtIn": {
                            "type": "boolean"
                          },
                          "category": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "description",
                          "builtIn",
                          "category"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "live": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "skill",
                    "skills",
                    "live"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "markdown": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/skills/{name}": {
      "delete": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.deleteSkill",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "skills": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "builtIn": {
                            "type": "boolean"
                          },
                          "category": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "description",
                          "builtIn",
                          "category"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "max": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "skills",
                    "max"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/credentials": {
      "put": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.setCredentials",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "providers": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "enum": [
                          "configured",
                          "missing"
                        ]
                      }
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "tools": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "description"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string",
                      "enum": [
                        "nikcli",
                        "direct"
                      ]
                    }
                  },
                  "required": [
                    "providers",
                    "configured",
                    "host"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/credentials/{provider}": {
      "delete": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.clearCredentials",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "providers": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "enum": [
                          "configured",
                          "missing"
                        ]
                      }
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "tools": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "description"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string",
                      "enum": [
                        "nikcli",
                        "direct"
                      ]
                    }
                  },
                  "required": [
                    "providers",
                    "configured",
                    "host"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/status": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.status",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "providers": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "enum": [
                          "configured",
                          "missing"
                        ]
                      }
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "tools": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "description"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string",
                      "enum": [
                        "nikcli",
                        "direct"
                      ]
                    }
                  },
                  "required": [
                    "providers",
                    "configured",
                    "host"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/models": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.models",
        "parameters": [
          {
            "name": "configuredOnly",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "true",
                    "false"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "provider": {
                        "type": "string"
                      },
                      "tier": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "fast",
                              "balanced",
                              "best"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contextWindow": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "tools": {
                        "type": "boolean"
                      },
                      "vision": {
                        "type": "boolean"
                      },
                      "configured": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "provider",
                      "contextWindow",
                      "tools",
                      "vision",
                      "configured"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/providers": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.providers",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "auth": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "configured": {
                        "type": "boolean"
                      },
                      "baseUrl": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "defaultModel": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "models": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "provider": {
                              "type": "string"
                            },
                            "contextWindow": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "maxOutput": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "inputWindow": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reasoning": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "variants": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tools": {
                              "type": "boolean"
                            },
                            "vision": {
                              "type": "boolean"
                            },
                            "cost": {
                              "type": "object",
                              "properties": {
                                "input": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "output": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "input",
                                "output"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "provider",
                            "contextWindow",
                            "maxOutput",
                            "tools",
                            "vision",
                            "cost"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "source",
                      "auth",
                      "configured",
                      "models"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/models/refresh": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.refreshModels",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "auth": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "configured": {
                        "type": "boolean"
                      },
                      "baseUrl": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "defaultModel": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "models": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "provider": {
                              "type": "string"
                            },
                            "contextWindow": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "maxOutput": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "inputWindow": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reasoning": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "variants": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tools": {
                              "type": "boolean"
                            },
                            "vision": {
                              "type": "boolean"
                            },
                            "cost": {
                              "type": "object",
                              "properties": {
                                "input": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                "output": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "input",
                                "output"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "provider",
                            "contextWindow",
                            "maxOutput",
                            "tools",
                            "vision",
                            "cost"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "source",
                      "auth",
                      "configured",
                      "models"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/prompts": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.prompts",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "prompts": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "prompts"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/title": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.title",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "title"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "excerpt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/design-analysis": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.designAnalysis",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "suggestions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "low",
                              "medium",
                              "high"
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "optimization",
                              "warning",
                              "critical"
                            ]
                          }
                        },
                        "required": [
                          "title",
                          "description",
                          "confidence",
                          "priority",
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "suggestions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "layer": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machine": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/machining-parameters": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.machiningParameters",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cuttingSpeedMPerMin": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "feedRateMmPerMin": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "depthOfCutMm": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "stepoverPct": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "coolant": {
                      "type": "string",
                      "enum": [
                        "flood",
                        "mist",
                        "none"
                      ]
                    },
                    "engagement": {
                      "type": "string",
                      "enum": [
                        "conventional",
                        "climb"
                      ]
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "cuttingSpeedMPerMin",
                    "feedRateMmPerMin",
                    "depthOfCutMm",
                    "stepoverPct",
                    "coolant",
                    "engagement",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "material": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machine": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/gcode-optimization": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.gcodeOptimization",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gcode": {
                      "type": "string"
                    },
                    "changes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "line": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "before": {
                            "type": "string"
                          },
                          "after": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "line",
                          "before",
                          "after",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "estimatedSavings": {
                      "type": "object",
                      "properties": {
                        "timePct": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "toolLifePct": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "qualityNote": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "timePct",
                        "toolLifePct",
                        "qualityNote"
                      ],
                      "additionalProperties": false
                    },
                    "notes": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "gcode",
                    "changes",
                    "estimatedSavings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gcode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "material": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineType": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "constraints": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/design-suggestions": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.designSuggestions",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "rationale": {
                        "type": "string"
                      },
                      "nextStep": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "rationale",
                      "nextStep"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elements": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currentOperation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currentTool": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/chat": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.chat",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "string"
                    },
                    "hasMcpData": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "reply",
                    "hasMcpData"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AiBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "AiNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AiFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "messages": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcpServerId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcpReference": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/chat/stream": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.chatStream",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": [
                    "id",
                    "event",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Fail"
                              ]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": [
                            "_tag",
                            "error"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Die"
                              ]
                            },
                            "defect": {}
                          },
                          "required": [
                            "_tag",
                            "defect"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Interrupt"
                              ]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "_tag",
                            "fiberId"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "permissionMode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "auto",
                          "ask",
                          "approve"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attachments": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "mime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "data": {
                              "type": "string"
                            },
                            "encoding": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "base64",
                                    "text"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "data"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sessionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "drawingId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "context": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "includeContext": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/sessions/prompt": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.sessionPrompt",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string"
                    },
                    "seq": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "sessionId",
                    "seq"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "permissionMode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "auto",
                          "ask",
                          "approve"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attachments": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "mime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "data": {
                              "type": "string"
                            },
                            "encoding": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "base64",
                                    "text"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "data"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sessionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "drawingId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "context": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "includeContext": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "fast",
                                  "balanced",
                                  "best"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "variant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/sessions/{sessionId}/stream": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.sessionStream",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": [
                    "id",
                    "event",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Fail"
                              ]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": [
                            "_tag",
                            "error"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Die"
                              ]
                            },
                            "defect": {}
                          },
                          "required": [
                            "_tag",
                            "defect"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Interrupt"
                              ]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "_tag",
                            "fiberId"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/sessions": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.sessionList",
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "createdAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "busy": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "title",
                      "createdAt",
                      "updatedAt",
                      "busy"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/sessions/{sessionId}/messages": {
      "get": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.sessionMessages",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string"
                    },
                    "messages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "user",
                              "assistant"
                            ]
                          },
                          "text": {
                            "type": "string"
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agent": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "model": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "truncated": {
                            "type": "boolean"
                          },
                          "tools": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "callId": {
                                  "type": "string"
                                },
                                "tool": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "pending",
                                    "running",
                                    "completed",
                                    "error"
                                  ]
                                },
                                "input": {
                                  "anyOf": [
                                    {},
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "output": {
                                  "type": "string"
                                },
                                "truncated": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "callId",
                                "tool",
                                "status",
                                "output",
                                "truncated"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "role",
                          "text",
                          "createdAt",
                          "agent",
                          "model",
                          "error",
                          "truncated",
                          "tools"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "before": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "sessionId",
                    "messages",
                    "before"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/ai/chat/queue": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.chatQueue",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "queue",
                          "steer"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sessionId",
                  "message"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/chat/abort": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.chatAbort",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/permission/reply": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.permissionReply",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string"
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestId": {
                    "type": "string"
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "once",
                      "always",
                      "reject"
                    ]
                  }
                },
                "required": [
                  "sessionId",
                  "requestId",
                  "decision"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/completion": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.completion",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "text",
                    "model"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "systemPrompt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/analyze-gcode": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.analyzeGcode",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "severity": {
                            "type": "string",
                            "enum": [
                              "error",
                              "warning",
                              "info"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "line": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "severity",
                          "code",
                          "line",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "lines": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "rapidMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "cutMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "toolChanges": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "bounds": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    "y": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    "z": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "max": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    "y": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    },
                                    "z": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "enum": [
                                            "Infinity",
                                            "-Infinity",
                                            "NaN"
                                          ]
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "lines",
                        "rapidMoves",
                        "cutMoves",
                        "toolChanges",
                        "bounds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "issues",
                    "stats"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gcode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/gcode": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.gcode",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "action": {
                      "type": "string"
                    },
                    "data": {},
                    "processedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "action",
                    "data",
                    "processedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "GcodeActionError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GcodeActionErrorEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "GcodeActionFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GcodeActionFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gcode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "partialCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineType": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "material": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "options": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolpathType": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/toolpath-analysis": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.toolpathAnalysis",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "insights": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "insights"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gcode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_tokens": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/feedback": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.feedback",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "AiBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "AiFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "messageId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rating": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "comment": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/proxy": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.proxy",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "message"
                      ]
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "assistant"
                      ]
                    },
                    "model": {
                      "type": "string"
                    },
                    "content": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "stop_reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "usage": {
                      "type": "object",
                      "properties": {
                        "input_tokens": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "output_tokens": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "input_tokens",
                        "output_tokens"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "role",
                    "model",
                    "content",
                    "stop_reason",
                    "usage"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "messages": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_tokens": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "system": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reasoning": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/oauth/authorize": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.oauthAuthorize",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "attemptId": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "instructions": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "code",
                        "auto-code"
                      ]
                    }
                  },
                  "required": [
                    "attemptId",
                    "url",
                    "instructions",
                    "method"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "openai",
                      "xai"
                    ]
                  }
                },
                "required": [
                  "provider"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/ai/oauth/complete": {
      "post": {
        "tags": [
          "ai"
        ],
        "operationId": "ai.oauthComplete",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "providers": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "enum": [
                          "configured",
                          "missing"
                        ]
                      }
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "tools": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "description"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string",
                      "enum": [
                        "nikcli",
                        "direct"
                      ]
                    }
                  },
                  "required": [
                    "providers",
                    "configured",
                    "host"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "openai",
                      "xai"
                    ]
                  },
                  "attemptId": {
                    "type": "string"
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "provider",
                  "attemptId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/mcp/config": {
      "get": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.listConfig",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "claude",
                            "database"
                          ]
                        },
                        "servers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "url": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "command": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "args": {},
                              "workingDirectory": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "enabled": {
                                "type": "boolean"
                              },
                              "userId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string"
                              },
                              "updatedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "type",
                              "url",
                              "command",
                              "args",
                              "workingDirectory",
                              "enabled",
                              "userId",
                              "createdAt",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "count": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "success",
                        "source",
                        "servers",
                        "count"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "file"
                          ]
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "mcpServers": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "command": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "args": {},
                                  "workingDirectory": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "type",
                                  "url",
                                  "command",
                                  "args",
                                  "workingDirectory",
                                  "enabled"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "mcpServers"
                          ],
                          "additionalProperties": false
                        },
                        "exportedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "success",
                        "source",
                        "config",
                        "exportedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "McpEnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpEnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.createConfig",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "file"
                      ]
                    },
                    "imported": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "source",
                    "imported",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "claude",
                        "database"
                      ]
                    },
                    "server": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "command": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "args": {},
                        "workingDirectory": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "userId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "type",
                        "url",
                        "command",
                        "args",
                        "workingDirectory",
                        "enabled",
                        "userId",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "connectionTest": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "source",
                    "server",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "McpEnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpEnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "command": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "args": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workingDirectory": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultWorkingDirectory": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "serverName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "testConnection": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcpServers": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_configuration": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "authorization_token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "put": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.updateConfig",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "claude"
                      ]
                    },
                    "server": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "url": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "command": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "args": {},
                        "workingDirectory": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "userId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "type",
                        "url",
                        "command",
                        "args",
                        "workingDirectory",
                        "enabled",
                        "userId",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "source",
                    "server",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "McpEnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "McpEnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "McpEnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpEnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "command": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "args": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workingDirectory": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultWorkingDirectory": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "serverName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "testConnection": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcpServers": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_configuration": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "authorization_token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.removeConfig",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "name",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "claude"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "source",
                    "message",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "McpEnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "McpEnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "McpEnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpEnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpEnvInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/config/{id}": {
      "get": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.getConfig",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "command": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "args": {},
                    "workingDirectory": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "userId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "url",
                    "command",
                    "args",
                    "workingDirectory",
                    "enabled",
                    "userId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "McpBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "McpNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpInternalEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.updateConfigById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "command": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "args": {},
                    "workingDirectory": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "userId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "url",
                    "command",
                    "args",
                    "workingDirectory",
                    "enabled",
                    "userId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "McpBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "McpNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "McpMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "command": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "args": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "workingDirectory": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultWorkingDirectory": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "serverName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "testConnection": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcpServers": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_configuration": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "authorization_token": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.removeConfigById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "204": {
            "description": "<No Content>"
          },
          "400": {
            "description": "McpBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "McpNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "McpMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/server-info": {
      "post": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp.serverInfo",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "version": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instructions": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "resources": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "uriTemplate": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "arguments": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "required": {
                                          "anyOf": [
                                            {
                                              "type": "boolean"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tools": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "parameters": {
                                "anyOf": [
                                  {},
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "McpBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "McpNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "McpMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "McpInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "serverId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscription/info": {
      "get": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.info",
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "plan": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "currentPeriodEnd": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancelAtPeriodEnd": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stripeCustomerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stripeSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "plan",
                    "status",
                    "currentPeriodEnd",
                    "cancelAtPeriodEnd",
                    "stripeCustomerId",
                    "stripeSubscriptionId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BillingBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "BillingForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "BillingNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/subscriptions": {
      "get": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.current",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plan": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "periodEnd": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancelAtPeriodEnd": {
                      "type": "boolean"
                    },
                    "isOnTrial": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "trialEnd": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "plan",
                    "status",
                    "periodEnd",
                    "cancelAtPeriodEnd"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.subscribe",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "success": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "redirectUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "priceId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "startTrial": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/subscriptions/portal": {
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.portal",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "returnUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/better-auth-stripe/subscription": {
      "get": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baGet",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "plan": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "currentPeriodEnd": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancelAtPeriodEnd": {
                      "type": "boolean"
                    },
                    "stripeCustomerId": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stripeSubscriptionId": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    }
                  },
                  "required": [
                    "plan",
                    "status",
                    "currentPeriodEnd",
                    "cancelAtPeriodEnd",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baCheckout",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BillingBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plan": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "successUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cancelUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "trialDays": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "put": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baUpdate",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BillingBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "newPlan": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baCancel",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/better-auth-stripe/billing-portal": {
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baPortal",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BillingBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "returnUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/better-auth-stripe/feature-access": {
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baFeature",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "feature": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "hasAccess": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    },
                    "features": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "feature": {
                                "type": "string"
                              },
                              "hasAccess": {
                                "type": "boolean"
                              },
                              "error": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "feature",
                              "hasAccess"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BillingBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "feature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "features": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/better-auth-stripe/sync": {
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.baSync",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "plan": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            },
                            "currentPeriodEnd": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cancelAtPeriodEnd": {
                              "type": "boolean"
                            },
                            "stripeCustomerId": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "stripeSubscriptionId": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "type": "string",
                              "enum": [
                                "better-auth"
                              ]
                            }
                          },
                          "required": [
                            "plan",
                            "status",
                            "currentPeriodEnd",
                            "cancelAtPeriodEnd",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "better-auth"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "subscription",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "BillingFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingFailureEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/cron/update-expired-trials": {
      "get": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.cronGet",
        "parameters": [
          {
            "name": "secret",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "updatedCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "updatedCount",
                    "message",
                    "timestamp"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "CronUnauthorized | Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CronUnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "CronFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CronFailureEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.cronPost",
        "parameters": [
          {
            "name": "secret",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "updatedCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "updatedCount",
                    "message",
                    "timestamp"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "CronUnauthorized | Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CronUnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "CronFailure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CronFailureEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/health/stripe": {
      "get": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.stripeHealth",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "healthy"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string"
                    },
                    "service": {
                      "type": "string",
                      "enum": [
                        "stripe"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "message",
                    "timestamp",
                    "service"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "503": {
            "description": "StripeUnhealthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StripeUnhealthyEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/webhooks/stripe": {
      "post": {
        "tags": [
          "billing"
        ],
        "operationId": "billing.stripeWebhook",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "received": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "received"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/push-subscription": {
      "post": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.pushSubscribe",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "endpoint": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "keys": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "p256dh": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "auth": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.pushUnsubscribe",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "endpoint": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/app-control/notify": {
      "post": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.notify",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "NotifyBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "NotifyInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "message": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/desktop/auth/signin": {
      "post": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.desktopSignin",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "image": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email",
                        "image"
                      ],
                      "additionalProperties": false
                    },
                    "syncData": {
                      "type": "object",
                      "properties": {
                        "lastSync": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "lastSync",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "token",
                    "user",
                    "syncData"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "DesktopBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "DesktopUnauthorized | Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DesktopUnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "DesktopInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "password": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "deviceId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "platform": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/desktop/projects": {
      "get": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.desktopProjects",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "owner_id": {
                            "type": "string"
                          },
                          "organization_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "is_public": {
                            "type": "boolean"
                          },
                          "created_at": {
                            "type": "string"
                          },
                          "updated_at": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "owner_id",
                          "organization_id",
                          "is_public",
                          "created_at",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "data",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "DesktopInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.desktopCreateProject",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "owner_id": {
                          "type": "string"
                        },
                        "organization_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "is_public": {
                          "type": "boolean"
                        },
                        "created_at": {
                          "type": "string"
                        },
                        "updated_at": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "owner_id",
                        "organization_id",
                        "is_public",
                        "created_at",
                        "updated_at"
                      ],
                      "additionalProperties": false
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "data",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "DesktopBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "409": {
            "description": "DesktopConflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "DesktopInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organization_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "is_public": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/desktop/user/by-email": {
      "get": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.desktopUserByEmail",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "image": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "created_at": {
                          "type": "string"
                        },
                        "updated_at": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email",
                        "image",
                        "created_at",
                        "updated_at"
                      ],
                      "additionalProperties": false
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "data",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "DesktopBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "DesktopNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "DesktopInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesktopInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/tracked/{id}": {
      "get": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.trackedGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "type": "string"
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "additionalProperties": false
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "_count": {
                      "type": "object",
                      "properties": {
                        "drawings": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "components": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "drawings",
                        "components"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "isPublic",
                    "owner",
                    "organization",
                    "_count"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.trackedUpdate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "type": "string"
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "additionalProperties": false
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "_count": {
                      "type": "object",
                      "properties": {
                        "drawings": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "components": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "drawings",
                        "components"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "isPublic",
                    "owner",
                    "organization",
                    "_count"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "misc"
        ],
        "operationId": "misc.trackedRemove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/kv": {
      "get": {
        "tags": [
          "kv"
        ],
        "operationId": "kv.list",
        "parameters": [
          {
            "name": "prefix",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "entries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "value": {},
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "key",
                          "value",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "entries"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/kv/{key}": {
      "get": {
        "tags": [
          "kv"
        ],
        "operationId": "kv.get",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "value": {},
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "value",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "kv"
        ],
        "operationId": "kv.set",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "value": {},
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "value",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {}
                },
                "required": [
                  "value"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "kv"
        ],
        "operationId": "kv.remove",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/production-costs/estimates": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.listEstimates",
        "parameters": [
          {
            "name": "toolpathId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "null"
                      ]
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "materialCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "toolWearCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "machineTime": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "machineTimeCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "operatorTime": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "operatorTimeCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "setupCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "totalCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "currencyCode": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "toolpathId": {
                        "type": "string"
                      },
                      "details": {},
                      "operationCostId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "costSettingsId": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "owner": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organization": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "toolpath": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "operationCost": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "createdAt": {
                                "type": "string"
                              },
                              "updatedAt": {
                                "type": "string"
                              },
                              "ownerId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "organizationId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "currencyCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "machineHourlyRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "operatorHourlyRate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "setupTime": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "createdAt",
                              "updatedAt",
                              "ownerId",
                              "organizationId",
                              "currencyCode",
                              "name",
                              "machineHourlyRate",
                              "operatorHourlyRate",
                              "setupTime"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "createdAt",
                      "updatedAt",
                      "materialCost",
                      "toolWearCost",
                      "machineTime",
                      "machineTimeCost",
                      "operatorTime",
                      "operatorTimeCost",
                      "setupCost",
                      "totalCost",
                      "currencyCode",
                      "ownerId",
                      "organizationId",
                      "toolpathId",
                      "details",
                      "operationCostId",
                      "owner",
                      "organization",
                      "toolpath",
                      "operationCost"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.createEstimate",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "materialCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "toolWearCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "setupCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "totalCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "details": {},
                    "operationCostId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "costSettingsId": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpath": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "projectId": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "operationCost": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "ownerId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "organizationId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "currencyCode": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "machineHourlyRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "operatorHourlyRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "setupTime": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "createdAt",
                            "updatedAt",
                            "ownerId",
                            "organizationId",
                            "currencyCode",
                            "name",
                            "machineHourlyRate",
                            "operatorHourlyRate",
                            "setupTime"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "materialCost",
                    "toolWearCost",
                    "machineTime",
                    "machineTimeCost",
                    "operatorTime",
                    "operatorTimeCost",
                    "setupCost",
                    "totalCost",
                    "currencyCode",
                    "ownerId",
                    "organizationId",
                    "toolpathId",
                    "details",
                    "operationCostId",
                    "owner",
                    "organization",
                    "toolpath",
                    "operationCost"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "toolpathId": {
                    "type": "string"
                  },
                  "totalCost": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "materialCost": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolWearCost": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineTime": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineTimeCost": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operatorTime": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operatorTimeCost": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "setupCost": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "details": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operationCostId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "costSettingsId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "toolpathId",
                  "totalCost"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/production-costs/estimates/{id}": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.getEstimate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "materialCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "toolWearCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "setupCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "totalCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "details": {},
                    "operationCostId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "costSettingsId": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpath": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "projectId": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "operationCost": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "ownerId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "organizationId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "currencyCode": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "machineHourlyRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "operatorHourlyRate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "setupTime": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "createdAt",
                            "updatedAt",
                            "ownerId",
                            "organizationId",
                            "currencyCode",
                            "name",
                            "machineHourlyRate",
                            "operatorHourlyRate",
                            "setupTime"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "materialCost",
                    "toolWearCost",
                    "machineTime",
                    "machineTimeCost",
                    "operatorTime",
                    "operatorTimeCost",
                    "setupCost",
                    "totalCost",
                    "currencyCode",
                    "ownerId",
                    "organizationId",
                    "toolpathId",
                    "details",
                    "operationCostId",
                    "owner",
                    "organization",
                    "toolpath",
                    "operationCost"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.updateEstimate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "materialCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "toolWearCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "setupCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "totalCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "details": {},
                    "operationCostId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "costSettingsId": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpath": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "projectId": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "materialCost",
                    "toolWearCost",
                    "machineTime",
                    "machineTimeCost",
                    "operatorTime",
                    "operatorTimeCost",
                    "setupCost",
                    "totalCost",
                    "currencyCode",
                    "ownerId",
                    "organizationId",
                    "toolpathId",
                    "details",
                    "operationCostId",
                    "owner",
                    "organization",
                    "toolpath"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "details": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "notes": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.deleteEstimate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/production-costs/estimates/calculate": {
      "post": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.calculateEstimate",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "materialCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "toolWearCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "machineTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorTimeCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "setupCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "totalCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "details": {
                      "type": "object",
                      "properties": {
                        "sourceSettingsId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inputs": {
                          "type": "object",
                          "properties": {
                            "toolpathId": {
                              "type": "string"
                            },
                            "toolId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "materialId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "toolpathId",
                            "toolId",
                            "materialId"
                          ],
                          "additionalProperties": false
                        },
                        "calculatedValues": {
                          "type": "object",
                          "properties": {
                            "totalPathLengthMm": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "materialVolumeM3": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "feedRateMmMin": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "machineTimeMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "operatorTimeMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "totalSetupTimeMinutes": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "totalPathLengthMm",
                            "materialVolumeM3",
                            "feedRateMmMin",
                            "machineTimeMinutes",
                            "operatorTimeMinutes",
                            "totalSetupTimeMinutes"
                          ],
                          "additionalProperties": false
                        },
                        "costBreakdown": {
                          "type": "object",
                          "properties": {
                            "material": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "toolWear": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "machineRun": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "operator": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "setup": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "material",
                            "toolWear",
                            "machineRun",
                            "operator",
                            "setup"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "inputs",
                        "calculatedValues",
                        "costBreakdown"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "materialCost",
                    "toolWearCost",
                    "machineTime",
                    "machineTimeCost",
                    "operatorTime",
                    "operatorTimeCost",
                    "setupCost",
                    "totalCost",
                    "currencyCode",
                    "ownerId",
                    "organizationId",
                    "toolpathId",
                    "details"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "toolpathId": {
                    "type": "string"
                  },
                  "costSettingsId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "toolpathId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/production-costs/material-costs": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.listMaterialCosts",
        "parameters": [
          {
            "name": "materialId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "null"
                      ]
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currencyCode": {
                        "type": "string"
                      },
                      "materialId": {
                        "type": "string"
                      },
                      "costPerUnit": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "wasteFactor": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "minimumCharge": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "material": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "properties": {},
                          "isPublic": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "ownerId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "organizationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "properties",
                          "isPublic",
                          "createdAt",
                          "updatedAt",
                          "ownerId",
                          "organizationId"
                        ],
                        "additionalProperties": false
                      },
                      "owner": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organization": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId",
                      "currencyCode",
                      "materialId",
                      "costPerUnit",
                      "wasteFactor",
                      "minimumCharge",
                      "material",
                      "owner",
                      "organization"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.createMaterialCost",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "materialId": {
                      "type": "string"
                    },
                    "costPerUnit": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "wasteFactor": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "minimumCharge": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "material": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "properties": {},
                        "isPublic": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "properties",
                        "isPublic",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "currencyCode",
                    "materialId",
                    "costPerUnit",
                    "wasteFactor",
                    "minimumCharge",
                    "material"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "costPerUnit": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "wasteFactor": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minimumCharge": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "materialId": {
                    "type": "string"
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "costPerUnit",
                  "materialId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/production-costs/material-costs/{id}": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.getMaterialCost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currencyCode": {
                          "type": "string"
                        },
                        "materialId": {
                          "type": "string"
                        },
                        "costPerUnit": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "wasteFactor": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "minimumCharge": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "material": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "properties": {},
                            "isPublic": {
                              "type": "boolean"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "ownerId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "organizationId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "description",
                            "properties",
                            "isPublic",
                            "createdAt",
                            "updatedAt",
                            "ownerId",
                            "organizationId"
                          ],
                          "additionalProperties": false
                        },
                        "owner": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organization": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId",
                        "currencyCode",
                        "materialId",
                        "costPerUnit",
                        "wasteFactor",
                        "minimumCharge",
                        "material",
                        "owner",
                        "organization"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.updateMaterialCost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "materialId": {
                      "type": "string"
                    },
                    "costPerUnit": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "wasteFactor": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "minimumCharge": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "material": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "properties": {},
                        "isPublic": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "properties",
                        "isPublic",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "currencyCode",
                    "materialId",
                    "costPerUnit",
                    "wasteFactor",
                    "minimumCharge",
                    "material"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "costPerUnit": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "wasteFactor": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minimumCharge": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.deleteMaterialCost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/production-costs/operation-costs": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.listOperationCosts",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "null"
                      ]
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currencyCode": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "machineHourlyRate": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "operatorHourlyRate": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "setupTime": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "owner": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organization": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId",
                      "currencyCode",
                      "name",
                      "machineHourlyRate",
                      "operatorHourlyRate",
                      "setupTime",
                      "owner",
                      "organization"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.createOperationCost",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "machineHourlyRate": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorHourlyRate": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "setupTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "currencyCode",
                    "name",
                    "machineHourlyRate",
                    "operatorHourlyRate",
                    "setupTime",
                    "owner",
                    "organization"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "machineHourlyRate": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "operatorHourlyRate": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "setupTime": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "machineHourlyRate",
                  "operatorHourlyRate"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/production-costs/operation-costs/{id}": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.getOperationCost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currencyCode": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "machineHourlyRate": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "operatorHourlyRate": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "setupTime": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "owner": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organization": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId",
                        "currencyCode",
                        "name",
                        "machineHourlyRate",
                        "operatorHourlyRate",
                        "setupTime",
                        "owner",
                        "organization"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.updateOperationCost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "machineHourlyRate": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "operatorHourlyRate": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "setupTime": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "currencyCode",
                    "name",
                    "machineHourlyRate",
                    "operatorHourlyRate",
                    "setupTime",
                    "owner",
                    "organization"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineHourlyRate": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operatorHourlyRate": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "setupTime": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.deleteOperationCost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/production-costs/tool-wear": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.listToolWear",
        "parameters": [
          {
            "name": "toolId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "null"
                      ]
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currencyCode": {
                        "type": "string"
                      },
                      "toolId": {
                        "type": "string"
                      },
                      "wearRatePerMeter": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "replacementCost": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "replacementThreshold": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "tool": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "diameter": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "material": {
                            "type": "string"
                          },
                          "numberOfFlutes": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxRPM": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "coolantType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cuttingLength": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "totalLength": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "shankDiameter": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cornerRadius": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tipAngle": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "threadPitch": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "holderDiameter": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "holderLength": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "stickout": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "notes": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isPublic": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "ownerId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "organizationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "type",
                          "diameter",
                          "material",
                          "numberOfFlutes",
                          "maxRPM",
                          "coolantType",
                          "cuttingLength",
                          "totalLength",
                          "shankDiameter",
                          "notes",
                          "isPublic",
                          "createdAt",
                          "updatedAt",
                          "ownerId",
                          "organizationId"
                        ],
                        "additionalProperties": false
                      },
                      "owner": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organization": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId",
                      "currencyCode",
                      "toolId",
                      "wearRatePerMeter",
                      "replacementCost",
                      "replacementThreshold",
                      "tool",
                      "owner",
                      "organization"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.createToolWear",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "toolId": {
                      "type": "string"
                    },
                    "wearRatePerMeter": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "replacementCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "replacementThreshold": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "tool": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "diameter": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "material": {
                          "type": "string"
                        },
                        "numberOfFlutes": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxRPM": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "coolantType": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cuttingLength": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totalLength": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "shankDiameter": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cornerRadius": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tipAngle": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "threadPitch": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "holderDiameter": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "holderLength": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stickout": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "notes": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "isPublic": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "type",
                        "diameter",
                        "material",
                        "numberOfFlutes",
                        "maxRPM",
                        "coolantType",
                        "cuttingLength",
                        "totalLength",
                        "shankDiameter",
                        "notes",
                        "isPublic",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "currencyCode",
                    "toolId",
                    "wearRatePerMeter",
                    "replacementCost",
                    "replacementThreshold",
                    "tool"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "wearRatePerMeter": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "replacementCost": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "enum": [
                          "Infinity",
                          "-Infinity",
                          "NaN"
                        ]
                      }
                    ]
                  },
                  "replacementThreshold": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolId": {
                    "type": "string"
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "wearRatePerMeter",
                  "replacementCost",
                  "toolId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/production-costs/tool-wear/{id}": {
      "get": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.getToolWear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currencyCode": {
                          "type": "string"
                        },
                        "toolId": {
                          "type": "string"
                        },
                        "wearRatePerMeter": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "replacementCost": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "replacementThreshold": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "tool": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            },
                            "diameter": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "material": {
                              "type": "string"
                            },
                            "numberOfFlutes": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "maxRPM": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "coolantType": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cuttingLength": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "totalLength": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "shankDiameter": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cornerRadius": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tipAngle": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "threadPitch": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "holderDiameter": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "holderLength": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "stickout": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "notes": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isPublic": {
                              "type": "boolean"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "ownerId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "organizationId": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "type",
                            "diameter",
                            "material",
                            "numberOfFlutes",
                            "maxRPM",
                            "coolantType",
                            "cuttingLength",
                            "totalLength",
                            "shankDiameter",
                            "notes",
                            "isPublic",
                            "createdAt",
                            "updatedAt",
                            "ownerId",
                            "organizationId"
                          ],
                          "additionalProperties": false
                        },
                        "owner": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organization": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId",
                        "currencyCode",
                        "toolId",
                        "wearRatePerMeter",
                        "replacementCost",
                        "replacementThreshold",
                        "tool",
                        "owner",
                        "organization"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.updateToolWear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currencyCode": {
                      "type": "string"
                    },
                    "toolId": {
                      "type": "string"
                    },
                    "wearRatePerMeter": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "replacementCost": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "replacementThreshold": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "tool": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "diameter": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "material": {
                          "type": "string"
                        },
                        "numberOfFlutes": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxRPM": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "coolantType": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cuttingLength": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totalLength": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "shankDiameter": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cornerRadius": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tipAngle": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "threadPitch": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "holderDiameter": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "holderLength": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stickout": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "notes": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "isPublic": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "ownerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "type",
                        "diameter",
                        "material",
                        "numberOfFlutes",
                        "maxRPM",
                        "coolantType",
                        "cuttingLength",
                        "totalLength",
                        "shankDiameter",
                        "notes",
                        "isPublic",
                        "createdAt",
                        "updatedAt",
                        "ownerId",
                        "organizationId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "currencyCode",
                    "toolId",
                    "wearRatePerMeter",
                    "replacementCost",
                    "replacementThreshold",
                    "tool"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "wearRatePerMeter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "replacementCost": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "replacementThreshold": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currencyCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "production-costs"
        ],
        "operationId": "production-costs.deleteToolWear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/install": {
      "post": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.install",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "plugin": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "manifest": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "version": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "author": {
                              "type": "string"
                            },
                            "repository": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "license": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "icon": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "main": {
                              "type": "string"
                            },
                            "engines": {
                              "type": "object",
                              "properties": {
                                "cadcam": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cadcam"
                              ],
                              "additionalProperties": false
                            },
                            "permissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "model:read",
                                  "model:write",
                                  "model:selection",
                                  "ui:sidebar",
                                  "ui:toolbar",
                                  "ui:contextMenu",
                                  "ui:propertyPanel",
                                  "ui:modal",
                                  "ui:overlay",
                                  "storage:local",
                                  "storage:sync",
                                  "file:read",
                                  "file:write",
                                  "file:downloads",
                                  "network:origin",
                                  "network:external",
                                  "system:clipboard",
                                  "system:notifications",
                                  "ui:fullscreen",
                                  "device:camera",
                                  "device:microphone"
                                ]
                              }
                            },
                            "dependencies": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "contributes": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sidebar": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "title": {
                                              "type": "string"
                                            },
                                            "icon": {
                                              "type": "string"
                                            },
                                            "entry": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "title",
                                            "icon",
                                            "entry"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "commands": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "icon": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "keybinding": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "title"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "menus": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "toolbar": {
                                              "anyOf": [
                                                {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "command": {
                                                        "type": "string"
                                                      },
                                                      "group": {
                                                        "anyOf": [
                                                          {
                                                            "type": "string"
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "when": {
                                                        "anyOf": [
                                                          {
                                                            "type": "string"
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "priority": {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "type": "number"
                                                              },
                                                              {
                                                                "type": "string",
                                                                "enum": [
                                                                  "Infinity",
                                                                  "-Infinity",
                                                                  "NaN"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      }
                                                    },
                                                    "required": [
                                                      "command"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "contextMenu": {
                                              "anyOf": [
                                                {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "command": {
                                                        "type": "string"
                                                      },
                                                      "group": {
                                                        "anyOf": [
                                                          {
                                                            "type": "string"
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "when": {
                                                        "anyOf": [
                                                          {
                                                            "type": "string"
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "priority": {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "type": "number"
                                                              },
                                                              {
                                                                "type": "string",
                                                                "enum": [
                                                                  "Infinity",
                                                                  "-Infinity",
                                                                  "NaN"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      }
                                                    },
                                                    "required": [
                                                      "command"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "propertyPanel": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "entry": {
                                                "type": "string"
                                              },
                                              "appliesTo": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "title",
                                              "entry"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "themes": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string"
                                              },
                                              "label": {
                                                "type": "string"
                                              },
                                              "path": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "label",
                                              "path"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "configuration": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "properties": {
                                      "type": "object",
                                      "additionalProperties": {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string"
                                          },
                                          "default": {
                                            "anyOf": [
                                              {},
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "enum": {
                                            "anyOf": [
                                              {
                                                "type": "array"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "minimum": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "Infinity",
                                                      "-Infinity",
                                                      "NaN"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "maximum": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "string",
                                                    "enum": [
                                                      "Infinity",
                                                      "-Infinity",
                                                      "NaN"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "pattern": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "properties"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "version",
                            "description",
                            "author",
                            "main",
                            "engines",
                            "permissions"
                          ],
                          "additionalProperties": false
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "none",
                            "installed",
                            "enabled",
                            "disabled",
                            "loaded",
                            "activated",
                            "deactivated",
                            "error"
                          ]
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "version": {
                          "type": "string"
                        },
                        "installedAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "config": {
                          "anyOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "configurationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "errorCount": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "lastError": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "manifest",
                        "state",
                        "enabled",
                        "version",
                        "installedAt",
                        "updatedAt",
                        "errorCount"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "message",
                    "plugin"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "409": {
            "description": "PluginConflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                },
                "required": [
                  "file"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/plugins/bootstrap.js": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.bootstrap",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/javascript": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/javascript": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/javascript": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/javascript": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/serve": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.serve",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "file",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "cache-control": {
                "schema": {
                  "type": "string"
                },
                "required": true
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                },
                "x-effect-stream": {
                  "encoding": "uint8array"
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.list",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "manifest": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "author": {
                            "type": "string"
                          },
                          "repository": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "license": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "icon": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "main": {
                            "type": "string"
                          },
                          "engines": {
                            "type": "object",
                            "properties": {
                              "cadcam": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "cadcam"
                            ],
                            "additionalProperties": false
                          },
                          "permissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "model:read",
                                "model:write",
                                "model:selection",
                                "ui:sidebar",
                                "ui:toolbar",
                                "ui:contextMenu",
                                "ui:propertyPanel",
                                "ui:modal",
                                "ui:overlay",
                                "storage:local",
                                "storage:sync",
                                "file:read",
                                "file:write",
                                "file:downloads",
                                "network:origin",
                                "network:external",
                                "system:clipboard",
                                "system:notifications",
                                "ui:fullscreen",
                                "device:camera",
                                "device:microphone"
                              ]
                            }
                          },
                          "dependencies": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contributes": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "sidebar": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "title": {
                                            "type": "string"
                                          },
                                          "icon": {
                                            "type": "string"
                                          },
                                          "entry": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "title",
                                          "icon",
                                          "entry"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "commands": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "icon": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "keybinding": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "title"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "menus": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "toolbar": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "command": {
                                                      "type": "string"
                                                    },
                                                    "group": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "when": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "priority": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "Infinity",
                                                                "-Infinity",
                                                                "NaN"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "command"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "contextMenu": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "command": {
                                                      "type": "string"
                                                    },
                                                    "group": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "when": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "priority": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "Infinity",
                                                                "-Infinity",
                                                                "NaN"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "command"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "propertyPanel": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "entry": {
                                              "type": "string"
                                            },
                                            "appliesTo": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "title",
                                            "entry"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "themes": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "label": {
                                              "type": "string"
                                            },
                                            "path": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "label",
                                            "path"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "configuration": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "properties": {
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string"
                                        },
                                        "default": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "enum": {
                                          "anyOf": [
                                            {
                                              "type": "array"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "minimum": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maximum": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "pattern": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "properties"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "description",
                          "author",
                          "main",
                          "engines",
                          "permissions"
                        ],
                        "additionalProperties": false
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "none",
                          "installed",
                          "enabled",
                          "disabled",
                          "loaded",
                          "activated",
                          "deactivated",
                          "error"
                        ]
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "version": {
                        "type": "string"
                      },
                      "installedAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "config": {
                        "anyOf": [
                          {
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "configurationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "errorCount": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "lastError": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "manifest",
                      "state",
                      "enabled",
                      "version",
                      "installedAt",
                      "updatedAt",
                      "errorCount"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/{id}": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "manifest": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "repository": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "license": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "icon": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "main": {
                          "type": "string"
                        },
                        "engines": {
                          "type": "object",
                          "properties": {
                            "cadcam": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "cadcam"
                          ],
                          "additionalProperties": false
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "model:read",
                              "model:write",
                              "model:selection",
                              "ui:sidebar",
                              "ui:toolbar",
                              "ui:contextMenu",
                              "ui:propertyPanel",
                              "ui:modal",
                              "ui:overlay",
                              "storage:local",
                              "storage:sync",
                              "file:read",
                              "file:write",
                              "file:downloads",
                              "network:origin",
                              "network:external",
                              "system:clipboard",
                              "system:notifications",
                              "ui:fullscreen",
                              "device:camera",
                              "device:microphone"
                            ]
                          }
                        },
                        "dependencies": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "contributes": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sidebar": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "title": {
                                          "type": "string"
                                        },
                                        "icon": {
                                          "type": "string"
                                        },
                                        "entry": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "title",
                                        "icon",
                                        "entry"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "commands": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "icon": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "keybinding": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "menus": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "toolbar": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "command": {
                                                    "type": "string"
                                                  },
                                                  "group": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "when": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priority": {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "type": "number"
                                                          },
                                                          {
                                                            "type": "string",
                                                            "enum": [
                                                              "Infinity",
                                                              "-Infinity",
                                                              "NaN"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "command"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "contextMenu": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "command": {
                                                    "type": "string"
                                                  },
                                                  "group": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "when": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priority": {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "type": "number"
                                                          },
                                                          {
                                                            "type": "string",
                                                            "enum": [
                                                              "Infinity",
                                                              "-Infinity",
                                                              "NaN"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "command"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "propertyPanel": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "entry": {
                                            "type": "string"
                                          },
                                          "appliesTo": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title",
                                          "entry"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "themes": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "path": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "label",
                                          "path"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "configuration": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "properties": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "default": {
                                        "anyOf": [
                                          {},
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "description": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "enum": {
                                        "anyOf": [
                                          {
                                            "type": "array"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "minimum": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "maximum": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "pattern": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "properties"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "version",
                        "description",
                        "author",
                        "main",
                        "engines",
                        "permissions"
                      ],
                      "additionalProperties": false
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "none",
                        "installed",
                        "enabled",
                        "disabled",
                        "loaded",
                        "activated",
                        "deactivated",
                        "error"
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "string"
                    },
                    "installedAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "config": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "configurationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "errorCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "lastError": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "manifest",
                    "state",
                    "enabled",
                    "version",
                    "installedAt",
                    "updatedAt",
                    "errorCount"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.uninstall",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/{id}/config": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.getConfig",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.setConfig",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        }
      },
      "put": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.updateConfig",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/plugins/{id}/enable": {
      "post": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.enable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/{id}/disable": {
      "post": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.disable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/{id}/update": {
      "put": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "manifest": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "repository": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "license": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "icon": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "main": {
                          "type": "string"
                        },
                        "engines": {
                          "type": "object",
                          "properties": {
                            "cadcam": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "cadcam"
                          ],
                          "additionalProperties": false
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "model:read",
                              "model:write",
                              "model:selection",
                              "ui:sidebar",
                              "ui:toolbar",
                              "ui:contextMenu",
                              "ui:propertyPanel",
                              "ui:modal",
                              "ui:overlay",
                              "storage:local",
                              "storage:sync",
                              "file:read",
                              "file:write",
                              "file:downloads",
                              "network:origin",
                              "network:external",
                              "system:clipboard",
                              "system:notifications",
                              "ui:fullscreen",
                              "device:camera",
                              "device:microphone"
                            ]
                          }
                        },
                        "dependencies": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "contributes": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sidebar": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "title": {
                                          "type": "string"
                                        },
                                        "icon": {
                                          "type": "string"
                                        },
                                        "entry": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "title",
                                        "icon",
                                        "entry"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "commands": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "icon": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "keybinding": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "menus": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "toolbar": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "command": {
                                                    "type": "string"
                                                  },
                                                  "group": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "when": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priority": {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "type": "number"
                                                          },
                                                          {
                                                            "type": "string",
                                                            "enum": [
                                                              "Infinity",
                                                              "-Infinity",
                                                              "NaN"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "command"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "contextMenu": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "command": {
                                                    "type": "string"
                                                  },
                                                  "group": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "when": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priority": {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "type": "number"
                                                          },
                                                          {
                                                            "type": "string",
                                                            "enum": [
                                                              "Infinity",
                                                              "-Infinity",
                                                              "NaN"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "command"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "propertyPanel": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "entry": {
                                            "type": "string"
                                          },
                                          "appliesTo": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title",
                                          "entry"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "themes": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "path": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "label",
                                          "path"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "configuration": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "properties": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "default": {
                                        "anyOf": [
                                          {},
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "description": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "enum": {
                                        "anyOf": [
                                          {
                                            "type": "array"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "minimum": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "maximum": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "pattern": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "properties"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "version",
                        "description",
                        "author",
                        "main",
                        "engines",
                        "permissions"
                      ],
                      "additionalProperties": false
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "none",
                        "installed",
                        "enabled",
                        "disabled",
                        "loaded",
                        "activated",
                        "deactivated",
                        "error"
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "string"
                    },
                    "installedAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "config": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "configurationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "errorCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "lastError": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "manifest",
                    "state",
                    "enabled",
                    "version",
                    "installedAt",
                    "updatedAt",
                    "errorCount"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "manifest": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "author": {
                            "type": "string"
                          },
                          "repository": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "license": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "icon": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "main": {
                            "type": "string"
                          },
                          "engines": {
                            "type": "object",
                            "properties": {
                              "cadcam": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "cadcam"
                            ],
                            "additionalProperties": false
                          },
                          "permissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "model:read",
                                "model:write",
                                "model:selection",
                                "ui:sidebar",
                                "ui:toolbar",
                                "ui:contextMenu",
                                "ui:propertyPanel",
                                "ui:modal",
                                "ui:overlay",
                                "storage:local",
                                "storage:sync",
                                "file:read",
                                "file:write",
                                "file:downloads",
                                "network:origin",
                                "network:external",
                                "system:clipboard",
                                "system:notifications",
                                "ui:fullscreen",
                                "device:camera",
                                "device:microphone"
                              ]
                            }
                          },
                          "dependencies": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contributes": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "sidebar": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "title": {
                                            "type": "string"
                                          },
                                          "icon": {
                                            "type": "string"
                                          },
                                          "entry": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "title",
                                          "icon",
                                          "entry"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "commands": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "icon": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "keybinding": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "title"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "menus": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "toolbar": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "command": {
                                                      "type": "string"
                                                    },
                                                    "group": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "when": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "priority": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "Infinity",
                                                                "-Infinity",
                                                                "NaN"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "command"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "contextMenu": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "command": {
                                                      "type": "string"
                                                    },
                                                    "group": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "when": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "priority": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "Infinity",
                                                                "-Infinity",
                                                                "NaN"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "command"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "propertyPanel": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "entry": {
                                              "type": "string"
                                            },
                                            "appliesTo": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "title",
                                            "entry"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "themes": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "label": {
                                              "type": "string"
                                            },
                                            "path": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "label",
                                            "path"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "configuration": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "properties": {
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string"
                                        },
                                        "default": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "enum": {
                                          "anyOf": [
                                            {
                                              "type": "array"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "minimum": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maximum": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "pattern": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "properties"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "description",
                          "author",
                          "main",
                          "engines",
                          "permissions"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "config": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "patch": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.patch",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "manifest": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "repository": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "license": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "icon": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "main": {
                          "type": "string"
                        },
                        "engines": {
                          "type": "object",
                          "properties": {
                            "cadcam": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "cadcam"
                          ],
                          "additionalProperties": false
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "model:read",
                              "model:write",
                              "model:selection",
                              "ui:sidebar",
                              "ui:toolbar",
                              "ui:contextMenu",
                              "ui:propertyPanel",
                              "ui:modal",
                              "ui:overlay",
                              "storage:local",
                              "storage:sync",
                              "file:read",
                              "file:write",
                              "file:downloads",
                              "network:origin",
                              "network:external",
                              "system:clipboard",
                              "system:notifications",
                              "ui:fullscreen",
                              "device:camera",
                              "device:microphone"
                            ]
                          }
                        },
                        "dependencies": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "contributes": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sidebar": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "title": {
                                          "type": "string"
                                        },
                                        "icon": {
                                          "type": "string"
                                        },
                                        "entry": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "title",
                                        "icon",
                                        "entry"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "commands": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "icon": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "keybinding": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "menus": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "toolbar": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "command": {
                                                    "type": "string"
                                                  },
                                                  "group": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "when": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priority": {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "type": "number"
                                                          },
                                                          {
                                                            "type": "string",
                                                            "enum": [
                                                              "Infinity",
                                                              "-Infinity",
                                                              "NaN"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "command"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "contextMenu": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "command": {
                                                    "type": "string"
                                                  },
                                                  "group": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "when": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priority": {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "type": "number"
                                                          },
                                                          {
                                                            "type": "string",
                                                            "enum": [
                                                              "Infinity",
                                                              "-Infinity",
                                                              "NaN"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "command"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "propertyPanel": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "title": {
                                            "type": "string"
                                          },
                                          "entry": {
                                            "type": "string"
                                          },
                                          "appliesTo": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title",
                                          "entry"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "themes": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "path": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "label",
                                          "path"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "configuration": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "properties": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "default": {
                                        "anyOf": [
                                          {},
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "description": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "enum": {
                                        "anyOf": [
                                          {
                                            "type": "array"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "minimum": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "maximum": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "pattern": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "properties"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "version",
                        "description",
                        "author",
                        "main",
                        "engines",
                        "permissions"
                      ],
                      "additionalProperties": false
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "none",
                        "installed",
                        "enabled",
                        "disabled",
                        "loaded",
                        "activated",
                        "deactivated",
                        "error"
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "string"
                    },
                    "installedAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "config": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "configurationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "errorCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "lastError": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "manifest",
                    "state",
                    "enabled",
                    "version",
                    "installedAt",
                    "updatedAt",
                    "errorCount"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "manifest": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "author": {
                            "type": "string"
                          },
                          "repository": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "license": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "icon": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "main": {
                            "type": "string"
                          },
                          "engines": {
                            "type": "object",
                            "properties": {
                              "cadcam": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "cadcam"
                            ],
                            "additionalProperties": false
                          },
                          "permissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "model:read",
                                "model:write",
                                "model:selection",
                                "ui:sidebar",
                                "ui:toolbar",
                                "ui:contextMenu",
                                "ui:propertyPanel",
                                "ui:modal",
                                "ui:overlay",
                                "storage:local",
                                "storage:sync",
                                "file:read",
                                "file:write",
                                "file:downloads",
                                "network:origin",
                                "network:external",
                                "system:clipboard",
                                "system:notifications",
                                "ui:fullscreen",
                                "device:camera",
                                "device:microphone"
                              ]
                            }
                          },
                          "dependencies": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contributes": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "sidebar": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "title": {
                                            "type": "string"
                                          },
                                          "icon": {
                                            "type": "string"
                                          },
                                          "entry": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "title",
                                          "icon",
                                          "entry"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "commands": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "icon": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "keybinding": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "title"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "menus": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "toolbar": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "command": {
                                                      "type": "string"
                                                    },
                                                    "group": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "when": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "priority": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "Infinity",
                                                                "-Infinity",
                                                                "NaN"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "command"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "contextMenu": {
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "command": {
                                                      "type": "string"
                                                    },
                                                    "group": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "when": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "priority": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "Infinity",
                                                                "-Infinity",
                                                                "NaN"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "command"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "propertyPanel": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "title": {
                                              "type": "string"
                                            },
                                            "entry": {
                                              "type": "string"
                                            },
                                            "appliesTo": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "title",
                                            "entry"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "themes": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "label": {
                                              "type": "string"
                                            },
                                            "path": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "label",
                                            "path"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "configuration": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "properties": {
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string"
                                        },
                                        "default": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "enum": {
                                          "anyOf": [
                                            {
                                              "type": "array"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "minimum": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maximum": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "Infinity",
                                                    "-Infinity",
                                                    "NaN"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "pattern": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "properties"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "version",
                          "description",
                          "author",
                          "main",
                          "engines",
                          "permissions"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "config": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/plugins/registry": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.registry",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "author": {
                        "type": "string"
                      },
                      "entryPoint": {
                        "type": "string"
                      },
                      "homepage": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "repository": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependencies": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "permissions": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "extensionPoints": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "minAppVersion": {
                        "type": "string"
                      },
                      "maxAppVersion": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "version",
                      "description",
                      "author",
                      "entryPoint",
                      "dependencies",
                      "permissions",
                      "extensionPoints",
                      "minAppVersion"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/registry/{id}": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.registryGet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "author": {
                      "type": "string"
                    },
                    "entryPoint": {
                      "type": "string"
                    },
                    "homepage": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "repository": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dependencies": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "extensionPoints": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "minAppVersion": {
                      "type": "string"
                    },
                    "maxAppVersion": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "version",
                    "description",
                    "author",
                    "entryPoint",
                    "dependencies",
                    "permissions",
                    "extensionPoints",
                    "minAppVersion"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "PluginNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginNotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/plugins/registry/search": {
      "get": {
        "tags": [
          "plugins"
        ],
        "operationId": "plugins.registrySearch",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "author": {
                        "type": "string"
                      },
                      "entryPoint": {
                        "type": "string"
                      },
                      "homepage": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "repository": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dependencies": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "permissions": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "extensionPoints": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "minAppVersion": {
                        "type": "string"
                      },
                      "maxAppVersion": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "version",
                      "description",
                      "author",
                      "entryPoint",
                      "dependencies",
                      "permissions",
                      "extensionPoints",
                      "minAppVersion"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "PluginBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/upload": {
      "post": {
        "tags": [
          "files"
        ],
        "operationId": "files.upload",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "upload": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "fileName": {
                          "type": "string"
                        },
                        "s3Key": {
                          "type": "string"
                        },
                        "s3Bucket": {
                          "type": "string"
                        },
                        "s3ContentType": {
                          "type": "string"
                        },
                        "s3Size": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "objectId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "objectType": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ownerId": {
                          "type": "string"
                        },
                        "organizationId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "publicUrl": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "fileName",
                        "s3Key",
                        "s3Bucket",
                        "s3ContentType",
                        "s3Size",
                        "objectId",
                        "objectType",
                        "ownerId",
                        "organizationId",
                        "createdAt",
                        "updatedAt",
                        "publicUrl"
                      ],
                      "additionalProperties": false
                    },
                    "uploadUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "upload",
                    "uploadUrl"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fileType": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "conversationId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fileSize": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/download": {
      "get": {
        "tags": [
          "files"
        ],
        "operationId": "files.download",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                },
                "x-effect-stream": {
                  "encoding": "uint8array"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/organizations": {
      "get": {
        "tags": [
          "organizations"
        ],
        "operationId": "organizations.list",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string",
                        "enum": [
                          "ADMIN",
                          "MANAGER",
                          "MEMBER"
                        ]
                      },
                      "userCount": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "projectCount": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "createdAt",
                      "updatedAt",
                      "role",
                      "userCount",
                      "projectCount"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "organizations"
        ],
        "operationId": "organizations.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/organizations/{id}": {
      "get": {
        "tags": [
          "organizations"
        ],
        "operationId": "organizations.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "image": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "ADMIN",
                              "MANAGER",
                              "MEMBER"
                            ]
                          },
                          "joinedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "email",
                          "image",
                          "role",
                          "joinedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "projectCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "userRole": {
                      "type": "string",
                      "enum": [
                        "ADMIN",
                        "MANAGER",
                        "MEMBER"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt",
                    "members",
                    "projectCount",
                    "userRole"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "organizations"
        ],
        "operationId": "organizations.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "organizations"
        ],
        "operationId": "organizations.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/notifications": {
      "get": {
        "tags": [
          "notifications"
        ],
        "operationId": "notifications.list",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "onlyUnread",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "notifications": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "NEW_MESSAGE",
                              "PROJECT_CREATED",
                              "COMPONENT_CREATED",
                              "MEMBER_JOINED",
                              "ORGANIZATION_INVITATION",
                              "PR_OPENED",
                              "PR_MERGED",
                              "PR_REVIEWED",
                              "AI_COMMITTED",
                              "WORKFLOW_FAILED",
                              "WORKFLOW_PASSED"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string"
                          },
                          "isRead": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "userId": {
                            "type": "string"
                          },
                          "organizationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "messageId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "linkUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "title",
                          "content",
                          "isRead",
                          "createdAt",
                          "userId",
                          "organizationId",
                          "projectId",
                          "componentId",
                          "messageId",
                          "linkUrl"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "unreadCount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "notifications",
                    "unreadCount",
                    "nextCursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/notifications/{id}": {
      "put": {
        "tags": [
          "notifications"
        ],
        "operationId": "notifications.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "NEW_MESSAGE",
                        "PROJECT_CREATED",
                        "COMPONENT_CREATED",
                        "MEMBER_JOINED",
                        "ORGANIZATION_INVITATION",
                        "PR_OPENED",
                        "PR_MERGED",
                        "PR_REVIEWED",
                        "AI_COMMITTED",
                        "WORKFLOW_FAILED",
                        "WORKFLOW_PASSED"
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    },
                    "isRead": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "userId": {
                      "type": "string"
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "projectId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "messageId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "linkUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "title",
                    "content",
                    "isRead",
                    "createdAt",
                    "userId",
                    "organizationId",
                    "projectId",
                    "componentId",
                    "messageId",
                    "linkUrl"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "isRead": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "isRead"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "notifications"
        ],
        "operationId": "notifications.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/notifications/mark-all-read": {
      "post": {
        "tags": [
          "notifications"
        ],
        "operationId": "notifications.markAllRead",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "count": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "count"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects": {
      "get": {
        "tags": [
          "projects"
        ],
        "operationId": "projects.list",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "type": "string"
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPublic": {
                        "type": "boolean"
                      },
                      "owner": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "email"
                        ],
                        "additionalProperties": false
                      },
                      "organization": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "_count": {
                        "type": "object",
                        "properties": {
                          "drawings": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "components": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "drawings",
                          "components"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId",
                      "isPublic",
                      "owner",
                      "organization",
                      "_count"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "projects"
        ],
        "operationId": "projects.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "type": "string"
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "isPublic"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}": {
      "get": {
        "tags": [
          "projects"
        ],
        "operationId": "projects.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "type": "string"
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "additionalProperties": false
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "_count": {
                      "type": "object",
                      "properties": {
                        "drawings": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "components": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "drawings",
                        "components"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "isPublic",
                    "owner",
                    "organization",
                    "_count"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "projects"
        ],
        "operationId": "projects.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "type": "string"
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "additionalProperties": false
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "_count": {
                      "type": "object",
                      "properties": {
                        "drawings": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "components": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "drawings",
                        "components"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "isPublic",
                    "owner",
                    "organization",
                    "_count"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "projects"
        ],
        "operationId": "projects.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/materials": {
      "get": {
        "tags": [
          "materials"
        ],
        "operationId": "materials.list",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "properties": {},
                      "isPublic": {
                        "type": "boolean"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "properties",
                      "isPublic",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "materials"
        ],
        "operationId": "materials.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "properties": {},
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "properties",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "properties": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/materials/{id}": {
      "get": {
        "tags": [
          "materials"
        ],
        "operationId": "materials.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "properties": {},
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "email"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "properties",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "owner",
                    "organization"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "materials"
        ],
        "operationId": "materials.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "properties": {},
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "properties",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "properties": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "materials"
        ],
        "operationId": "materials.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/materials/{id}/storage": {
      "post": {
        "tags": [
          "materialsStorage"
        ],
        "operationId": "materialsStorage.save",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      },
      "get": {
        "tags": [
          "materialsStorage"
        ],
        "operationId": "materialsStorage.read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "signedUrl",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "materialsStorage"
        ],
        "operationId": "materialsStorage.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/materials/export-import": {
      "get": {
        "tags": [
          "materialsStorage"
        ],
        "operationId": "materialsStorage.export",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "materialsStorage"
        ],
        "operationId": "materialsStorage.import",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      }
    },
    "/api/tools": {
      "get": {
        "tags": [
          "tools"
        ],
        "operationId": "tools.list",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "material",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "diameter",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "diameter": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "material": {
                        "type": "string"
                      },
                      "numberOfFlutes": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxRPM": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "coolantType": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cuttingLength": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "totalLength": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "shankDiameter": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cornerRadius": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tipAngle": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "threadPitch": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "holderDiameter": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "holderLength": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "stickout": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "notes": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPublic": {
                        "type": "boolean"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "type",
                      "diameter",
                      "material",
                      "numberOfFlutes",
                      "maxRPM",
                      "coolantType",
                      "cuttingLength",
                      "totalLength",
                      "shankDiameter",
                      "notes",
                      "isPublic",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "tools"
        ],
        "operationId": "tools.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "diameter": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "material": {
                      "type": "string"
                    },
                    "numberOfFlutes": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxRPM": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "coolantType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cuttingLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "totalLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "shankDiameter": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cornerRadius": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tipAngle": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "threadPitch": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "holderDiameter": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "holderLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stickout": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "diameter",
                    "material",
                    "numberOfFlutes",
                    "maxRPM",
                    "coolantType",
                    "cuttingLength",
                    "totalLength",
                    "shankDiameter",
                    "notes",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diameter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "material": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "numberOfFlutes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxRPM": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "coolantType": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cuttingLength": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "totalLength": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "shankDiameter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cornerRadius": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tipAngle": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "threadPitch": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "holderDiameter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "holderLength": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stickout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "notes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/tools/{id}": {
      "get": {
        "tags": [
          "tools"
        ],
        "operationId": "tools.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "diameter": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "material": {
                      "type": "string"
                    },
                    "numberOfFlutes": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxRPM": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "coolantType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cuttingLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "totalLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "shankDiameter": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cornerRadius": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tipAngle": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "threadPitch": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "holderDiameter": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "holderLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stickout": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "email"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organization": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "diameter",
                    "material",
                    "numberOfFlutes",
                    "maxRPM",
                    "coolantType",
                    "cuttingLength",
                    "totalLength",
                    "shankDiameter",
                    "notes",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId",
                    "owner",
                    "organization"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "tools"
        ],
        "operationId": "tools.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "diameter": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "material": {
                      "type": "string"
                    },
                    "numberOfFlutes": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxRPM": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "coolantType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cuttingLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "totalLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "shankDiameter": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cornerRadius": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tipAngle": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "threadPitch": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "holderDiameter": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "holderLength": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stickout": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "diameter",
                    "material",
                    "numberOfFlutes",
                    "maxRPM",
                    "coolantType",
                    "cuttingLength",
                    "totalLength",
                    "shankDiameter",
                    "notes",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "diameter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "material": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "numberOfFlutes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxRPM": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "coolantType": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cuttingLength": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "totalLength": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "shankDiameter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cornerRadius": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tipAngle": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "threadPitch": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "holderDiameter": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "holderLength": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stickout": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "notes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "tools"
        ],
        "operationId": "tools.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/{id}/storage": {
      "post": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.save",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      },
      "get": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "signedUrl",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/export-import": {
      "get": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.export",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.import",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      }
    },
    "/api/tools/{id}/export-import": {
      "get": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.exportById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "toolsStorage"
        ],
        "operationId": "toolsStorage.importById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      }
    },
    "/api/machine-configs": {
      "get": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.list",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      }
    },
    "/api/machine-configs/{id}": {
      "get": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/machine-configs/{id}/clone": {
      "post": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.clone",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      }
    },
    "/api/machine-configs/defaults": {
      "get": {
        "tags": [
          "machineConfigs"
        ],
        "operationId": "machineConfigs.defaults",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/machine-configs/{id}/storage": {
      "post": {
        "tags": [
          "machineConfigsStorage"
        ],
        "operationId": "machineConfigsStorage.save",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      },
      "get": {
        "tags": [
          "machineConfigsStorage"
        ],
        "operationId": "machineConfigsStorage.read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "signedUrl",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "machineConfigsStorage"
        ],
        "operationId": "machineConfigsStorage.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/machine-configs/export-import": {
      "get": {
        "tags": [
          "machineConfigsStorage"
        ],
        "operationId": "machineConfigsStorage.export",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "machineConfigsStorage"
        ],
        "operationId": "machineConfigsStorage.import",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            }
          },
          "required": true
        }
      }
    },
    "/api/drawings/{id}": {
      "get": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "ownerId": {
                          "type": "string"
                        },
                        "organization": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "users": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "role": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "role"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "users"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "ownerId",
                        "organization"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "createdAt",
                    "updatedAt",
                    "projectId",
                    "project"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "createdAt",
                    "updatedAt",
                    "projectId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUpdatedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mergeData": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/drawings/{id}/versions": {
      "get": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.versions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "version": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "elements": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "version",
                      "createdAt",
                      "elements"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/drawings/{id}/versions/{versionId}/restore": {
      "post": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.restoreVersion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "createdAt",
                    "updatedAt",
                    "projectId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/drawings": {
      "get": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.listForProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "data": {},
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "data",
                      "thumbnail",
                      "createdAt",
                      "updatedAt",
                      "projectId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "drawings"
        ],
        "operationId": "drawings.createForProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "createdAt",
                    "updatedAt",
                    "projectId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUpdatedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mergeData": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/components/{id}": {
      "get": {
        "tags": [
          "components"
        ],
        "operationId": "components.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "ownerId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "ownerId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "type",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "projectId",
                    "project"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "components"
        ],
        "operationId": "components.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "type",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "projectId",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "components"
        ],
        "operationId": "components.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/components": {
      "get": {
        "tags": [
          "components"
        ],
        "operationId": "components.listForProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "data": {},
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPublic": {
                        "type": "boolean"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "data",
                      "thumbnail",
                      "type",
                      "isPublic",
                      "createdAt",
                      "updatedAt",
                      "projectId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "components"
        ],
        "operationId": "components.createForProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "thumbnail",
                    "type",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "projectId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths": {
      "get": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.list",
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "operationType",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "data": {},
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "operationType": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "gcode": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPublic": {
                        "type": "boolean"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "createdBy": {
                        "type": "string"
                      },
                      "drawingId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "materialId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "toolId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "machineConfigId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "data",
                      "type",
                      "operationType",
                      "gcode",
                      "thumbnail",
                      "isPublic",
                      "projectId",
                      "createdAt",
                      "updatedAt",
                      "createdBy",
                      "drawingId",
                      "materialId",
                      "toolId",
                      "machineConfigId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "operationType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gcode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "createdBy": {
                      "type": "string"
                    },
                    "drawingId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "materialId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "machineConfigId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "type",
                    "operationType",
                    "gcode",
                    "thumbnail",
                    "isPublic",
                    "projectId",
                    "createdAt",
                    "updatedAt",
                    "createdBy",
                    "drawingId",
                    "materialId",
                    "toolId",
                    "machineConfigId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gcode": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operationType": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "materialId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineConfigId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "simulation": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUpdatedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/{id}": {
      "get": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "operationType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gcode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "createdBy": {
                      "type": "string"
                    },
                    "drawingId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "materialId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "machineConfigId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "ownerId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "ownerId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "type",
                    "operationType",
                    "gcode",
                    "thumbnail",
                    "isPublic",
                    "projectId",
                    "createdAt",
                    "updatedAt",
                    "createdBy",
                    "drawingId",
                    "materialId",
                    "toolId",
                    "machineConfigId",
                    "project"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "operationType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gcode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "createdBy": {
                      "type": "string"
                    },
                    "drawingId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "materialId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "machineConfigId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "type",
                    "operationType",
                    "gcode",
                    "thumbnail",
                    "isPublic",
                    "projectId",
                    "createdAt",
                    "updatedAt",
                    "createdBy",
                    "drawingId",
                    "materialId",
                    "toolId",
                    "machineConfigId",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gcode": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operationType": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "materialId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineConfigId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "simulation": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUpdatedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/toolpaths/{id}/setup-sheet": {
      "get": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.setupSheet",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "jobId": {
                          "type": "string"
                        },
                        "release": {
                          "type": "string",
                          "enum": [
                            "blocked",
                            "preview",
                            "verified-program"
                          ]
                        },
                        "material": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "iso": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "name",
                            "iso"
                          ],
                          "additionalProperties": false
                        },
                        "machine": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "post": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "name",
                            "post"
                          ],
                          "additionalProperties": false
                        },
                        "setup": {
                          "type": "object",
                          "properties": {
                            "orientation": {
                              "type": "string"
                            },
                            "workOffset": {
                              "type": "string"
                            },
                            "origin": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            },
                            "stock": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "orientation",
                            "workOffset",
                            "origin",
                            "stock"
                          ],
                          "additionalProperties": false
                        },
                        "tools": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer"
                              },
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "kind": {
                                "type": "string"
                              },
                              "diameter": {
                                "type": "number"
                              },
                              "flutes": {
                                "type": "integer"
                              },
                              "fluteLength": {
                                "type": "number"
                              },
                              "shankDiameter": {
                                "type": "number"
                              },
                              "stickout": {
                                "type": "number"
                              },
                              "holder": {
                                "type": "string"
                              },
                              "operations": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "seconds": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "number",
                              "id",
                              "name",
                              "kind",
                              "diameter",
                              "flutes",
                              "fluteLength",
                              "shankDiameter",
                              "stickout",
                              "operations",
                              "seconds"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "operations": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer"
                              },
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "strategy": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ok",
                                  "failed"
                                ]
                              },
                              "tool": {
                                "type": "integer"
                              },
                              "seconds": {
                                "type": "number"
                              },
                              "cutLength": {
                                "type": "number"
                              },
                              "removedVolume": {
                                "type": "number"
                              },
                              "rpm": {
                                "type": "number"
                              },
                              "feed": {
                                "type": "number"
                              },
                              "ap": {
                                "type": "number"
                              },
                              "ae": {
                                "type": "number"
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "index",
                              "id",
                              "name",
                              "strategy",
                              "status",
                              "seconds",
                              "cutLength",
                              "removedVolume",
                              "warnings"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "totals": {
                          "type": "object",
                          "properties": {
                            "tools": {
                              "type": "integer"
                            },
                            "operations": {
                              "type": "integer"
                            },
                            "cycleSeconds": {
                              "type": "number"
                            },
                            "cuttingSeconds": {
                              "type": "number"
                            },
                            "removedVolume": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "tools",
                            "operations",
                            "cycleSeconds",
                            "cuttingSeconds",
                            "removedVolume"
                          ],
                          "additionalProperties": false
                        },
                        "claims": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              },
                              "detail": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "status",
                              "detail"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "notes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "issues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "severity": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "severity",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "identity": {
                          "type": "object",
                          "properties": {
                            "job": {
                              "type": "string"
                            },
                            "part": {
                              "type": "string"
                            },
                            "nc": {
                              "type": "string"
                            },
                            "algorithm": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "job",
                            "part",
                            "nc",
                            "algorithm"
                          ],
                          "additionalProperties": false
                        },
                        "titleBlock": {
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "title",
                        "jobId",
                        "release",
                        "material",
                        "machine",
                        "setup",
                        "tools",
                        "operations",
                        "totals",
                        "claims",
                        "notes",
                        "issues",
                        "identity"
                      ],
                      "additionalProperties": false
                    },
                    "html": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "html"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/toolpaths/post-check": {
      "post": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.postCheck",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "valid": {
                      "type": "boolean"
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "path",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sample": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "valid",
                    "issues"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "definition": {},
                  "sample": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "definition"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/drawings/{id}/toolpaths": {
      "get": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.listForDrawing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "data": {},
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "operationType": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "gcode": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPublic": {
                        "type": "boolean"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "createdBy": {
                        "type": "string"
                      },
                      "drawingId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "materialId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "toolId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "machineConfigId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "Material": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "name"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "MachineConfig": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "Tool": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "diameter": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "type",
                              "diameter"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "data",
                      "type",
                      "operationType",
                      "gcode",
                      "thumbnail",
                      "isPublic",
                      "projectId",
                      "createdAt",
                      "updatedAt",
                      "createdBy",
                      "drawingId",
                      "materialId",
                      "toolId",
                      "machineConfigId",
                      "Material",
                      "MachineConfig",
                      "Tool"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "toolpaths"
        ],
        "operationId": "toolpaths.createForDrawing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "operationType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gcode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "createdBy": {
                      "type": "string"
                    },
                    "drawingId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "materialId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "machineConfigId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "type",
                    "operationType",
                    "gcode",
                    "thumbnail",
                    "isPublic",
                    "projectId",
                    "createdAt",
                    "updatedAt",
                    "createdBy",
                    "drawingId",
                    "materialId",
                    "toolId",
                    "machineConfigId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gcode": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operationType": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "materialId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineConfigId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "simulation": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUpdatedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/library": {
      "get": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.library",
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "operationType",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "operationType": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "data": {},
                      "gcode": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "type",
                      "operationType",
                      "category",
                      "tags",
                      "data",
                      "gcode",
                      "projectId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/toolpaths/{id}/versions": {
      "get": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.listVersions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "toolpathId": {
                        "type": "string"
                      },
                      "data": {},
                      "gcode": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "changeMessage": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "userId": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "user": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "email"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "toolpathId",
                      "data",
                      "gcode",
                      "changeMessage",
                      "userId",
                      "createdAt",
                      "user"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.createVersion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "data": {},
                    "gcode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "changeMessage": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "userId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "toolpathId",
                    "data",
                    "gcode",
                    "changeMessage",
                    "userId",
                    "createdAt",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gcode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "changeMessage": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/{id}/versions/restore": {
      "post": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.restoreVersion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "data": {},
                    "type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "operationType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gcode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "createdBy": {
                      "type": "string"
                    },
                    "drawingId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "materialId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "toolId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "machineConfigId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "data",
                    "type",
                    "operationType",
                    "gcode",
                    "thumbnail",
                    "isPublic",
                    "projectId",
                    "createdAt",
                    "updatedAt",
                    "createdBy",
                    "drawingId",
                    "materialId",
                    "toolId",
                    "machineConfigId",
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": [
                  "versionId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/{id}/comments": {
      "get": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.listComments",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "toolpathId": {
                        "type": "string"
                      },
                      "content": {
                        "type": "string"
                      },
                      "userId": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "user": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "image": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "email",
                              "image"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "toolpathId",
                      "content",
                      "userId",
                      "createdAt",
                      "updatedAt",
                      "user"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.createComment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    },
                    "userId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "user": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "image": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "email",
                            "image"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "toolpathId",
                    "content",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "string"
                  }
                },
                "required": [
                  "content"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/{id}/comments/{commentId}": {
      "put": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.updateComment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "commentId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "toolpathId": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    },
                    "userId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "user": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "image": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "email",
                            "image"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "toolpathId",
                    "content",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "string"
                  }
                },
                "required": [
                  "content"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "toolpathExtras"
        ],
        "operationId": "toolpathExtras.removeComment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "commentId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/toolpaths/manufacture": {
      "post": {
        "tags": [
          "toolpathGenerator"
        ],
        "operationId": "toolpathGenerator.manufacture",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "ok"
                          ]
                        },
                        "value": {
                          "type": "object",
                          "properties": {
                            "schemaVersion": {
                              "type": "number",
                              "enum": [
                                1
                              ]
                            },
                            "jobId": {
                              "type": "string",
                              "minLength": 1
                            },
                            "material": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": "string"
                                },
                                "iso": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "iso"
                              ],
                              "additionalProperties": false
                            },
                            "machine": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": "string"
                                },
                                "post": {
                                  "type": "string",
                                  "enum": [
                                    "generic",
                                    "fanuc",
                                    "grbl",
                                    "linuxcnc",
                                    "haas",
                                    "siemens",
                                    "heidenhain",
                                    "okuma",
                                    "mazak"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "post"
                              ],
                              "additionalProperties": false
                            },
                            "setupOrientation": {
                              "type": "string",
                              "enum": [
                                "+Z",
                                "-Z",
                                "+X",
                                "-X",
                                "+Y",
                                "-Y"
                              ]
                            },
                            "origin": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            },
                            "stockBounds": {
                              "type": "object",
                              "properties": {
                                "min": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "max": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "operations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "strategy": {
                                    "type": "string",
                                    "enum": [
                                      "face",
                                      "adaptive",
                                      "pocket",
                                      "profile",
                                      "bore",
                                      "drill",
                                      "thread",
                                      "engrave",
                                      "chamfer",
                                      "surface",
                                      "multiaxis",
                                      "print"
                                    ]
                                  },
                                  "toolId": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "cut": {
                                    "type": "string",
                                    "enum": [
                                      "face",
                                      "slot",
                                      "rough-side",
                                      "adaptive",
                                      "finish-wall",
                                      "finish-floor",
                                      "finish-3d",
                                      "drill",
                                      "spot",
                                      "chamfer",
                                      "engrave",
                                      "thread-mill",
                                      "tap",
                                      "ream",
                                      "print"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ok",
                                      "failed"
                                    ]
                                  },
                                  "cutting": {
                                    "type": "object",
                                    "properties": {
                                      "cut": {
                                        "type": "string",
                                        "enum": [
                                          "face",
                                          "slot",
                                          "rough-side",
                                          "adaptive",
                                          "finish-wall",
                                          "finish-floor",
                                          "finish-3d",
                                          "drill",
                                          "spot",
                                          "chamfer",
                                          "engrave",
                                          "thread-mill",
                                          "tap",
                                          "ream"
                                        ]
                                      },
                                      "rpm": {
                                        "type": "number"
                                      },
                                      "vc": {
                                        "type": "number"
                                      },
                                      "vcRecommended": {
                                        "type": "number"
                                      },
                                      "effectiveDiameter": {
                                        "type": "number"
                                      },
                                      "fz": {
                                        "type": "number"
                                      },
                                      "chipThickness": {
                                        "type": "number"
                                      },
                                      "feed": {
                                        "type": "number"
                                      },
                                      "plungeFeed": {
                                        "type": "number"
                                      },
                                      "ap": {
                                        "type": "number"
                                      },
                                      "ae": {
                                        "type": "number"
                                      },
                                      "stepoverPercent": {
                                        "type": "number"
                                      },
                                      "rampAngle": {
                                        "type": "number"
                                      },
                                      "helixPitch": {
                                        "type": "number"
                                      },
                                      "coolant": {
                                        "type": "string",
                                        "enum": [
                                          "off",
                                          "flood",
                                          "mist"
                                        ]
                                      },
                                      "peck": {
                                        "type": "number"
                                      },
                                      "chipBreak": {
                                        "type": "boolean"
                                      },
                                      "feedPerRev": {
                                        "type": "number"
                                      },
                                      "passes": {
                                        "type": "number"
                                      },
                                      "mrr": {
                                        "type": "number"
                                      },
                                      "powerKw": {
                                        "type": "number"
                                      },
                                      "torqueNm": {
                                        "type": "number"
                                      },
                                      "forceN": {
                                        "type": "number"
                                      },
                                      "deflectionMm": {
                                        "type": "number"
                                      },
                                      "limitedBy": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "warnings": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "exceeded": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "source": {
                                        "type": "string"
                                      },
                                      "reference": {
                                        "type": "object",
                                        "properties": {
                                          "table": {
                                            "type": "string",
                                            "enum": [
                                              "MATERIALS"
                                            ]
                                          },
                                          "row": {
                                            "type": "string"
                                          },
                                          "rowName": {
                                            "type": "string"
                                          },
                                          "columns": {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "number"
                                            }
                                          },
                                          "factors": {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "number"
                                            }
                                          },
                                          "basis": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "table",
                                          "row",
                                          "rowName",
                                          "columns",
                                          "factors",
                                          "basis"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "cut",
                                      "rpm",
                                      "vc",
                                      "vcRecommended",
                                      "effectiveDiameter",
                                      "fz",
                                      "chipThickness",
                                      "feed",
                                      "plungeFeed",
                                      "ap",
                                      "ae",
                                      "stepoverPercent",
                                      "rampAngle",
                                      "helixPitch",
                                      "coolant",
                                      "mrr",
                                      "powerKw",
                                      "torqueNm",
                                      "forceN",
                                      "deflectionMm",
                                      "limitedBy",
                                      "warnings",
                                      "exceeded",
                                      "source",
                                      "reference"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "parameters": {
                                    "type": "object"
                                  },
                                  "overridden": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "warnings": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "startZ": {
                                    "type": "number"
                                  },
                                  "cutLength": {
                                    "type": "number"
                                  },
                                  "timeSeconds": {
                                    "type": "number"
                                  },
                                  "removedVolume": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "strategy",
                                  "toolId",
                                  "cut",
                                  "status",
                                  "parameters",
                                  "overridden",
                                  "warnings",
                                  "cutLength",
                                  "timeSeconds",
                                  "removedVolume"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "program": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "units": {
                                  "type": "string",
                                  "enum": [
                                    "mm",
                                    "inch"
                                  ]
                                },
                                "workOffset": {
                                  "type": "string",
                                  "enum": [
                                    "G54",
                                    "G55",
                                    "G56",
                                    "G57",
                                    "G58",
                                    "G59"
                                  ]
                                },
                                "toolpaths": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "toolId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "spindleRpm": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "coolant": {
                                        "type": "string",
                                        "enum": [
                                          "off",
                                          "flood",
                                          "mist"
                                        ]
                                      },
                                      "moves": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Rapid"
                                                  ]
                                                },
                                                "to": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {
                                                      "type": "number"
                                                    },
                                                    "y": {
                                                      "type": "number"
                                                    },
                                                    "z": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "x",
                                                    "y",
                                                    "z"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "rotary": {
                                                  "type": "object",
                                                  "properties": {
                                                    "a": {
                                                      "type": "number"
                                                    },
                                                    "b": {
                                                      "type": "number"
                                                    },
                                                    "c": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "additionalProperties": false
                                                },
                                                "expr": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {},
                                                    "y": {},
                                                    "z": {},
                                                    "feed": {}
                                                  },
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "to"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Linear"
                                                  ]
                                                },
                                                "to": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {
                                                      "type": "number"
                                                    },
                                                    "y": {
                                                      "type": "number"
                                                    },
                                                    "z": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "x",
                                                    "y",
                                                    "z"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "feed": {
                                                  "type": "number",
                                                  "exclusiveMinimum": 0
                                                },
                                                "rotary": {
                                                  "type": "object",
                                                  "properties": {
                                                    "a": {
                                                      "type": "number"
                                                    },
                                                    "b": {
                                                      "type": "number"
                                                    },
                                                    "c": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "additionalProperties": false
                                                },
                                                "expr": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {},
                                                    "y": {},
                                                    "z": {},
                                                    "feed": {}
                                                  },
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "to",
                                                "feed"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Arc"
                                                  ]
                                                },
                                                "to": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {
                                                      "type": "number"
                                                    },
                                                    "y": {
                                                      "type": "number"
                                                    },
                                                    "z": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "x",
                                                    "y",
                                                    "z"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "center": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {
                                                      "type": "number"
                                                    },
                                                    "y": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "x",
                                                    "y"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "clockwise": {
                                                  "type": "boolean"
                                                },
                                                "feed": {
                                                  "type": "number",
                                                  "exclusiveMinimum": 0
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "to",
                                                "center",
                                                "clockwise",
                                                "feed"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Dwell"
                                                  ]
                                                },
                                                "seconds": {
                                                  "type": "number",
                                                  "minimum": 0
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "seconds"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Comment"
                                                  ]
                                                },
                                                "text": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "text"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Cycle"
                                                  ]
                                                },
                                                "cycle": {
                                                  "type": "string",
                                                  "enum": [
                                                    "drill",
                                                    "dwell",
                                                    "peck",
                                                    "chipBreak",
                                                    "tap",
                                                    "ream",
                                                    "bore"
                                                  ]
                                                },
                                                "to": {
                                                  "type": "object",
                                                  "properties": {
                                                    "x": {
                                                      "type": "number"
                                                    },
                                                    "y": {
                                                      "type": "number"
                                                    },
                                                    "z": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "x",
                                                    "y",
                                                    "z"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "feed": {
                                                  "type": "number",
                                                  "exclusiveMinimum": 0
                                                },
                                                "peckDepth": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "dwellSeconds": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "retractHeight": {
                                                  "type": "number"
                                                },
                                                "pitch": {
                                                  "type": "number",
                                                  "exclusiveMinimum": 0
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "cycle",
                                                "to",
                                                "feed",
                                                "peckDepth",
                                                "dwellSeconds",
                                                "retractHeight"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Orient"
                                                  ]
                                                },
                                                "a": {
                                                  "type": "number"
                                                },
                                                "b": {
                                                  "type": "number"
                                                },
                                                "c": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "_tag"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Assign"
                                                  ]
                                                },
                                                "variable": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scope": {
                                                          "type": "string",
                                                          "enum": [
                                                            "local",
                                                            "global",
                                                            "system"
                                                          ]
                                                        },
                                                        "index": {
                                                          "type": "integer",
                                                          "minimum": 0
                                                        }
                                                      },
                                                      "required": [
                                                        "scope",
                                                        "index"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "name": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
                                                        }
                                                      },
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "additionalProperties": false
                                                    }
                                                  ]
                                                },
                                                "value": {}
                                              },
                                              "required": [
                                                "_tag",
                                                "variable",
                                                "value"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "MacroCall"
                                                  ]
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "args": {
                                                  "type": "object",
                                                  "patternProperties": {
                                                    "^[A-Za-z]$": {}
                                                  }
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "name",
                                                "args"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "If"
                                                  ]
                                                },
                                                "condition": {
                                                  "type": "object",
                                                  "properties": {
                                                    "cmp": {
                                                      "type": "string",
                                                      "enum": [
                                                        "eq",
                                                        "ne",
                                                        "lt",
                                                        "le",
                                                        "gt",
                                                        "ge"
                                                      ]
                                                    },
                                                    "a": {},
                                                    "b": {}
                                                  },
                                                  "required": [
                                                    "cmp",
                                                    "a",
                                                    "b"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "condition"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Else"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "_tag"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "EndIf"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "_tag"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "While"
                                                  ]
                                                },
                                                "condition": {
                                                  "type": "object",
                                                  "properties": {
                                                    "cmp": {
                                                      "type": "string",
                                                      "enum": [
                                                        "eq",
                                                        "ne",
                                                        "lt",
                                                        "le",
                                                        "gt",
                                                        "ge"
                                                      ]
                                                    },
                                                    "a": {},
                                                    "b": {}
                                                  },
                                                  "required": [
                                                    "cmp",
                                                    "a",
                                                    "b"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "condition"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "EndWhile"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "_tag"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Label"
                                                  ]
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "pattern": "^[A-Za-z0-9_]+$"
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "name"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Goto"
                                                  ]
                                                },
                                                "label": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "pattern": "^[A-Za-z0-9_]+$"
                                                },
                                                "direction": {
                                                  "type": "string",
                                                  "enum": [
                                                    "auto",
                                                    "forward",
                                                    "backward"
                                                  ]
                                                },
                                                "condition": {
                                                  "type": "object",
                                                  "properties": {
                                                    "cmp": {
                                                      "type": "string",
                                                      "enum": [
                                                        "eq",
                                                        "ne",
                                                        "lt",
                                                        "le",
                                                        "gt",
                                                        "ge"
                                                      ]
                                                    },
                                                    "a": {},
                                                    "b": {}
                                                  },
                                                  "required": [
                                                    "cmp",
                                                    "a",
                                                    "b"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "label"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "CycleBegin"
                                                  ]
                                                },
                                                "family": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "heidenhain"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                "number": {
                                                  "type": "integer",
                                                  "exclusiveMinimum": 0
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "params": {
                                                  "type": "object",
                                                  "additionalProperties": {
                                                    "type": "number"
                                                  }
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "family",
                                                "number",
                                                "name",
                                                "params"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "CycleEnd"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "_tag"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "_tag": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Message"
                                                  ]
                                                },
                                                "text": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "_tag",
                                                "text"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      },
                                      "operation": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "name": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "toolId",
                                      "spindleRpm",
                                      "coolant",
                                      "moves"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "units",
                                "workOffset",
                                "toolpaths"
                              ],
                              "additionalProperties": false
                            },
                            "tools": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "flat",
                                      "ball",
                                      "bull",
                                      "chamfer",
                                      "spot",
                                      "drill",
                                      "facemill",
                                      "threadmill",
                                      "engraver",
                                      "tap",
                                      "reamer"
                                    ]
                                  },
                                  "diameter": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "flutes": {
                                    "type": "integer"
                                  },
                                  "material": {
                                    "type": "string",
                                    "enum": [
                                      "hss",
                                      "hss-co",
                                      "carbide",
                                      "pcd"
                                    ]
                                  },
                                  "coating": {
                                    "type": "string",
                                    "enum": [
                                      "none",
                                      "tin",
                                      "ticn",
                                      "altin",
                                      "alcrn",
                                      "zrn",
                                      "dlc",
                                      "diamond"
                                    ]
                                  },
                                  "cornerRadius": {
                                    "type": "number"
                                  },
                                  "angle": {
                                    "type": "number"
                                  },
                                  "tipDiameter": {
                                    "type": "number"
                                  },
                                  "pitch": {
                                    "type": "number"
                                  },
                                  "fluteLength": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "shankDiameter": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "stickout": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "holder": {
                                    "type": "object",
                                    "properties": {
                                      "diameter": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      },
                                      "length": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": [
                                      "diameter",
                                      "length"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "maxRpm": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "number": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "kind",
                                  "diameter",
                                  "flutes",
                                  "material",
                                  "coating",
                                  "fluteLength",
                                  "shankDiameter",
                                  "stickout",
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "nc": {
                              "type": "string"
                            },
                            "claims": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "enum": [
                                      "bed-fit",
                                      "heated-start",
                                      "layers-rise",
                                      "wall-coverage",
                                      "skin-coverage",
                                      "no-spill",
                                      "filament",
                                      "cutting-data",
                                      "machine-limits",
                                      "operations-complete",
                                      "no-rapid-in-stock",
                                      "holder-clearance",
                                      "no-gouge",
                                      "material-removed",
                                      "nc-replay",
                                      "machine-travel",
                                      "machine-clearance",
                                      "setup-workholding",
                                      "part-coverage"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "passed",
                                      "failed",
                                      "unsupported",
                                      "unresolved"
                                    ]
                                  },
                                  "detail": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "detail"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "issues": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "tag": {
                                    "type": "string",
                                    "enum": [
                                      "InvalidInput",
                                      "UnknownMaterial",
                                      "UnknownTool",
                                      "NoSuitableTool",
                                      "UnsupportedCapability",
                                      "GenerationFailed",
                                      "EmptyToolpath",
                                      "MachineLimit",
                                      "RapidInStock",
                                      "HolderCollision",
                                      "Gouge",
                                      "RemainingStock",
                                      "ReplayMismatch",
                                      "Cancelled"
                                    ]
                                  },
                                  "severity": {
                                    "type": "string",
                                    "enum": [
                                      "error",
                                      "warning"
                                    ]
                                  },
                                  "stage": {
                                    "type": "string",
                                    "enum": [
                                      "prepare",
                                      "plan",
                                      "cutting-data",
                                      "generate",
                                      "post",
                                      "replay",
                                      "evidence"
                                    ]
                                  },
                                  "message": {
                                    "type": "string"
                                  },
                                  "operationId": {
                                    "type": "string"
                                  },
                                  "line": {
                                    "type": "integer"
                                  },
                                  "point": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "tag",
                                  "severity",
                                  "stage",
                                  "message"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "release": {
                              "type": "string",
                              "enum": [
                                "blocked",
                                "preview",
                                "verified-program"
                              ]
                            },
                            "stock": {
                              "type": "object",
                              "properties": {
                                "initialVolume": {
                                  "type": "number"
                                },
                                "finalVolume": {
                                  "type": "number"
                                },
                                "partVolume": {
                                  "type": "number"
                                },
                                "remainingVolume": {
                                  "type": "number"
                                },
                                "maxRemaining": {
                                  "type": "number"
                                },
                                "cellSize": {
                                  "type": "number"
                                },
                                "fiveAxis": {
                                  "type": "object",
                                  "properties": {
                                    "voxelMm": {
                                      "type": "number"
                                    },
                                    "removedLower": {
                                      "type": "number"
                                    },
                                    "removedUpper": {
                                      "type": "number"
                                    },
                                    "remainingLower": {
                                      "type": "number"
                                    },
                                    "remainingUpper": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "voxelMm",
                                    "removedLower",
                                    "removedUpper",
                                    "remainingLower",
                                    "remainingUpper"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "initialVolume",
                                "finalVolume",
                                "partVolume",
                                "remainingVolume",
                                "maxRemaining",
                                "cellSize"
                              ],
                              "additionalProperties": false
                            },
                            "cycleTimeSeconds": {
                              "type": "number"
                            },
                            "identity": {
                              "type": "object",
                              "properties": {
                                "job": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "part": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "nc": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "algorithm": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "job",
                                "part",
                                "nc",
                                "algorithm"
                              ],
                              "additionalProperties": false
                            },
                            "notes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "print": {
                              "type": "object",
                              "properties": {
                                "dialect": {
                                  "type": "string",
                                  "enum": [
                                    "marlin",
                                    "klipper",
                                    "reprap"
                                  ]
                                },
                                "filament": {
                                  "type": "object",
                                  "properties": {
                                    "material": {
                                      "type": "string"
                                    },
                                    "densityGcm3": {
                                      "type": "number"
                                    },
                                    "diameter": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "material",
                                    "densityGcm3",
                                    "diameter"
                                  ],
                                  "additionalProperties": false
                                },
                                "nozzle": {
                                  "type": "object",
                                  "properties": {
                                    "diameter": {
                                      "type": "number"
                                    },
                                    "temperature": {
                                      "type": "number"
                                    },
                                    "bedTemperature": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "diameter",
                                    "temperature",
                                    "bedTemperature"
                                  ],
                                  "additionalProperties": false
                                },
                                "layers": {
                                  "type": "integer"
                                },
                                "layerHeight": {
                                  "type": "number"
                                },
                                "filamentMm": {
                                  "type": "number"
                                },
                                "filamentGrams": {
                                  "type": "number"
                                },
                                "timeSeconds": {
                                  "type": "number"
                                },
                                "travelMm": {
                                  "type": "number"
                                },
                                "retractions": {
                                  "type": "integer"
                                },
                                "lengthByKind": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "number"
                                  }
                                },
                                "size": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "orientation": {
                                  "type": "string"
                                },
                                "settings": {
                                  "type": "object",
                                  "properties": {
                                    "layerHeight": {
                                      "type": "number",
                                      "minimum": 0.04,
                                      "maximum": 1.2
                                    },
                                    "firstLayerHeight": {
                                      "type": "number",
                                      "minimum": 0.04,
                                      "maximum": 1.2
                                    },
                                    "walls": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 20
                                    },
                                    "topLayers": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "bottomLayers": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "infillDensity": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "infillPattern": {
                                      "type": "string",
                                      "enum": [
                                        "lines",
                                        "grid",
                                        "triangles",
                                        "honeycomb",
                                        "gyroid",
                                        "concentric"
                                      ]
                                    },
                                    "supports": {
                                      "type": "string",
                                      "enum": [
                                        "none",
                                        "buildplate",
                                        "everywhere"
                                      ]
                                    },
                                    "supportAngle": {
                                      "type": "number",
                                      "minimum": 10,
                                      "maximum": 80
                                    },
                                    "adhesion": {
                                      "type": "string",
                                      "enum": [
                                        "none",
                                        "skirt",
                                        "brim",
                                        "raft"
                                      ]
                                    },
                                    "brimWidth": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 50
                                    },
                                    "printSpeed": {
                                      "type": "number",
                                      "minimum": 5,
                                      "maximum": 600
                                    },
                                    "nozzleTemperature": {
                                      "type": "number",
                                      "minimum": 120,
                                      "maximum": 450
                                    },
                                    "bedTemperature": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 150
                                    },
                                    "fan": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "vase": {
                                      "type": "boolean"
                                    },
                                    "orientation": {
                                      "type": "string",
                                      "enum": [
                                        "as-designed",
                                        "auto"
                                      ]
                                    },
                                    "seam": {
                                      "type": "string",
                                      "enum": [
                                        "nearest",
                                        "aligned",
                                        "random"
                                      ]
                                    },
                                    "retractionDistance": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 15
                                    },
                                    "zHop": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 5
                                    },
                                    "flow": {
                                      "type": "number",
                                      "minimum": 50,
                                      "maximum": 150
                                    },
                                    "relativeExtrusion": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "dialect",
                                "filament",
                                "nozzle",
                                "layers",
                                "layerHeight",
                                "filamentMm",
                                "filamentGrams",
                                "timeSeconds",
                                "travelMm",
                                "retractions",
                                "lengthByKind",
                                "size",
                                "orientation",
                                "settings"
                              ],
                              "additionalProperties": false
                            },
                            "tolerance": {
                              "type": "object",
                              "properties": {
                                "requested": {
                                  "type": "number"
                                },
                                "terms": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "enum": [
                                          "source-tessellation",
                                          "part-model",
                                          "path",
                                          "nc-rounding",
                                          "stock-replay"
                                        ]
                                      },
                                      "mm": {
                                        "type": "number"
                                      },
                                      "basis": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "mm",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "achieved": {
                                  "type": "number"
                                },
                                "unbounded": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "met": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "requested",
                                "terms",
                                "achieved",
                                "unbounded",
                                "met"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "schemaVersion",
                            "jobId",
                            "material",
                            "machine",
                            "origin",
                            "stockBounds",
                            "operations",
                            "program",
                            "tools",
                            "nc",
                            "claims",
                            "issues",
                            "release",
                            "stock",
                            "cycleTimeSeconds",
                            "identity",
                            "notes"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "status",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "failed"
                          ]
                        },
                        "issues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "tag": {
                                "type": "string",
                                "enum": [
                                  "InvalidInput",
                                  "UnknownMaterial",
                                  "UnknownTool",
                                  "NoSuitableTool",
                                  "UnsupportedCapability",
                                  "GenerationFailed",
                                  "EmptyToolpath",
                                  "MachineLimit",
                                  "RapidInStock",
                                  "HolderCollision",
                                  "Gouge",
                                  "RemainingStock",
                                  "ReplayMismatch",
                                  "Cancelled"
                                ]
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "error",
                                  "warning"
                                ]
                              },
                              "stage": {
                                "type": "string",
                                "enum": [
                                  "prepare",
                                  "plan",
                                  "cutting-data",
                                  "generate",
                                  "post",
                                  "replay",
                                  "evidence"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "operationId": {
                                "type": "string"
                              },
                              "line": {
                                "type": "integer"
                              },
                              "point": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "tag",
                              "severity",
                              "stage",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "status",
                        "issues"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "setupOrientation": {
                    "type": "string",
                    "enum": [
                      "+Z",
                      "-Z",
                      "+X",
                      "-X",
                      "+Y",
                      "-Y"
                    ]
                  },
                  "material": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "machine": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "machineConfig": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "config": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "type",
                      "config"
                    ],
                    "additionalProperties": false
                  },
                  "origin": {
                    "type": "string",
                    "enum": [
                      "stock-center",
                      "stock-corner"
                    ]
                  },
                  "finishAllowance": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 5
                  },
                  "scallop": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 1
                  },
                  "schemaVersion": {
                    "type": "number",
                    "enum": [
                      1
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 2000
                  },
                  "stock": {
                    "type": "object",
                    "properties": {
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "depth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "radius": {
                        "type": "number",
                        "minimum": 0
                      },
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      },
                      "topZ": {
                        "type": "number"
                      },
                      "allowance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "material": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "elementId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "width",
                      "height",
                      "depth"
                    ],
                    "additionalProperties": false
                  },
                  "tolerance": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "resolution": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "workOffset": {
                    "type": "string",
                    "enum": [
                      "G54",
                      "G55",
                      "G56",
                      "G57",
                      "G58",
                      "G59"
                    ]
                  },
                  "operations": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "face"
                              ]
                            },
                            "bottom": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "bottom"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "adaptive"
                              ]
                            },
                            "region": {
                              "type": "object",
                              "properties": {
                                "boundary": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 3,
                                  "maxItems": 20000
                                },
                                "islands": {
                                  "type": "array",
                                  "items": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 3,
                                    "maxItems": 20000
                                  },
                                  "maxItems": 500
                                }
                              },
                              "required": [
                                "boundary"
                              ],
                              "additionalProperties": false
                            },
                            "top": {
                              "type": "number"
                            },
                            "bottom": {
                              "type": "number"
                            },
                            "allowance": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "region",
                            "top",
                            "bottom"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "pocket"
                              ]
                            },
                            "region": {
                              "type": "object",
                              "properties": {
                                "boundary": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 3,
                                  "maxItems": 20000
                                },
                                "islands": {
                                  "type": "array",
                                  "items": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 3,
                                    "maxItems": 20000
                                  },
                                  "maxItems": 500
                                }
                              },
                              "required": [
                                "boundary"
                              ],
                              "additionalProperties": false
                            },
                            "top": {
                              "type": "number"
                            },
                            "bottom": {
                              "type": "number"
                            },
                            "allowance": {
                              "type": "number",
                              "minimum": 0
                            },
                            "finish": {
                              "type": "boolean"
                            },
                            "within": {
                              "type": "object",
                              "properties": {
                                "boundary": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 3,
                                  "maxItems": 20000
                                },
                                "islands": {
                                  "type": "array",
                                  "items": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 3,
                                    "maxItems": 20000
                                  },
                                  "maxItems": 500
                                }
                              },
                              "required": [
                                "boundary"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "region",
                            "top",
                            "bottom"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "profile"
                              ]
                            },
                            "loop": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 3,
                              "maxItems": 20000
                            },
                            "side": {
                              "type": "string",
                              "enum": [
                                "outside",
                                "inside"
                              ]
                            },
                            "top": {
                              "type": "number"
                            },
                            "bottom": {
                              "type": "number"
                            },
                            "allowance": {
                              "type": "number",
                              "minimum": 0
                            },
                            "finish": {
                              "type": "boolean"
                            },
                            "tabs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "position": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "width": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  },
                                  "height": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  }
                                },
                                "required": [
                                  "position",
                                  "width",
                                  "height"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 64
                            },
                            "leadIn": {
                              "type": "string",
                              "enum": [
                                "direct",
                                "arc",
                                "ramp",
                                "helix"
                              ]
                            },
                            "leadRadius": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "loop",
                            "side",
                            "top",
                            "bottom"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "bore"
                              ]
                            },
                            "center": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y"
                              ],
                              "additionalProperties": false
                            },
                            "diameter": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "top": {
                              "type": "number"
                            },
                            "bottom": {
                              "type": "number"
                            },
                            "allowance": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "center",
                            "diameter",
                            "top",
                            "bottom"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "drill"
                              ]
                            },
                            "points": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 5000
                            },
                            "top": {
                              "type": "number"
                            },
                            "bottom": {
                              "type": "number"
                            },
                            "cut": {
                              "type": "string",
                              "enum": [
                                "drill",
                                "spot",
                                "tap",
                                "ream"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "points",
                            "top",
                            "bottom"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "thread"
                              ]
                            },
                            "center": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y"
                              ],
                              "additionalProperties": false
                            },
                            "diameter": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "pitch": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "internal": {
                              "type": "boolean"
                            },
                            "top": {
                              "type": "number"
                            },
                            "length": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "rightHand": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "center",
                            "diameter",
                            "pitch",
                            "internal",
                            "top",
                            "length"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "engrave"
                              ]
                            },
                            "paths": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 2
                                  },
                                  "closed": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "points",
                                  "closed"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 2000
                            },
                            "top": {
                              "type": "number"
                            },
                            "depth": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "paths",
                            "top",
                            "depth"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "chamfer"
                              ]
                            },
                            "loops": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 3,
                                    "maxItems": 20000
                                  },
                                  "side": {
                                    "type": "string",
                                    "enum": [
                                      "outside",
                                      "inside"
                                    ]
                                  }
                                },
                                "required": [
                                  "points",
                                  "side"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 2000
                            },
                            "top": {
                              "type": "number"
                            },
                            "width": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "tipOffset": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "loops",
                            "top",
                            "width"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "surface"
                              ]
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "roughing",
                                "rest",
                                "parallel",
                                "waterline",
                                "steep-shallow",
                                "scallop",
                                "spiral",
                                "radial",
                                "flat"
                              ]
                            },
                            "slopeAngle": {
                              "type": "number",
                              "minimum": 5,
                              "maximum": 85
                            },
                            "allowance": {
                              "type": "number",
                              "minimum": 0
                            },
                            "scallop": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "clearing": {
                              "type": "string",
                              "enum": [
                                "contour",
                                "adaptive"
                              ]
                            },
                            "angle": {
                              "type": "number"
                            },
                            "restFrom": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "center": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "strategy",
                            "mode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "tool": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "rpm": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "feed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "plungeFeed": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepdown": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "stepover": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "radialEngagement": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "multiaxis"
                              ]
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "parallel",
                                "contour",
                                "swarf"
                              ]
                            },
                            "top": {
                              "type": "number"
                            },
                            "angle": {
                              "type": "number"
                            },
                            "toolAxis": {
                              "type": "string",
                              "enum": [
                                "normal",
                                "lead"
                              ]
                            },
                            "lead": {
                              "type": "number",
                              "minimum": -85,
                              "maximum": 85
                            },
                            "tilt": {
                              "type": "number",
                              "minimum": -85,
                              "maximum": 85
                            },
                            "walls": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "bottom": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        },
                                        "z": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y",
                                        "z"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 2,
                                    "maxItems": 2000
                                  },
                                  "top": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        },
                                        "z": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y",
                                        "z"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 2,
                                    "maxItems": 2000
                                  },
                                  "normal": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        },
                                        "z": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y",
                                        "z"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "minItems": 2,
                                    "maxItems": 2000
                                  },
                                  "concaveRadius": {
                                    "type": "number",
                                    "exclusiveMinimum": 0
                                  }
                                },
                                "required": [
                                  "bottom",
                                  "top",
                                  "normal"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 64
                            },
                            "near": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 64
                            }
                          },
                          "required": [
                            "id",
                            "tool",
                            "stepover",
                            "strategy",
                            "top"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "maxItems": 500
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "name": {
                          "type": "string",
                          "maxLength": 120
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "flat",
                            "ball",
                            "bull",
                            "chamfer",
                            "spot",
                            "drill",
                            "facemill",
                            "threadmill",
                            "engraver",
                            "tap",
                            "reamer"
                          ]
                        },
                        "diameter": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "flutes": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 24
                        },
                        "material": {
                          "type": "string",
                          "enum": [
                            "hss",
                            "hss-co",
                            "carbide",
                            "pcd"
                          ]
                        },
                        "coating": {
                          "type": "string",
                          "enum": [
                            "none",
                            "tin",
                            "ticn",
                            "altin",
                            "alcrn",
                            "zrn",
                            "dlc",
                            "diamond"
                          ]
                        },
                        "cornerRadius": {
                          "type": "number",
                          "minimum": 0
                        },
                        "angle": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 180
                        },
                        "tipDiameter": {
                          "type": "number",
                          "minimum": 0
                        },
                        "pitch": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "fluteLength": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "shankDiameter": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "stickout": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "holder": {
                          "type": "object",
                          "properties": {
                            "diameter": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "length": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            }
                          },
                          "required": [
                            "diameter",
                            "length"
                          ],
                          "additionalProperties": false
                        },
                        "maxRpm": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "number": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 999
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "kind",
                        "diameter",
                        "flutes",
                        "material",
                        "coating",
                        "fluteLength",
                        "shankDiameter",
                        "stickout"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 200
                  },
                  "deburr": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 5
                  },
                  "tabs": {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 64
                      },
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 50
                      }
                    },
                    "required": [
                      "count",
                      "width",
                      "height"
                    ],
                    "additionalProperties": false
                  },
                  "subprograms": {
                    "type": "boolean"
                  },
                  "nativeCycles": {
                    "type": "boolean"
                  },
                  "smoothing": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 1
                  },
                  "postDefinition": {},
                  "print": {
                    "type": "object",
                    "properties": {
                      "layerHeight": {
                        "type": "number",
                        "minimum": 0.04,
                        "maximum": 1.2
                      },
                      "firstLayerHeight": {
                        "type": "number",
                        "minimum": 0.04,
                        "maximum": 1.2
                      },
                      "walls": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 20
                      },
                      "topLayers": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "bottomLayers": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "infillDensity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "infillPattern": {
                        "type": "string",
                        "enum": [
                          "lines",
                          "grid",
                          "triangles",
                          "honeycomb",
                          "gyroid",
                          "concentric"
                        ]
                      },
                      "supports": {
                        "type": "string",
                        "enum": [
                          "none",
                          "buildplate",
                          "everywhere"
                        ]
                      },
                      "supportAngle": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 80
                      },
                      "adhesion": {
                        "type": "string",
                        "enum": [
                          "none",
                          "skirt",
                          "brim",
                          "raft"
                        ]
                      },
                      "brimWidth": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 50
                      },
                      "printSpeed": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 600
                      },
                      "nozzleTemperature": {
                        "type": "number",
                        "minimum": 120,
                        "maximum": 450
                      },
                      "bedTemperature": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 150
                      },
                      "fan": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "vase": {
                        "type": "boolean"
                      },
                      "orientation": {
                        "type": "string",
                        "enum": [
                          "as-designed",
                          "auto"
                        ]
                      },
                      "seam": {
                        "type": "string",
                        "enum": [
                          "nearest",
                          "aligned",
                          "random"
                        ]
                      },
                      "retractionDistance": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 15
                      },
                      "zHop": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 5
                      },
                      "flow": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 150
                      },
                      "relativeExtrusion": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "progress": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "runId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "projectId",
                      "runId"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "material",
                  "schemaVersion",
                  "id",
                  "name",
                  "elements"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/generate": {
      "post": {
        "tags": [
          "toolpathGenerator"
        ],
        "operationId": "toolpathGenerator.generate",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gcode": {
                      "type": "string"
                    },
                    "cycles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "gcode": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "gcode"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "lines": {
                          "type": "integer"
                        },
                        "cutLength": {
                          "type": "number"
                        },
                        "rapidLength": {
                          "type": "number"
                        },
                        "minZ": {
                          "type": "number"
                        },
                        "maxZ": {
                          "type": "number"
                        },
                        "estimatedSeconds": {
                          "type": "number"
                        },
                        "bounds": {
                          "type": "object",
                          "properties": {
                            "min": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            },
                            "max": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "min",
                            "max"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "lines",
                        "cutLength",
                        "rapidLength",
                        "minZ",
                        "maxZ",
                        "estimatedSeconds",
                        "bounds"
                      ],
                      "additionalProperties": false
                    },
                    "program": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "units": {
                          "type": "string",
                          "enum": [
                            "mm",
                            "inch"
                          ]
                        },
                        "workOffset": {
                          "type": "string",
                          "enum": [
                            "G54",
                            "G55",
                            "G56",
                            "G57",
                            "G58",
                            "G59"
                          ]
                        },
                        "toolpaths": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string"
                              },
                              "toolId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "spindleRpm": {
                                "type": "number",
                                "minimum": 0
                              },
                              "coolant": {
                                "type": "string",
                                "enum": [
                                  "off",
                                  "flood",
                                  "mist"
                                ]
                              },
                              "moves": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Rapid"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "rotary": {
                                          "type": "object",
                                          "properties": {
                                            "a": {
                                              "type": "number"
                                            },
                                            "b": {
                                              "type": "number"
                                            },
                                            "c": {
                                              "type": "number"
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "expr": {
                                          "type": "object",
                                          "properties": {
                                            "x": {},
                                            "y": {},
                                            "z": {},
                                            "feed": {}
                                          },
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "to"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Linear"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "feed": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        },
                                        "rotary": {
                                          "type": "object",
                                          "properties": {
                                            "a": {
                                              "type": "number"
                                            },
                                            "b": {
                                              "type": "number"
                                            },
                                            "c": {
                                              "type": "number"
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "expr": {
                                          "type": "object",
                                          "properties": {
                                            "x": {},
                                            "y": {},
                                            "z": {},
                                            "feed": {}
                                          },
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "to",
                                        "feed"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Arc"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "center": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "clockwise": {
                                          "type": "boolean"
                                        },
                                        "feed": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "to",
                                        "center",
                                        "clockwise",
                                        "feed"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Dwell"
                                          ]
                                        },
                                        "seconds": {
                                          "type": "number",
                                          "minimum": 0
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "seconds"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Comment"
                                          ]
                                        },
                                        "text": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Cycle"
                                          ]
                                        },
                                        "cycle": {
                                          "type": "string",
                                          "enum": [
                                            "drill",
                                            "dwell",
                                            "peck",
                                            "chipBreak",
                                            "tap",
                                            "ream",
                                            "bore"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "feed": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        },
                                        "peckDepth": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "dwellSeconds": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "retractHeight": {
                                          "type": "number"
                                        },
                                        "pitch": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "cycle",
                                        "to",
                                        "feed",
                                        "peckDepth",
                                        "dwellSeconds",
                                        "retractHeight"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Orient"
                                          ]
                                        },
                                        "a": {
                                          "type": "number"
                                        },
                                        "b": {
                                          "type": "number"
                                        },
                                        "c": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Assign"
                                          ]
                                        },
                                        "variable": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "scope": {
                                                  "type": "string",
                                                  "enum": [
                                                    "local",
                                                    "global",
                                                    "system"
                                                  ]
                                                },
                                                "index": {
                                                  "type": "integer",
                                                  "minimum": 0
                                                }
                                              },
                                              "required": [
                                                "scope",
                                                "index"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "name": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
                                                }
                                              },
                                              "required": [
                                                "name"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        },
                                        "value": {}
                                      },
                                      "required": [
                                        "_tag",
                                        "variable",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "MacroCall"
                                          ]
                                        },
                                        "name": {
                                          "type": "string",
                                          "minLength": 1
                                        },
                                        "args": {
                                          "type": "object",
                                          "patternProperties": {
                                            "^[A-Za-z]$": {}
                                          }
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "name",
                                        "args"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "If"
                                          ]
                                        },
                                        "condition": {
                                          "type": "object",
                                          "properties": {
                                            "cmp": {
                                              "type": "string",
                                              "enum": [
                                                "eq",
                                                "ne",
                                                "lt",
                                                "le",
                                                "gt",
                                                "ge"
                                              ]
                                            },
                                            "a": {},
                                            "b": {}
                                          },
                                          "required": [
                                            "cmp",
                                            "a",
                                            "b"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "condition"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Else"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "EndIf"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "While"
                                          ]
                                        },
                                        "condition": {
                                          "type": "object",
                                          "properties": {
                                            "cmp": {
                                              "type": "string",
                                              "enum": [
                                                "eq",
                                                "ne",
                                                "lt",
                                                "le",
                                                "gt",
                                                "ge"
                                              ]
                                            },
                                            "a": {},
                                            "b": {}
                                          },
                                          "required": [
                                            "cmp",
                                            "a",
                                            "b"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "condition"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "EndWhile"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Label"
                                          ]
                                        },
                                        "name": {
                                          "type": "string",
                                          "minLength": 1,
                                          "pattern": "^[A-Za-z0-9_]+$"
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "name"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Goto"
                                          ]
                                        },
                                        "label": {
                                          "type": "string",
                                          "minLength": 1,
                                          "pattern": "^[A-Za-z0-9_]+$"
                                        },
                                        "direction": {
                                          "type": "string",
                                          "enum": [
                                            "auto",
                                            "forward",
                                            "backward"
                                          ]
                                        },
                                        "condition": {
                                          "type": "object",
                                          "properties": {
                                            "cmp": {
                                              "type": "string",
                                              "enum": [
                                                "eq",
                                                "ne",
                                                "lt",
                                                "le",
                                                "gt",
                                                "ge"
                                              ]
                                            },
                                            "a": {},
                                            "b": {}
                                          },
                                          "required": [
                                            "cmp",
                                            "a",
                                            "b"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "label"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "CycleBegin"
                                          ]
                                        },
                                        "family": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "heidenhain"
                                              ]
                                            }
                                          ]
                                        },
                                        "number": {
                                          "type": "integer",
                                          "exclusiveMinimum": 0
                                        },
                                        "name": {
                                          "type": "string",
                                          "minLength": 1
                                        },
                                        "params": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "number"
                                          }
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "family",
                                        "number",
                                        "name",
                                        "params"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "CycleEnd"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Message"
                                          ]
                                        },
                                        "text": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              },
                              "operation": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "toolId",
                              "spindleRpm",
                              "coolant",
                              "moves"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "name",
                        "units",
                        "workOffset",
                        "toolpaths"
                      ],
                      "additionalProperties": false
                    },
                    "evidence": {
                      "type": "object",
                      "properties": {
                        "schema": {
                          "type": "string",
                          "enum": [
                            "cadcamfun/program-record@1"
                          ]
                        },
                        "inputs": {
                          "type": "object",
                          "properties": {
                            "digest": {
                              "type": "string"
                            },
                            "machineType": {
                              "type": "string"
                            },
                            "operationType": {
                              "type": "string"
                            },
                            "material": {
                              "type": "string"
                            },
                            "elements": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "stock": {
                              "type": "object",
                              "properties": {
                                "width": {
                                  "type": "number"
                                },
                                "height": {
                                  "type": "number"
                                },
                                "depth": {
                                  "type": "number"
                                },
                                "topZ": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "width",
                                "height",
                                "depth",
                                "topZ"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "digest",
                            "machineType",
                            "operationType",
                            "material",
                            "elements"
                          ],
                          "additionalProperties": false
                        },
                        "tool": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string"
                            },
                            "diameter": {
                              "type": "number"
                            },
                            "flutes": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "type",
                            "diameter",
                            "flutes"
                          ],
                          "additionalProperties": false
                        },
                        "process": {
                          "type": "object",
                          "properties": {
                            "rpm": {
                              "type": "number"
                            },
                            "feed": {
                              "type": "number"
                            },
                            "plunge": {
                              "type": "number"
                            },
                            "stepdown": {
                              "type": "number"
                            },
                            "stepover": {
                              "type": "number"
                            },
                            "coolant": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "rpm",
                            "feed",
                            "plunge",
                            "stepdown",
                            "stepover",
                            "coolant"
                          ],
                          "additionalProperties": false
                        },
                        "cuttingData": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "kernel",
                                "manual",
                                "not-applicable"
                              ]
                            },
                            "detail": {
                              "type": "string"
                            },
                            "recommended": {
                              "type": "object",
                              "properties": {
                                "rpm": {
                                  "type": "number"
                                },
                                "feed": {
                                  "type": "number"
                                },
                                "plunge": {
                                  "type": "number"
                                },
                                "stepdown": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "rpm",
                                "feed",
                                "plunge",
                                "stepdown"
                              ],
                              "additionalProperties": false
                            },
                            "reference": {
                              "type": "object",
                              "properties": {
                                "table": {
                                  "type": "string",
                                  "enum": [
                                    "MATERIALS"
                                  ]
                                },
                                "row": {
                                  "type": "string"
                                },
                                "rowName": {
                                  "type": "string"
                                },
                                "columns": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "number"
                                  }
                                },
                                "factors": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "number"
                                  }
                                },
                                "basis": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "table",
                                "row",
                                "rowName",
                                "columns",
                                "factors",
                                "basis"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "status",
                            "detail"
                          ],
                          "additionalProperties": false
                        },
                        "program": {
                          "type": "object",
                          "properties": {
                            "sha256": {
                              "type": "string"
                            },
                            "lines": {
                              "type": "integer"
                            },
                            "cutLength": {
                              "type": "number"
                            },
                            "estimatedSeconds": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "sha256",
                            "lines",
                            "cutLength",
                            "estimatedSeconds"
                          ],
                          "additionalProperties": false
                        },
                        "checks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "enum": [
                                  "generated",
                                  "cutting-data",
                                  "safe-height",
                                  "no-rapid-in-material",
                                  "tool-clearance",
                                  "within-stock",
                                  "no-gouge",
                                  "nc-interpretation",
                                  "bed-fit",
                                  "heated-start",
                                  "layers-rise",
                                  "wall-coverage",
                                  "skin-coverage",
                                  "no-spill",
                                  "filament"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "passed",
                                  "failed",
                                  "unresolved",
                                  "not-run"
                                ]
                              },
                              "detail": {
                                "type": "string"
                              },
                              "line": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "status",
                              "detail"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "result": {
                          "type": "string",
                          "enum": [
                            "passed",
                            "warnings",
                            "failed"
                          ]
                        }
                      },
                      "required": [
                        "schema",
                        "inputs",
                        "tool",
                        "process",
                        "cuttingData",
                        "program",
                        "checks",
                        "result"
                      ],
                      "additionalProperties": false
                    },
                    "print": {
                      "type": "object",
                      "properties": {
                        "layers": {
                          "type": "integer"
                        },
                        "filamentMm": {
                          "type": "number"
                        },
                        "filamentGrams": {
                          "type": "number"
                        },
                        "timeSeconds": {
                          "type": "number"
                        },
                        "travelMm": {
                          "type": "number"
                        },
                        "retractions": {
                          "type": "integer"
                        },
                        "lengthByKind": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "number"
                          }
                        },
                        "size": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            },
                            "z": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "x",
                            "y",
                            "z"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "layers",
                        "filamentMm",
                        "filamentGrams",
                        "timeSeconds",
                        "travelMm",
                        "retractions",
                        "lengthByKind",
                        "size"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "gcode",
                    "cycles",
                    "warnings",
                    "stats",
                    "program"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "settings": {
                    "type": "object",
                    "properties": {
                      "machineType": {
                        "type": "string",
                        "enum": [
                          "mill",
                          "lathe",
                          "3dprinter"
                        ]
                      },
                      "operationType": {
                        "type": "string",
                        "enum": [
                          "contour",
                          "pocket",
                          "drill",
                          "engrave",
                          "profile",
                          "threading",
                          "3d_surface",
                          "probing",
                          "multiaxis",
                          "facing",
                          "turning",
                          "boring",
                          "threading",
                          "grooving",
                          "parting",
                          "knurling",
                          "standard",
                          "vase",
                          "support",
                          "infill",
                          "raft",
                          "brim"
                        ]
                      },
                      "material": {
                        "type": "string",
                        "enum": [
                          "aluminum",
                          "steel",
                          "wood",
                          "plastic",
                          "brass",
                          "titanium",
                          "composite",
                          "other"
                        ]
                      },
                      "toolType": {
                        "type": "string",
                        "enum": [
                          "endmill",
                          "ballnose",
                          "drill",
                          "vbit",
                          "chamfer",
                          "threadmill",
                          "reamer",
                          "probe",
                          "toolsetter",
                          "turning",
                          "facing",
                          "threading",
                          "grooving",
                          "boring",
                          "parting",
                          "brass",
                          "hardened",
                          "ruby",
                          "standard"
                        ]
                      },
                      "toolDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "flutes": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "depth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stepdown": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stepover": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      "feedrate": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "plungerate": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "rpm": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "tolerance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "offset": {
                        "type": "string",
                        "enum": [
                          "inside",
                          "outside",
                          "center"
                        ]
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "climb",
                          "conventional"
                        ]
                      },
                      "coolant": {
                        "type": "boolean"
                      },
                      "finishingPass": {
                        "type": "boolean"
                      },
                      "finishingAllowance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "finishingStrategy": {
                        "type": "string",
                        "enum": [
                          "contour",
                          "parallel",
                          "spiral",
                          "radial"
                        ]
                      },
                      "surfaceStrategy": {
                        "type": "string",
                        "enum": [
                          "roughing",
                          "parallel",
                          "waterline",
                          "steep-shallow",
                          "scallop",
                          "spiral",
                          "radial",
                          "flat"
                        ]
                      },
                      "steepAngle": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 85
                      },
                      "surfaceClearing": {
                        "type": "string",
                        "enum": [
                          "contour",
                          "adaptive"
                        ]
                      },
                      "adaptiveEngagement": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "scallop": {
                        "type": "number",
                        "minimum": 0
                      },
                      "rasterAngle": {
                        "type": "number"
                      },
                      "rasterOneWay": {
                        "type": "boolean"
                      },
                      "useAI": {
                        "type": "boolean"
                      },
                      "aiDifficulty": {
                        "type": "string",
                        "enum": [
                          "simple",
                          "moderate",
                          "complex"
                        ]
                      },
                      "aiOptimize": {
                        "type": "string",
                        "enum": [
                          "speed",
                          "quality",
                          "balance"
                        ]
                      },
                      "optimizePath": {
                        "type": "boolean"
                      },
                      "useArcFitting": {
                        "type": "boolean"
                      },
                      "useHighSpeedMode": {
                        "type": "boolean"
                      },
                      "useExactStop": {
                        "type": "boolean"
                      },
                      "useToolCompensation": {
                        "type": "boolean"
                      },
                      "useAdaptiveFeeds": {
                        "type": "boolean"
                      },
                      "useRestMachining": {
                        "type": "boolean"
                      },
                      "restToolDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "fiveAxisStrategy": {
                        "type": "string",
                        "enum": [
                          "parallel",
                          "contour"
                        ]
                      },
                      "fiveAxisToolAxis": {
                        "type": "string",
                        "enum": [
                          "normal",
                          "lead"
                        ]
                      },
                      "fiveAxisLead": {
                        "type": "number",
                        "minimum": -85,
                        "maximum": 85
                      },
                      "fiveAxisTilt": {
                        "type": "number",
                        "minimum": -85,
                        "maximum": 85
                      },
                      "fiveAxisGouge": {
                        "type": "boolean"
                      },
                      "toolNumber": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "workOffset": {
                        "type": "string",
                        "enum": [
                          "G54",
                          "G55",
                          "G56",
                          "G57",
                          "G58",
                          "G59"
                        ]
                      },
                      "probeCycle": {
                        "type": "string",
                        "enum": [
                          "zSurface",
                          "edgeX",
                          "edgeY",
                          "corner",
                          "bore",
                          "boss",
                          "toolLength"
                        ]
                      },
                      "probeFeed": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "probeSearch": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "probeStylus": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "probeDialect": {
                        "type": "string",
                        "enum": [
                          "linuxcnc",
                          "fanuc"
                        ]
                      },
                      "probeFeatureSize": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "threadPitch": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "threadType": {
                        "type": "string",
                        "enum": [
                          "internal",
                          "external"
                        ]
                      },
                      "threadHand": {
                        "type": "string",
                        "enum": [
                          "right",
                          "left"
                        ]
                      },
                      "threadPasses": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 20
                      },
                      "threadSpringPasses": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 5
                      },
                      "latheZero": {
                        "type": "string",
                        "enum": [
                          "face",
                          "chuck"
                        ]
                      },
                      "bedOrigin": {
                        "type": "string",
                        "enum": [
                          "corner",
                          "center"
                        ]
                      },
                      "nozzleDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "filamentDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "layerHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "extrusionWidth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "printSpeed": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "printTemperature": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "bedWidth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "bedDepth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "centerOnBed": {
                        "type": "boolean"
                      },
                      "bedTemperature": {
                        "type": "number",
                        "minimum": 0
                      },
                      "stockDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stockLength": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "spindleDirection": {
                        "type": "string",
                        "enum": [
                          "cw",
                          "ccw"
                        ]
                      },
                      "turningOperation": {
                        "type": "string",
                        "enum": [
                          "external",
                          "internal",
                          "face"
                        ]
                      },
                      "applyToolCompensation": {
                        "type": "boolean"
                      },
                      "workholding": {
                        "type": "string",
                        "enum": [
                          "vise",
                          "clamps",
                          "plate",
                          "none"
                        ]
                      },
                      "viseJawAxis": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y"
                        ]
                      },
                      "clampDepth": {
                        "type": "number",
                        "minimum": 0
                      },
                      "viseJawHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "parallelsHeight": {
                        "type": "number",
                        "minimum": 0
                      },
                      "workholdingConfigured": {
                        "type": "boolean"
                      },
                      "latheTurret": {
                        "type": "string",
                        "enum": [
                          "rear",
                          "front"
                        ]
                      },
                      "chuckType": {
                        "type": "string",
                        "enum": [
                          "3-jaw",
                          "4-jaw",
                          "collet"
                        ]
                      },
                      "noseRadius": {
                        "type": "number",
                        "minimum": 0
                      },
                      "gripLength": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "tailstock": {
                        "type": "boolean"
                      },
                      "stockBore": {
                        "type": "number",
                        "minimum": 0
                      },
                      "printerKinematics": {
                        "type": "string",
                        "enum": [
                          "cartesian",
                          "corexy",
                          "bed-slinger",
                          "delta"
                        ]
                      },
                      "buildHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "originType": {
                        "type": "string",
                        "enum": [
                          "workpiece-center",
                          "workpiece-corner",
                          "workpiece-corner2",
                          "machine-zero",
                          "custom"
                        ]
                      },
                      "originX": {
                        "type": "number"
                      },
                      "originY": {
                        "type": "number"
                      },
                      "originZ": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "geometry": {
                    "type": "object",
                    "properties": {
                      "geometryType": {
                        "type": "string",
                        "enum": [
                          "rectangle",
                          "circle",
                          "polygon",
                          "custom",
                          "selected",
                          "cube",
                          "sphere",
                          "cylinder",
                          "cone",
                          "extrude",
                          "line",
                          "pyramid",
                          "hemisphere",
                          "ellipsoid",
                          "capsule",
                          "triangle",
                          "ellipse",
                          "prism"
                        ]
                      },
                      "rectangleWidth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "rectangleHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "circleRadius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "polygonSides": {
                        "type": "integer",
                        "minimum": 3
                      },
                      "polygonRadius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "customPath": {
                        "type": "string"
                      },
                      "selectedElements": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "stock": {
                        "type": "object",
                        "properties": {
                          "width": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "height": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "depth": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "radius": {
                            "type": "number",
                            "minimum": 0
                          },
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          },
                          "topZ": {
                            "type": "number"
                          },
                          "allowance": {
                            "type": "number",
                            "minimum": 0
                          },
                          "material": {
                            "type": "string"
                          },
                          "elementId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "width",
                          "height",
                          "depth"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "printer": {
                    "type": "object",
                    "properties": {
                      "infillDensity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "infillPattern": {
                        "type": "string",
                        "enum": [
                          "grid",
                          "lines",
                          "triangles",
                          "honeycomb",
                          "gyroid",
                          "concentric"
                        ]
                      },
                      "supportType": {
                        "type": "string",
                        "enum": [
                          "none",
                          "minimal",
                          "full"
                        ]
                      },
                      "shellCount": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "printResolution": {
                        "type": "string",
                        "enum": [
                          "standard",
                          "high",
                          "low"
                        ]
                      },
                      "printOrientation": {
                        "type": "string",
                        "enum": [
                          "original",
                          "auto-optimal"
                        ]
                      },
                      "filament": {
                        "type": "string",
                        "enum": [
                          "pla",
                          "petg",
                          "abs",
                          "asa",
                          "tpu",
                          "nylon",
                          "pc"
                        ]
                      },
                      "topLayers": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "bottomLayers": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "firstLayerHeight": {
                        "type": "number",
                        "minimum": 0
                      },
                      "firstLayerSpeed": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 200
                      },
                      "outerWallSpeed": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 200
                      },
                      "infillSpeed": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 300
                      },
                      "bridgeSpeed": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 200
                      },
                      "supportSpeed": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 300
                      },
                      "travelSpeed": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "retractionDistance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "retractionSpeed": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "retractMinTravel": {
                        "type": "number",
                        "minimum": 0
                      },
                      "zHop": {
                        "type": "number",
                        "minimum": 0
                      },
                      "fanSpeed": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "fanFromLayer": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "minLayerTime": {
                        "type": "number",
                        "minimum": 0
                      },
                      "flow": {
                        "type": "number",
                        "minimum": 50,
                        "maximum": 150
                      },
                      "seam": {
                        "type": "string",
                        "enum": [
                          "nearest",
                          "aligned",
                          "random"
                        ]
                      },
                      "outerWallFirst": {
                        "type": "boolean"
                      },
                      "supportAngle": {
                        "type": "number",
                        "minimum": 10,
                        "maximum": 80
                      },
                      "supportDensity": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 100
                      },
                      "supportXYGap": {
                        "type": "number",
                        "minimum": 0
                      },
                      "supportZGap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "supportInterfaceLayers": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "adhesion": {
                        "type": "string",
                        "enum": [
                          "none",
                          "skirt",
                          "brim",
                          "raft"
                        ]
                      },
                      "brimWidth": {
                        "type": "number",
                        "minimum": 0
                      },
                      "skirtLoops": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "skirtDistance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "raftLayers": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "flavor": {
                        "type": "string",
                        "enum": [
                          "marlin",
                          "klipper",
                          "reprap"
                        ]
                      },
                      "relativeExtrusion": {
                        "type": "boolean"
                      },
                      "pressureAdvance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "acceleration": {
                        "type": "number",
                        "minimum": 0
                      },
                      "startGcode": {
                        "type": "string"
                      },
                      "endGcode": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "machine": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "axes": {
                        "type": "number",
                        "enum": [
                          3,
                          4,
                          5
                        ]
                      },
                      "controller": {
                        "type": "string"
                      },
                      "fiveAxis": {
                        "type": "object",
                        "properties": {
                          "layout": {
                            "type": "string",
                            "enum": [
                              "table-AC",
                              "table-BC"
                            ]
                          },
                          "tilt": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "type": "number"
                              },
                              "max": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "rotation": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "type": "number"
                              },
                              "max": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "pivot": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              },
                              "z": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "z"
                            ],
                            "additionalProperties": false
                          },
                          "tcp": {
                            "type": "string",
                            "enum": [
                              "control",
                              "program"
                            ]
                          }
                        },
                        "required": [
                          "layout",
                          "tilt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "id"
                    ],
                    "additionalProperties": false
                  },
                  "stamp": {
                    "type": "string"
                  },
                  "evidence": {
                    "type": "boolean"
                  },
                  "progress": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "runId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "projectId",
                      "runId"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/suggest": {
      "post": {
        "tags": [
          "toolpathGenerator"
        ],
        "operationId": "toolpathGenerator.suggest",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "parameters": {
                      "type": "object",
                      "properties": {
                        "depth": {
                          "type": "number"
                        },
                        "stepdown": {
                          "type": "number"
                        },
                        "operationType": {
                          "type": "string",
                          "enum": [
                            "contour",
                            "pocket",
                            "drill",
                            "engrave",
                            "profile",
                            "threading",
                            "3d_surface",
                            "probing",
                            "multiaxis",
                            "facing",
                            "turning",
                            "boring",
                            "threading",
                            "grooving",
                            "parting",
                            "knurling",
                            "standard",
                            "vase",
                            "support",
                            "infill",
                            "raft",
                            "brim"
                          ]
                        }
                      },
                      "required": [
                        "depth",
                        "stepdown",
                        "operationType"
                      ],
                      "additionalProperties": false
                    },
                    "suggestions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "feedback": {
                      "type": "string"
                    },
                    "statistics": {
                      "type": "object",
                      "properties": {
                        "cuttingSpeed": {
                          "type": "number"
                        },
                        "chipLoad": {
                          "type": "number"
                        },
                        "materialRemovalRate": {
                          "type": "number"
                        },
                        "effectiveStepover": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "cuttingSpeed",
                        "chipLoad",
                        "materialRemovalRate",
                        "effectiveStepover"
                      ],
                      "additionalProperties": false
                    },
                    "operation": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "description"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "suggestions",
                    "feedback",
                    "statistics",
                    "operation",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "settings": {
                    "type": "object",
                    "properties": {
                      "machineType": {
                        "type": "string",
                        "enum": [
                          "mill",
                          "lathe",
                          "3dprinter"
                        ]
                      },
                      "operationType": {
                        "type": "string",
                        "enum": [
                          "contour",
                          "pocket",
                          "drill",
                          "engrave",
                          "profile",
                          "threading",
                          "3d_surface",
                          "probing",
                          "multiaxis",
                          "facing",
                          "turning",
                          "boring",
                          "threading",
                          "grooving",
                          "parting",
                          "knurling",
                          "standard",
                          "vase",
                          "support",
                          "infill",
                          "raft",
                          "brim"
                        ]
                      },
                      "material": {
                        "type": "string",
                        "enum": [
                          "aluminum",
                          "steel",
                          "wood",
                          "plastic",
                          "brass",
                          "titanium",
                          "composite",
                          "other"
                        ]
                      },
                      "toolType": {
                        "type": "string",
                        "enum": [
                          "endmill",
                          "ballnose",
                          "drill",
                          "vbit",
                          "chamfer",
                          "threadmill",
                          "reamer",
                          "probe",
                          "toolsetter",
                          "turning",
                          "facing",
                          "threading",
                          "grooving",
                          "boring",
                          "parting",
                          "brass",
                          "hardened",
                          "ruby",
                          "standard"
                        ]
                      },
                      "toolDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "flutes": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "depth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stepdown": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stepover": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      "feedrate": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "plungerate": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "rpm": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "tolerance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "offset": {
                        "type": "string",
                        "enum": [
                          "inside",
                          "outside",
                          "center"
                        ]
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "climb",
                          "conventional"
                        ]
                      },
                      "coolant": {
                        "type": "boolean"
                      },
                      "finishingPass": {
                        "type": "boolean"
                      },
                      "finishingAllowance": {
                        "type": "number",
                        "minimum": 0
                      },
                      "finishingStrategy": {
                        "type": "string",
                        "enum": [
                          "contour",
                          "parallel",
                          "spiral",
                          "radial"
                        ]
                      },
                      "surfaceStrategy": {
                        "type": "string",
                        "enum": [
                          "roughing",
                          "parallel",
                          "waterline",
                          "steep-shallow",
                          "scallop",
                          "spiral",
                          "radial",
                          "flat"
                        ]
                      },
                      "steepAngle": {
                        "type": "number",
                        "minimum": 5,
                        "maximum": 85
                      },
                      "surfaceClearing": {
                        "type": "string",
                        "enum": [
                          "contour",
                          "adaptive"
                        ]
                      },
                      "adaptiveEngagement": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50
                      },
                      "scallop": {
                        "type": "number",
                        "minimum": 0
                      },
                      "rasterAngle": {
                        "type": "number"
                      },
                      "rasterOneWay": {
                        "type": "boolean"
                      },
                      "useAI": {
                        "type": "boolean"
                      },
                      "aiDifficulty": {
                        "type": "string",
                        "enum": [
                          "simple",
                          "moderate",
                          "complex"
                        ]
                      },
                      "aiOptimize": {
                        "type": "string",
                        "enum": [
                          "speed",
                          "quality",
                          "balance"
                        ]
                      },
                      "optimizePath": {
                        "type": "boolean"
                      },
                      "useArcFitting": {
                        "type": "boolean"
                      },
                      "useHighSpeedMode": {
                        "type": "boolean"
                      },
                      "useExactStop": {
                        "type": "boolean"
                      },
                      "useToolCompensation": {
                        "type": "boolean"
                      },
                      "useAdaptiveFeeds": {
                        "type": "boolean"
                      },
                      "useRestMachining": {
                        "type": "boolean"
                      },
                      "restToolDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "fiveAxisStrategy": {
                        "type": "string",
                        "enum": [
                          "parallel",
                          "contour"
                        ]
                      },
                      "fiveAxisToolAxis": {
                        "type": "string",
                        "enum": [
                          "normal",
                          "lead"
                        ]
                      },
                      "fiveAxisLead": {
                        "type": "number",
                        "minimum": -85,
                        "maximum": 85
                      },
                      "fiveAxisTilt": {
                        "type": "number",
                        "minimum": -85,
                        "maximum": 85
                      },
                      "fiveAxisGouge": {
                        "type": "boolean"
                      },
                      "toolNumber": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "workOffset": {
                        "type": "string",
                        "enum": [
                          "G54",
                          "G55",
                          "G56",
                          "G57",
                          "G58",
                          "G59"
                        ]
                      },
                      "probeCycle": {
                        "type": "string",
                        "enum": [
                          "zSurface",
                          "edgeX",
                          "edgeY",
                          "corner",
                          "bore",
                          "boss",
                          "toolLength"
                        ]
                      },
                      "probeFeed": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "probeSearch": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "probeStylus": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "probeDialect": {
                        "type": "string",
                        "enum": [
                          "linuxcnc",
                          "fanuc"
                        ]
                      },
                      "probeFeatureSize": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "threadPitch": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "threadType": {
                        "type": "string",
                        "enum": [
                          "internal",
                          "external"
                        ]
                      },
                      "threadHand": {
                        "type": "string",
                        "enum": [
                          "right",
                          "left"
                        ]
                      },
                      "threadPasses": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 20
                      },
                      "threadSpringPasses": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 5
                      },
                      "latheZero": {
                        "type": "string",
                        "enum": [
                          "face",
                          "chuck"
                        ]
                      },
                      "bedOrigin": {
                        "type": "string",
                        "enum": [
                          "corner",
                          "center"
                        ]
                      },
                      "nozzleDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "filamentDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "layerHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "extrusionWidth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "printSpeed": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "printTemperature": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "bedWidth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "bedDepth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "centerOnBed": {
                        "type": "boolean"
                      },
                      "bedTemperature": {
                        "type": "number",
                        "minimum": 0
                      },
                      "stockDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stockLength": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "spindleDirection": {
                        "type": "string",
                        "enum": [
                          "cw",
                          "ccw"
                        ]
                      },
                      "turningOperation": {
                        "type": "string",
                        "enum": [
                          "external",
                          "internal",
                          "face"
                        ]
                      },
                      "applyToolCompensation": {
                        "type": "boolean"
                      },
                      "workholding": {
                        "type": "string",
                        "enum": [
                          "vise",
                          "clamps",
                          "plate",
                          "none"
                        ]
                      },
                      "viseJawAxis": {
                        "type": "string",
                        "enum": [
                          "x",
                          "y"
                        ]
                      },
                      "clampDepth": {
                        "type": "number",
                        "minimum": 0
                      },
                      "viseJawHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "parallelsHeight": {
                        "type": "number",
                        "minimum": 0
                      },
                      "workholdingConfigured": {
                        "type": "boolean"
                      },
                      "latheTurret": {
                        "type": "string",
                        "enum": [
                          "rear",
                          "front"
                        ]
                      },
                      "chuckType": {
                        "type": "string",
                        "enum": [
                          "3-jaw",
                          "4-jaw",
                          "collet"
                        ]
                      },
                      "noseRadius": {
                        "type": "number",
                        "minimum": 0
                      },
                      "gripLength": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "tailstock": {
                        "type": "boolean"
                      },
                      "stockBore": {
                        "type": "number",
                        "minimum": 0
                      },
                      "printerKinematics": {
                        "type": "string",
                        "enum": [
                          "cartesian",
                          "corexy",
                          "bed-slinger",
                          "delta"
                        ]
                      },
                      "buildHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "originType": {
                        "type": "string",
                        "enum": [
                          "workpiece-center",
                          "workpiece-corner",
                          "workpiece-corner2",
                          "machine-zero",
                          "custom"
                        ]
                      },
                      "originX": {
                        "type": "number"
                      },
                      "originY": {
                        "type": "number"
                      },
                      "originZ": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "geometry": {
                    "type": "object",
                    "properties": {
                      "geometryType": {
                        "type": "string",
                        "enum": [
                          "rectangle",
                          "circle",
                          "polygon",
                          "custom",
                          "selected",
                          "cube",
                          "sphere",
                          "cylinder",
                          "cone",
                          "extrude",
                          "line",
                          "pyramid",
                          "hemisphere",
                          "ellipsoid",
                          "capsule",
                          "triangle",
                          "ellipse",
                          "prism"
                        ]
                      },
                      "rectangleWidth": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "rectangleHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "circleRadius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "polygonSides": {
                        "type": "integer",
                        "minimum": 3
                      },
                      "polygonRadius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "customPath": {
                        "type": "string"
                      },
                      "selectedElements": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "stock": {
                        "type": "object",
                        "properties": {
                          "width": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "height": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "depth": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "radius": {
                            "type": "number",
                            "minimum": 0
                          },
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          },
                          "topZ": {
                            "type": "number"
                          },
                          "allowance": {
                            "type": "number",
                            "minimum": 0
                          },
                          "material": {
                            "type": "string"
                          },
                          "elementId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "width",
                          "height",
                          "depth"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/parse": {
      "post": {
        "tags": [
          "toolpathGenerator"
        ],
        "operationId": "toolpathGenerator.parse",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "lines": {
                          "type": "integer"
                        },
                        "cutLength": {
                          "type": "number"
                        },
                        "rapidLength": {
                          "type": "number"
                        },
                        "minZ": {
                          "type": "number"
                        },
                        "maxZ": {
                          "type": "number"
                        },
                        "estimatedSeconds": {
                          "type": "number"
                        },
                        "bounds": {
                          "type": "object",
                          "properties": {
                            "min": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            },
                            "max": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "min",
                            "max"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "lines",
                        "cutLength",
                        "rapidLength",
                        "minZ",
                        "maxZ",
                        "estimatedSeconds",
                        "bounds"
                      ],
                      "additionalProperties": false
                    },
                    "program": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "units": {
                          "type": "string",
                          "enum": [
                            "mm",
                            "inch"
                          ]
                        },
                        "workOffset": {
                          "type": "string",
                          "enum": [
                            "G54",
                            "G55",
                            "G56",
                            "G57",
                            "G58",
                            "G59"
                          ]
                        },
                        "toolpaths": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string"
                              },
                              "toolId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "spindleRpm": {
                                "type": "number",
                                "minimum": 0
                              },
                              "coolant": {
                                "type": "string",
                                "enum": [
                                  "off",
                                  "flood",
                                  "mist"
                                ]
                              },
                              "moves": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Rapid"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "rotary": {
                                          "type": "object",
                                          "properties": {
                                            "a": {
                                              "type": "number"
                                            },
                                            "b": {
                                              "type": "number"
                                            },
                                            "c": {
                                              "type": "number"
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "expr": {
                                          "type": "object",
                                          "properties": {
                                            "x": {},
                                            "y": {},
                                            "z": {},
                                            "feed": {}
                                          },
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "to"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Linear"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "feed": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        },
                                        "rotary": {
                                          "type": "object",
                                          "properties": {
                                            "a": {
                                              "type": "number"
                                            },
                                            "b": {
                                              "type": "number"
                                            },
                                            "c": {
                                              "type": "number"
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "expr": {
                                          "type": "object",
                                          "properties": {
                                            "x": {},
                                            "y": {},
                                            "z": {},
                                            "feed": {}
                                          },
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "to",
                                        "feed"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Arc"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "center": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "clockwise": {
                                          "type": "boolean"
                                        },
                                        "feed": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "to",
                                        "center",
                                        "clockwise",
                                        "feed"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Dwell"
                                          ]
                                        },
                                        "seconds": {
                                          "type": "number",
                                          "minimum": 0
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "seconds"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Comment"
                                          ]
                                        },
                                        "text": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Cycle"
                                          ]
                                        },
                                        "cycle": {
                                          "type": "string",
                                          "enum": [
                                            "drill",
                                            "dwell",
                                            "peck",
                                            "chipBreak",
                                            "tap",
                                            "ream",
                                            "bore"
                                          ]
                                        },
                                        "to": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number"
                                            },
                                            "y": {
                                              "type": "number"
                                            },
                                            "z": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "x",
                                            "y",
                                            "z"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "feed": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        },
                                        "peckDepth": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "dwellSeconds": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "retractHeight": {
                                          "type": "number"
                                        },
                                        "pitch": {
                                          "type": "number",
                                          "exclusiveMinimum": 0
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "cycle",
                                        "to",
                                        "feed",
                                        "peckDepth",
                                        "dwellSeconds",
                                        "retractHeight"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Orient"
                                          ]
                                        },
                                        "a": {
                                          "type": "number"
                                        },
                                        "b": {
                                          "type": "number"
                                        },
                                        "c": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Assign"
                                          ]
                                        },
                                        "variable": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "scope": {
                                                  "type": "string",
                                                  "enum": [
                                                    "local",
                                                    "global",
                                                    "system"
                                                  ]
                                                },
                                                "index": {
                                                  "type": "integer",
                                                  "minimum": 0
                                                }
                                              },
                                              "required": [
                                                "scope",
                                                "index"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "name": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
                                                }
                                              },
                                              "required": [
                                                "name"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        },
                                        "value": {}
                                      },
                                      "required": [
                                        "_tag",
                                        "variable",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "MacroCall"
                                          ]
                                        },
                                        "name": {
                                          "type": "string",
                                          "minLength": 1
                                        },
                                        "args": {
                                          "type": "object",
                                          "patternProperties": {
                                            "^[A-Za-z]$": {}
                                          }
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "name",
                                        "args"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "If"
                                          ]
                                        },
                                        "condition": {
                                          "type": "object",
                                          "properties": {
                                            "cmp": {
                                              "type": "string",
                                              "enum": [
                                                "eq",
                                                "ne",
                                                "lt",
                                                "le",
                                                "gt",
                                                "ge"
                                              ]
                                            },
                                            "a": {},
                                            "b": {}
                                          },
                                          "required": [
                                            "cmp",
                                            "a",
                                            "b"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "condition"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Else"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "EndIf"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "While"
                                          ]
                                        },
                                        "condition": {
                                          "type": "object",
                                          "properties": {
                                            "cmp": {
                                              "type": "string",
                                              "enum": [
                                                "eq",
                                                "ne",
                                                "lt",
                                                "le",
                                                "gt",
                                                "ge"
                                              ]
                                            },
                                            "a": {},
                                            "b": {}
                                          },
                                          "required": [
                                            "cmp",
                                            "a",
                                            "b"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "condition"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "EndWhile"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Label"
                                          ]
                                        },
                                        "name": {
                                          "type": "string",
                                          "minLength": 1,
                                          "pattern": "^[A-Za-z0-9_]+$"
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "name"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Goto"
                                          ]
                                        },
                                        "label": {
                                          "type": "string",
                                          "minLength": 1,
                                          "pattern": "^[A-Za-z0-9_]+$"
                                        },
                                        "direction": {
                                          "type": "string",
                                          "enum": [
                                            "auto",
                                            "forward",
                                            "backward"
                                          ]
                                        },
                                        "condition": {
                                          "type": "object",
                                          "properties": {
                                            "cmp": {
                                              "type": "string",
                                              "enum": [
                                                "eq",
                                                "ne",
                                                "lt",
                                                "le",
                                                "gt",
                                                "ge"
                                              ]
                                            },
                                            "a": {},
                                            "b": {}
                                          },
                                          "required": [
                                            "cmp",
                                            "a",
                                            "b"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "label"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "CycleBegin"
                                          ]
                                        },
                                        "family": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "heidenhain"
                                              ]
                                            }
                                          ]
                                        },
                                        "number": {
                                          "type": "integer",
                                          "exclusiveMinimum": 0
                                        },
                                        "name": {
                                          "type": "string",
                                          "minLength": 1
                                        },
                                        "params": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "number"
                                          }
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "family",
                                        "number",
                                        "name",
                                        "params"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "CycleEnd"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "_tag"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "_tag": {
                                          "type": "string",
                                          "enum": [
                                            "Message"
                                          ]
                                        },
                                        "text": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "_tag",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              },
                              "operation": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "toolId",
                              "spindleRpm",
                              "coolant",
                              "moves"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "name",
                        "units",
                        "workOffset",
                        "toolpaths"
                      ],
                      "additionalProperties": false
                    },
                    "motion": {
                      "type": "object",
                      "properties": {
                        "paths": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "runs": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "spindle": {
                                      "type": "string",
                                      "enum": [
                                        "cw",
                                        "ccw",
                                        "off"
                                      ]
                                    },
                                    "rpm": {
                                      "type": "number"
                                    },
                                    "css": {
                                      "type": "boolean"
                                    },
                                    "plane": {
                                      "type": "number",
                                      "enum": [
                                        17,
                                        18,
                                        19
                                      ]
                                    },
                                    "xMode": {
                                      "type": "string",
                                      "enum": [
                                        "diameter",
                                        "radius"
                                      ]
                                    },
                                    "tool": {
                                      "type": "integer"
                                    },
                                    "coolant": {
                                      "type": "string",
                                      "enum": [
                                        "off",
                                        "flood",
                                        "mist"
                                      ]
                                    },
                                    "feedMode": {
                                      "type": "string",
                                      "enum": [
                                        "min",
                                        "rev"
                                      ]
                                    },
                                    "probe": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "start",
                                    "spindle",
                                    "rpm",
                                    "css",
                                    "plane",
                                    "xMode",
                                    "coolant",
                                    "feedMode"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "extrude": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "lines": {
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "rpm": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "retracts": {
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "homes": {
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              }
                            },
                            "required": [
                              "count",
                              "runs"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "unsupported": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "line": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "word": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "line",
                              "word"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "paths",
                        "unsupported"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "warnings",
                    "stats",
                    "program"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gcode": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "gcode"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/toolpaths/verify": {
      "post": {
        "tags": [
          "toolpathGenerator"
        ],
        "operationId": "toolpathGenerator.verify",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "enum": [
                              "InvalidInput",
                              "InterpreterWarning",
                              "RapidInMaterial",
                              "ShankCollision",
                              "HolderCollision",
                              "FixtureCollision",
                              "BelowStock",
                              "Gouge",
                              "UncutStock",
                              "ResolutionCoarsened"
                            ]
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "error",
                              "warning",
                              "info"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "line": {
                            "type": "integer"
                          },
                          "point": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              },
                              "z": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "z"
                            ],
                            "additionalProperties": false
                          },
                          "count": {
                            "type": "integer"
                          },
                          "fixtureId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "count"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "cellSize": {
                          "type": "number"
                        },
                        "cellsX": {
                          "type": "integer"
                        },
                        "cellsY": {
                          "type": "integer"
                        },
                        "samples": {
                          "type": "integer"
                        },
                        "stockVolume": {
                          "type": "number"
                        },
                        "removedVolume": {
                          "type": "number"
                        },
                        "remainingVolume": {
                          "type": "number"
                        },
                        "engagedLength": {
                          "type": "number"
                        },
                        "airCutLength": {
                          "type": "number"
                        },
                        "gougeVolume": {
                          "type": "number"
                        },
                        "maxGouge": {
                          "type": "number"
                        },
                        "uncutVolume": {
                          "type": "number"
                        },
                        "maxUncut": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "cellSize",
                        "cellsX",
                        "cellsY",
                        "samples",
                        "stockVolume",
                        "removedVolume",
                        "remainingVolume",
                        "engagedLength",
                        "airCutLength"
                      ],
                      "additionalProperties": false
                    },
                    "preview": {
                      "type": "object",
                      "properties": {
                        "nx": {
                          "type": "integer"
                        },
                        "ny": {
                          "type": "integer"
                        },
                        "minX": {
                          "type": "number"
                        },
                        "minY": {
                          "type": "number"
                        },
                        "cellX": {
                          "type": "number"
                        },
                        "cellY": {
                          "type": "number"
                        },
                        "minZ": {
                          "type": "number"
                        },
                        "maxZ": {
                          "type": "number"
                        },
                        "heights": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "gouge": {
                          "type": "array",
                          "items": {
                            "type": "integer"
                          }
                        }
                      },
                      "required": [
                        "nx",
                        "ny",
                        "minX",
                        "minY",
                        "cellX",
                        "cellY",
                        "minZ",
                        "maxZ",
                        "heights",
                        "gouge"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "ok",
                    "issues",
                    "stats",
                    "preview"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gcode": {
                    "type": "string"
                  },
                  "program": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "units": {
                        "type": "string",
                        "enum": [
                          "mm",
                          "inch"
                        ]
                      },
                      "workOffset": {
                        "type": "string",
                        "enum": [
                          "G54",
                          "G55",
                          "G56",
                          "G57",
                          "G58",
                          "G59"
                        ]
                      },
                      "toolpaths": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": "string"
                            },
                            "toolId": {
                              "type": "string",
                              "minLength": 1
                            },
                            "spindleRpm": {
                              "type": "number",
                              "minimum": 0
                            },
                            "coolant": {
                              "type": "string",
                              "enum": [
                                "off",
                                "flood",
                                "mist"
                              ]
                            },
                            "moves": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Rapid"
                                        ]
                                      },
                                      "to": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "rotary": {
                                        "type": "object",
                                        "properties": {
                                          "a": {
                                            "type": "number"
                                          },
                                          "b": {
                                            "type": "number"
                                          },
                                          "c": {
                                            "type": "number"
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "expr": {
                                        "type": "object",
                                        "properties": {
                                          "x": {},
                                          "y": {},
                                          "z": {},
                                          "feed": {}
                                        },
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "to"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Linear"
                                        ]
                                      },
                                      "to": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "feed": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      },
                                      "rotary": {
                                        "type": "object",
                                        "properties": {
                                          "a": {
                                            "type": "number"
                                          },
                                          "b": {
                                            "type": "number"
                                          },
                                          "c": {
                                            "type": "number"
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "expr": {
                                        "type": "object",
                                        "properties": {
                                          "x": {},
                                          "y": {},
                                          "z": {},
                                          "feed": {}
                                        },
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "to",
                                      "feed"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Arc"
                                        ]
                                      },
                                      "to": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "center": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "clockwise": {
                                        "type": "boolean"
                                      },
                                      "feed": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "to",
                                      "center",
                                      "clockwise",
                                      "feed"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Dwell"
                                        ]
                                      },
                                      "seconds": {
                                        "type": "number",
                                        "minimum": 0
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "seconds"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Comment"
                                        ]
                                      },
                                      "text": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "text"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Cycle"
                                        ]
                                      },
                                      "cycle": {
                                        "type": "string",
                                        "enum": [
                                          "drill",
                                          "dwell",
                                          "peck",
                                          "chipBreak",
                                          "tap",
                                          "ream",
                                          "bore"
                                        ]
                                      },
                                      "to": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number"
                                          },
                                          "y": {
                                            "type": "number"
                                          },
                                          "z": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "feed": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      },
                                      "peckDepth": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "dwellSeconds": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "retractHeight": {
                                        "type": "number"
                                      },
                                      "pitch": {
                                        "type": "number",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "cycle",
                                      "to",
                                      "feed",
                                      "peckDepth",
                                      "dwellSeconds",
                                      "retractHeight"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Orient"
                                        ]
                                      },
                                      "a": {
                                        "type": "number"
                                      },
                                      "b": {
                                        "type": "number"
                                      },
                                      "c": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "_tag"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Assign"
                                        ]
                                      },
                                      "variable": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "scope": {
                                                "type": "string",
                                                "enum": [
                                                  "local",
                                                  "global",
                                                  "system"
                                                ]
                                              },
                                              "index": {
                                                "type": "integer",
                                                "minimum": 0
                                              }
                                            },
                                            "required": [
                                              "scope",
                                              "index"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string",
                                                "minLength": 1,
                                                "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
                                              }
                                            },
                                            "required": [
                                              "name"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "_tag",
                                      "variable",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "MacroCall"
                                        ]
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "args": {
                                        "type": "object",
                                        "patternProperties": {
                                          "^[A-Za-z]$": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "name",
                                      "args"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "If"
                                        ]
                                      },
                                      "condition": {
                                        "type": "object",
                                        "properties": {
                                          "cmp": {
                                            "type": "string",
                                            "enum": [
                                              "eq",
                                              "ne",
                                              "lt",
                                              "le",
                                              "gt",
                                              "ge"
                                            ]
                                          },
                                          "a": {},
                                          "b": {}
                                        },
                                        "required": [
                                          "cmp",
                                          "a",
                                          "b"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "condition"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Else"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "_tag"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "EndIf"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "_tag"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "While"
                                        ]
                                      },
                                      "condition": {
                                        "type": "object",
                                        "properties": {
                                          "cmp": {
                                            "type": "string",
                                            "enum": [
                                              "eq",
                                              "ne",
                                              "lt",
                                              "le",
                                              "gt",
                                              "ge"
                                            ]
                                          },
                                          "a": {},
                                          "b": {}
                                        },
                                        "required": [
                                          "cmp",
                                          "a",
                                          "b"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "condition"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "EndWhile"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "_tag"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Label"
                                        ]
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "pattern": "^[A-Za-z0-9_]+$"
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "name"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Goto"
                                        ]
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "pattern": "^[A-Za-z0-9_]+$"
                                      },
                                      "direction": {
                                        "type": "string",
                                        "enum": [
                                          "auto",
                                          "forward",
                                          "backward"
                                        ]
                                      },
                                      "condition": {
                                        "type": "object",
                                        "properties": {
                                          "cmp": {
                                            "type": "string",
                                            "enum": [
                                              "eq",
                                              "ne",
                                              "lt",
                                              "le",
                                              "gt",
                                              "ge"
                                            ]
                                          },
                                          "a": {},
                                          "b": {}
                                        },
                                        "required": [
                                          "cmp",
                                          "a",
                                          "b"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "label"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "CycleBegin"
                                        ]
                                      },
                                      "family": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "heidenhain"
                                            ]
                                          }
                                        ]
                                      },
                                      "number": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "params": {
                                        "type": "object",
                                        "additionalProperties": {
                                          "type": "number"
                                        }
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "family",
                                      "number",
                                      "name",
                                      "params"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "CycleEnd"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "_tag"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "_tag": {
                                        "type": "string",
                                        "enum": [
                                          "Message"
                                        ]
                                      },
                                      "text": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "_tag",
                                      "text"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "operation": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "toolId",
                            "spindleRpm",
                            "coolant",
                            "moves"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "metadata": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "name",
                      "units",
                      "workOffset",
                      "toolpaths"
                    ],
                    "additionalProperties": false
                  },
                  "stock": {
                    "type": "object",
                    "properties": {
                      "minX": {
                        "type": "number"
                      },
                      "maxX": {
                        "type": "number"
                      },
                      "minY": {
                        "type": "number"
                      },
                      "maxY": {
                        "type": "number"
                      },
                      "minZ": {
                        "type": "number"
                      },
                      "maxZ": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "minX",
                      "maxX",
                      "minY",
                      "maxY",
                      "minZ",
                      "maxZ"
                    ],
                    "additionalProperties": false
                  },
                  "tool": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "endmill",
                          "ballnose",
                          "drill",
                          "vbit",
                          "facemill"
                        ]
                      },
                      "diameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "cuttingLength": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "shankDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "stickout": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "holderDiameter": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "holderLength": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 179
                      },
                      "tipRadius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      }
                    },
                    "required": [
                      "diameter"
                    ],
                    "additionalProperties": false
                  },
                  "fixtures": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "bounds": {
                          "type": "object",
                          "properties": {
                            "minX": {
                              "type": "number"
                            },
                            "maxX": {
                              "type": "number"
                            },
                            "minY": {
                              "type": "number"
                            },
                            "maxY": {
                              "type": "number"
                            },
                            "minZ": {
                              "type": "number"
                            },
                            "maxZ": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "minX",
                            "maxX",
                            "minY",
                            "maxY",
                            "minZ",
                            "maxZ"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "bounds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "target": {
                    "type": "object",
                    "properties": {
                      "solids": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Box"
                                  ]
                                },
                                "origin": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "size": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number",
                                      "exclusiveMinimum": 0
                                    },
                                    "y": {
                                      "type": "number",
                                      "exclusiveMinimum": 0
                                    },
                                    "z": {
                                      "type": "number",
                                      "exclusiveMinimum": 0
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "_tag",
                                "origin",
                                "size"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Cylinder"
                                  ]
                                },
                                "origin": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "radius": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "height": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "segments": {
                                  "type": "integer",
                                  "minimum": 3,
                                  "maximum": 512
                                },
                                "axis": {
                                  "type": "string",
                                  "enum": [
                                    "z",
                                    "x",
                                    "y"
                                  ]
                                }
                              },
                              "required": [
                                "_tag",
                                "origin",
                                "radius",
                                "height",
                                "segments"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Sphere"
                                  ]
                                },
                                "center": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "radius": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "rings": {
                                  "type": "integer",
                                  "minimum": 2,
                                  "maximum": 256
                                }
                              },
                              "required": [
                                "_tag",
                                "center",
                                "radius",
                                "rings"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Cone"
                                  ]
                                },
                                "origin": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "baseRadius": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "topRadius": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "height": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "segments": {
                                  "type": "integer",
                                  "minimum": 3,
                                  "maximum": 512
                                },
                                "axis": {
                                  "type": "string",
                                  "enum": [
                                    "z",
                                    "x",
                                    "y"
                                  ]
                                }
                              },
                              "required": [
                                "_tag",
                                "origin",
                                "baseRadius",
                                "topRadius",
                                "height",
                                "segments"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Torus"
                                  ]
                                },
                                "center": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "majorRadius": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "minorRadius": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "rotation": {
                                  "type": "number"
                                },
                                "majorSegments": {
                                  "type": "integer",
                                  "minimum": 3,
                                  "maximum": 512
                                },
                                "minorSegments": {
                                  "type": "integer",
                                  "minimum": 3,
                                  "maximum": 256
                                },
                                "axis": {
                                  "type": "string",
                                  "enum": [
                                    "z",
                                    "x",
                                    "y"
                                  ]
                                }
                              },
                              "required": [
                                "_tag",
                                "center",
                                "majorRadius",
                                "minorRadius",
                                "majorSegments",
                                "minorSegments"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Extrude"
                                  ]
                                },
                                "profile": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 3
                                },
                                "height": {
                                  "type": "number"
                                },
                                "origin": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "_tag",
                                "profile",
                                "height"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "_tag": {
                                  "type": "string",
                                  "enum": [
                                    "Revolve"
                                  ]
                                },
                                "profile": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 2
                                },
                                "angle": {
                                  "type": "number"
                                },
                                "segments": {
                                  "type": "integer",
                                  "minimum": 3,
                                  "maximum": 512
                                }
                              },
                              "required": [
                                "_tag",
                                "profile",
                                "angle"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "meshes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "positions": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            },
                            "indices": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              }
                            }
                          },
                          "required": [
                            "positions",
                            "indices"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "reliefs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            },
                            "radius": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "bottom": {
                              "type": "number"
                            },
                            "reason": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "x",
                            "y",
                            "radius",
                            "bottom",
                            "reason"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "solids"
                    ],
                    "additionalProperties": false
                  },
                  "resolution": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "tolerance": {
                    "type": "number",
                    "minimum": 0
                  },
                  "start": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      },
                      "z": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "y",
                      "z"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "stock",
                  "tool"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cad/exact/analyze": {
      "post": {
        "tags": [
          "cadExact"
        ],
        "operationId": "cadExact.analyze",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "valid": {
                            "type": "boolean"
                          },
                          "issues": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "volume": {
                            "type": "number"
                          },
                          "area": {
                            "type": "number"
                          },
                          "centroid": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              },
                              "z": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "z"
                            ],
                            "additionalProperties": false
                          },
                          "bounds": {
                            "type": "object",
                            "properties": {
                              "min": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              },
                              "max": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "faces": {
                            "type": "integer"
                          },
                          "edges": {
                            "type": "integer"
                          },
                          "vertices": {
                            "type": "integer"
                          },
                          "surfaces": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "integer"
                            }
                          },
                          "throughHoles": {
                            "type": "integer"
                          },
                          "holes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "entry": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "direction": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "diameter": {
                                  "type": "number"
                                },
                                "depth": {
                                  "type": "number"
                                },
                                "form": {
                                  "type": "string",
                                  "enum": [
                                    "simple",
                                    "counterbore",
                                    "countersink"
                                  ]
                                },
                                "bottom": {
                                  "type": "string",
                                  "enum": [
                                    "through",
                                    "flat",
                                    "drill-point"
                                  ]
                                },
                                "headDiameter": {
                                  "type": "number"
                                },
                                "headDepth": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "entry",
                                "direction",
                                "diameter",
                                "depth",
                                "form",
                                "bottom"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "machining": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "prismatic": {
                                    "type": "boolean",
                                    "enum": [
                                      true
                                    ]
                                  },
                                  "holes": {
                                    "type": "integer"
                                  },
                                  "pockets": {
                                    "type": "integer"
                                  },
                                  "outlines": {
                                    "type": "integer"
                                  },
                                  "top": {
                                    "type": "number"
                                  },
                                  "bottom": {
                                    "type": "number"
                                  },
                                  "islands": {
                                    "type": "integer"
                                  },
                                  "sideHoles": {
                                    "type": "integer"
                                  },
                                  "hiddenFaces": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "prismatic",
                                  "holes",
                                  "pockets",
                                  "outlines",
                                  "top",
                                  "bottom"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "prismatic": {
                                    "type": "boolean",
                                    "enum": [
                                      false
                                    ]
                                  },
                                  "reason": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "prismatic",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "bosses": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "diameter": {
                                  "type": "number"
                                },
                                "length": {
                                  "type": "number"
                                },
                                "free": {
                                  "type": "string",
                                  "enum": [
                                    "near",
                                    "far",
                                    "both",
                                    "none"
                                  ]
                                },
                                "origin": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "axis": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "diameter",
                                "length",
                                "free",
                                "origin",
                                "axis"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "nurbsFaces": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "face": {
                                  "type": "integer"
                                },
                                "normal": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "spread": {
                                  "type": "number"
                                },
                                "trimmed": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "face",
                                "normal",
                                "spread",
                                "trimmed"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "fillets": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "face": {
                                  "type": "integer"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "cylinder",
                                    "torus"
                                  ]
                                },
                                "radius": {
                                  "type": "number"
                                },
                                "convex": {
                                  "type": "boolean"
                                },
                                "length": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "face",
                                "kind",
                                "radius",
                                "convex",
                                "length"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "swarfWalls": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "face": {
                                  "type": "integer"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "plane",
                                    "cone",
                                    "cylinder"
                                  ]
                                },
                                "near": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    },
                                    "z": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "x",
                                    "y",
                                    "z"
                                  ],
                                  "additionalProperties": false
                                },
                                "height": {
                                  "type": "number"
                                },
                                "lean": {
                                  "type": "number"
                                },
                                "concaveRadius": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "face",
                                "kind",
                                "near",
                                "height",
                                "lean"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "faceNames": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "repair": {
                            "type": "object",
                            "properties": {
                              "verticesWelded": {
                                "type": "integer"
                              },
                              "edgesWelded": {
                                "type": "integer"
                              },
                              "collapsedUses": {
                                "type": "integer"
                              },
                              "validAfter": {
                                "type": "boolean"
                              },
                              "issuesAfter": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "verticesWelded",
                              "edgesWelded",
                              "collapsedUses",
                              "validAfter",
                              "issuesAfter"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "valid",
                          "issues",
                          "volume",
                          "area",
                          "centroid",
                          "bounds",
                          "faces",
                          "edges",
                          "vertices",
                          "surfaces",
                          "holes",
                          "machining",
                          "bosses"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "skipped": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "parts": {
                          "type": "integer"
                        },
                        "volume": {
                          "type": "number"
                        },
                        "area": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "parts",
                        "volume",
                        "area"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "parts",
                    "skipped",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 2000
                  },
                  "drawingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 200
                  },
                  "machining": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cad/exact/step": {
      "post": {
        "tags": [
          "cadExact"
        ],
        "operationId": "cadExact.step",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "step": {
                      "type": "string"
                    },
                    "parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "exact": {
                            "type": "boolean"
                          },
                          "faces": {
                            "type": "integer"
                          },
                          "valid": {
                            "type": "boolean"
                          },
                          "note": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "exact",
                          "faces",
                          "valid"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "skipped": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "parts",
                    "skipped"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 2000
                  },
                  "drawingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 200
                  },
                  "faceted": {
                    "type": "boolean"
                  },
                  "author": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cad/exact/assembly": {
      "post": {
        "tags": [
          "cadExact"
        ],
        "operationId": "cadExact.assembly",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "parts": {
                      "type": "integer"
                    },
                    "interference": {
                      "type": "object",
                      "properties": {
                        "clashes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "a": {
                                "type": "string"
                              },
                              "b": {
                                "type": "string"
                              },
                              "aName": {
                                "type": "string"
                              },
                              "bName": {
                                "type": "string"
                              },
                              "volume": {
                                "type": "number"
                              },
                              "centroid": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "a",
                              "b",
                              "aName",
                              "bName",
                              "volume",
                              "centroid"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "expected": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "a": {
                                "type": "string"
                              },
                              "b": {
                                "type": "string"
                              },
                              "aName": {
                                "type": "string"
                              },
                              "bName": {
                                "type": "string"
                              },
                              "volume": {
                                "type": "number"
                              },
                              "note": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "a",
                              "b",
                              "aName",
                              "bName",
                              "volume",
                              "note"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "touching": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "a": {
                                "type": "string"
                              },
                              "b": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "a",
                              "b"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "undetermined": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "a": {
                                "type": "string"
                              },
                              "b": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "a",
                              "b",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "checked": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "clashes",
                        "expected",
                        "touching",
                        "undetermined",
                        "checked"
                      ],
                      "additionalProperties": false
                    },
                    "clearance": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "a": {
                            "type": "string"
                          },
                          "b": {
                            "type": "string"
                          },
                          "aName": {
                            "type": "string"
                          },
                          "bName": {
                            "type": "string"
                          },
                          "distance": {
                            "type": "number"
                          },
                          "overlap": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "a",
                          "b",
                          "aName",
                          "bName",
                          "distance",
                          "overlap"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "bom": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "designation": {
                            "type": "string"
                          },
                          "material": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "volume": {
                            "type": "number"
                          },
                          "mass": {
                            "type": "number"
                          },
                          "parts": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "item",
                          "name",
                          "quantity",
                          "volume",
                          "parts"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "joints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "parent": {
                            "type": "string"
                          },
                          "child": {
                            "type": "string"
                          },
                          "parentName": {
                            "type": "string"
                          },
                          "childName": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "revolute",
                              "fixed"
                            ]
                          },
                          "origin": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              },
                              "z": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "z"
                            ],
                            "additionalProperties": false
                          },
                          "axis": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              },
                              "z": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y",
                              "z"
                            ],
                            "additionalProperties": false
                          },
                          "axes": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "parent",
                          "child",
                          "parentName",
                          "childName",
                          "kind",
                          "origin",
                          "axis",
                          "axes"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "fasteners": {
                      "type": "object",
                      "properties": {
                        "plans": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "size": {
                                "type": "string"
                              },
                              "threadName": {
                                "type": "string"
                              },
                              "designation": {
                                "type": "string"
                              },
                              "length": {
                                "type": "number"
                              },
                              "seat": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              },
                              "direction": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              },
                              "bodies": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "tapped": {
                                "type": "string"
                              },
                              "grip": {
                                "type": "number"
                              },
                              "engagement": {
                                "type": "number"
                              },
                              "headWasher": {
                                "type": "object",
                                "properties": {
                                  "designation": {
                                    "type": "string"
                                  },
                                  "inner": {
                                    "type": "number"
                                  },
                                  "outer": {
                                    "type": "number"
                                  },
                                  "thickness": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "designation",
                                  "inner",
                                  "outer",
                                  "thickness"
                                ],
                                "additionalProperties": false
                              },
                              "nutWasher": {
                                "type": "object",
                                "properties": {
                                  "designation": {
                                    "type": "string"
                                  },
                                  "inner": {
                                    "type": "number"
                                  },
                                  "outer": {
                                    "type": "number"
                                  },
                                  "thickness": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "designation",
                                  "inner",
                                  "outer",
                                  "thickness"
                                ],
                                "additionalProperties": false
                              },
                              "nutWasherAt": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              },
                              "nut": {
                                "type": "object",
                                "properties": {
                                  "designation": {
                                    "type": "string"
                                  },
                                  "across": {
                                    "type": "number"
                                  },
                                  "height": {
                                    "type": "number"
                                  },
                                  "at": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number"
                                      },
                                      "y": {
                                        "type": "number"
                                      },
                                      "z": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y",
                                      "z"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "designation",
                                  "across",
                                  "height",
                                  "at"
                                ],
                                "additionalProperties": false
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "id",
                              "size",
                              "threadName",
                              "designation",
                              "length",
                              "seat",
                              "direction",
                              "bodies",
                              "grip",
                              "warnings"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "unfastened": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "bodies": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "at": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number"
                                  },
                                  "y": {
                                    "type": "number"
                                  },
                                  "z": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "z"
                                ],
                                "additionalProperties": false
                              },
                              "reason": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "bodies",
                              "at",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "existing": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "plans",
                        "unfastened",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "skipped": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "parts",
                    "interference",
                    "bom",
                    "joints",
                    "fasteners",
                    "skipped"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 2000
                  },
                  "drawingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "washers": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cad/exact/setups": {
      "post": {
        "tags": [
          "cadExact"
        ],
        "operationId": "cadExact.setups",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "plan": {
                            "type": "object",
                            "properties": {
                              "setups": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "orientation": {
                                      "type": "string",
                                      "enum": [
                                        "+Z",
                                        "-Z",
                                        "+X",
                                        "-X",
                                        "+Y",
                                        "-Y"
                                      ]
                                    },
                                    "faces": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer"
                                      }
                                    },
                                    "area": {
                                      "type": "number"
                                    },
                                    "share": {
                                      "type": "number"
                                    },
                                    "holes": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "entry": {
                                            "type": "object",
                                            "properties": {
                                              "x": {
                                                "type": "number"
                                              },
                                              "y": {
                                                "type": "number"
                                              },
                                              "z": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "x",
                                              "y",
                                              "z"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "direction": {
                                            "type": "object",
                                            "properties": {
                                              "x": {
                                                "type": "number"
                                              },
                                              "y": {
                                                "type": "number"
                                              },
                                              "z": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "x",
                                              "y",
                                              "z"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "diameter": {
                                            "type": "number"
                                          },
                                          "depth": {
                                            "type": "number"
                                          },
                                          "form": {
                                            "type": "string",
                                            "enum": [
                                              "simple",
                                              "counterbore",
                                              "countersink"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "entry",
                                          "direction",
                                          "diameter",
                                          "depth",
                                          "form"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "prismatic": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "ok": {
                                              "type": "boolean",
                                              "enum": [
                                                true
                                              ]
                                            },
                                            "holes": {
                                              "type": "integer"
                                            },
                                            "pockets": {
                                              "type": "integer"
                                            },
                                            "outlines": {
                                              "type": "integer"
                                            }
                                          },
                                          "required": [
                                            "ok",
                                            "holes",
                                            "pockets",
                                            "outlines"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "ok": {
                                              "type": "boolean",
                                              "enum": [
                                                false
                                              ]
                                            },
                                            "reason": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "ok",
                                            "reason"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "orientation",
                                    "faces",
                                    "area",
                                    "share",
                                    "holes",
                                    "prismatic"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "uncovered": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "face": {
                                      "type": "integer"
                                    },
                                    "kind": {
                                      "type": "string"
                                    },
                                    "area": {
                                      "type": "number"
                                    },
                                    "reason": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "face",
                                    "kind",
                                    "area",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "held": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "face": {
                                      "type": "integer"
                                    },
                                    "kind": {
                                      "type": "string"
                                    },
                                    "area": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "face",
                                    "kind",
                                    "area"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "indexed": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "entry": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        },
                                        "z": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y",
                                        "z"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "direction": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number"
                                        },
                                        "y": {
                                          "type": "number"
                                        },
                                        "z": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y",
                                        "z"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "diameter": {
                                      "type": "number"
                                    },
                                    "depth": {
                                      "type": "number"
                                    },
                                    "form": {
                                      "type": "string",
                                      "enum": [
                                        "simple",
                                        "counterbore",
                                        "countersink"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "entry",
                                    "direction",
                                    "diameter",
                                    "depth",
                                    "form"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "reach": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "orientation": {
                                      "type": "string",
                                      "enum": [
                                        "+Z",
                                        "-Z",
                                        "+X",
                                        "-X",
                                        "+Y",
                                        "-Y"
                                      ]
                                    },
                                    "faces": {
                                      "type": "integer"
                                    },
                                    "area": {
                                      "type": "number"
                                    },
                                    "share": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "orientation",
                                    "faces",
                                    "area",
                                    "share"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "faces": {
                                "type": "integer"
                              },
                              "area": {
                                "type": "number"
                              },
                              "notes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "setups",
                              "uncovered",
                              "held",
                              "indexed",
                              "reach",
                              "faces",
                              "area",
                              "notes"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "plan"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "skipped": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "parts",
                    "skipped"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 2000
                  },
                  "drawingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 200
                  },
                  "fixture": {
                    "type": "string",
                    "enum": [
                      "bottom",
                      "none"
                    ]
                  },
                  "allowed": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "+Z",
                        "-Z",
                        "+X",
                        "-X",
                        "+Y",
                        "-Y"
                      ]
                    },
                    "minItems": 1,
                    "maxItems": 6
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cad/exact/hole": {
      "post": {
        "tags": [
          "cadExact"
        ],
        "operationId": "cadExact.hole",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "ok": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "hole": {
                          "type": "integer"
                        },
                        "holes": {
                          "type": "integer"
                        },
                        "before": {
                          "type": "object",
                          "properties": {
                            "diameter": {
                              "type": "number"
                            },
                            "depth": {
                              "type": "number"
                            },
                            "form": {
                              "type": "string",
                              "enum": [
                                "simple",
                                "counterbore",
                                "countersink"
                              ]
                            }
                          },
                          "required": [
                            "diameter",
                            "depth",
                            "form"
                          ],
                          "additionalProperties": false
                        },
                        "edit": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "resize"
                                  ]
                                },
                                "diameter": {
                                  "type": "number"
                                },
                                "taper": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind",
                                "diameter"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "fill"
                                  ]
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "volume": {
                          "type": "number"
                        },
                        "originalVolume": {
                          "type": "number"
                        },
                        "volumeChange": {
                          "type": "number"
                        },
                        "faces": {
                          "type": "integer"
                        },
                        "valid": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok",
                        "id",
                        "name",
                        "hole",
                        "holes",
                        "before",
                        "edit",
                        "volume",
                        "originalVolume",
                        "volumeChange",
                        "faces",
                        "valid"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "ok": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "boss": {
                          "type": "integer"
                        },
                        "bosses": {
                          "type": "integer"
                        },
                        "before": {
                          "type": "object",
                          "properties": {
                            "diameter": {
                              "type": "number"
                            },
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "diameter",
                            "length"
                          ],
                          "additionalProperties": false
                        },
                        "diameter": {
                          "type": "number"
                        },
                        "taper": {
                          "type": "number"
                        },
                        "volume": {
                          "type": "number"
                        },
                        "originalVolume": {
                          "type": "number"
                        },
                        "volumeChange": {
                          "type": "number"
                        },
                        "faces": {
                          "type": "integer"
                        },
                        "valid": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok",
                        "id",
                        "name",
                        "boss",
                        "bosses",
                        "before",
                        "diameter",
                        "volume",
                        "originalVolume",
                        "volumeChange",
                        "faces",
                        "valid"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "ok": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "fillet": {
                          "type": "integer"
                        },
                        "fillets": {
                          "type": "integer"
                        },
                        "before": {
                          "type": "object",
                          "properties": {
                            "radius": {
                              "type": "number"
                            },
                            "convex": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "radius",
                            "convex"
                          ],
                          "additionalProperties": false
                        },
                        "radius": {
                          "type": "number"
                        },
                        "volume": {
                          "type": "number"
                        },
                        "originalVolume": {
                          "type": "number"
                        },
                        "volumeChange": {
                          "type": "number"
                        },
                        "faces": {
                          "type": "integer"
                        },
                        "valid": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok",
                        "id",
                        "name",
                        "fillet",
                        "fillets",
                        "before",
                        "radius",
                        "volume",
                        "originalVolume",
                        "volumeChange",
                        "faces",
                        "valid"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "ok": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "nurbs": {
                          "type": "integer"
                        },
                        "nurbsFaces": {
                          "type": "integer"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "move",
                            "offset",
                            "draft"
                          ]
                        },
                        "before": {
                          "type": "object",
                          "properties": {
                            "normal": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "type": "number"
                                },
                                "z": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "z"
                              ],
                              "additionalProperties": false
                            },
                            "spread": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "normal",
                            "spread"
                          ],
                          "additionalProperties": false
                        },
                        "distance": {
                          "type": "number"
                        },
                        "direction": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            },
                            "z": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "x",
                            "y",
                            "z"
                          ],
                          "additionalProperties": false
                        },
                        "angle": {
                          "type": "number"
                        },
                        "approximate": {
                          "type": "object",
                          "properties": {
                            "deviation": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "deviation"
                          ],
                          "additionalProperties": false
                        },
                        "volume": {
                          "type": "number"
                        },
                        "originalVolume": {
                          "type": "number"
                        },
                        "volumeChange": {
                          "type": "number"
                        },
                        "faces": {
                          "type": "integer"
                        },
                        "valid": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok",
                        "id",
                        "name",
                        "nurbs",
                        "nurbsFaces",
                        "mode",
                        "before",
                        "volume",
                        "originalVolume",
                        "volumeChange",
                        "faces",
                        "valid"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "ok": {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        "error": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ok",
                        "error"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "elements": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 2000
                  },
                  "drawingId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "hole": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "boss": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "fillet": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "nurbs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "distance": {
                    "type": "number"
                  },
                  "direction": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      },
                      "z": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "y",
                      "z"
                    ],
                    "additionalProperties": false
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "move",
                      "offset",
                      "draft"
                    ]
                  },
                  "angle": {
                    "type": "number",
                    "minimum": -45,
                    "maximum": 45
                  },
                  "neutral": {
                    "type": "number"
                  },
                  "pull": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      },
                      "z": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "y",
                      "z"
                    ],
                    "additionalProperties": false
                  },
                  "tolerance": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "radius": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "diameter": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "taper": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30
                  },
                  "fill": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/library": {
      "get": {
        "tags": [
          "library"
        ],
        "operationId": "library.list",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "category": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "data": {},
                      "properties": {},
                      "tags": {},
                      "thumbnail": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPublic": {
                        "type": "boolean"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "ownerId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "organizationId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "category",
                      "type",
                      "data",
                      "properties",
                      "tags",
                      "thumbnail",
                      "isPublic",
                      "createdAt",
                      "updatedAt",
                      "ownerId",
                      "organizationId"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "library"
        ],
        "operationId": "library.create",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "category": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "data": {},
                    "properties": {},
                    "tags": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "category",
                    "type",
                    "data",
                    "properties",
                    "tags",
                    "thumbnail",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "properties": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tags": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/library/{id}": {
      "get": {
        "tags": [
          "library"
        ],
        "operationId": "library.get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "category": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "data": {},
                    "properties": {},
                    "tags": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "category",
                    "type",
                    "data",
                    "properties",
                    "tags",
                    "thumbnail",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "library"
        ],
        "operationId": "library.update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "category": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "data": {},
                    "properties": {},
                    "tags": {},
                    "thumbnail": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPublic": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "ownerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "category",
                    "type",
                    "data",
                    "properties",
                    "tags",
                    "thumbnail",
                    "isPublic",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "properties": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tags": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "library"
        ],
        "operationId": "library.remove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/library/components": {
      "get": {
        "tags": [
          "library"
        ],
        "operationId": "library.components",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "category": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "data": {},
                          "properties": {},
                          "tags": {},
                          "thumbnail": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isPublic": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "ownerId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "organizationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "email": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "image": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "email",
                                  "image"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "category",
                          "type",
                          "data",
                          "properties",
                          "tags",
                          "thumbnail",
                          "isPublic",
                          "createdAt",
                          "updatedAt",
                          "ownerId",
                          "organizationId",
                          "owner"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/library/materials": {
      "get": {
        "tags": [
          "library"
        ],
        "operationId": "library.materials",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "properties": {},
                          "isPublic": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "ownerId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "organizationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "email": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "image": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "email",
                                  "image"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "properties",
                          "isPublic",
                          "createdAt",
                          "updatedAt",
                          "ownerId",
                          "organizationId",
                          "owner"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/library/tools": {
      "get": {
        "tags": [
          "library"
        ],
        "operationId": "library.tools",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "diameter": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "material": {
                            "type": "string"
                          },
                          "numberOfFlutes": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxRPM": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "coolantType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cuttingLength": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "totalLength": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "shankDiameter": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cornerRadius": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tipAngle": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "threadPitch": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "holderDiameter": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "holderLength": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "stickout": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "notes": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isPublic": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "ownerId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "organizationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "email": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "image": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "email",
                                  "image"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "type",
                          "diameter",
                          "material",
                          "numberOfFlutes",
                          "maxRPM",
                          "coolantType",
                          "cuttingLength",
                          "totalLength",
                          "shankDiameter",
                          "notes",
                          "isPublic",
                          "createdAt",
                          "updatedAt",
                          "ownerId",
                          "organizationId",
                          "owner"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "KeyedInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyedInternalEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/toolpaths": {
      "get": {
        "tags": [
          "projectToolpaths"
        ],
        "operationId": "projectToolpaths.list",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "projectToolpaths"
        ],
        "operationId": "projectToolpaths.create",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "EnvBadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvBadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "EnvForbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "EnvNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvNotFoundEncoded"
                }
              }
            }
          },
          "405": {
            "description": "EnvMethodNotAllowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvMethodNotAllowedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "EnvInternal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvInternalEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "data": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gcode": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "projectId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operationType": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isPublic": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thumbnail": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "materialId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "machineConfigId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "toolId": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "simulation": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "baseUpdatedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/status": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.status",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "head": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dirty": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "branch",
                    "head",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/vcs/log": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.log",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "rev",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "oid": {
                        "type": "string"
                      },
                      "parents": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "message": {
                        "type": "string"
                      },
                      "author": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "time": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "name",
                          "email",
                          "time"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "oid",
                      "parents",
                      "message",
                      "author"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/vcs/commit": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.commit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "oid": {
                      "type": "string"
                    },
                    "parents": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    },
                    "author": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "time": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "email",
                        "time"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "oid",
                    "parents",
                    "message",
                    "author"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "authorKind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "user",
                          "ai"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "files": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "message"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/branches": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.branches",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "current": {
                      "type": "string"
                    },
                    "branches": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "current",
                    "branches"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.createBranch",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "current": {
                      "type": "string"
                    },
                    "branches": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "current",
                    "branches"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "from": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/checkout": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.checkout",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "head": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dirty": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "branch",
                    "head",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "branch": {
                    "type": "string"
                  }
                },
                "required": [
                  "branch"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/restore": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.restore",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "oid": {
                      "type": "string"
                    },
                    "parents": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    },
                    "author": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "time": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "email",
                        "time"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "oid",
                    "parents",
                    "message",
                    "author"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rev": {
                    "type": "string"
                  },
                  "paths": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "rev"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/diff": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.diff",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "drawings",
                          "components",
                          "toolpaths",
                          "materials",
                          "tools",
                          "machine-configs",
                          "costs",
                          "project",
                          "other"
                        ]
                      },
                      "id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "added",
                          "modified",
                          "deleted"
                        ]
                      },
                      "changes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "pointer": {
                              "type": "string"
                            },
                            "before": {
                              "anyOf": [
                                {},
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "after": {
                              "anyOf": [
                                {},
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "pointer"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "path",
                      "kind",
                      "status",
                      "changes"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/pulls": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.listPullRequests",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "open",
                    "merged",
                    "closed"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "number": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      "title": {
                        "type": "string"
                      },
                      "body": {
                        "type": "string"
                      },
                      "head": {
                        "type": "string"
                      },
                      "base": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "open",
                          "merged",
                          "closed"
                        ]
                      },
                      "authorId": {
                        "type": "string"
                      },
                      "authorKind": {
                        "type": "string",
                        "enum": [
                          "user",
                          "ai"
                        ]
                      },
                      "mergeCommit": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "remoteNumber": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "number",
                      "title",
                      "body",
                      "head",
                      "base",
                      "state",
                      "authorId",
                      "authorKind",
                      "mergeCommit",
                      "remoteNumber",
                      "createdAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.openPullRequest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "number": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    },
                    "head": {
                      "type": "string"
                    },
                    "base": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "open",
                        "merged",
                        "closed"
                      ]
                    },
                    "authorId": {
                      "type": "string"
                    },
                    "authorKind": {
                      "type": "string",
                      "enum": [
                        "user",
                        "ai"
                      ]
                    },
                    "mergeCommit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteNumber": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "projectId",
                    "number",
                    "title",
                    "body",
                    "head",
                    "base",
                    "state",
                    "authorId",
                    "authorKind",
                    "mergeCommit",
                    "remoteNumber",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "head": {
                    "type": "string"
                  },
                  "base": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "authorKind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "user",
                          "ai"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "title",
                  "head"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/pulls/{number}": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.pullRequest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "number",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pullRequest": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "projectId": {
                          "type": "string"
                        },
                        "number": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "title": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        },
                        "head": {
                          "type": "string"
                        },
                        "base": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "open",
                            "merged",
                            "closed"
                          ]
                        },
                        "authorId": {
                          "type": "string"
                        },
                        "authorKind": {
                          "type": "string",
                          "enum": [
                            "user",
                            "ai"
                          ]
                        },
                        "mergeCommit": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "remoteNumber": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "projectId",
                        "number",
                        "title",
                        "body",
                        "head",
                        "base",
                        "state",
                        "authorId",
                        "authorKind",
                        "mergeCommit",
                        "remoteNumber",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "reviews": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "pullRequestId": {
                            "type": "string"
                          },
                          "reviewerId": {
                            "type": "string"
                          },
                          "verdict": {
                            "type": "string",
                            "enum": [
                              "comment",
                              "approve",
                              "request-changes"
                            ]
                          },
                          "body": {
                            "type": "string"
                          },
                          "path": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pointer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "pullRequestId",
                          "reviewerId",
                          "verdict",
                          "body",
                          "path",
                          "pointer",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "changes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "drawings",
                              "components",
                              "toolpaths",
                              "materials",
                              "tools",
                              "machine-configs",
                              "costs",
                              "project",
                              "other"
                            ]
                          },
                          "id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "added",
                              "modified",
                              "deleted"
                            ]
                          },
                          "changes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "pointer": {
                                  "type": "string"
                                },
                                "before": {
                                  "anyOf": [
                                    {},
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "after": {
                                  "anyOf": [
                                    {},
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "pointer"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "path",
                          "kind",
                          "status",
                          "changes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "pullRequest",
                    "reviews",
                    "changes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/pulls/{number}/reviews": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.review",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "number",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "pullRequestId": {
                      "type": "string"
                    },
                    "reviewerId": {
                      "type": "string"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "comment",
                        "approve",
                        "request-changes"
                      ]
                    },
                    "body": {
                      "type": "string"
                    },
                    "path": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pointer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "pullRequestId",
                    "reviewerId",
                    "verdict",
                    "body",
                    "path",
                    "pointer",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "verdict": {
                    "type": "string",
                    "enum": [
                      "comment",
                      "approve",
                      "request-changes"
                    ]
                  },
                  "body": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "path": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pointer": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "verdict"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/pulls/{number}/merge": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.mergePullRequest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "number",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "number": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    },
                    "head": {
                      "type": "string"
                    },
                    "base": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "open",
                        "merged",
                        "closed"
                      ]
                    },
                    "authorId": {
                      "type": "string"
                    },
                    "authorKind": {
                      "type": "string",
                      "enum": [
                        "user",
                        "ai"
                      ]
                    },
                    "mergeCommit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteNumber": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "projectId",
                    "number",
                    "title",
                    "body",
                    "head",
                    "base",
                    "state",
                    "authorId",
                    "authorKind",
                    "mergeCommit",
                    "remoteNumber",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/pulls/{number}/close": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.closePullRequest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "number",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "number": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    },
                    "head": {
                      "type": "string"
                    },
                    "base": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "open",
                        "merged",
                        "closed"
                      ]
                    },
                    "authorId": {
                      "type": "string"
                    },
                    "authorKind": {
                      "type": "string",
                      "enum": [
                        "user",
                        "ai"
                      ]
                    },
                    "mergeCommit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteNumber": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "projectId",
                    "number",
                    "title",
                    "body",
                    "head",
                    "base",
                    "state",
                    "authorId",
                    "authorKind",
                    "mergeCommit",
                    "remoteNumber",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/vcs/remote": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.remote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "remote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "remote"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.setRemote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "remote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "remote"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "remote": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "remote"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/push": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.push",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "x-github-token",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "oid": {
                      "type": "string"
                    },
                    "objects": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "enum": [
                            "Infinity",
                            "-Infinity",
                            "NaN"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "oid",
                    "objects"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/vcs/pull": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.pull",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "x-github-token",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string"
                    },
                    "oid": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "oid"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "branch": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/actions/runs": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.runs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "workflow": {
                        "type": "string"
                      },
                      "event": {
                        "type": "string",
                        "enum": [
                          "push",
                          "pull-request",
                          "manual"
                        ]
                      },
                      "ref": {
                        "type": "string"
                      },
                      "sha": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "success",
                          "failure"
                        ]
                      },
                      "events": {
                        "type": "array"
                      },
                      "startedAt": {
                        "type": "string"
                      },
                      "finishedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "workflow",
                      "event",
                      "ref",
                      "sha",
                      "status",
                      "events",
                      "startedAt",
                      "finishedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/actions/dispatch": {
      "post": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.dispatch",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "workflow": {
                        "type": "string"
                      },
                      "event": {
                        "type": "string",
                        "enum": [
                          "push",
                          "pull-request",
                          "manual"
                        ]
                      },
                      "ref": {
                        "type": "string"
                      },
                      "sha": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "running",
                          "success",
                          "failure"
                        ]
                      },
                      "events": {
                        "type": "array"
                      },
                      "startedAt": {
                        "type": "string"
                      },
                      "finishedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "workflow",
                      "event",
                      "ref",
                      "sha",
                      "status",
                      "events",
                      "startedAt",
                      "finishedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ref": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/actions/workflows": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.listWorkflows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "ref",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string"
                      },
                      "content": {
                        "type": "string"
                      },
                      "problem": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "path",
                      "content"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/actions/workflows/{name}": {
      "get": {
        "tags": [
          "vcs"
        ],
        "operationId": "vcs.workflow",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "name",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "ref",
            "in": "query",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    },
                    "problem": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "path",
                    "content"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/events": {
      "get": {
        "tags": [
          "events"
        ],
        "operationId": "events.subscribe",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": [
                    "id",
                    "event",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Fail"
                              ]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": [
                            "_tag",
                            "error"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Die"
                              ]
                            },
                            "defect": {}
                          },
                          "required": [
                            "_tag",
                            "defect"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Interrupt"
                              ]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "_tag",
                            "fiberId"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/events": {
      "get": {
        "tags": [
          "events"
        ],
        "operationId": "events.subscribeAll",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "event": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string",
                      "contentMediaType": "application/json"
                    }
                  },
                  "required": [
                    "id",
                    "event",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "x-effect-stream": {
                  "encoding": "sse",
                  "causeSchema": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Fail"
                              ]
                            },
                            "error": {
                              "not": {}
                            }
                          },
                          "required": [
                            "_tag",
                            "error"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Die"
                              ]
                            },
                            "defect": {}
                          },
                          "required": [
                            "_tag",
                            "defect"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "_tag": {
                              "type": "string",
                              "enum": [
                                "Interrupt"
                              ]
                            },
                            "fiberId": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "_tag",
                            "fiberId"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "errorSchema": {
                    "not": {}
                  },
                  "failureEvent": "effect/httpapi/stream/failure"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/companion": {
      "get": {
        "tags": [
          "companion"
        ],
        "operationId": "companion.status",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "port": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fingerprint": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string"
                    },
                    "devices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "lastSeen": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "createdAt",
                          "lastSeen"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "enabled",
                    "port",
                    "fingerprint",
                    "host",
                    "devices"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/companion/enable": {
      "post": {
        "tags": [
          "companion"
        ],
        "operationId": "companion.enable",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "port": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fingerprint": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string"
                    },
                    "devices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "lastSeen": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "createdAt",
                          "lastSeen"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "enabled",
                    "port",
                    "fingerprint",
                    "host",
                    "devices"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "port": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/companion/disable": {
      "post": {
        "tags": [
          "companion"
        ],
        "operationId": "companion.disable",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "port": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fingerprint": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string"
                    },
                    "devices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "lastSeen": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "createdAt",
                          "lastSeen"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "enabled",
                    "port",
                    "fingerprint",
                    "host",
                    "devices"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/companion/pair": {
      "post": {
        "tags": [
          "companion"
        ],
        "operationId": "companion.pair",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "link"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "host": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/companion/devices/{id}": {
      "delete": {
        "tags": [
          "companion"
        ],
        "operationId": "companion.revoke",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "port": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fingerprint": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "host": {
                      "type": "string"
                    },
                    "devices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "lastSeen": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "createdAt",
                          "lastSeen"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "enabled",
                    "port",
                    "fingerprint",
                    "host",
                    "devices"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/drawings": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.drawings",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "subtitle": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "subtitle",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/drawings/{drawingId}/preview": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.drawingPreview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "drawingId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "positions": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "indices": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "normals": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "bounds": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        },
                        "max": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        }
                      },
                      "required": [
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    "parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "triangleStart": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "triangleCount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "triangleStart",
                          "triangleCount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "truncated": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "string"
                    },
                    "features": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "elementId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "features": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "parameters": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "type": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "key",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "parameters"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "elementId",
                          "name",
                          "features"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "positions",
                    "indices",
                    "normals",
                    "bounds",
                    "parts",
                    "truncated",
                    "revision"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/components": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.components",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "subtitle": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "subtitle",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/components/{componentId}/preview": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.componentPreview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "componentId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "positions": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "indices": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "normals": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      }
                    },
                    "bounds": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        },
                        "max": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        }
                      },
                      "required": [
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    "parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "triangleStart": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "triangleCount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "triangleStart",
                          "triangleCount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "truncated": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "string"
                    },
                    "features": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "elementId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "features": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "parameters": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "type": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "key",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "parameters"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "elementId",
                          "name",
                          "features"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "parameters": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "key",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "positions",
                    "indices",
                    "normals",
                    "bounds",
                    "parts",
                    "truncated",
                    "revision",
                    "parameters"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/toolpaths": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.toolpaths",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "subtitle": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "subtitle",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/toolpaths/{toolpathId}": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.toolpath",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "toolpathId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "operationType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gcode": {
                      "type": "string"
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "rapidMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "linearMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "circularMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "machineFunctions": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "rapidMoves",
                        "linearMoves",
                        "circularMoves",
                        "machineFunctions"
                      ],
                      "additionalProperties": false
                    },
                    "revision": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "operationType",
                    "gcode",
                    "stats",
                    "revision",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/toolpaths/{toolpathId}/preview": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.toolpathPreview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "toolpathId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "segments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "rapid",
                              "linear",
                              "circular"
                            ]
                          },
                          "line": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "from": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            ],
                            "maxItems": 3,
                            "minItems": 3
                          },
                          "to": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            ],
                            "maxItems": 3,
                            "minItems": 3
                          }
                        },
                        "required": [
                          "kind",
                          "line",
                          "from",
                          "to"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "bounds": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        },
                        "max": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        }
                      },
                      "required": [
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    "stock": {
                      "type": "object",
                      "properties": {
                        "min": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        },
                        "max": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            }
                          ],
                          "maxItems": 3,
                          "minItems": 3
                        }
                      },
                      "required": [
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    "truncated": {
                      "type": "boolean"
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "rapidMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "linearMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "circularMoves": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "machineFunctions": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "rapidMoves",
                        "linearMoves",
                        "circularMoves",
                        "machineFunctions"
                      ],
                      "additionalProperties": false
                    },
                    "machine": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "mill",
                            "lathe",
                            "3dprinter"
                          ]
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "override",
                            "kernel",
                            "generator",
                            "inferred",
                            "settings"
                          ]
                        },
                        "mismatch": {
                          "type": "object",
                          "properties": {
                            "inferred": {
                              "type": "string",
                              "enum": [
                                "mill",
                                "lathe",
                                "3dprinter"
                              ]
                            },
                            "reasons": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "inferred",
                            "reasons"
                          ],
                          "additionalProperties": false
                        },
                        "axes": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "Infinity",
                                "-Infinity",
                                "NaN"
                              ]
                            }
                          ]
                        },
                        "turns": {
                          "type": "string"
                        },
                        "workholding": {
                          "type": "string"
                        },
                        "assumed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "workholding",
                              "table",
                              "stock"
                            ]
                          }
                        },
                        "xMode": {
                          "type": "string",
                          "enum": [
                            "diameter",
                            "radius"
                          ]
                        },
                        "turret": {
                          "type": "string",
                          "enum": [
                            "rear",
                            "front"
                          ]
                        },
                        "bodies": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string",
                                "enum": [
                                  "stock",
                                  "jaw",
                                  "parallel",
                                  "vise-base",
                                  "clamp",
                                  "table",
                                  "chuck",
                                  "collet",
                                  "tailstock",
                                  "bed",
                                  "build-volume"
                                ]
                              },
                              "shape": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "box"
                                        ]
                                      },
                                      "min": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "y": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "z": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "max": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "y": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          },
                                          "z": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "Infinity",
                                                  "-Infinity",
                                                  "NaN"
                                                ]
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y",
                                          "z"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "min",
                                      "max"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "cylinder-x"
                                        ]
                                      },
                                      "x0": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "x1": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "radius": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "inner": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "x0",
                                      "x1",
                                      "radius",
                                      "inner"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "cone-x"
                                        ]
                                      },
                                      "x0": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "x1": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "r0": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "r1": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "x0",
                                      "x1",
                                      "r0",
                                      "r1"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "rotateX": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "spins": {
                                "type": "boolean"
                              },
                              "assumed": {
                                "type": "boolean"
                              },
                              "obstacle": {
                                "type": "boolean"
                              },
                              "wire": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "role",
                              "shape",
                              "spins",
                              "assumed",
                              "obstacle"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "spin": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "segment": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "rate": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "segment",
                              "rate"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "collisions": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "operations": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "index": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "name": {
                                "type": "string"
                              },
                              "toolId": {
                                "type": "string"
                              },
                              "startSegment": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "endSegment": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "cutter": {
                                "type": "object",
                                "properties": {
                                  "diameter": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "fluteLength": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "shankDiameter": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "stickout": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "noseRadius": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "string",
                                        "enum": [
                                          "Infinity",
                                          "-Infinity",
                                          "NaN"
                                        ]
                                      }
                                    ]
                                  },
                                  "holder": {
                                    "type": "object",
                                    "properties": {
                                      "diameter": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "length": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "enum": [
                                              "Infinity",
                                              "-Infinity",
                                              "NaN"
                                            ]
                                          }
                                        ]
                                      },
                                      "kind": {
                                        "type": "string"
                                      },
                                      "assumed": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "diameter",
                                      "length",
                                      "kind",
                                      "assumed"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "diameter",
                                  "fluteLength",
                                  "shankDiameter",
                                  "stickout",
                                  "noseRadius",
                                  "holder"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "index",
                              "name",
                              "toolId",
                              "startSegment",
                              "endSegment"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "events": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "error",
                                  "warning"
                                ]
                              },
                              "seconds": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "segment": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "line": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "code",
                              "severity",
                              "seconds",
                              "segment",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "tool": {
                          "type": "object",
                          "properties": {
                            "family": {
                              "type": "string",
                              "enum": [
                                "mill",
                                "lathe",
                                "nozzle"
                              ]
                            },
                            "diameter": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "width": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "noseRadius": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "insert": {
                              "type": "string"
                            },
                            "internal": {
                              "type": "boolean"
                            },
                            "turret": {
                              "type": "string",
                              "enum": [
                                "rear",
                                "front"
                              ]
                            }
                          },
                          "required": [
                            "family",
                            "diameter",
                            "width",
                            "noseRadius",
                            "insert",
                            "internal"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "kind",
                        "source",
                        "axes",
                        "turns",
                        "workholding",
                        "assumed",
                        "bodies",
                        "spin",
                        "collisions",
                        "tool"
                      ],
                      "additionalProperties": false
                    },
                    "part": {
                      "type": "object",
                      "properties": {
                        "positions": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "indices": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "normals": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          }
                        },
                        "bounds": {
                          "type": "object",
                          "properties": {
                            "min": {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "maxItems": 3,
                              "minItems": 3
                            },
                            "max": {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "Infinity",
                                        "-Infinity",
                                        "NaN"
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "maxItems": 3,
                              "minItems": 3
                            }
                          },
                          "required": [
                            "min",
                            "max"
                          ],
                          "additionalProperties": false
                        },
                        "parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "triangleStart": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              },
                              "triangleCount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "Infinity",
                                      "-Infinity",
                                      "NaN"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "triangleStart",
                              "triangleCount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "truncated": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "positions",
                        "indices",
                        "normals",
                        "bounds",
                        "parts",
                        "truncated"
                      ],
                      "additionalProperties": false
                    },
                    "revision": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "segments",
                    "bounds",
                    "stock",
                    "truncated",
                    "stats",
                    "revision"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/workspace/library": {
      "get": {
        "tags": [
          "workspace"
        ],
        "operationId": "workspace.library",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "materials": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "subtitle": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "subtitle",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "tools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "subtitle": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "subtitle",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "machines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "subtitle": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "subtitle",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "components": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "subtitle": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "subtitle",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "materials",
                    "tools",
                    "machines",
                    "components"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/cloud/connection": {
      "get": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.connection",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "origin": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "workspaceId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deviceId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "configured",
                    "origin",
                    "workspaceId",
                    "deviceId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.setConnection",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "origin": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "workspaceId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deviceId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "configured",
                    "origin",
                    "workspaceId",
                    "deviceId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string"
                  },
                  "workspaceId": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                },
                "required": [
                  "origin",
                  "workspaceId",
                  "token"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.disconnect",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "origin": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "workspaceId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deviceId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "configured",
                    "origin",
                    "workspaceId",
                    "deviceId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/cloud/enroll": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.enroll",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "origin": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "workspaceId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deviceId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "configured",
                    "origin",
                    "workspaceId",
                    "deviceId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "setupCode": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "origin",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cloud/pair": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.pair",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "link"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cloud/projects": {
      "get": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.projects",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "head": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "local",
                          "pending",
                          "downloaded",
                          "applied",
                          "conflict"
                        ]
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "head",
                      "state",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/cloud/projects/{id}/clone": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.clone",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/cloud/status": {
      "get": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.status",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/cloud/publish": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.publish",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/cloud/fetch": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.fetch",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}/cloud/apply": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.apply",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedHead": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/projects/{id}/cloud/send": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.send",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cloud/remote/projects": {
      "get": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.remoteProjects",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "head": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "local",
                          "pending",
                          "downloaded",
                          "applied",
                          "conflict"
                        ]
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description",
                      "head",
                      "state",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      }
    },
    "/api/cloud/remote/projects/{id}": {
      "get": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.remoteExport",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "branch": {
                      "type": "string"
                    },
                    "head": {
                      "type": "string"
                    },
                    "objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "oid": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "blob",
                              "tree",
                              "commit"
                            ]
                          },
                          "body": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "oid",
                          "type",
                          "body"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "assets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "fileName": {
                            "type": "string"
                          },
                          "key": {
                            "type": "string"
                          },
                          "contentType": {
                            "type": "string"
                          },
                          "objectId": {
                            "type": "string"
                          },
                          "objectType": {
                            "type": "string"
                          },
                          "size": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "Infinity",
                                  "-Infinity",
                                  "NaN"
                                ]
                              }
                            ]
                          },
                          "sha256": {
                            "type": "string"
                          },
                          "body": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "fileName",
                          "key",
                          "contentType",
                          "objectId",
                          "objectType",
                          "size",
                          "sha256",
                          "body"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "version",
                    "projectId",
                    "branch",
                    "head",
                    "objects",
                    "assets"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.remoteImport",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transfer": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "enum": [
                          1
                        ]
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "branch": {
                        "type": "string"
                      },
                      "head": {
                        "type": "string"
                      },
                      "objects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "oid": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "blob",
                                "tree",
                                "commit"
                              ]
                            },
                            "body": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "oid",
                            "type",
                            "body"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "assets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "fileName": {
                              "type": "string"
                            },
                            "key": {
                              "type": "string"
                            },
                            "contentType": {
                              "type": "string"
                            },
                            "objectId": {
                              "type": "string"
                            },
                            "objectType": {
                              "type": "string"
                            },
                            "size": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "Infinity",
                                    "-Infinity",
                                    "NaN"
                                  ]
                                }
                              ]
                            },
                            "sha256": {
                              "type": "string"
                            },
                            "body": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "fileName",
                            "key",
                            "contentType",
                            "objectId",
                            "objectType",
                            "size",
                            "sha256",
                            "body"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "projectId",
                      "branch",
                      "head",
                      "objects",
                      "assets"
                    ],
                    "additionalProperties": false
                  },
                  "expectedHead": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "transfer",
                  "expectedHead"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/cloud/remote/projects/{id}/receipt": {
      "post": {
        "tags": [
          "cloud"
        ],
        "operationId": "cloud.remoteReceipt",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "localHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remoteHead": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "local",
                        "pending",
                        "downloaded",
                        "applied",
                        "conflict"
                      ]
                    },
                    "dirty": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "projectId",
                    "localHead",
                    "remoteHead",
                    "state",
                    "dirty"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestEncoded"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/UnauthorizedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenEncoded"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundEncoded"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictEncoded"
                }
              }
            }
          },
          "500": {
            "description": "InternalError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorEncoded"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "head": {
                    "type": "string"
                  },
                  "deviceId": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "downloaded",
                      "applied"
                    ]
                  }
                },
                "required": [
                  "head",
                  "deviceId",
                  "state"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    }
  },
  "components": {
    "schemas": {
      "UnauthorizedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "message"
        ],
        "additionalProperties": false
      },
      "AuthInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AuthInternal"
            ]
          },
          "error": {
            "type": "string"
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error",
          "details"
        ],
        "additionalProperties": false
      },
      "AuthBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AuthBadRequest"
            ]
          },
          "error": {
            "type": "string"
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error",
          "details"
        ],
        "additionalProperties": false
      },
      "AuthNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AuthNotFound"
            ]
          },
          "error": {
            "type": "string"
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error",
          "details"
        ],
        "additionalProperties": false
      },
      "AuthUnauthorizedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AuthUnauthorized"
            ]
          },
          "error": {
            "type": "string"
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error",
          "details"
        ],
        "additionalProperties": false
      },
      "TestCreateBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TestCreateBadRequest"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "TestCreateFailureEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TestCreateFailure"
            ]
          },
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error",
          "message"
        ],
        "additionalProperties": false
      },
      "PasskeyNotImplementedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "PasskeyNotImplemented"
            ]
          },
          "error": {
            "type": "string"
          },
          "details": {
            "type": "string"
          },
          "todoImplementation": {
            "type": "object",
            "properties": {
              "webauthn": {
                "type": "string"
              },
              "challengeGeneration": {
                "type": "string"
              },
              "credentialStorage": {
                "type": "string"
              },
              "userVerification": {
                "type": "string"
              }
            },
            "required": [
              "webauthn",
              "challengeGeneration",
              "credentialStorage",
              "userVerification"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "_tag",
          "error",
          "details",
          "todoImplementation"
        ],
        "additionalProperties": false
      },
      "WaitlistBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WaitlistBadRequest"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "message"
        ],
        "additionalProperties": false
      },
      "WaitlistConflictEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WaitlistConflict"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "message"
        ],
        "additionalProperties": false
      },
      "WaitlistInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WaitlistInternal"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "message"
        ],
        "additionalProperties": false
      },
      "KeyedInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "KeyedInternal"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "AnalyticsFailureEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AnalyticsFailure"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "message"
        ],
        "additionalProperties": false
      },
      "InternalErrorEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "InternalError"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "message"
        ],
        "additionalProperties": false
      },
      "AnalyticsKeyedBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AnalyticsKeyedBadRequest"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "AnalyticsKeyedForbiddenEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AnalyticsKeyedForbidden"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "BadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BadRequest"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "message"
        ],
        "additionalProperties": false
      },
      "NotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotFound"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "message"
        ],
        "additionalProperties": false
      },
      "TokenBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "TokenBadRequest"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "AiBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AiBadRequest"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "AiNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AiNotFound"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "AiFailureEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AiFailure"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "ConflictEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "Conflict"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "message"
        ],
        "additionalProperties": false
      },
      "GcodeActionErrorEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "GcodeActionError"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "action": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "processedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "GcodeActionFailureEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "GcodeActionFailure"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "processedAt": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error",
          "action",
          "processedAt"
        ],
        "additionalProperties": false
      },
      "McpEnvBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpEnvBadRequest"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "McpEnvInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpEnvInternal"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "McpEnvNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpEnvNotFound"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "McpEnvMethodNotAllowedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpEnvMethodNotAllowed"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "McpBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpBadRequest"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "McpNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpNotFound"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "McpInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpInternal"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "McpMethodNotAllowedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "McpMethodNotAllowed"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "BillingBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BillingBadRequest"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "BillingForbiddenEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BillingForbidden"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "BillingNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BillingNotFound"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "BillingFailureEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BillingFailure"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "CronUnauthorizedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CronUnauthorized"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "CronFailureEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "CronFailure"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error",
          "timestamp"
        ],
        "additionalProperties": false
      },
      "StripeUnhealthyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "StripeUnhealthy"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unhealthy"
            ]
          },
          "message": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "service": {
            "type": "string",
            "enum": [
              "stripe"
            ]
          }
        },
        "required": [
          "_tag",
          "status",
          "message",
          "timestamp",
          "service"
        ],
        "additionalProperties": false
      },
      "NotifyBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotifyBadRequest"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "NotifyInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "NotifyInternal"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "DesktopBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "DesktopBadRequest"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "DesktopUnauthorizedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "DesktopUnauthorized"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "DesktopInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "DesktopInternal"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "DesktopConflictEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "DesktopConflict"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "DesktopNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "DesktopNotFound"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "success",
          "error"
        ],
        "additionalProperties": false
      },
      "ForbiddenEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "Forbidden"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "message"
        ],
        "additionalProperties": false
      },
      "PluginBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "PluginBadRequest"
            ]
          },
          "error": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "PluginConflictEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "PluginConflict"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "PluginNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "PluginNotFound"
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "error"
        ],
        "additionalProperties": false
      },
      "EnvBadRequestEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "EnvBadRequest"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "success",
          "message",
          "errors"
        ],
        "additionalProperties": false
      },
      "EnvForbiddenEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "EnvForbidden"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "success",
          "message",
          "errors"
        ],
        "additionalProperties": false
      },
      "EnvNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "EnvNotFound"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "success",
          "message",
          "errors"
        ],
        "additionalProperties": false
      },
      "EnvMethodNotAllowedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "EnvMethodNotAllowed"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "success",
          "message",
          "errors"
        ],
        "additionalProperties": false
      },
      "EnvInternalEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "EnvInternal"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "_tag",
          "success",
          "message",
          "errors"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "Bearer"
      }
    }
  },
  "security": [],
  "tags": [
    {
      "name": "health"
    },
    {
      "name": "system"
    },
    {
      "name": "auth"
    },
    {
      "name": "waitlist"
    },
    {
      "name": "analytics"
    },
    {
      "name": "user"
    },
    {
      "name": "ai"
    },
    {
      "name": "mcp"
    },
    {
      "name": "billing"
    },
    {
      "name": "misc"
    },
    {
      "name": "kv"
    },
    {
      "name": "production-costs"
    },
    {
      "name": "plugins"
    },
    {
      "name": "files"
    },
    {
      "name": "organizations"
    },
    {
      "name": "notifications"
    },
    {
      "name": "projects"
    },
    {
      "name": "materials"
    },
    {
      "name": "materialsStorage"
    },
    {
      "name": "tools"
    },
    {
      "name": "toolsStorage"
    },
    {
      "name": "machineConfigs"
    },
    {
      "name": "machineConfigsStorage"
    },
    {
      "name": "drawings"
    },
    {
      "name": "components"
    },
    {
      "name": "toolpaths"
    },
    {
      "name": "toolpathExtras"
    },
    {
      "name": "toolpathGenerator"
    },
    {
      "name": "cadExact"
    },
    {
      "name": "library"
    },
    {
      "name": "projectToolpaths"
    },
    {
      "name": "vcs"
    },
    {
      "name": "events"
    },
    {
      "name": "companion"
    },
    {
      "name": "workspace"
    },
    {
      "name": "cloud"
    }
  ]
}
