{
  "openapi": "3.0.0",
  "paths": {
    "/api/ToBackendCreateEditorSession": {
      "post": {
        "description": "Create a new editor session",
        "operationId": "CreateEditorSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateEditorSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateEditorSessionResponse"
                }
              }
            }
          }
        },
        "summary": "CreateEditorSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendCreateExplorerSession": {
      "post": {
        "description": "Create a new explorer session",
        "operationId": "CreateExplorerSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateExplorerSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateExplorerSessionResponse"
                }
              }
            }
          }
        },
        "summary": "CreateExplorerSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendCreateSessionSseTicket": {
      "post": {
        "description": "Issue a short-lived ticket for authorizing the SSE stream",
        "operationId": "CreateSessionSseTicketController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateSessionSseTicketRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateSessionSseTicketResponse"
                }
              }
            }
          }
        },
        "summary": "CreateSessionSseTicket",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendSendMessageToExplorerSession": {
      "post": {
        "description": "Send a message or interaction to an explorer session",
        "operationId": "SendMessageToExplorerSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSendMessageToExplorerSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSendMessageToExplorerSessionResponse"
                }
              }
            }
          }
        },
        "summary": "SendMessageToExplorerSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendSendMessageToEditorSession": {
      "post": {
        "description": "Send a message or interaction to an editor session",
        "operationId": "SendMessageToEditorSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSendMessageToEditorSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSendMessageToEditorSessionResponse"
                }
              }
            }
          }
        },
        "summary": "SendMessageToEditorSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/sse/session-events": {
      "get": {
        "description": "Stream session events over Server-Sent Events",
        "operationId": "GetSessionEventsSseController",
        "parameters": [
          {
            "name": "sessionId",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticket",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lastEventIndex",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "summary": "GetSessionEventsSse",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendDeleteSession": {
      "post": {
        "description": "Delete a session",
        "operationId": "DeleteSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteSessionResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendArchiveSession": {
      "post": {
        "description": "Archive an editor session and delete its sandbox",
        "operationId": "ArchiveSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendArchiveSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendArchiveSessionResponse"
                }
              }
            }
          }
        },
        "summary": "ArchiveSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendPauseEditorSession": {
      "post": {
        "description": "Pause an editor session and its sandbox",
        "operationId": "PauseEditorSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendPauseEditorSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendPauseEditorSessionResponse"
                }
              }
            }
          }
        },
        "summary": "PauseEditorSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendGetSessionsList": {
      "post": {
        "description": "List the user sessions",
        "operationId": "GetSessionsListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetSessionsListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetSessionsListResponse"
                }
              }
            }
          }
        },
        "summary": "GetSessionsList",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendGetSession": {
      "post": {
        "description": "Get a session with its messages, parts, and events",
        "operationId": "GetSessionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetSessionResponse"
                }
              }
            }
          }
        },
        "summary": "GetSession",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendCloseExplorerSessionTab": {
      "post": {
        "description": "Persist hidden explorer chart tabs for a session",
        "operationId": "CloseExplorerSessionTabController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCloseExplorerSessionTabRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCloseExplorerSessionTabResponse"
                }
              }
            }
          }
        },
        "summary": "CloseExplorerSessionTab",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendSetSessionTitle": {
      "post": {
        "description": "Update the session's title",
        "operationId": "SetSessionTitleController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetSessionTitleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetSessionTitleResponse"
                }
              }
            }
          }
        },
        "summary": "SetSessionTitle",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendGetSessionProviderModels": {
      "post": {
        "description": "List available LLM provider models",
        "operationId": "GetSessionProviderModelsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetSessionProviderModelsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetSessionProviderModelsResponse"
                }
              }
            }
          }
        },
        "summary": "GetSessionProviderModels",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/api/ToBackendGetAvatarBig": {
      "post": {
        "description": "Get a user's avatar image",
        "operationId": "GetAvatarBigController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetAvatarBigRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetAvatarBigResponse"
                }
              }
            }
          }
        },
        "summary": "GetAvatarBig",
        "tags": [
          "Avatars"
        ]
      }
    },
    "/api/ToBackendSetAvatar": {
      "post": {
        "description": "Update the current user's avatar image",
        "operationId": "SetAvatarController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetAvatarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetAvatarResponse"
                }
              }
            }
          }
        },
        "summary": "SetAvatar",
        "tags": [
          "Avatars"
        ]
      }
    },
    "/api/ToBackendCreateBranch": {
      "post": {
        "description": "Create a new branch from an existing branch",
        "operationId": "CreateBranchController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateBranchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateBranchResponse"
                }
              }
            }
          }
        },
        "summary": "CreateBranch",
        "tags": [
          "Branches"
        ]
      }
    },
    "/api/ToBackendDeleteBranch": {
      "post": {
        "description": "Delete a branch",
        "operationId": "DeleteBranchController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteBranchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteBranchResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteBranch",
        "tags": [
          "Branches"
        ]
      }
    },
    "/api/ToBackendGetBranchesList": {
      "post": {
        "description": "Get branches available to the user",
        "operationId": "GetBranchesListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetBranchesListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetBranchesListResponse"
                }
              }
            }
          }
        },
        "summary": "GetBranchesList",
        "tags": [
          "Branches"
        ]
      }
    },
    "/api/ToBackendIsBranchExist": {
      "post": {
        "description": "Check whether a branch exists in a project repo",
        "operationId": "IsBranchExistController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendIsBranchExistRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendIsBranchExistResponse"
                }
              }
            }
          }
        },
        "summary": "IsBranchExist",
        "tags": [
          "Branches"
        ]
      }
    },
    "/api/ToBackendMoveCatalogNode": {
      "post": {
        "description": "Move a file or folder to a different location in the catalog tree",
        "operationId": "MoveCatalogNodeController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendMoveCatalogNodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendMoveCatalogNodeResponse"
                }
              }
            }
          }
        },
        "summary": "MoveCatalogNode",
        "tags": [
          "Catalogs"
        ]
      }
    },
    "/api/ToBackendRenameCatalogNode": {
      "post": {
        "description": "Rename a file or folder in the catalog tree",
        "operationId": "RenameCatalogNodeController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRenameCatalogNodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRenameCatalogNodeResponse"
                }
              }
            }
          }
        },
        "summary": "RenameCatalogNode",
        "tags": [
          "Catalogs"
        ]
      }
    },
    "/api/ToBackendTestConnection": {
      "post": {
        "description": "Verify that a SQL connection can be established",
        "operationId": "TestConnectionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendTestConnectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendTestConnectionResponse"
                }
              }
            }
          }
        },
        "summary": "TestConnection",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendCreateConnection": {
      "post": {
        "description": "Create a new connection in a project environment",
        "operationId": "CreateConnectionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateConnectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateConnectionResponse"
                }
              }
            }
          }
        },
        "summary": "CreateConnection",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendEditConnection": {
      "post": {
        "description": "Update options of an existing connection",
        "operationId": "EditConnectionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditConnectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditConnectionResponse"
                }
              }
            }
          }
        },
        "summary": "EditConnection",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendDeleteConnection": {
      "post": {
        "description": "Delete a connection from a project environment",
        "operationId": "DeleteConnectionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteConnectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteConnectionResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteConnection",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendGetConnections": {
      "post": {
        "description": "Get project connections for an environment",
        "operationId": "GetConnectionsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetConnectionsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetConnectionsResponse"
                }
              }
            }
          }
        },
        "summary": "GetConnections",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendGetConnectionSchemas": {
      "post": {
        "description": "Get database schemas available through a SQL connection",
        "operationId": "GetConnectionSchemasController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetConnectionSchemasRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetConnectionSchemasResponse"
                }
              }
            }
          }
        },
        "summary": "GetConnectionSchemas",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendGetConnectionSample": {
      "post": {
        "description": "Get sample data",
        "operationId": "GetConnectionSampleController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetConnectionSampleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetConnectionSampleResponse"
                }
              }
            }
          }
        },
        "summary": "GetConnectionSample",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendGetCachedColumns": {
      "post": {
        "description": "Get cached columns",
        "operationId": "GetCachedColumnsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetCachedColumnsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetCachedColumnsResponse"
                }
              }
            }
          }
        },
        "summary": "GetCachedColumns",
        "tags": [
          "CachedColumns"
        ]
      }
    },
    "/api/ToBackendViewCachedColumn": {
      "post": {
        "description": "View cached column",
        "operationId": "ViewCachedColumnController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendViewCachedColumnRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendViewCachedColumnResponse"
                }
              }
            }
          }
        },
        "summary": "ViewCachedColumn",
        "tags": [
          "CachedColumns"
        ]
      }
    },
    "/api/ToBackendRefreshCachedColumn": {
      "post": {
        "description": "Refresh cached column",
        "operationId": "RefreshCachedColumnController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRefreshCachedColumnRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRefreshCachedColumnResponse"
                }
              }
            }
          }
        },
        "summary": "RefreshCachedColumn",
        "tags": [
          "CachedColumns"
        ]
      }
    },
    "/api/ToBackendClearCachedColumn": {
      "post": {
        "description": "Clear cached column",
        "operationId": "ClearCachedColumnController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendClearCachedColumnRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendClearCachedColumnResponse"
                }
              }
            }
          }
        },
        "summary": "ClearCachedColumn",
        "tags": [
          "CachedColumns"
        ]
      }
    },
    "/api/ToBackendGetConnectionsList": {
      "post": {
        "description": "Get the list of connection identifiers for a project environment",
        "operationId": "GetConnectionsListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetConnectionsListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetConnectionsListResponse"
                }
              }
            }
          }
        },
        "summary": "GetConnectionsList",
        "tags": [
          "Connections"
        ]
      }
    },
    "/api/ToBackendCreateFile": {
      "post": {
        "description": "Create a new file",
        "operationId": "CreateFileController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateFileResponse"
                }
              }
            }
          }
        },
        "summary": "CreateFile",
        "tags": [
          "Files"
        ]
      }
    },
    "/api/ToBackendDeleteFile": {
      "post": {
        "description": "Delete a file",
        "operationId": "DeleteFileController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteFileResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteFile",
        "tags": [
          "Files"
        ]
      }
    },
    "/api/ToBackendGetFile": {
      "post": {
        "description": "Get file",
        "operationId": "GetFileController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetFileResponse"
                }
              }
            }
          }
        },
        "summary": "GetFile",
        "tags": [
          "Files"
        ]
      }
    },
    "/api/ToBackendSaveFile": {
      "post": {
        "description": "Save file changes",
        "operationId": "SaveFileController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveFileResponse"
                }
              }
            }
          }
        },
        "summary": "SaveFile",
        "tags": [
          "Files"
        ]
      }
    },
    "/api/ToBackendValidateFiles": {
      "post": {
        "description": "Validate repository files and rebuild state",
        "operationId": "ValidateFilesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendValidateFilesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendValidateFilesResponse"
                }
              }
            }
          }
        },
        "summary": "ValidateFiles",
        "tags": [
          "Files"
        ]
      }
    },
    "/api/ToBackendCreateFolder": {
      "post": {
        "description": "Create a new folder",
        "operationId": "CreateFolderController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateFolderResponse"
                }
              }
            }
          }
        },
        "summary": "CreateFolder",
        "tags": [
          "Folders"
        ]
      }
    },
    "/api/ToBackendDeleteFolder": {
      "post": {
        "description": "Delete a folder",
        "operationId": "DeleteFolderController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteFolderResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteFolder",
        "tags": [
          "Folders"
        ]
      }
    },
    "/api/ToBackendDuplicateMconfigAndQuery": {
      "post": {
        "description": "Duplicate an mconfig and its associated query",
        "operationId": "DuplicateMconfigAndQueryController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDuplicateMconfigAndQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDuplicateMconfigAndQueryResponse"
                }
              }
            }
          }
        },
        "summary": "DuplicateMconfigAndQuery",
        "tags": [
          "Mconfigs"
        ]
      }
    },
    "/api/ToBackendGroupMetricByDimension": {
      "post": {
        "description": "Group a metric by dimension",
        "operationId": "GroupMetricByDimensionController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGroupMetricByDimensionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGroupMetricByDimensionResponse"
                }
              }
            }
          }
        },
        "summary": "GroupMetricByDimension",
        "tags": [
          "Mconfigs"
        ]
      }
    },
    "/api/ToBackendSuggestDimensionValues": {
      "post": {
        "description": "Build a query to suggest values for a dimension",
        "operationId": "SuggestDimensionValuesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesResponse"
                }
              }
            }
          }
        },
        "summary": "SuggestDimensionValues",
        "tags": [
          "Mconfigs"
        ]
      }
    },
    "/api/ToBackendCreateMember": {
      "post": {
        "description": "Add a user to a project as a member",
        "operationId": "CreateMemberController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateMemberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateMemberResponse"
                }
              }
            }
          }
        },
        "summary": "CreateMember",
        "tags": [
          "Members"
        ]
      }
    },
    "/api/ToBackendDeleteMember": {
      "post": {
        "description": "Remove a member from a project",
        "operationId": "DeleteMemberController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteMemberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteMemberResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteMember",
        "tags": [
          "Members"
        ]
      }
    },
    "/api/ToBackendEditMember": {
      "post": {
        "description": "Update a member's roles",
        "operationId": "EditMemberController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditMemberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditMemberResponse"
                }
              }
            }
          }
        },
        "summary": "EditMember",
        "tags": [
          "Members"
        ]
      }
    },
    "/api/ToBackendGetMembers": {
      "post": {
        "description": "Get a paginated list of project members",
        "operationId": "GetMembersController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetMembersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetMembersResponse"
                }
              }
            }
          }
        },
        "summary": "GetMembers",
        "tags": [
          "Members"
        ]
      }
    },
    "/api/ToBackendGetMemberGivens": {
      "post": {
        "description": "Get effective given values available to a project member",
        "operationId": "GetMemberGivensController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetMemberGivensRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetMemberGivensResponse"
                }
              }
            }
          }
        },
        "summary": "GetMemberGivens",
        "tags": [
          "Members"
        ]
      }
    },
    "/api/ToBackendGetMembersList": {
      "post": {
        "description": "Get the full list of project members",
        "operationId": "GetMembersListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetMembersListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetMembersListResponse"
                }
              }
            }
          }
        },
        "summary": "GetMembersList",
        "tags": [
          "Members"
        ]
      }
    },
    "/api/ToBackendGetSuggestFields": {
      "post": {
        "description": "Get suggested dimension fields for a dashboard or report",
        "operationId": "GetSuggestFieldsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetSuggestFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetSuggestFieldsResponse"
                }
              }
            }
          }
        },
        "summary": "GetSuggestFields",
        "tags": [
          "SuggestFields"
        ]
      }
    },
    "/api/ToBackendSetFavorite": {
      "post": {
        "description": "Set or unset a user favorite Report/Dashboard/Chart",
        "operationId": "SetFavoriteController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetFavoriteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetFavoriteResponse"
                }
              }
            }
          }
        },
        "summary": "SetFavorite",
        "tags": [
          "Favorites"
        ]
      }
    },
    "/api/ToBackendGetModel": {
      "post": {
        "description": "Get a model",
        "operationId": "GetModelController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetModelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetModelResponse"
                }
              }
            }
          }
        },
        "summary": "GetModel",
        "tags": [
          "Models"
        ]
      }
    },
    "/api/ToBackendGetModels": {
      "post": {
        "description": "Get models",
        "operationId": "GetModelsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetModelsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetModelsResponse"
                }
              }
            }
          }
        },
        "summary": "GetModels",
        "tags": [
          "Models"
        ]
      }
    },
    "/api/ToBackendCheckLastNav": {
      "post": {
        "description": "Check if last navigated entities still exist",
        "operationId": "CheckLastNavController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCheckLastNavRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCheckLastNavResponse"
                }
              }
            }
          }
        },
        "summary": "CheckLastNav",
        "tags": [
          "Nav"
        ]
      }
    },
    "/api/ToBackendGetNav": {
      "post": {
        "description": "Get initial navigation context for the current user",
        "operationId": "GetNavController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetNavRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetNavResponse"
                }
              }
            }
          }
        },
        "summary": "GetNav",
        "tags": [
          "Nav"
        ]
      }
    },
    "/api/ToBackendGetOrgUsers": {
      "post": {
        "description": "Get a paginated list of users across org projects",
        "operationId": "GetOrgUsersController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetOrgUsersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetOrgUsersResponse"
                }
              }
            }
          }
        },
        "summary": "GetOrgUsers",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendCreateOrg": {
      "post": {
        "description": "Create a new organization owned by the current user",
        "operationId": "CreateOrgController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateOrgRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateOrgResponse"
                }
              }
            }
          }
        },
        "summary": "CreateOrg",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendDeleteOrg": {
      "post": {
        "description": "Delete an organization and all its projects",
        "operationId": "DeleteOrgController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteOrgRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteOrgResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteOrg",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendGetOrg": {
      "post": {
        "description": "Get an organization",
        "operationId": "GetOrgController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetOrgRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetOrgResponse"
                }
              }
            }
          }
        },
        "summary": "GetOrg",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendGetOrgsList": {
      "post": {
        "description": "Get organizations accessible to the current user",
        "operationId": "GetOrgsListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetOrgsListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetOrgsListResponse"
                }
              }
            }
          }
        },
        "summary": "GetOrgsList",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendIsOrgExist": {
      "post": {
        "description": "Check if an organization with the given name exists",
        "operationId": "IsOrgExistController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendIsOrgExistRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendIsOrgExistResponse"
                }
              }
            }
          }
        },
        "summary": "IsOrgExist",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendSetOrgInfo": {
      "post": {
        "description": "Update an organization's name",
        "operationId": "SetOrgInfoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetOrgInfoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetOrgInfoResponse"
                }
              }
            }
          }
        },
        "summary": "SetOrgInfo",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendSetOrgOwner": {
      "post": {
        "description": "Transfer organization ownership to another verified user",
        "operationId": "SetOrgOwnerController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetOrgOwnerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetOrgOwnerResponse"
                }
              }
            }
          }
        },
        "summary": "SetOrgOwner",
        "tags": [
          "Orgs"
        ]
      }
    },
    "/api/ToBackendCreateProject": {
      "post": {
        "description": "Create a new project",
        "operationId": "CreateProjectController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateProjectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateProjectResponse"
                }
              }
            }
          }
        },
        "summary": "CreateProject",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendDeleteProject": {
      "post": {
        "description": "Delete a project and all its related data",
        "operationId": "DeleteProjectController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteProjectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteProjectResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteProject",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendGenerateProjectRemoteKey": {
      "post": {
        "description": "Generate an SSH key pair for connecting a remote git repository",
        "operationId": "GenerateProjectRemoteKeyController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGenerateProjectRemoteKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGenerateProjectRemoteKeyResponse"
                }
              }
            }
          }
        },
        "summary": "GenerateProjectRemoteKey",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendGetProject": {
      "post": {
        "description": "Get a project",
        "operationId": "GetProjectController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetProjectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetProjectResponse"
                }
              }
            }
          }
        },
        "summary": "GetProject",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendGetProjectsList": {
      "post": {
        "description": "Get organization's projects accessible to the user",
        "operationId": "GetProjectsListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetProjectsListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetProjectsListResponse"
                }
              }
            }
          }
        },
        "summary": "GetProjectsList",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendIsProjectExist": {
      "post": {
        "description": "Check if a project with the given name exists",
        "operationId": "IsProjectExistController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendIsProjectExistRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendIsProjectExistResponse"
                }
              }
            }
          }
        },
        "summary": "IsProjectExist",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendSetProjectApiKey": {
      "post": {
        "description": "Update third-party API keys on a project",
        "operationId": "SetProjectApiKeyController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetProjectApiKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetProjectApiKeyResponse"
                }
              }
            }
          }
        },
        "summary": "SetProjectApiKey",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendSetProjectInfo": {
      "post": {
        "description": "Update a project's info",
        "operationId": "SetProjectInfoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetProjectInfoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetProjectInfoResponse"
                }
              }
            }
          }
        },
        "summary": "SetProjectInfo",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/ToBackendCreateEnv": {
      "post": {
        "description": "Create a new environment for a project",
        "operationId": "CreateEnvController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateEnvRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateEnvResponse"
                }
              }
            }
          }
        },
        "summary": "CreateEnv",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendCreateEnvVar": {
      "post": {
        "description": "Create a new environment variable",
        "operationId": "CreateEnvVarController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateEnvVarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateEnvVarResponse"
                }
              }
            }
          }
        },
        "summary": "CreateEnvVar",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendCreateEnvUser": {
      "post": {
        "description": "Grant a team member access to an environment",
        "operationId": "CreateEnvUserController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateEnvUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateEnvUserResponse"
                }
              }
            }
          }
        },
        "summary": "CreateEnvUser",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendDeleteEnv": {
      "post": {
        "description": "Delete an environment",
        "operationId": "DeleteEnvController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteEnvRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteEnvResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteEnv",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendDeleteEnvVar": {
      "post": {
        "description": "Delete an environment variable",
        "operationId": "DeleteEnvVarController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteEnvVarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteEnvVarResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteEnvVar",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendDeleteEnvUser": {
      "post": {
        "description": "Revoke a team member access to an environment",
        "operationId": "DeleteEnvUserController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteEnvUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteEnvUserResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteEnvUser",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendEditEnvVar": {
      "post": {
        "description": "Update the value of an environment variable",
        "operationId": "EditEnvVarController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditEnvVarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditEnvVarResponse"
                }
              }
            }
          }
        },
        "summary": "EditEnvVar",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendGetEnvs": {
      "post": {
        "description": "Get environments accessible to the user",
        "operationId": "GetEnvsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetEnvsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetEnvsResponse"
                }
              }
            }
          }
        },
        "summary": "GetEnvs",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendGetEnvsList": {
      "post": {
        "description": "Get a list of project environments",
        "operationId": "GetEnvsListController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetEnvsListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetEnvsListResponse"
                }
              }
            }
          }
        },
        "summary": "GetEnvsList",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendEditEnvFallbacks": {
      "post": {
        "description": "Update production fallback for an environment",
        "operationId": "EditEnvFallbacksController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditEnvFallbacksRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditEnvFallbacksResponse"
                }
              }
            }
          }
        },
        "summary": "EditEnvFallbacks",
        "tags": [
          "Envs"
        ]
      }
    },
    "/api/ToBackendCreateGiven": {
      "post": {
        "description": "Create a project given",
        "operationId": "CreateGivenController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateGivenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateGivenResponse"
                }
              }
            }
          }
        },
        "summary": "CreateGiven",
        "tags": [
          "Givens"
        ]
      }
    },
    "/api/ToBackendDeleteGiven": {
      "post": {
        "description": "Delete a project given",
        "operationId": "DeleteGivenController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteGivenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteGivenResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteGiven",
        "tags": [
          "Givens"
        ]
      }
    },
    "/api/ToBackendEditGiven": {
      "post": {
        "description": "Edit a project given",
        "operationId": "EditGivenController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditGivenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditGivenResponse"
                }
              }
            }
          }
        },
        "summary": "EditGiven",
        "tags": [
          "Givens"
        ]
      }
    },
    "/api/ToBackendGetGivens": {
      "post": {
        "description": "Get project givens",
        "operationId": "GetGivensController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetGivensRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetGivensResponse"
                }
              }
            }
          }
        },
        "summary": "GetGivens",
        "tags": [
          "Givens"
        ]
      }
    },
    "/api/ToBackendCreateRole": {
      "post": {
        "description": "Create a project role",
        "operationId": "CreateRoleController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateRoleResponse"
                }
              }
            }
          }
        },
        "summary": "CreateRole",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/ToBackendCreateRoleGiven": {
      "post": {
        "description": "Create a project role given",
        "operationId": "CreateRoleGivenController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateRoleGivenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateRoleGivenResponse"
                }
              }
            }
          }
        },
        "summary": "CreateRoleGiven",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/ToBackendEditRoleGiven": {
      "post": {
        "description": "Edit a project role given",
        "operationId": "EditRoleGivenController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditRoleGivenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditRoleGivenResponse"
                }
              }
            }
          }
        },
        "summary": "EditRoleGiven",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/ToBackendDeleteRoleGiven": {
      "post": {
        "description": "Delete a project role given",
        "operationId": "DeleteRoleGivenController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteRoleGivenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteRoleGivenResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteRoleGiven",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/ToBackendDeleteRole": {
      "post": {
        "description": "Delete a project role",
        "operationId": "DeleteRoleController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteRoleResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteRole",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/ToBackendGetRoles": {
      "post": {
        "description": "Get project roles",
        "operationId": "GetRolesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetRolesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetRolesResponse"
                }
              }
            }
          }
        },
        "summary": "GetRoles",
        "tags": [
          "Roles"
        ]
      }
    },
    "/api/ToBackendCancelQueries": {
      "post": {
        "description": "Cancel running queries for specified mconfigs",
        "operationId": "CancelQueriesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCancelQueriesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCancelQueriesResponse"
                }
              }
            }
          }
        },
        "summary": "CancelQueries",
        "tags": [
          "Queries"
        ]
      }
    },
    "/api/ToBackendGetQueries": {
      "post": {
        "description": "Get queries for specified mconfigs",
        "operationId": "GetQueriesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetQueriesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetQueriesResponse"
                }
              }
            }
          }
        },
        "summary": "GetQueries",
        "tags": [
          "Queries"
        ]
      }
    },
    "/api/ToBackendGetQuery": {
      "post": {
        "description": "Get a query",
        "operationId": "GetQueryController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetQueryResponse"
                }
              }
            }
          }
        },
        "summary": "GetQuery",
        "tags": [
          "Queries"
        ]
      }
    },
    "/api/ToBackendGetQueryInfo": {
      "post": {
        "description": "Get Malloy, SQL, and data",
        "operationId": "GetQueryInfoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetQueryInfoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetQueryInfoResponse"
                }
              }
            }
          }
        },
        "summary": "GetQueryInfo",
        "tags": [
          "Queries"
        ]
      }
    },
    "/api/ToBackendRunQueries": {
      "post": {
        "description": "Run queries for specified mconfigs",
        "operationId": "RunQueriesController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRunQueriesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRunQueriesResponse"
                }
              }
            }
          }
        },
        "summary": "RunQueries",
        "tags": [
          "Queries"
        ]
      }
    },
    "/api/ToBackendRunQueriesDry": {
      "post": {
        "description": "Dry-run queries",
        "operationId": "RunQueriesDryController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRunQueriesDryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRunQueriesDryResponse"
                }
              }
            }
          }
        },
        "summary": "RunQueriesDry",
        "tags": [
          "Queries"
        ]
      }
    },
    "/api/ToBackendCloneTestRepo": {
      "post": {
        "description": "Clone a test fixture repo on disk for end-to-end tests",
        "operationId": "CloneTestRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCloneTestRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCloneTestRepoResponse"
                }
              }
            }
          }
        },
        "summary": "CloneTestRepo",
        "tags": [
          "TestRoutes"
        ]
      }
    },
    "/api/ToBackendDeleteRecords": {
      "post": {
        "description": "Delete test orgs, projects, users and related records",
        "operationId": "DeleteRecordsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteRecordsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteRecordsResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteRecords",
        "tags": [
          "TestRoutes"
        ]
      }
    },
    "/api/ToBackendGetRebuildStruct": {
      "post": {
        "description": "Rebuild a project struct for tests",
        "operationId": "GetRebuildStructController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetRebuildStructRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetRebuildStructResponse"
                }
              }
            }
          }
        },
        "summary": "GetRebuildStruct",
        "tags": [
          "TestRoutes"
        ]
      }
    },
    "/api/ToBackendSeedRecords": {
      "post": {
        "description": "Seed users, orgs, projects and related records for tests",
        "operationId": "SeedRecordsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSeedRecordsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSeedRecordsResponse"
                }
              }
            }
          }
        },
        "summary": "SeedRecords",
        "tags": [
          "TestRoutes"
        ]
      }
    },
    "/api/ToBackendCommitRepo": {
      "post": {
        "description": "Commit local changes in a repo branch",
        "operationId": "CommitRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCommitRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCommitRepoResponse"
                }
              }
            }
          }
        },
        "summary": "CommitRepo",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendGetRepo": {
      "post": {
        "description": "Get repo catalog for a branch",
        "operationId": "GetRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetRepoResponse"
                }
              }
            }
          }
        },
        "summary": "GetRepo",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendMergeRepo": {
      "post": {
        "description": "Merge another branch into the current branch",
        "operationId": "MergeRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendMergeRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendMergeRepoResponse"
                }
              }
            }
          }
        },
        "summary": "MergeRepo",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendPullRepo": {
      "post": {
        "description": "Pull remote changes",
        "operationId": "PullRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendPullRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendPullRepoResponse"
                }
              }
            }
          }
        },
        "summary": "PullRepo",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendPushRepo": {
      "post": {
        "description": "Push branch commits to the remote repo",
        "operationId": "PushRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendPushRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendPushRepoResponse"
                }
              }
            }
          }
        },
        "summary": "PushRepo",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendRevertRepoToLastCommit": {
      "post": {
        "description": "Discard uncommitted changes and revert to the last commit",
        "operationId": "RevertRepoToLastCommitController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRevertRepoToLastCommitRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRevertRepoToLastCommitResponse"
                }
              }
            }
          }
        },
        "summary": "RevertRepoToLastCommit",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendRevertRepoToRemote": {
      "post": {
        "description": "Reset the repo branch to match the remote",
        "operationId": "RevertRepoToRemoteController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRevertRepoToRemoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRevertRepoToRemoteResponse"
                }
              }
            }
          }
        },
        "summary": "RevertRepoToRemote",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendSyncRepo": {
      "post": {
        "description": "Sync local git repo state with server git repo state",
        "operationId": "SyncRepoController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSyncRepoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSyncRepoResponse"
                }
              }
            }
          }
        },
        "summary": "SyncRepo",
        "tags": [
          "Repos"
        ]
      }
    },
    "/api/ToBackendSpecialRebuildStructs": {
      "post": {
        "description": "Rebuild state for projects of specified users",
        "operationId": "SpecialRebuildStructsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSpecialRebuildStructsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSpecialRebuildStructsResponse"
                }
              }
            }
          }
        },
        "summary": "SpecialRebuildStructs",
        "tags": [
          "Special"
        ]
      }
    },
    "/api/ToBackendRun": {
      "post": {
        "description": "Run dashboards, charts, and reports in batch",
        "operationId": "RunController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRunRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRunResponse"
                }
              }
            }
          }
        },
        "summary": "Run",
        "tags": [
          "Run"
        ]
      }
    },
    "/api/ToBackendGetServerUsers": {
      "post": {
        "description": "Get a paginated list of all users across all organizations",
        "operationId": "GetServerUsersController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetServerUsersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetServerUsersResponse"
                }
              }
            }
          }
        },
        "summary": "GetServerUsers",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendGetState": {
      "post": {
        "description": "Get project state for specified repository, branch and environment",
        "operationId": "GetStateController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetStateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetStateResponse"
                }
              }
            }
          }
        },
        "summary": "GetState",
        "tags": [
          "State"
        ]
      }
    },
    "/api/ToBackendGetStruct": {
      "post": {
        "description": "Get struct",
        "operationId": "GetStructController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetStructRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetStructResponse"
                }
              }
            }
          }
        },
        "summary": "GetStruct",
        "tags": [
          "Structs"
        ]
      }
    },
    "/api/ToBackendConfirmUserEmail": {
      "post": {
        "description": "Verify the user's email using the verification token",
        "operationId": "ConfirmUserEmailController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendConfirmUserEmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendConfirmUserEmailResponse"
                }
              }
            }
          }
        },
        "summary": "ConfirmUserEmail",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendCompleteUserRegistration": {
      "post": {
        "description": "Verify email, set password and finish registration",
        "operationId": "CompleteUserRegistrationController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCompleteUserRegistrationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCompleteUserRegistrationResponse"
                }
              }
            }
          }
        },
        "summary": "CompleteUserRegistration",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendDeleteUser": {
      "post": {
        "description": "Delete the current user",
        "operationId": "DeleteUserController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteUserResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteUser",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendGetUserGivens": {
      "post": {
        "description": "Get the current user's normalized selected givens and effective member givens",
        "operationId": "GetUserGivensController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetUserGivensRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetUserGivensResponse"
                }
              }
            }
          }
        },
        "summary": "GetUserGivens",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendGetUserProfile": {
      "post": {
        "description": "Get the current user's profile",
        "operationId": "GetUserProfileController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetUserProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetUserProfileResponse"
                }
              }
            }
          }
        },
        "summary": "GetUserProfile",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendLoginUser": {
      "post": {
        "description": "Authenticate a user and issue a JWT token",
        "operationId": "LoginUserController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendLoginUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendLoginUserResponse"
                }
              }
            }
          }
        },
        "summary": "LoginUser",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendLogoutUser": {
      "post": {
        "description": "Logout the current user",
        "operationId": "LogoutUserController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendLogoutUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendLogoutUserResponse"
                }
              }
            }
          }
        },
        "summary": "LogoutUser",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendRegisterUser": {
      "post": {
        "description": "Register a new user and send an email verification",
        "operationId": "RegisterUserController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendRegisterUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendRegisterUserResponse"
                }
              }
            }
          }
        },
        "summary": "RegisterUser",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendResendUserEmail": {
      "post": {
        "description": "Resend the email verification message to the user",
        "operationId": "ResendUserEmailController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendResendUserEmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendResendUserEmailResponse"
                }
              }
            }
          }
        },
        "summary": "ResendUserEmail",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendResetUserPassword": {
      "post": {
        "description": "Email a password reset link with a token",
        "operationId": "ResetUserPasswordController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendResetUserPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendResetUserPasswordResponse"
                }
              }
            }
          }
        },
        "summary": "ResetUserPassword",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendSetUserName": {
      "post": {
        "description": "Update the user's first and last name",
        "operationId": "SetUserNameController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetUserNameRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetUserNameResponse"
                }
              }
            }
          }
        },
        "summary": "SetUserName",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendSetUserUi": {
      "post": {
        "description": "Update the user's UI preferences",
        "operationId": "SetUserUiController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSetUserUiRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSetUserUiResponse"
                }
              }
            }
          }
        },
        "summary": "SetUserUi",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendUpdateUserPassword": {
      "post": {
        "description": "Set a new password using a valid reset token",
        "operationId": "UpdateUserPasswordController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendUpdateUserPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendUpdateUserPasswordResponse"
                }
              }
            }
          }
        },
        "summary": "UpdateUserPassword",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendGenerateUserApiKey": {
      "post": {
        "description": "Generate and store a new personal API key for the current user",
        "operationId": "GenerateUserApiKeyController",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGenerateUserApiKeyResponse"
                }
              }
            }
          }
        },
        "summary": "GenerateUserApiKey",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendDeleteUserApiKey": {
      "post": {
        "description": "Revoke the current user's personal API key",
        "operationId": "DeleteUserApiKeyController",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteUserApiKeyResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteUserApiKey",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendStartUserCodexAuth": {
      "post": {
        "description": "Start OpenAI device-code OAuth flow for Codex",
        "operationId": "StartUserCodexAuthController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendStartUserCodexAuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendStartUserCodexAuthResponse"
                }
              }
            }
          }
        },
        "summary": "StartUserCodexAuth",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendPollUserCodexAuth": {
      "post": {
        "description": "Poll OpenAI for device-code authorization; on success stores Codex auth",
        "operationId": "PollUserCodexAuthController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendPollUserCodexAuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendPollUserCodexAuthResponse"
                }
              }
            }
          }
        },
        "summary": "PollUserCodexAuth",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendDeleteUserCodexAuth": {
      "post": {
        "description": "Clear the user's Codex auth credentials",
        "operationId": "DeleteUserCodexAuthController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteUserCodexAuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteUserCodexAuthResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteUserCodexAuth",
        "tags": [
          "Users"
        ]
      }
    },
    "/api/ToBackendCreateDraftChart": {
      "post": {
        "description": "Create a draft chart",
        "operationId": "CreateDraftChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateDraftChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateDraftChartResponse"
                }
              }
            }
          }
        },
        "summary": "CreateDraftChart",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendDeleteChart": {
      "post": {
        "description": "Delete a saved chart",
        "operationId": "DeleteChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteChartResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteChart",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendDeleteDraftCharts": {
      "post": {
        "description": "Delete the current user's draft charts",
        "operationId": "DeleteDraftChartsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteDraftChartsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteDraftChartsResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteDraftCharts",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendEditDraftChart": {
      "post": {
        "description": "Edit a draft chart",
        "operationId": "EditDraftChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditDraftChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditDraftChartResponse"
                }
              }
            }
          }
        },
        "summary": "EditDraftChart",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendGetExplorerChartTab": {
      "post": {
        "description": "Rebuild explorer session chart (tab) against the current struct",
        "operationId": "GetExplorerChartTabController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetExplorerChartTabRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetExplorerChartTabResponse"
                }
              }
            }
          }
        },
        "summary": "GetExplorerChartTab",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendGetChart": {
      "post": {
        "description": "Get a chart",
        "operationId": "GetChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetChartResponse"
                }
              }
            }
          }
        },
        "summary": "GetChart",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendGetCharts": {
      "post": {
        "description": "List charts the user can access",
        "operationId": "GetChartsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetChartsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetChartsResponse"
                }
              }
            }
          }
        },
        "summary": "GetCharts",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendSaveCreateChart": {
      "post": {
        "description": "Save a draft chart",
        "operationId": "SaveCreateChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveCreateChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveCreateChartResponse"
                }
              }
            }
          }
        },
        "summary": "SaveCreateChart",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendSaveModifyChart": {
      "post": {
        "description": "Save changes to an existing chart",
        "operationId": "SaveModifyChartController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveModifyChartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveModifyChartResponse"
                }
              }
            }
          }
        },
        "summary": "SaveModifyChart",
        "tags": [
          "Charts"
        ]
      }
    },
    "/api/ToBackendCreateDraftDashboard": {
      "post": {
        "description": "Create a draft dashboard from an existing dashboard",
        "operationId": "CreateDraftDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateDraftDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateDraftDashboardResponse"
                }
              }
            }
          }
        },
        "summary": "CreateDraftDashboard",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendDeleteDashboard": {
      "post": {
        "description": "Delete a dashboard",
        "operationId": "DeleteDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteDashboardResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteDashboard",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendDeleteDraftDashboards": {
      "post": {
        "description": "Delete the current user's draft dashboards",
        "operationId": "DeleteDraftDashboardsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteDraftDashboardsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteDraftDashboardsResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteDraftDashboards",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendEditDraftDashboard": {
      "post": {
        "description": "Edit tiles and fields of an existing draft dashboard",
        "operationId": "EditDraftDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditDraftDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditDraftDashboardResponse"
                }
              }
            }
          }
        },
        "summary": "EditDraftDashboard",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendGetDashboard": {
      "post": {
        "description": "Get a dashboard",
        "operationId": "GetDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetDashboardResponse"
                }
              }
            }
          }
        },
        "summary": "GetDashboard",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendGetDashboards": {
      "post": {
        "description": "Get dashboards",
        "operationId": "GetDashboardsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetDashboardsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetDashboardsResponse"
                }
              }
            }
          }
        },
        "summary": "GetDashboards",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendSaveCreateDashboard": {
      "post": {
        "description": "Save a new dashboard",
        "operationId": "SaveCreateDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveCreateDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveCreateDashboardResponse"
                }
              }
            }
          }
        },
        "summary": "SaveCreateDashboard",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendSaveModifyDashboard": {
      "post": {
        "description": "Save changes to an existing dashboard",
        "operationId": "SaveModifyDashboardController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveModifyDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveModifyDashboardResponse"
                }
              }
            }
          }
        },
        "summary": "SaveModifyDashboard",
        "tags": [
          "Dashboards"
        ]
      }
    },
    "/api/ToBackendCreateDraftReport": {
      "post": {
        "description": "Create a draft report from an existing report",
        "operationId": "CreateDraftReportController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendCreateDraftReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCreateDraftReportResponse"
                }
              }
            }
          }
        },
        "summary": "CreateDraftReport",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendDeleteReport": {
      "post": {
        "description": "Delete a report",
        "operationId": "DeleteReportController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteReportResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteReport",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendDeleteDraftReports": {
      "post": {
        "description": "Delete the user's draft reports",
        "operationId": "DeleteDraftReportsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendDeleteDraftReportsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendDeleteDraftReportsResponse"
                }
              }
            }
          }
        },
        "summary": "DeleteDraftReports",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendEditDraftReport": {
      "post": {
        "description": "Edit a draft report",
        "operationId": "EditDraftReportController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendEditDraftReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendEditDraftReportResponse"
                }
              }
            }
          }
        },
        "summary": "EditDraftReport",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendGetReport": {
      "post": {
        "description": "Get a report",
        "operationId": "GetReportController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetReportResponse"
                }
              }
            }
          }
        },
        "summary": "GetReport",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendGetReports": {
      "post": {
        "description": "List reports",
        "operationId": "GetReportsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetReportsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetReportsResponse"
                }
              }
            }
          }
        },
        "summary": "GetReports",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendSaveCreateReport": {
      "post": {
        "description": "Save a draft report",
        "operationId": "SaveCreateReportController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveCreateReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveCreateReportResponse"
                }
              }
            }
          }
        },
        "summary": "SaveCreateReport",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendSaveModifyReport": {
      "post": {
        "description": "Save changes to an existing report",
        "operationId": "SaveModifyReportController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendSaveModifyReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendSaveModifyReportResponse"
                }
              }
            }
          }
        },
        "summary": "SaveModifyReport",
        "tags": [
          "Reports"
        ]
      }
    },
    "/api/ToBackendTelemetryLogs": {
      "post": {
        "description": "Forward OTLP log payloads to the telemetry collector",
        "operationId": "TelemetryLogsController",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "summary": "TelemetryLogs",
        "tags": [
          "Telemetry"
        ]
      }
    },
    "/api/ToBackendTelemetryMetrics": {
      "post": {
        "description": "Forward OTLP metric payloads to the telemetry collector",
        "operationId": "TelemetryMetricsController",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "summary": "TelemetryMetrics",
        "tags": [
          "Telemetry"
        ]
      }
    },
    "/api/ToBackendTelemetryTraces": {
      "post": {
        "description": "Forward OTLP trace payloads to the telemetry collector",
        "operationId": "TelemetryTracesController",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "summary": "TelemetryTraces",
        "tags": [
          "Telemetry"
        ]
      }
    },
    "/api/ToBackendGetSkills": {
      "post": {
        "description": "Get contents of Mprove SKILL.md files",
        "operationId": "GetSkillsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetSkillsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetSkillsResponse"
                }
              }
            }
          }
        },
        "summary": "GetSkills",
        "tags": [
          "Skills"
        ]
      }
    },
    "/api/ToBackendCheckSignUp": {
      "post": {
        "description": "Check whether sign-up is restricted to invited users only",
        "operationId": "CheckSignUpController",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendCheckSignUpResponse"
                }
              }
            }
          }
        },
        "summary": "CheckSignUp",
        "tags": [
          "Check"
        ]
      }
    }
  },
  "info": {
    "title": "mprove backend",
    "description": "",
    "version": "12.0.27",
    "contact": {}
  },
  "tags": [
    {
      "name": "Avatars",
      "description": ""
    },
    {
      "name": "Branches",
      "description": ""
    },
    {
      "name": "CachedColumns",
      "description": ""
    },
    {
      "name": "Catalogs",
      "description": ""
    },
    {
      "name": "Charts",
      "description": ""
    },
    {
      "name": "Check",
      "description": ""
    },
    {
      "name": "Connections",
      "description": ""
    },
    {
      "name": "Dashboards",
      "description": ""
    },
    {
      "name": "Envs",
      "description": ""
    },
    {
      "name": "Files",
      "description": ""
    },
    {
      "name": "Folders",
      "description": ""
    },
    {
      "name": "Givens",
      "description": ""
    },
    {
      "name": "Mconfigs",
      "description": ""
    },
    {
      "name": "Members",
      "description": ""
    },
    {
      "name": "Models",
      "description": ""
    },
    {
      "name": "Nav",
      "description": ""
    },
    {
      "name": "Orgs",
      "description": ""
    },
    {
      "name": "Projects",
      "description": ""
    },
    {
      "name": "Queries",
      "description": ""
    },
    {
      "name": "Reports",
      "description": ""
    },
    {
      "name": "Repos",
      "description": ""
    },
    {
      "name": "Run",
      "description": ""
    },
    {
      "name": "Sessions",
      "description": ""
    },
    {
      "name": "Skills",
      "description": ""
    },
    {
      "name": "Special",
      "description": ""
    },
    {
      "name": "State",
      "description": ""
    },
    {
      "name": "Structs",
      "description": ""
    },
    {
      "name": "SuggestFields",
      "description": ""
    },
    {
      "name": "Telemetry",
      "description": ""
    },
    {
      "name": "TestRoutes",
      "description": ""
    },
    {
      "name": "Users",
      "description": ""
    },
    {
      "name": "Favorites"
    },
    {
      "name": "Roles"
    }
  ],
  "servers": [
    {
      "url": "http://localhost:3000/"
    }
  ],
  "components": {
    "schemas": {
      "ToBackendCreateEditorSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateEditorSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateEditorSessionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "sandboxType": {
            "type": "string",
            "enum": [
              "E2B"
            ]
          },
          "provider": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "variant": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "initialBranch": {
            "type": "string"
          },
          "firstMessage": {
            "type": "string",
            "nullable": true
          },
          "messageId": {
            "type": "string"
          },
          "partId": {
            "type": "string"
          },
          "useCodex": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "sandboxType",
          "provider",
          "model",
          "agent",
          "variant",
          "envId",
          "initialBranch",
          "messageId",
          "partId",
          "useCodex"
        ]
      },
      "ToBackendCreateEditorSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEditorSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEditorSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEditorSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateEditorSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateEditorSessionResponsePayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendCreateEditorSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEditorSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEditorSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateExplorerSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateExplorerSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateExplorerSessionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "variant": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "firstMessage": {
            "type": "string",
            "nullable": true
          },
          "messageId": {
            "type": "string"
          },
          "partId": {
            "type": "string"
          },
          "useCodex": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "provider",
          "model",
          "variant",
          "branchId",
          "envId",
          "messageId",
          "partId",
          "useCodex"
        ]
      },
      "ToBackendCreateExplorerSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateExplorerSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateExplorerSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateExplorerSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateExplorerSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateExplorerSessionResponsePayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendCreateExplorerSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateExplorerSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateExplorerSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateSessionSseTicketRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateSessionSseTicket"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateSessionSseTicketRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId"
        ]
      },
      "ToBackendCreateSessionSseTicketRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateSessionSseTicketRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateSessionSseTicketRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateSessionSseTicketResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateSessionSseTicket"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateSessionSseTicketResponsePayload": {
        "type": "object",
        "properties": {
          "sseTicket": {
            "type": "string"
          }
        },
        "required": [
          "sseTicket"
        ]
      },
      "ToBackendCreateSessionSseTicketResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateSessionSseTicketResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateSessionSseTicketResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSendMessageToExplorerSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSendMessageToExplorerSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSendMessageToExplorerSessionRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "messageId": {
            "type": "string",
            "nullable": true
          },
          "partId": {
            "type": "string",
            "nullable": true
          },
          "interactionType": {
            "type": "string",
            "enum": [
              "Message",
              "Question",
              "Permission",
              "Stop"
            ]
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "variant": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "sessionId",
          "interactionType"
        ]
      },
      "ToBackendSendMessageToExplorerSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSendMessageToExplorerSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSendMessageToExplorerSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSendMessageToExplorerSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSendMessageToExplorerSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSendMessageToExplorerSessionResponsePayload": {
        "type": "object",
        "properties": {
          "session": {
            "$ref": "#/components/schemas/SessionApi"
          }
        },
        "required": [
          "session"
        ]
      },
      "SessionApi": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "opencodeSessionId": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "Explorer",
              "Editor"
            ]
          },
          "provider": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "lastMessageProviderModel": {
            "type": "string",
            "nullable": true
          },
          "lastMessageVariant": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string"
          },
          "archiveReason": {
            "type": "string",
            "enum": [
              "User",
              "Expire",
              "Commit"
            ],
            "nullable": true
          },
          "pauseReason": {
            "type": "string",
            "enum": [
              "User",
              "Idle",
              "Safe",
              "External"
            ],
            "nullable": true
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "initialBranch": {
            "type": "string",
            "nullable": true
          },
          "envId": {
            "type": "string",
            "nullable": true
          },
          "initialCommit": {
            "type": "string",
            "nullable": true
          },
          "createdTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lastActivityTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "firstMessage": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "useCodex": {
            "type": "boolean"
          },
          "closedExplorerTabIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "required": [
          "sessionId",
          "type",
          "provider",
          "agent",
          "status",
          "repoId",
          "branchId",
          "createdTs",
          "lastActivityTs",
          "useCodex"
        ]
      },
      "ToBackendSendMessageToExplorerSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSendMessageToExplorerSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSendMessageToExplorerSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSendMessageToEditorSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSendMessageToEditorSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSendMessageToEditorSessionRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "messageId": {
            "type": "string",
            "nullable": true
          },
          "partId": {
            "type": "string",
            "nullable": true
          },
          "interactionType": {
            "type": "string",
            "enum": [
              "Message",
              "Question",
              "Permission",
              "Stop"
            ]
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "variant": {
            "type": "string",
            "nullable": true
          },
          "agent": {
            "type": "string",
            "nullable": true
          },
          "permissionId": {
            "type": "string",
            "nullable": true
          },
          "reply": {
            "type": "string",
            "nullable": true
          },
          "questionId": {
            "type": "string",
            "nullable": true
          },
          "answers": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "required": [
          "sessionId",
          "interactionType"
        ]
      },
      "ToBackendSendMessageToEditorSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSendMessageToEditorSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSendMessageToEditorSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSendMessageToEditorSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSendMessageToEditorSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSendMessageToEditorSessionResponsePayload": {
        "type": "object",
        "properties": {
          "session": {
            "$ref": "#/components/schemas/SessionApi"
          }
        },
        "required": [
          "session"
        ]
      },
      "ToBackendSendMessageToEditorSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSendMessageToEditorSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSendMessageToEditorSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteSessionRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId"
        ]
      },
      "ToBackendDeleteSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteSessionResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendArchiveSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendArchiveSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendArchiveSessionRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId"
        ]
      },
      "ToBackendArchiveSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendArchiveSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendArchiveSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendArchiveSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendArchiveSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendArchiveSessionResponsePayload": {
        "type": "object",
        "properties": {
          "session": {
            "$ref": "#/components/schemas/SessionApi"
          }
        },
        "required": [
          "session"
        ]
      },
      "ToBackendArchiveSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendArchiveSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendArchiveSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPauseEditorSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendPauseEditorSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendPauseEditorSessionRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId"
        ]
      },
      "ToBackendPauseEditorSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPauseEditorSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPauseEditorSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPauseEditorSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendPauseEditorSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendPauseEditorSessionResponsePayload": {
        "type": "object",
        "properties": {
          "session": {
            "$ref": "#/components/schemas/SessionApi"
          }
        },
        "required": [
          "session"
        ]
      },
      "ToBackendPauseEditorSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPauseEditorSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPauseEditorSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSessionsListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetSessionsList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetSessionsListRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "currentSessionId": {
            "type": "string",
            "nullable": true
          },
          "includeArchived": {
            "type": "boolean",
            "nullable": true
          },
          "archivedLimit": {
            "type": "number",
            "nullable": true
          },
          "archivedLastCreatedTs": {
            "type": "number",
            "nullable": true
          },
          "sessionType": {
            "type": "string",
            "enum": [
              "Explorer",
              "Editor"
            ]
          }
        },
        "required": [
          "projectId",
          "sessionType"
        ]
      },
      "ToBackendGetSessionsListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSessionsListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSessionsListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSessionsListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetSessionsList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetSessionsListResponsePayload": {
        "type": "object",
        "properties": {
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionApi"
            }
          },
          "hasMoreArchived": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "sessions"
        ]
      },
      "ToBackendGetSessionsListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSessionsListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSessionsListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSessionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetSession"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetSessionRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "isFetchFromOpencode": {
            "type": "boolean"
          }
        },
        "required": [
          "sessionId",
          "isFetchFromOpencode"
        ]
      },
      "ToBackendGetSessionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSessionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSessionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSessionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetSession"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetSessionResponsePayload": {
        "type": "object",
        "properties": {
          "session": {
            "$ref": "#/components/schemas/SessionApi"
          },
          "ocSession": {
            "$ref": "#/components/schemas/OcSessionApi"
          },
          "lastEventIndex": {
            "type": "number"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionMessageApi"
            }
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionPartApi"
            }
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionEventApi"
            }
          },
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionApi"
            }
          },
          "hasMoreArchived": {
            "type": "boolean"
          }
        },
        "required": [
          "session",
          "ocSession",
          "lastEventIndex",
          "messages",
          "parts",
          "events",
          "sessions",
          "hasMoreArchived"
        ]
      },
      "OcSessionApi": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "todos": {
            "type": "array",
            "items": {},
            "nullable": true
          },
          "questions": {
            "type": "array",
            "items": {},
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {},
            "nullable": true
          },
          "ocSessionStatus": {
            "nullable": true
          },
          "lastSessionError": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "nullable": true
          },
          "isLastErrorRecovered": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "sessionId"
        ]
      },
      "SessionMessageApi": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          },
          "sessionId": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "ocMessage": {}
        },
        "required": [
          "messageId",
          "sessionId",
          "role",
          "ocMessage"
        ]
      },
      "SessionPartApi": {
        "type": "object",
        "properties": {
          "partId": {
            "type": "string"
          },
          "messageId": {
            "type": "string"
          },
          "sessionId": {
            "type": "string"
          },
          "ocPart": {}
        },
        "required": [
          "partId",
          "messageId",
          "sessionId",
          "ocPart"
        ]
      },
      "SessionEventApi": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string"
          },
          "eventIndex": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "eventType": {
            "type": "string"
          },
          "ocEvent": {}
        },
        "required": [
          "eventId",
          "eventIndex",
          "eventType",
          "ocEvent"
        ]
      },
      "ToBackendGetSessionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSessionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSessionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCloseExplorerSessionTabRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCloseExplorerSessionTab"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCloseExplorerSessionTabRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "closedExplorerTabIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "sessionId",
          "closedExplorerTabIds"
        ]
      },
      "ToBackendCloseExplorerSessionTabRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCloseExplorerSessionTabRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCloseExplorerSessionTabRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCloseExplorerSessionTabResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCloseExplorerSessionTab"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCloseExplorerSessionTabResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendCloseExplorerSessionTabResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCloseExplorerSessionTabResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCloseExplorerSessionTabResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetSessionTitleRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetSessionTitle"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetSessionTitleRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "sessionId",
          "title"
        ]
      },
      "ToBackendSetSessionTitleRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetSessionTitleRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetSessionTitleRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetSessionTitleResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetSessionTitle"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetSessionTitleResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendSetSessionTitleResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetSessionTitleResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetSessionTitleResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSessionProviderModelsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetSessionProviderModels"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetSessionProviderModelsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "sessionTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "Explorer",
                "Editor"
              ]
            }
          },
          "forceLoadFromCache": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "sessionTypes"
        ]
      },
      "ToBackendGetSessionProviderModelsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSessionProviderModelsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSessionProviderModelsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSessionProviderModelsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetSessionProviderModels"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetSessionProviderModelsResponsePayload": {
        "type": "object",
        "properties": {
          "modelsOpencode": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionModelApi"
            }
          },
          "modelsAi": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionModelApi"
            }
          }
        },
        "required": [
          "modelsOpencode",
          "modelsAi"
        ]
      },
      "SessionModelApi": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "providerId": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "contextLimit": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name",
          "providerId",
          "providerName"
        ]
      },
      "ToBackendGetSessionProviderModelsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSessionProviderModelsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSessionProviderModelsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetAvatarBigRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetAvatarBig"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetAvatarBigRequestPayload": {
        "type": "object",
        "properties": {
          "avatarUserId": {
            "type": "string"
          }
        },
        "required": [
          "avatarUserId"
        ]
      },
      "ToBackendGetAvatarBigRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetAvatarBigRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetAvatarBigRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetAvatarBigResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetAvatarBig"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetAvatarBigResponsePayload": {
        "type": "object",
        "properties": {
          "avatarSmall": {
            "type": "string"
          },
          "avatarBig": {
            "type": "string"
          }
        },
        "required": [
          "avatarSmall",
          "avatarBig"
        ]
      },
      "ToBackendGetAvatarBigResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetAvatarBigResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetAvatarBigResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetAvatarRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetAvatar"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetAvatarRequestPayload": {
        "type": "object",
        "properties": {
          "avatarBig": {
            "type": "string",
            "nullable": true
          },
          "avatarSmall": {
            "type": "string"
          }
        },
        "required": [
          "avatarSmall"
        ]
      },
      "ToBackendSetAvatarRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetAvatarRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetAvatarRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetAvatarResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetAvatar"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetAvatarResponsePayload": {
        "type": "object",
        "properties": {
          "avatarSmall": {
            "type": "string"
          },
          "avatarBig": {
            "type": "string"
          }
        },
        "required": [
          "avatarSmall",
          "avatarBig"
        ]
      },
      "ToBackendSetAvatarResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetAvatarResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetAvatarResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateBranchRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateBranch"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateBranchRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "newBranchId": {
            "type": "string"
          },
          "fromBranchId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "newBranchId",
          "fromBranchId",
          "repoId"
        ]
      },
      "ToBackendCreateBranchRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateBranchRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateBranchRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateBranchResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateBranch"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateBranchResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendCreateBranchResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateBranchResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateBranchResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteBranchRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteBranch"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteBranchRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId"
        ]
      },
      "ToBackendDeleteBranchRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteBranchRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteBranchRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteBranchResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteBranch"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteBranchResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteBranchResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteBranchResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteBranchResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetBranchesListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetBranchesList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetBranchesListRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetBranchesListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetBranchesListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetBranchesListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetBranchesListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetBranchesList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetBranchesListResponsePayload": {
        "type": "object",
        "properties": {
          "branchesList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendGetBranchesListResponsePayloadBranchesItem"
            }
          },
          "sessionsList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionApi"
            }
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          }
        },
        "required": [
          "branchesList",
          "sessionsList",
          "userMember"
        ]
      },
      "ToBackendGetBranchesListResponsePayloadBranchesItem": {
        "type": "object",
        "properties": {
          "repoId": {
            "type": "string"
          },
          "repoType": {
            "type": "string",
            "enum": [
              "production",
              "dev",
              "session"
            ]
          },
          "branchId": {
            "type": "string"
          }
        },
        "required": [
          "repoId",
          "repoType",
          "branchId"
        ]
      },
      "Member": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "memberId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "avatarSmall": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isAdmin": {
            "type": "boolean"
          },
          "isEditor": {
            "type": "boolean"
          },
          "isExplorer": {
            "type": "boolean"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "memberId",
          "email",
          "alias",
          "firstName",
          "lastName",
          "fullName",
          "avatarSmall",
          "roles",
          "isAdmin",
          "isEditor",
          "isExplorer",
          "serverTs"
        ]
      },
      "ToBackendGetBranchesListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetBranchesListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetBranchesListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendIsBranchExistRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendIsBranchExist"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendIsBranchExistRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "branchId",
          "repoId"
        ]
      },
      "ToBackendIsBranchExistRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendIsBranchExistRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendIsBranchExistRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendIsBranchExistResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendIsBranchExist"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendIsBranchExistResponsePayload": {
        "type": "object",
        "properties": {
          "isExist": {
            "type": "boolean"
          }
        },
        "required": [
          "isExist"
        ]
      },
      "ToBackendIsBranchExistResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendIsBranchExistResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendIsBranchExistResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendMoveCatalogNodeRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendMoveCatalogNode"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendMoveCatalogNodeRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromNodeId": {
            "type": "string"
          },
          "toNodeId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fromNodeId",
          "toNodeId"
        ]
      },
      "ToBackendMoveCatalogNodeRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendMoveCatalogNodeRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendMoveCatalogNodeRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendMoveCatalogNodeResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendMoveCatalogNode"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendMoveCatalogNodeResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "Repo": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "currentBranchId": {
            "type": "string"
          },
          "repoStatus": {
            "type": "string",
            "enum": [
              "NeedCommit",
              "NeedPull",
              "NeedPush",
              "Ok"
            ]
          },
          "conflicts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskFileLine"
            }
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskCatalogNode"
            }
          },
          "changesToCommit": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskFileChange"
            }
          },
          "changesToPush": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskFileChange"
            }
          }
        },
        "required": [
          "orgId",
          "projectId",
          "repoId",
          "currentBranchId",
          "repoStatus",
          "conflicts",
          "nodes",
          "changesToCommit",
          "changesToPush"
        ]
      },
      "DiskFileLine": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "lineNumber": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "fileId",
          "fileName",
          "lineNumber"
        ]
      },
      "DiskCatalogNode": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "isFolder": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "fileId": {
            "type": "string",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskCatalogNode"
            },
            "nullable": true
          }
        },
        "required": [
          "id",
          "isFolder",
          "name"
        ]
      },
      "DiskFileChange": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "parentPath": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "Deleted",
              "Modified",
              "Conflicted",
              "TypeChange",
              "Renamed",
              "Ignored",
              "Unmodified",
              "Copied",
              "Untracked",
              "Unreadable"
            ]
          },
          "content": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "fileName",
          "fileId",
          "parentPath",
          "status"
        ]
      },
      "StructX": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BmlError"
            }
          },
          "modelFilePaths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelMetricX"
            }
          },
          "presets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Preset"
            }
          },
          "spaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Space"
            }
          },
          "mproveConfig": {
            "$ref": "#/components/schemas/MproveConfig"
          },
          "mproveExplorer": {
            "type": "string",
            "nullable": true
          },
          "mproveVersion": {
            "type": "string"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "structId",
          "errors",
          "modelFilePaths",
          "metrics",
          "presets",
          "spaces",
          "mproveConfig",
          "mproveVersion",
          "serverTs"
        ]
      },
      "BmlError": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskFileLine"
            }
          }
        },
        "required": [
          "title",
          "message",
          "lines"
        ]
      },
      "ModelMetricX": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string",
            "nullable": true
          },
          "modelType": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "fieldId": {
            "type": "string"
          },
          "fieldClass": {
            "type": "string",
            "enum": [
              "dimension",
              "time",
              "measure",
              "calculation",
              "filter",
              "join",
              "info"
            ]
          },
          "fieldResult": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "timeFieldId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "fieldLineNum": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "Model"
            ]
          },
          "metricId": {
            "type": "string"
          },
          "topNode": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "topLabel": {
            "type": "string",
            "nullable": true
          },
          "partNodeLabel": {
            "type": "string",
            "nullable": true
          },
          "partFieldLabel": {
            "type": "string",
            "nullable": true
          },
          "partLabel": {
            "type": "string",
            "nullable": true
          },
          "timeNodeLabel": {
            "type": "string",
            "nullable": true
          },
          "timeFieldLabel": {
            "type": "string",
            "nullable": true
          },
          "timeLabel": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "formatNumber": {
            "type": "string",
            "nullable": true
          },
          "currencyPrefix": {
            "type": "string",
            "nullable": true
          },
          "currencySuffix": {
            "type": "string",
            "nullable": true
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "hasAccessToModel": {
            "type": "boolean"
          }
        },
        "required": [
          "modelType",
          "connectionType",
          "fieldId",
          "fieldClass",
          "timeFieldId",
          "structId",
          "type",
          "metricId",
          "serverTs",
          "hasAccessToModel"
        ]
      },
      "Preset": {
        "type": "object",
        "properties": {
          "presetId": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "parsedContent": {}
        },
        "required": [
          "presetId",
          "label",
          "path",
          "parsedContent"
        ]
      },
      "Space": {
        "type": "object",
        "properties": {
          "space": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "fullTitle": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          }
        },
        "required": [
          "space",
          "fullTitle",
          "filePath",
          "accessRoles",
          "accessRolesCombined"
        ]
      },
      "MproveConfig": {
        "type": "object",
        "properties": {
          "mproveDirValue": {
            "type": "string",
            "nullable": true
          },
          "caseSensitiveStringFilters": {
            "type": "boolean",
            "nullable": true
          },
          "weekStart": {
            "type": "string",
            "enum": [
              "Sunday",
              "Monday"
            ],
            "nullable": true
          },
          "allowTimezones": {
            "type": "boolean",
            "nullable": true
          },
          "defaultTimezone": {
            "type": "string",
            "nullable": true
          },
          "formatNumber": {
            "type": "string",
            "nullable": true
          },
          "currencyPrefix": {
            "type": "string",
            "nullable": true
          },
          "currencySuffix": {
            "type": "string",
            "nullable": true
          },
          "thousandsSeparator": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ToBackendMoveCatalogNodeResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendMoveCatalogNodeResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendMoveCatalogNodeResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRenameCatalogNodeRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRenameCatalogNode"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRenameCatalogNodeRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "newName": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "nodeId",
          "newName"
        ]
      },
      "ToBackendRenameCatalogNodeRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRenameCatalogNodeRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRenameCatalogNodeRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRenameCatalogNodeResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRenameCatalogNode"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRenameCatalogNodeResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendRenameCatalogNodeResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRenameCatalogNodeResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRenameCatalogNodeResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendTestConnectionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendTestConnection"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendTestConnectionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionOptions"
              }
            ],
            "nullable": true
          },
          "storeMethod": {
            "type": "string",
            "enum": [
              "POST",
              "GET"
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "type"
        ]
      },
      "ConnectionOptions": {
        "type": "object",
        "properties": {
          "bigquery": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsBigquery"
              }
            ],
            "nullable": true
          },
          "databricks": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsDatabricks"
              }
            ],
            "nullable": true
          },
          "motherduck": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsMotherduck"
              }
            ],
            "nullable": true
          },
          "postgres": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsPostgres"
              }
            ],
            "nullable": true
          },
          "snowflake": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsSnowflake"
              }
            ],
            "nullable": true
          },
          "mysql": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsMysql"
              }
            ],
            "nullable": true
          },
          "trino": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsTrino"
              }
            ],
            "nullable": true
          },
          "presto": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsPresto"
              }
            ],
            "nullable": true
          },
          "storeApi": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsStoreApi"
              }
            ],
            "nullable": true
          },
          "storeGoogleApi": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OptionsStoreGoogleApi"
              }
            ],
            "nullable": true
          }
        }
      },
      "OptionsBigquery": {
        "type": "object",
        "properties": {
          "serviceAccountCredentials": {
            "nullable": true
          },
          "googleCloudProject": {
            "type": "string",
            "nullable": true
          },
          "googleCloudClientEmail": {
            "type": "string",
            "nullable": true
          },
          "bigqueryQuerySizeLimitGb": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        }
      },
      "OptionsDatabricks": {
        "type": "object",
        "properties": {
          "authType": {
            "type": "string",
            "enum": [
              "OAuthM2M",
              "PersonalAccessToken"
            ],
            "nullable": true
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "internalHost": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "oauthClientId": {
            "type": "string",
            "nullable": true
          },
          "oauthClientSecret": {
            "type": "string",
            "nullable": true
          },
          "defaultCatalog": {
            "type": "string",
            "nullable": true
          },
          "defaultSchema": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "OptionsMotherduck": {
        "type": "object",
        "properties": {
          "motherduckToken": {
            "type": "string",
            "nullable": true
          },
          "database": {
            "type": "string",
            "nullable": true
          },
          "attachModeSingle": {
            "type": "boolean",
            "nullable": true
          },
          "accessModeReadOnly": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "OptionsPostgres": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string",
            "nullable": true
          },
          "internalHost": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "internalPort": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "database": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "isSSL": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "OptionsSnowflake": {
        "type": "object",
        "properties": {
          "account": {
            "type": "string",
            "nullable": true
          },
          "warehouse": {
            "type": "string",
            "nullable": true
          },
          "database": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "OptionsMysql": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string",
            "nullable": true
          },
          "internalHost": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "internalPort": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "database": {
            "type": "string",
            "nullable": true
          },
          "user": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "OptionsTrino": {
        "type": "object",
        "properties": {
          "server": {
            "type": "string",
            "nullable": true
          },
          "internalServer": {
            "type": "string",
            "nullable": true
          },
          "catalog": {
            "type": "string",
            "nullable": true
          },
          "schema": {
            "type": "string",
            "nullable": true
          },
          "user": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "extraConfig": {
            "nullable": true
          }
        }
      },
      "OptionsPresto": {
        "type": "object",
        "properties": {
          "server": {
            "type": "string",
            "nullable": true
          },
          "internalServer": {
            "type": "string",
            "nullable": true
          },
          "catalog": {
            "type": "string",
            "nullable": true
          },
          "schema": {
            "type": "string",
            "nullable": true
          },
          "user": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "extraConfig": {
            "nullable": true
          },
          "port": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "internalPort": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        }
      },
      "OptionsStoreApi": {
        "type": "object",
        "properties": {
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiHeader"
            },
            "nullable": true
          },
          "baseUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ApiHeader": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "OptionsStoreGoogleApi": {
        "type": "object",
        "properties": {
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiHeader"
            },
            "nullable": true
          },
          "baseUrl": {
            "type": "string",
            "nullable": true
          },
          "googleAuthScopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "serviceAccountCredentials": {
            "nullable": true
          },
          "googleCloudProject": {
            "type": "string",
            "nullable": true
          },
          "googleCloudClientEmail": {
            "type": "string",
            "nullable": true
          },
          "googleAccessToken": {
            "type": "string",
            "nullable": true
          },
          "googleAccessTokenExpiryDate": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "ToBackendTestConnectionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendTestConnectionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendTestConnectionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendTestConnectionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendTestConnection"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendTestConnectionResponsePayload": {
        "type": "object",
        "properties": {
          "testConnectionResult": {
            "$ref": "#/components/schemas/TestConnectionResult"
          }
        },
        "required": [
          "testConnectionResult"
        ]
      },
      "TestConnectionResult": {
        "type": "object",
        "properties": {
          "isSuccess": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string"
          }
        },
        "required": [
          "isSuccess",
          "errorMessage"
        ]
      },
      "ToBackendTestConnectionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendTestConnectionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendTestConnectionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateConnectionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateConnection"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateConnectionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string",
            "pattern": "^[a-z0-9_]+$"
          },
          "type": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionOptions"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "type"
        ]
      },
      "ToBackendCreateConnectionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateConnectionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateConnectionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateConnectionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateConnection"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateConnectionResponsePayload": {
        "type": "object",
        "properties": {
          "connection": {
            "$ref": "#/components/schemas/ProjectConnection"
          }
        },
        "required": [
          "connection"
        ]
      },
      "ProjectConnection": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "type": "string",
            "nullable": true
          },
          "envId": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ],
            "nullable": true
          },
          "options": {
            "$ref": "#/components/schemas/ConnectionOptions"
          },
          "rawSchema": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionRawSchema"
              }
            ],
            "nullable": true
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "options"
        ]
      },
      "ConnectionRawSchema": {
        "type": "object",
        "properties": {
          "tables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RawSchemaTable"
            }
          },
          "lastRefreshedTs": {
            "type": "number"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "tables",
          "lastRefreshedTs"
        ]
      },
      "RawSchemaTable": {
        "type": "object",
        "properties": {
          "schemaName": {
            "type": "string"
          },
          "tableName": {
            "type": "string"
          },
          "tableType": {
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RawSchemaColumn"
            }
          },
          "indexes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RawSchemaIndex"
            }
          }
        },
        "required": [
          "schemaName",
          "tableName",
          "tableType",
          "columns",
          "indexes"
        ]
      },
      "RawSchemaColumn": {
        "type": "object",
        "properties": {
          "columnName": {
            "type": "string"
          },
          "dataType": {
            "type": "string"
          },
          "elementType": {
            "type": "string",
            "nullable": true
          },
          "isNullable": {
            "type": "boolean"
          },
          "isPrimaryKey": {
            "type": "boolean",
            "nullable": true
          },
          "isUnique": {
            "type": "boolean",
            "nullable": true
          },
          "foreignKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RawSchemaForeignKey"
            }
          }
        },
        "required": [
          "columnName",
          "dataType",
          "isNullable",
          "foreignKeys"
        ]
      },
      "RawSchemaForeignKey": {
        "type": "object",
        "properties": {
          "constraintName": {
            "type": "string"
          },
          "referencedSchemaName": {
            "type": "string"
          },
          "referencedTableName": {
            "type": "string"
          },
          "referencedColumnName": {
            "type": "string"
          }
        },
        "required": [
          "constraintName",
          "referencedSchemaName",
          "referencedTableName",
          "referencedColumnName"
        ]
      },
      "RawSchemaIndex": {
        "type": "object",
        "properties": {
          "indexName": {
            "type": "string"
          },
          "indexColumns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isUnique": {
            "type": "boolean"
          },
          "isPrimaryKey": {
            "type": "boolean"
          }
        },
        "required": [
          "indexName",
          "indexColumns",
          "isUnique",
          "isPrimaryKey"
        ]
      },
      "ToBackendCreateConnectionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateConnectionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateConnectionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditConnectionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditConnection"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditConnectionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionOptions"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId"
        ]
      },
      "ToBackendEditConnectionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditConnectionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditConnectionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditConnectionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditConnection"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditConnectionResponsePayload": {
        "type": "object",
        "properties": {
          "connection": {
            "$ref": "#/components/schemas/ProjectConnection"
          }
        },
        "required": [
          "connection"
        ]
      },
      "ToBackendEditConnectionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditConnectionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditConnectionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteConnectionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteConnection"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteConnectionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId"
        ]
      },
      "ToBackendDeleteConnectionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteConnectionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteConnectionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteConnectionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteConnection"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteConnectionResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteConnectionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteConnectionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteConnectionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetConnections"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetConnectionsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetConnectionsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetConnections"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetConnectionsResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "connections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectConnection"
            }
          }
        },
        "required": [
          "userMember",
          "connections"
        ]
      },
      "ToBackendGetConnectionsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionSchemasRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetConnectionSchemas"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetConnectionSchemasRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "isRefreshExistingCache": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "envId",
          "repoId",
          "branchId",
          "isRefreshExistingCache"
        ]
      },
      "ToBackendGetConnectionSchemasRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSchemasRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSchemasRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionSchemasResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetConnectionSchemas"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetConnectionSchemasResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "combinedSchemaItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CombinedSchemaItem"
            }
          }
        },
        "required": [
          "userMember",
          "combinedSchemaItems"
        ]
      },
      "CombinedSchemaItem": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string"
          },
          "schemas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CombinedSchema"
            }
          },
          "lastRefreshedTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "connectionId",
          "schemas",
          "lastRefreshedTs"
        ]
      },
      "CombinedSchema": {
        "type": "object",
        "properties": {
          "schemaName": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "tables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CombinedSchemaTable"
            }
          }
        },
        "required": [
          "schemaName",
          "tables"
        ]
      },
      "CombinedSchemaTable": {
        "type": "object",
        "properties": {
          "tableName": {
            "type": "string"
          },
          "tableType": {
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CombinedSchemaColumn"
            }
          },
          "indexes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RawSchemaIndex"
            }
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "tableName",
          "tableType",
          "columns",
          "indexes"
        ]
      },
      "CombinedSchemaColumn": {
        "type": "object",
        "properties": {
          "columnName": {
            "type": "string"
          },
          "dataType": {
            "type": "string"
          },
          "isNullable": {
            "type": "boolean"
          },
          "isPrimaryKey": {
            "type": "boolean",
            "nullable": true
          },
          "isUnique": {
            "type": "boolean",
            "nullable": true
          },
          "foreignKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RawSchemaForeignKey"
            }
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "example": {
            "type": "string",
            "nullable": true
          },
          "cacheUniqueValues": {
            "type": "boolean",
            "nullable": true
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ColumnCombinedReference"
            },
            "nullable": true
          },
          "cachedColumn": {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "string"
              },
              "connectionId": {
                "type": "string"
              },
              "envId": {
                "type": "string"
              },
              "schemaName": {
                "type": "string"
              },
              "tableName": {
                "type": "string"
              },
              "columnName": {
                "type": "string"
              },
              "requestedByUserId": {
                "type": "string",
                "nullable": true
              },
              "status": {
                "type": "string",
                "enum": [
                  "running",
                  "completed",
                  "error"
                ]
              },
              "errorMessage": {
                "type": "string",
                "nullable": true
              },
              "startedTs": {
                "type": "number"
              },
              "completedTs": {
                "type": "number",
                "nullable": true
              },
              "completedDurationMs": {
                "type": "number",
                "nullable": true
              },
              "limit": {
                "type": "number"
              },
              "sampleSize": {
                "type": "number",
                "nullable": true
              },
              "isLimitReached": {
                "type": "boolean",
                "nullable": true
              },
              "serverTs": {
                "type": "number"
              },
              "uniqueValuesCount": {
                "type": "number",
                "nullable": true
              }
            },
            "required": [
              "projectId",
              "connectionId",
              "envId",
              "schemaName",
              "tableName",
              "columnName",
              "status",
              "startedTs",
              "limit",
              "serverTs"
            ],
            "nullable": true
          }
        },
        "required": [
          "columnName",
          "dataType",
          "isNullable",
          "foreignKeys"
        ]
      },
      "ColumnCombinedReference": {
        "type": "object",
        "properties": {
          "relationshipType": {
            "type": "string",
            "enum": [
              "one_to_one",
              "one_to_many",
              "many_to_one",
              "many_to_many"
            ],
            "nullable": true
          },
          "isForeignKey": {
            "type": "boolean"
          },
          "referencedSchemaName": {
            "type": "string",
            "nullable": true
          },
          "referencedTableName": {
            "type": "string"
          },
          "referencedColumnName": {
            "type": "string"
          }
        },
        "required": [
          "isForeignKey",
          "referencedTableName",
          "referencedColumnName"
        ]
      },
      "ToBackendGetConnectionSchemasResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSchemasResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSchemasResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionSampleRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetConnectionSample"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetConnectionSampleRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "schemaName": {
            "type": "string"
          },
          "tableName": {
            "type": "string"
          },
          "columnName": {
            "type": "string",
            "nullable": true
          },
          "offset": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "schemaName",
          "tableName"
        ]
      },
      "ToBackendGetConnectionSampleRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSampleRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSampleRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionSampleResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetConnectionSample"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetConnectionSampleResponsePayload": {
        "type": "object",
        "properties": {
          "columnNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "columnNames",
          "rows"
        ]
      },
      "ToBackendGetConnectionSampleResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSampleResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionSampleResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetCachedColumnsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetCachedColumns"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetCachedColumnsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connectionId": {
                  "type": "string"
                },
                "schemaName": {
                  "type": "string"
                },
                "tableName": {
                  "type": "string"
                },
                "columnName": {
                  "type": "string"
                }
              },
              "required": [
                "connectionId",
                "schemaName",
                "tableName",
                "columnName"
              ]
            }
          }
        },
        "required": [
          "projectId",
          "envId",
          "columns"
        ]
      },
      "ToBackendGetCachedColumnsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetCachedColumnsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetCachedColumns"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetCachedColumnsResponsePayload": {
        "type": "object",
        "properties": {
          "cachedColumns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "projectId": {
                  "type": "string"
                },
                "connectionId": {
                  "type": "string"
                },
                "envId": {
                  "type": "string"
                },
                "schemaName": {
                  "type": "string"
                },
                "tableName": {
                  "type": "string"
                },
                "columnName": {
                  "type": "string"
                },
                "requestedByUserId": {
                  "type": "string",
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "running",
                    "completed",
                    "error"
                  ]
                },
                "errorMessage": {
                  "type": "string",
                  "nullable": true
                },
                "startedTs": {
                  "type": "number"
                },
                "completedTs": {
                  "type": "number",
                  "nullable": true
                },
                "completedDurationMs": {
                  "type": "number",
                  "nullable": true
                },
                "limit": {
                  "type": "number"
                },
                "sampleSize": {
                  "type": "number",
                  "nullable": true
                },
                "isLimitReached": {
                  "type": "boolean",
                  "nullable": true
                },
                "serverTs": {
                  "type": "number"
                },
                "uniqueValuesCount": {
                  "type": "number",
                  "nullable": true
                }
              },
              "required": [
                "projectId",
                "connectionId",
                "envId",
                "schemaName",
                "tableName",
                "columnName",
                "status",
                "startedTs",
                "limit",
                "serverTs"
              ]
            }
          }
        },
        "required": [
          "cachedColumns"
        ]
      },
      "ToBackendGetCachedColumnsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendViewCachedColumnRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendViewCachedColumn"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendViewCachedColumnRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "schemaName": {
            "type": "string"
          },
          "tableName": {
            "type": "string"
          },
          "columnName": {
            "type": "string"
          },
          "offset": {
            "type": "number"
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "schemaName",
          "tableName",
          "columnName",
          "offset"
        ]
      },
      "ToBackendViewCachedColumnRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendViewCachedColumnRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendViewCachedColumnRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendViewCachedColumnResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendViewCachedColumn"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendViewCachedColumnResponsePayload": {
        "type": "object",
        "properties": {
          "cachedColumn": {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "string"
              },
              "connectionId": {
                "type": "string"
              },
              "envId": {
                "type": "string"
              },
              "schemaName": {
                "type": "string"
              },
              "tableName": {
                "type": "string"
              },
              "columnName": {
                "type": "string"
              },
              "requestedByUserId": {
                "type": "string",
                "nullable": true
              },
              "status": {
                "type": "string",
                "enum": [
                  "running",
                  "completed",
                  "error"
                ]
              },
              "errorMessage": {
                "type": "string",
                "nullable": true
              },
              "startedTs": {
                "type": "number"
              },
              "completedTs": {
                "type": "number",
                "nullable": true
              },
              "completedDurationMs": {
                "type": "number",
                "nullable": true
              },
              "limit": {
                "type": "number"
              },
              "sampleSize": {
                "type": "number",
                "nullable": true
              },
              "isLimitReached": {
                "type": "boolean",
                "nullable": true
              },
              "serverTs": {
                "type": "number"
              },
              "uniqueValuesCount": {
                "type": "number",
                "nullable": true
              }
            },
            "required": [
              "projectId",
              "connectionId",
              "envId",
              "schemaName",
              "tableName",
              "columnName",
              "status",
              "startedTs",
              "limit",
              "serverTs"
            ],
            "nullable": true
          },
          "columnNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "columnNames",
          "rows"
        ]
      },
      "ToBackendViewCachedColumnResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendViewCachedColumnResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendViewCachedColumnResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRefreshCachedColumnRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRefreshCachedColumn"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRefreshCachedColumnRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "schemaName": {
            "type": "string"
          },
          "tableName": {
            "type": "string"
          },
          "columnName": {
            "type": "string"
          },
          "refreshType": {
            "type": "string",
            "enum": [
              "full",
              "sample"
            ]
          },
          "sampleSize": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "schemaName",
          "tableName",
          "columnName",
          "refreshType"
        ]
      },
      "ToBackendRefreshCachedColumnRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRefreshCachedColumnRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRefreshCachedColumnRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRefreshCachedColumnResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRefreshCachedColumn"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRefreshCachedColumnResponsePayload": {
        "type": "object",
        "properties": {
          "cachedColumn": {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "string"
              },
              "connectionId": {
                "type": "string"
              },
              "envId": {
                "type": "string"
              },
              "schemaName": {
                "type": "string"
              },
              "tableName": {
                "type": "string"
              },
              "columnName": {
                "type": "string"
              },
              "requestedByUserId": {
                "type": "string",
                "nullable": true
              },
              "status": {
                "type": "string",
                "enum": [
                  "running",
                  "completed",
                  "error"
                ]
              },
              "errorMessage": {
                "type": "string",
                "nullable": true
              },
              "startedTs": {
                "type": "number"
              },
              "completedTs": {
                "type": "number",
                "nullable": true
              },
              "completedDurationMs": {
                "type": "number",
                "nullable": true
              },
              "limit": {
                "type": "number"
              },
              "sampleSize": {
                "type": "number",
                "nullable": true
              },
              "isLimitReached": {
                "type": "boolean",
                "nullable": true
              },
              "serverTs": {
                "type": "number"
              },
              "uniqueValuesCount": {
                "type": "number",
                "nullable": true
              }
            },
            "required": [
              "projectId",
              "connectionId",
              "envId",
              "schemaName",
              "tableName",
              "columnName",
              "status",
              "startedTs",
              "limit",
              "serverTs"
            ],
            "nullable": true
          }
        }
      },
      "ToBackendRefreshCachedColumnResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRefreshCachedColumnResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRefreshCachedColumnResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendClearCachedColumnRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendClearCachedColumn"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendClearCachedColumnRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "schemaName": {
            "type": "string"
          },
          "tableName": {
            "type": "string"
          },
          "columnName": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "schemaName",
          "tableName",
          "columnName"
        ]
      },
      "ToBackendClearCachedColumnRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendClearCachedColumnRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendClearCachedColumnRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendClearCachedColumnResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendClearCachedColumn"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendClearCachedColumnResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendClearCachedColumnResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendClearCachedColumnResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendClearCachedColumnResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionsListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetConnectionsList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetConnectionsListRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId"
        ]
      },
      "ToBackendGetConnectionsListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetConnectionsListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetConnectionsList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetConnectionsListResponsePayload": {
        "type": "object",
        "properties": {
          "connectionItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectionItem"
            }
          }
        },
        "required": [
          "connectionItems"
        ]
      },
      "ConnectionItem": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "baseUrl": {
            "type": "string",
            "nullable": true
          },
          "headerKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "googleAuthScopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "required": [
          "connectionId",
          "type"
        ]
      },
      "ToBackendGetConnectionsListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetConnectionsListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateFileRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateFile"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateFileRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "parentNodeId": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "modelInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ModelInfo"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "parentNodeId",
          "fileName"
        ]
      },
      "ModelInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "presetId": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "required": [
          "name",
          "connectionId"
        ]
      },
      "ToBackendCreateFileRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateFileRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateFileRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateFileResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateFile"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateFileResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendCreateFileResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateFileResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateFileResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteFileRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteFile"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteFileRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fileNodeId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fileNodeId"
        ]
      },
      "ToBackendDeleteFileRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteFileRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteFileRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteFileResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteFile"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteFileResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendDeleteFileResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteFileResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteFileResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetFileRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetFile"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetFileRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fileNodeId": {
            "type": "string"
          },
          "builderLeft": {
            "type": "string",
            "enum": [
              "Tree",
              "ChangesToCommit",
              "ChangesToPush",
              "Info"
            ]
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fileNodeId",
          "builderLeft"
        ]
      },
      "ToBackendGetFileRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetFileRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetFileRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetFileResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetFile"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetFileResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "originalContent": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          },
          "isExist": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "originalContent",
          "content",
          "struct",
          "needValidate",
          "isExist"
        ]
      },
      "ToBackendGetFileResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetFileResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetFileResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveFileRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveFile"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveFileRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fileNodeId": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fileNodeId",
          "content"
        ]
      },
      "ToBackendSaveFileRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveFileRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveFileRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveFileResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveFile"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveFileResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendSaveFileResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveFileResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveFileResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendValidateFilesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendValidateFiles"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendValidateFilesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendValidateFilesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendValidateFilesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendValidateFilesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendValidateFilesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendValidateFiles"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendValidateFilesResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          }
        },
        "required": [
          "repo",
          "needValidate",
          "struct"
        ]
      },
      "ToBackendValidateFilesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendValidateFilesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendValidateFilesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateFolderRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateFolder"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateFolderRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "parentNodeId": {
            "type": "string"
          },
          "folderName": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "parentNodeId",
          "folderName"
        ]
      },
      "ToBackendCreateFolderRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateFolderRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateFolderRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateFolderResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateFolder"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateFolderResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendCreateFolderResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateFolderResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateFolderResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteFolderRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteFolder"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteFolderRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "folderNodeId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "folderNodeId"
        ]
      },
      "ToBackendDeleteFolderRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteFolderRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteFolderRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteFolderResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteFolder"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteFolderResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendDeleteFolderResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteFolderResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteFolderResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDuplicateMconfigAndQueryRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDuplicateMconfigAndQuery"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDuplicateMconfigAndQueryRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "oldMconfigId": {
            "type": "string"
          },
          "setPivotDefaults": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "oldMconfigId"
        ]
      },
      "ToBackendDuplicateMconfigAndQueryRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDuplicateMconfigAndQueryRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDuplicateMconfigAndQueryRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDuplicateMconfigAndQueryResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDuplicateMconfigAndQuery"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDuplicateMconfigAndQueryResponsePayload": {
        "type": "object",
        "properties": {
          "mconfig": {
            "$ref": "#/components/schemas/MconfigX"
          },
          "query": {
            "$ref": "#/components/schemas/Query"
          }
        },
        "required": [
          "mconfig",
          "query"
        ]
      },
      "MconfigX": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "mconfigId": {
            "type": "string"
          },
          "queryId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelType": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "Dashboard",
              "ChartDialogDashboard",
              "SuggestDimensionDashboard",
              "Report",
              "ChartDialogReport",
              "SuggestDimensionReport",
              "Chart",
              "SuggestDimensionChart",
              "SuggestDimensionModel",
              "Blank"
            ]
          },
          "parentId": {
            "type": "string",
            "nullable": true
          },
          "dateRangeIncludesRightSide": {
            "type": "boolean",
            "nullable": true
          },
          "storePart": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StorePart"
              }
            ],
            "nullable": true
          },
          "modelLabel": {
            "type": "string"
          },
          "modelFilePath": {
            "type": "string",
            "nullable": true
          },
          "malloyQueryStable": {
            "type": "string",
            "nullable": true
          },
          "malloyQueryExtra": {
            "type": "string",
            "nullable": true
          },
          "compiledQuery": {},
          "select": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sortings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sorting"
            }
          },
          "sorts": {
            "type": "string",
            "nullable": true
          },
          "timezone": {
            "type": "string"
          },
          "limit": {
            "type": "number"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Filter"
            }
          },
          "appliedGivens": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    },
                    {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "boolean"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "defaultText": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "defaultText"
                  ]
                }
              ]
            },
            "nullable": true
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MconfigField"
            }
          },
          "extendedFilters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterX"
            }
          }
        },
        "required": [
          "structId",
          "mconfigId",
          "queryId",
          "modelId",
          "modelType",
          "parentType",
          "modelLabel",
          "compiledQuery",
          "select",
          "sortings",
          "timezone",
          "limit",
          "filters",
          "chart",
          "serverTs",
          "fields",
          "extendedFilters"
        ]
      },
      "StorePart": {
        "type": "object",
        "properties": {
          "reqTemplate": {
            "type": "string"
          },
          "reqFunction": {
            "type": "string"
          },
          "reqJsonParts": {
            "type": "string"
          },
          "reqBody": {
            "type": "string"
          },
          "reqUrlPath": {
            "type": "string"
          }
        },
        "required": [
          "reqTemplate",
          "reqFunction",
          "reqJsonParts",
          "reqBody",
          "reqUrlPath"
        ]
      },
      "Sorting": {
        "type": "object",
        "properties": {
          "fieldId": {
            "type": "string"
          },
          "desc": {
            "type": "boolean"
          }
        },
        "required": [
          "fieldId",
          "desc"
        ]
      },
      "Filter": {
        "type": "object",
        "properties": {
          "fieldId": {
            "type": "string"
          },
          "fractions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fraction"
            }
          }
        },
        "required": [
          "fieldId",
          "fractions"
        ]
      },
      "Fraction": {
        "type": "object",
        "properties": {
          "controls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FractionControl"
            },
            "nullable": true
          },
          "brick": {
            "type": "string",
            "nullable": true
          },
          "parentBrick": {
            "type": "string",
            "nullable": true
          },
          "operator": {
            "type": "string",
            "enum": [
              "Or",
              "And"
            ],
            "nullable": true
          },
          "logicGroup": {
            "type": "string",
            "enum": [
              "OR",
              "AND_NOT"
            ],
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "StoreFraction",
              "StringIsAnyValue",
              "StringIsEqualTo",
              "StringStartsWith",
              "StringEndsWith",
              "StringContains",
              "StringIsLike",
              "StringIsEmpty",
              "StringIsNull",
              "StringIsNotEqualTo",
              "StringDoesNotStartWith",
              "StringDoesNotEndWith",
              "StringDoesNotContain",
              "StringIsNotLike",
              "StringIsNotEmpty",
              "StringIsNotNull",
              "NumberIsAnyValue",
              "NumberIsEqualTo",
              "NumberIsGreaterThan",
              "NumberIsGreaterThanOrEqualTo",
              "NumberIsLessThan",
              "NumberIsLessThanOrEqualTo",
              "NumberIsBetween",
              "NumberIsNull",
              "NumberIsNotEqualTo",
              "NumberIsNotGreaterThan",
              "NumberIsNotGreaterThanOrEqualTo",
              "NumberIsNotLessThan",
              "NumberIsNotLessThanOrEqualTo",
              "NumberIsNotBetween",
              "NumberIsNotNull",
              "BooleanIsAnyValue",
              "BooleanIsTrue",
              "BooleanIsFalse",
              "BooleanIsTruthy",
              "BooleanIsFalsy",
              "BooleanIsNull",
              "BooleanIsNotTrue",
              "BooleanIsNotFalse",
              "BooleanIsNotTruthy",
              "BooleanIsNotFalsy",
              "BooleanIsNotNull",
              "TsIsAnyValue",
              "TsIsInLast",
              "TsIsOnDay",
              "TsIsOnWeek",
              "TsIsOnMonth",
              "TsIsOnQuarter",
              "TsIsOnYear",
              "TsIsInNext",
              "TsIsAfter",
              "TsIsStarting",
              "TsIsBeginFor",
              "TsIsBetween",
              "TsIsBefore",
              "TsIsThrough",
              "TsIsOnHour",
              "TsIsOnMinute",
              "TsIsOnTimestamp",
              "TsIsNull",
              "TsIsNotInLast",
              "TsIsNotOnDay",
              "TsIsNotOnWeek",
              "TsIsNotOnMonth",
              "TsIsNotOnQuarter",
              "TsIsNotOnYear",
              "TsIsNotInNext",
              "TsIsNotBeginFor",
              "TsIsNotBetween",
              "TsIsNotOnHour",
              "TsIsNotOnMinute",
              "TsIsNotOnTimestamp",
              "TsIsNotNull",
              "DayOfWeekIsAnyValue",
              "DayOfWeekIs",
              "DayOfWeekIsNull",
              "DayOfWeekIsNot",
              "DayOfWeekIsNotNull",
              "DayOfWeekIndexIsAnyValue",
              "DayOfWeekIndexIsEqualTo",
              "DayOfWeekIndexIsNull",
              "DayOfWeekIndexIsNotEqualTo",
              "DayOfWeekIndexIsNotNull",
              "MonthNameIsAnyValue",
              "MonthNameIs",
              "MonthNameIsNull",
              "MonthNameIsNot",
              "MonthNameIsNotNull",
              "QuarterOfYearIsAnyValue",
              "QuarterOfYearIs",
              "QuarterOfYearIsNull",
              "QuarterOfYearIsNot",
              "QuarterOfYearIsNotNull",
              "TsIsBeforeRelative",
              "TsIsAfterRelative",
              "YesnoIsAnyValue",
              "YesnoIs"
            ]
          },
          "storeFractionSubTypeOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FractionSubTypeOption"
            },
            "nullable": true
          },
          "storeFractionSubType": {
            "type": "string",
            "nullable": true
          },
          "storeFractionSubTypeLabel": {
            "type": "string",
            "nullable": true
          },
          "storeFractionLogicGroupWithSubType": {
            "type": "string",
            "nullable": true
          },
          "meta": {
            "nullable": true
          },
          "storeResult": {
            "type": "string",
            "nullable": true
          },
          "stringValue": {
            "type": "string",
            "nullable": true
          },
          "numberValue1": {
            "type": "number",
            "nullable": true
          },
          "numberValue2": {
            "type": "number",
            "nullable": true
          },
          "numberValues": {
            "type": "string",
            "nullable": true
          },
          "numberBetweenOption": {
            "type": "string",
            "enum": [
              "Inclusive",
              "LeftInclusive",
              "RightInclusive",
              "Exclusive"
            ],
            "nullable": true
          },
          "yesnoValue": {
            "type": "string",
            "enum": [
              "Yes",
              "No"
            ],
            "nullable": true
          },
          "dayOfWeekValue": {
            "type": "string",
            "enum": [
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday",
              "Sunday"
            ],
            "nullable": true
          },
          "dayOfWeekIndexValues": {
            "type": "string",
            "nullable": true
          },
          "monthNameValue": {
            "type": "string",
            "enum": [
              "January",
              "February",
              "March",
              "April",
              "May",
              "June",
              "July",
              "August",
              "September",
              "October",
              "November",
              "December"
            ],
            "nullable": true
          },
          "quarterOfYearValue": {
            "type": "string",
            "enum": [
              "q1",
              "q2",
              "q3",
              "q4"
            ],
            "nullable": true
          },
          "tsDateYear": {
            "type": "number",
            "nullable": true
          },
          "tsDateQuarter": {
            "type": "number",
            "nullable": true
          },
          "tsDateMonth": {
            "type": "number",
            "nullable": true
          },
          "tsDateDay": {
            "type": "number",
            "nullable": true
          },
          "tsDateHour": {
            "type": "number",
            "nullable": true
          },
          "tsDateMinute": {
            "type": "number",
            "nullable": true
          },
          "tsDateToYear": {
            "type": "number",
            "nullable": true
          },
          "tsDateToQuarter": {
            "type": "number",
            "nullable": true
          },
          "tsDateToMonth": {
            "type": "number",
            "nullable": true
          },
          "tsDateToDay": {
            "type": "number",
            "nullable": true
          },
          "tsDateToHour": {
            "type": "number",
            "nullable": true
          },
          "tsDateToMinute": {
            "type": "number",
            "nullable": true
          },
          "tsForValue": {
            "type": "number",
            "nullable": true
          },
          "tsForUnit": {
            "type": "string",
            "enum": [
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ],
            "nullable": true
          },
          "tsLastValue": {
            "type": "number",
            "nullable": true
          },
          "tsLastUnit": {
            "type": "string",
            "enum": [
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ],
            "nullable": true
          },
          "tsLastCompleteOption": {
            "type": "string",
            "enum": [
              "CompleteWithCurrent",
              "CompletePlusCurrent",
              "Complete"
            ],
            "nullable": true
          },
          "tsNextValue": {
            "type": "number",
            "nullable": true
          },
          "tsNextUnit": {
            "type": "string",
            "enum": [
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ],
            "nullable": true
          },
          "tsMoment": {
            "nullable": true
          },
          "tsMomentType": {
            "type": "string",
            "enum": [
              "Literal",
              "Today",
              "Yesterday",
              "Tomorrow",
              "This",
              "Last",
              "Next",
              "Ago",
              "FromNow",
              "Now",
              "Timestamp"
            ],
            "nullable": true
          },
          "tsMomentUnit": {
            "type": "string",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "quarter",
              "year",
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday"
            ],
            "nullable": true
          },
          "tsTimestampValue": {
            "type": "string",
            "nullable": true
          },
          "tsMomentAgoFromNowQuantity": {
            "type": "number",
            "nullable": true
          },
          "tsFromMoment": {
            "nullable": true
          },
          "tsFromMomentType": {
            "type": "string",
            "enum": [
              "Literal",
              "Today",
              "Yesterday",
              "Tomorrow",
              "This",
              "Last",
              "Next",
              "Ago",
              "FromNow",
              "Now",
              "Timestamp"
            ],
            "nullable": true
          },
          "tsFromMomentUnit": {
            "type": "string",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "quarter",
              "year",
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday"
            ],
            "nullable": true
          },
          "tsFromTimestampValue": {
            "type": "string",
            "nullable": true
          },
          "tsFromMomentAgoFromNowQuantity": {
            "type": "number",
            "nullable": true
          },
          "tsToMoment": {
            "nullable": true
          },
          "tsToMomentType": {
            "type": "string",
            "enum": [
              "Literal",
              "Today",
              "Yesterday",
              "Tomorrow",
              "This",
              "Last",
              "Next",
              "Ago",
              "FromNow",
              "Now",
              "Timestamp"
            ],
            "nullable": true
          },
          "tsToMomentUnit": {
            "type": "string",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "quarter",
              "year",
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday"
            ],
            "nullable": true
          },
          "tsToTimestampValue": {
            "type": "string",
            "nullable": true
          },
          "tsToMomentAgoFromNowQuantity": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "type"
        ]
      },
      "FractionControl": {
        "type": "object",
        "properties": {
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FractionControlOption"
            },
            "nullable": true
          },
          "value": {
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "controlClass": {
            "type": "string",
            "enum": [
              "list_input",
              "input",
              "switch",
              "date_picker",
              "selector"
            ]
          },
          "isMetricsDate": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "name",
          "controlClass"
        ]
      },
      "FractionControlOption": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "value"
        ]
      },
      "FractionSubTypeOption": {
        "type": "object",
        "properties": {
          "logicGroup": {
            "type": "string",
            "enum": [
              "OR",
              "AND_NOT"
            ],
            "nullable": true
          },
          "typeValue": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "typeValue",
          "value"
        ]
      },
      "MconfigChart": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "type": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ]
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "xField": {
            "type": "string",
            "nullable": true
          },
          "yFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "multiField": {
            "type": "string",
            "nullable": true
          },
          "sizeField": {
            "type": "string",
            "nullable": true
          },
          "pivotRows": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "pivotColumns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "pivotValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MconfigChartPivotValue"
            },
            "nullable": true
          },
          "format": {
            "type": "boolean",
            "nullable": true
          },
          "pivotTheme": {
            "type": "string",
            "nullable": true
          },
          "firstColumnWidth": {
            "type": "number",
            "nullable": true
          },
          "valueColumnsWidth": {
            "type": "number",
            "nullable": true
          },
          "xAxis": {
            "$ref": "#/components/schemas/MconfigChartXAxis"
          },
          "yAxis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MconfigChartYAxis"
            }
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MconfigChartSeries"
            }
          }
        },
        "required": [
          "isValid",
          "type",
          "xAxis",
          "yAxis",
          "series"
        ]
      },
      "MconfigChartPivotValue": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          }
        },
        "required": [
          "field"
        ]
      },
      "MconfigChartXAxis": {
        "type": "object",
        "properties": {
          "scale": {
            "type": "boolean"
          }
        },
        "required": [
          "scale"
        ]
      },
      "MconfigChartYAxis": {
        "type": "object",
        "properties": {
          "scale": {
            "type": "boolean"
          }
        },
        "required": [
          "scale"
        ]
      },
      "MconfigChartSeries": {
        "type": "object",
        "properties": {
          "dataField": {
            "type": "string",
            "nullable": true
          },
          "dataRowId": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ],
            "nullable": true
          },
          "yAxisIndex": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        }
      },
      "MconfigField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "malloyFieldName": {
            "type": "string",
            "nullable": true
          },
          "malloyFieldPath": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "malloyBaseFieldId": {
            "type": "string",
            "nullable": true
          },
          "malloyTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeyValuePair"
            },
            "nullable": true
          },
          "mproveTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeyValuePair"
            },
            "nullable": true
          },
          "hidden": {
            "type": "boolean"
          },
          "required": {
            "type": "boolean"
          },
          "maxFractions": {
            "type": "number",
            "nullable": true
          },
          "label": {
            "type": "string"
          },
          "fieldClass": {
            "type": "string",
            "enum": [
              "dimension",
              "time",
              "measure",
              "calculation",
              "filter",
              "join",
              "info"
            ]
          },
          "fieldFileName": {
            "type": "string",
            "nullable": true
          },
          "fieldFilePath": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "fieldLineNum": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "suggestModelDimension": {
            "type": "string",
            "nullable": true
          },
          "sqlName": {
            "type": "string"
          },
          "topId": {
            "type": "string"
          },
          "topLabel": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "count_distinct",
              "sum",
              "sum_by_key",
              "average",
              "average_by_key",
              "median_by_key",
              "percentile_by_key",
              "min",
              "max",
              "list",
              "custom",
              "yesno_is_true"
            ],
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "groupLabel": {
            "type": "string",
            "nullable": true
          },
          "groupDescription": {
            "type": "string",
            "nullable": true
          },
          "formatNumber": {
            "type": "string",
            "nullable": true
          },
          "currencyPrefix": {
            "type": "string",
            "nullable": true
          },
          "currencySuffix": {
            "type": "string",
            "nullable": true
          },
          "buildMetrics": {
            "type": "boolean",
            "nullable": true
          },
          "isTimeframeBase": {
            "type": "boolean"
          },
          "timeframe": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "enum": [
              "timestamps",
              "minutes",
              "hours",
              "days",
              "weeksSunday",
              "weeksMonday",
              "months",
              "quarters",
              "years"
            ],
            "nullable": true
          },
          "sorting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sorting"
              }
            ],
            "nullable": true
          },
          "sortingNumber": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "hidden",
          "required",
          "label",
          "fieldClass",
          "sqlName",
          "topId",
          "topLabel",
          "isTimeframeBase",
          "sortingNumber"
        ]
      },
      "KeyValuePair": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "key"
        ]
      },
      "FilterX": {
        "type": "object",
        "properties": {
          "fieldId": {
            "type": "string"
          },
          "fractions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fraction"
            }
          },
          "field": {}
        },
        "required": [
          "fieldId",
          "fractions",
          "field"
        ]
      },
      "Query": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "queryId": {
            "type": "string"
          },
          "reportId": {
            "type": "string",
            "nullable": true
          },
          "reportStructId": {
            "type": "string",
            "nullable": true
          },
          "sql": {
            "type": "string",
            "nullable": true
          },
          "apiMethod": {
            "type": "string",
            "enum": [
              "POST",
              "GET"
            ],
            "nullable": true
          },
          "apiUrl": {
            "type": "string",
            "nullable": true
          },
          "apiBody": {},
          "status": {
            "type": "string",
            "enum": [
              "New",
              "Running",
              "Canceled",
              "Completed",
              "Error"
            ]
          },
          "data": {
            "nullable": true
          },
          "lastRunBy": {
            "type": "string",
            "nullable": true
          },
          "lastRunTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "lastCancelTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "lastCompleteTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "lastCompleteDuration": {
            "type": "number",
            "nullable": true
          },
          "lastErrorMessage": {
            "type": "string",
            "nullable": true
          },
          "lastErrorTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "queryJobId": {
            "type": "string",
            "nullable": true
          },
          "bigqueryQueryJobId": {
            "type": "string",
            "nullable": true
          },
          "bigqueryConsecutiveErrorsGetJob": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "bigqueryConsecutiveErrorsGetResults": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "connectionType",
          "queryId",
          "apiBody",
          "status",
          "bigqueryConsecutiveErrorsGetJob",
          "bigqueryConsecutiveErrorsGetResults",
          "serverTs"
        ]
      },
      "ToBackendDuplicateMconfigAndQueryResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDuplicateMconfigAndQueryResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDuplicateMconfigAndQueryResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGroupMetricByDimensionRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGroupMetricByDimension"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGroupMetricByDimensionRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "mconfigId": {
            "type": "string"
          },
          "groupByFieldId": {
            "type": "string"
          },
          "cellMetricsStartDateMs": {
            "type": "number",
            "nullable": true
          },
          "cellMetricsEndDateMs": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "timezone",
          "mconfigId",
          "groupByFieldId"
        ]
      },
      "ToBackendGroupMetricByDimensionRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGroupMetricByDimensionRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGroupMetricByDimensionRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGroupMetricByDimensionResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGroupMetricByDimension"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGroupMetricByDimensionResponsePayload": {
        "type": "object",
        "properties": {
          "mconfig": {
            "$ref": "#/components/schemas/MconfigX"
          },
          "query": {
            "$ref": "#/components/schemas/Query"
          }
        },
        "required": [
          "mconfig",
          "query"
        ]
      },
      "ToBackendGroupMetricByDimensionResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGroupMetricByDimensionResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGroupMetricByDimensionResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSuggestDimensionValuesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSuggestDimensionValues"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSuggestDimensionValuesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "fieldId": {
            "type": "string"
          },
          "chartId": {
            "type": "string",
            "nullable": true
          },
          "dashboardId": {
            "type": "string",
            "nullable": true
          },
          "reportId": {
            "type": "string",
            "nullable": true
          },
          "rowId": {
            "type": "string",
            "nullable": true
          },
          "term": {
            "type": "string",
            "nullable": true
          },
          "cellMetricsStartDateMs": {
            "type": "number",
            "nullable": true
          },
          "cellMetricsEndDateMs": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "structId",
          "modelId",
          "fieldId"
        ]
      },
      "ToBackendSuggestDimensionValuesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSuggestDimensionValuesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSuggestDimensionValues"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSuggestDimensionValuesResponsePayload": {
        "type": "object",
        "properties": {
          "matchedValues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "count": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "value",
                "count"
              ]
            },
            "nullable": true
          },
          "matchedValuesMessage": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ToBackendSuggestDimensionValuesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSuggestDimensionValuesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateMemberRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateMember"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateMemberRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "email"
        ]
      },
      "ToBackendCreateMemberRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateMemberRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateMemberRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateMemberResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateMember"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateMemberResponsePayload": {
        "type": "object",
        "properties": {
          "member": {
            "$ref": "#/components/schemas/Member"
          }
        },
        "required": [
          "member"
        ]
      },
      "ToBackendCreateMemberResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateMemberResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateMemberResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteMemberRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteMember"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteMemberRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "memberId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "memberId"
        ]
      },
      "ToBackendDeleteMemberRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteMemberRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteMemberRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteMemberResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteMember"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteMemberResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteMemberResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteMemberResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteMemberResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditMemberRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditMember"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditMemberRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "memberId": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "isEditor": {
            "type": "boolean"
          },
          "isExplorer": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "memberId",
          "isAdmin",
          "isEditor",
          "isExplorer",
          "roles"
        ]
      },
      "ToBackendEditMemberRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditMemberRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditMemberRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditMemberResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditMember"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditMemberResponsePayload": {
        "type": "object",
        "properties": {
          "member": {
            "$ref": "#/components/schemas/Member"
          }
        },
        "required": [
          "member"
        ]
      },
      "ToBackendEditMemberResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditMemberResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditMemberResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetMembersRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetMembers"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetMembersRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "pageNum": {
            "type": "number"
          },
          "perPage": {
            "type": "number"
          }
        },
        "required": [
          "projectId",
          "pageNum",
          "perPage"
        ]
      },
      "ToBackendGetMembersRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetMembersRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetMembersRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetMembersResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetMembers"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetMembersResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Member"
            }
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "userMember",
          "members",
          "roles",
          "total"
        ]
      },
      "Role": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "gvs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Gv"
            }
          }
        },
        "required": [
          "projectId",
          "roleId",
          "gvs"
        ]
      },
      "Gv": {
        "type": "object",
        "properties": {
          "givenId": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "givenId",
          "values"
        ]
      },
      "ToBackendGetMembersResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetMembersResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetMembersResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetMemberGivensRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetMemberGivens"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetMemberGivensRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "memberId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "memberId"
        ]
      },
      "ToBackendGetMemberGivensRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetMemberGivensRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetMemberGivensRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetMemberGivensResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetMemberGivens"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetMemberGivensResponsePayload": {
        "type": "object",
        "properties": {
          "memberGivens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberGiven"
            }
          }
        },
        "required": [
          "memberGivens"
        ]
      },
      "MemberGiven": {
        "type": "object",
        "properties": {
          "givenId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "String",
              "Number",
              "Boolean",
              "Date",
              "Timestamp"
            ]
          },
          "isMultiple": {
            "type": "boolean"
          },
          "memberGivenValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberGivenValue"
            }
          }
        },
        "required": [
          "givenId",
          "type",
          "isMultiple",
          "memberGivenValues"
        ]
      },
      "MemberGivenValue": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "isProjectDefault": {
            "type": "boolean"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "value",
          "isProjectDefault",
          "roleIds"
        ]
      },
      "ToBackendGetMemberGivensResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetMemberGivensResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetMemberGivensResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetMembersListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetMembersList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetMembersListRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetMembersListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetMembersListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetMembersListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetMembersListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetMembersList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetMembersListResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "membersList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnvUser"
            }
          }
        },
        "required": [
          "userMember",
          "membersList"
        ]
      },
      "EnvUser": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          }
        },
        "required": [
          "userId",
          "alias",
          "firstName",
          "lastName",
          "fullName"
        ]
      },
      "ToBackendGetMembersListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetMembersListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetMembersListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSuggestFieldsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetSuggestFields"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetSuggestFieldsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "parentId": {
            "type": "string"
          },
          "parentType": {
            "type": "string",
            "enum": [
              "Dashboard",
              "ChartDialogDashboard",
              "SuggestDimensionDashboard",
              "Report",
              "ChartDialogReport",
              "SuggestDimensionReport",
              "Chart",
              "SuggestDimensionChart",
              "SuggestDimensionModel",
              "Blank"
            ]
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "parentId",
          "parentType"
        ]
      },
      "ToBackendGetSuggestFieldsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSuggestFieldsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSuggestFieldsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSuggestFieldsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetSuggestFields"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetSuggestFieldsResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "suggestFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestField"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "suggestFields"
        ]
      },
      "SuggestField": {
        "type": "object",
        "properties": {
          "modelFieldRef": {
            "type": "string"
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "topLabel": {
            "type": "string"
          },
          "partNodeLabel": {
            "type": "string"
          },
          "partFieldLabel": {
            "type": "string"
          },
          "partLabel": {
            "type": "string"
          },
          "fieldClass": {
            "type": "string",
            "enum": [
              "dimension",
              "time",
              "measure",
              "calculation",
              "filter",
              "join",
              "info"
            ]
          },
          "result": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ]
          }
        },
        "required": [
          "modelFieldRef",
          "connectionType",
          "topLabel",
          "partNodeLabel",
          "partFieldLabel",
          "partLabel",
          "fieldClass",
          "result"
        ]
      },
      "ToBackendGetSuggestFieldsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSuggestFieldsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSuggestFieldsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetFavoriteRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetFavorite"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetFavoriteRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Report",
              "Dashboard",
              "Chart"
            ]
          },
          "targetId": {
            "type": "string"
          },
          "isFavorite": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "type",
          "targetId",
          "isFavorite"
        ]
      },
      "ToBackendSetFavoriteRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetFavoriteRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetFavoriteRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetFavoriteResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetFavorite"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetFavoriteResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendSetFavoriteResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetFavoriteResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetFavoriteResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetModelRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetModel"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetModelRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "getMalloy": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "modelId",
          "getMalloy"
        ]
      },
      "ToBackendGetModelRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetModelRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetModelRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetModelResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetModel"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetModelResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "model": {
            "$ref": "#/components/schemas/ModelX"
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "model"
        ]
      },
      "ModelX": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "type": "string"
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "spaceFullTitle": {
            "type": "string"
          },
          "fileText": {
            "type": "string"
          },
          "storeContent": {},
          "dateRangeIncludesRightSide": {
            "type": "boolean"
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "label": {
            "type": "string"
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelField"
            }
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelNode"
            }
          },
          "malloyModelDef": {},
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "hasAccess": {
            "type": "boolean"
          }
        },
        "required": [
          "structId",
          "modelId",
          "type",
          "connectionId",
          "connectionType",
          "filePath",
          "spaceFullTitle",
          "fileText",
          "storeContent",
          "dateRangeIncludesRightSide",
          "accessRoles",
          "accessRolesCombined",
          "label",
          "fields",
          "nodes",
          "malloyModelDef",
          "serverTs",
          "hasAccess"
        ]
      },
      "ModelField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "malloyFieldName": {
            "type": "string",
            "nullable": true
          },
          "malloyFieldPath": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "malloyBaseFieldId": {
            "type": "string",
            "nullable": true
          },
          "malloyTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeyValuePair"
            },
            "nullable": true
          },
          "mproveTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeyValuePair"
            },
            "nullable": true
          },
          "hidden": {
            "type": "boolean"
          },
          "required": {
            "type": "boolean"
          },
          "maxFractions": {
            "type": "number",
            "nullable": true
          },
          "label": {
            "type": "string"
          },
          "fieldClass": {
            "type": "string",
            "enum": [
              "dimension",
              "time",
              "measure",
              "calculation",
              "filter",
              "join",
              "info"
            ]
          },
          "fieldFileName": {
            "type": "string",
            "nullable": true
          },
          "fieldFilePath": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "fieldLineNum": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "suggestModelDimension": {
            "type": "string",
            "nullable": true
          },
          "sqlName": {
            "type": "string"
          },
          "topId": {
            "type": "string"
          },
          "topLabel": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "count_distinct",
              "sum",
              "sum_by_key",
              "average",
              "average_by_key",
              "median_by_key",
              "percentile_by_key",
              "min",
              "max",
              "list",
              "custom",
              "yesno_is_true"
            ],
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "groupLabel": {
            "type": "string",
            "nullable": true
          },
          "groupDescription": {
            "type": "string",
            "nullable": true
          },
          "formatNumber": {
            "type": "string",
            "nullable": true
          },
          "currencyPrefix": {
            "type": "string",
            "nullable": true
          },
          "currencySuffix": {
            "type": "string",
            "nullable": true
          },
          "buildMetrics": {
            "type": "boolean",
            "nullable": true
          },
          "isTimeframeBase": {
            "type": "boolean"
          },
          "timeframe": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "enum": [
              "timestamps",
              "minutes",
              "hours",
              "days",
              "weeksSunday",
              "weeksMonday",
              "months",
              "quarters",
              "years"
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "hidden",
          "required",
          "label",
          "fieldClass",
          "sqlName",
          "topId",
          "topLabel",
          "isTimeframeBase"
        ]
      },
      "ModelNode": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "nodeClass": {
            "type": "string",
            "enum": [
              "dimension",
              "time",
              "measure",
              "calculation",
              "filter",
              "join",
              "info"
            ]
          },
          "viewName": {
            "type": "string",
            "nullable": true
          },
          "isField": {
            "type": "boolean"
          },
          "fieldFileName": {
            "type": "string",
            "nullable": true
          },
          "viewFilePath": {
            "type": "string",
            "nullable": true
          },
          "fieldFilePath": {
            "type": "string",
            "nullable": true
          },
          "fieldResult": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "fieldLineNum": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "hidden": {
            "type": "boolean"
          },
          "required": {
            "type": "boolean"
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelNode"
            },
            "nullable": true
          }
        },
        "required": [
          "id",
          "label",
          "nodeClass",
          "isField",
          "hidden",
          "required"
        ]
      },
      "ToBackendGetModelResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetModelResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetModelResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetModelsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetModels"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetModelsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "filterByModelIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendGetModelsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetModelsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetModelsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetModelsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetModels"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetModelsResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelX"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "models"
        ]
      },
      "ToBackendGetModelsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetModelsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetModelsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCheckLastNavRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCheckLastNav"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCheckLastNavRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "modelId": {
            "type": "string",
            "nullable": true
          },
          "chartId": {
            "type": "string",
            "nullable": true
          },
          "dashboardId": {
            "type": "string",
            "nullable": true
          },
          "reportId": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendCheckLastNavRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCheckLastNavRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCheckLastNavRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCheckLastNavResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCheckLastNav"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCheckLastNavResponsePayload": {
        "type": "object",
        "properties": {
          "modelExists": {
            "type": "boolean"
          },
          "chartExists": {
            "type": "boolean"
          },
          "dashboardExists": {
            "type": "boolean"
          },
          "reportExists": {
            "type": "boolean"
          }
        },
        "required": [
          "modelExists",
          "chartExists",
          "dashboardExists",
          "reportExists"
        ]
      },
      "ToBackendCheckLastNavResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCheckLastNavResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCheckLastNavResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetNavRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetNav"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetNavRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string",
            "nullable": true
          },
          "projectId": {
            "type": "string",
            "nullable": true
          },
          "getRepo": {
            "type": "boolean"
          }
        },
        "required": [
          "getRepo"
        ]
      },
      "ToBackendGetNavRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetNavRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetNavRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetNavResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetNav"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetNavResponsePayload": {
        "type": "object",
        "properties": {
          "avatarSmall": {
            "type": "string"
          },
          "avatarBig": {
            "type": "string"
          },
          "orgId": {
            "type": "string"
          },
          "orgOwnerId": {
            "type": "string"
          },
          "orgName": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "projectDefaultBranch": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "repoType": {
            "type": "string",
            "enum": [
              "production",
              "dev",
              "session"
            ]
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "needValidate": {
            "type": "boolean"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "serverNowTs": {
            "type": "number"
          },
          "isMproveAdmin": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "repo": {
            "$ref": "#/components/schemas/Repo"
          }
        },
        "required": [
          "avatarSmall",
          "avatarBig",
          "orgId",
          "orgOwnerId",
          "orgName",
          "projectId",
          "projectName",
          "projectDefaultBranch",
          "repoId",
          "repoType",
          "branchId",
          "envId",
          "needValidate",
          "user",
          "serverNowTs",
          "isMproveAdmin",
          "struct",
          "userMember",
          "repo"
        ]
      },
      "User": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "isEmailVerified": {
            "type": "boolean"
          },
          "ui": {
            "$ref": "#/components/schemas/Ui"
          },
          "apiKeyPrefix": {
            "type": "string",
            "nullable": true
          },
          "isCodexAuthSet": {
            "type": "boolean",
            "nullable": true
          },
          "codexAuthUpdateTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "codexAuthExpiresTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "userId",
          "email",
          "alias",
          "firstName",
          "lastName",
          "isEmailVerified",
          "ui",
          "serverTs"
        ]
      },
      "Ui": {
        "type": "object",
        "properties": {
          "modelTreeLevels": {
            "type": "string",
            "enum": [
              "Flat",
              "FlatTime",
              "Nested",
              "NestedFlatTime"
            ]
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFraction": {
            "$ref": "#/components/schemas/Fraction"
          },
          "projectModelLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectModelLink"
            }
          },
          "projectChartLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectChartLink"
            }
          },
          "projectDashboardLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectDashboardLink"
            }
          },
          "projectExplorerSessionLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectExplorerSessionLink"
            },
            "nullable": true
          },
          "projectReportLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectReportLink"
            }
          },
          "projectSelectedGivenLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectSelectedGivenLink"
            },
            "nullable": true
          },
          "chartsByModel": {
            "type": "boolean",
            "nullable": true
          },
          "permissionsAutoAcceptSessionIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "newSessionPermissionsAutoAccept": {
            "type": "boolean",
            "nullable": true
          },
          "newSessionExplorerProviderModel": {
            "type": "string",
            "nullable": true
          },
          "newSessionEditorProviderModel": {
            "type": "string",
            "nullable": true
          },
          "newSessionEditorVariant": {
            "type": "string",
            "nullable": true
          },
          "newSessionUseCodex": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "modelTreeLevels",
          "timezone",
          "timeSpec",
          "timeRangeFraction",
          "projectModelLinks",
          "projectChartLinks",
          "projectDashboardLinks",
          "projectReportLinks"
        ]
      },
      "ProjectModelLink": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "navTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "modelId"
        ]
      },
      "ProjectChartLink": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "navTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "chartId"
        ]
      },
      "ProjectDashboardLink": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "navTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "dashboardId"
        ]
      },
      "ProjectExplorerSessionLink": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "sessionId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "tabId": {
            "type": "string",
            "nullable": true
          },
          "navTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "sessionId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ProjectReportLink": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "navTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "reportId"
        ]
      },
      "ProjectSelectedGivenLink": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "givens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SelectedGiven"
            }
          },
          "navTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "givens"
        ]
      },
      "SelectedGiven": {
        "type": "object",
        "properties": {
          "givenId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "String",
              "Number",
              "Boolean",
              "Date",
              "Timestamp"
            ]
          },
          "isMultiple": {
            "type": "boolean"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "givenId",
          "type",
          "isMultiple",
          "values"
        ]
      },
      "ToBackendGetNavResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetNavResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetNavResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetOrgUsersRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetOrgUsers"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetOrgUsersRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "pageNum": {
            "type": "number"
          },
          "perPage": {
            "type": "number"
          }
        },
        "required": [
          "orgId",
          "pageNum",
          "perPage"
        ]
      },
      "ToBackendGetOrgUsersRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetOrgUsersRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetOrgUsersRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetOrgUsersResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetOrgUsers"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetOrgUsersResponsePayload": {
        "type": "object",
        "properties": {
          "orgUsersList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgUsersItem"
            }
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "orgUsersList",
          "total"
        ]
      },
      "OrgUsersItem": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          },
          "avatarSmall": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "adminProjects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "editorProjects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "explorerProjects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projectUserProjects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "userId",
          "avatarSmall",
          "email",
          "alias",
          "firstName",
          "lastName",
          "fullName",
          "adminProjects",
          "editorProjects",
          "explorerProjects",
          "projectUserProjects"
        ]
      },
      "ToBackendGetOrgUsersResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetOrgUsersResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetOrgUsersResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateOrgRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateOrg"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateOrgRequestPayload": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "ToBackendCreateOrgRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateOrgRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateOrgRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateOrgResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateOrg"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateOrgResponsePayload": {
        "type": "object",
        "properties": {
          "org": {
            "$ref": "#/components/schemas/Org"
          }
        },
        "required": [
          "org"
        ]
      },
      "Org": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ownerId": {
            "type": "string"
          },
          "ownerEmail": {
            "type": "string"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "orgId",
          "name",
          "ownerId",
          "ownerEmail",
          "serverTs"
        ]
      },
      "ToBackendCreateOrgResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateOrgResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateOrgResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteOrgRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteOrg"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteOrgRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          }
        },
        "required": [
          "orgId"
        ]
      },
      "ToBackendDeleteOrgRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteOrgRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteOrgRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteOrgResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteOrg"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteOrgResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteOrgResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteOrgResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteOrgResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetOrgRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetOrg"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetOrgRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          }
        },
        "required": [
          "orgId"
        ]
      },
      "ToBackendGetOrgRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetOrgRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetOrgRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetOrgResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetOrg"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetOrgResponsePayload": {
        "type": "object",
        "properties": {
          "org": {
            "$ref": "#/components/schemas/Org"
          }
        },
        "required": [
          "org"
        ]
      },
      "ToBackendGetOrgResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetOrgResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetOrgResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetOrgsListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetOrgsList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetOrgsListRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendGetOrgsListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetOrgsListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetOrgsListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetOrgsListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetOrgsList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetOrgsListResponsePayload": {
        "type": "object",
        "properties": {
          "orgsList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgsItem"
            }
          }
        },
        "required": [
          "orgsList"
        ]
      },
      "OrgsItem": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "name"
        ]
      },
      "ToBackendGetOrgsListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetOrgsListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetOrgsListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendIsOrgExistRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendIsOrgExist"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendIsOrgExistRequestPayload": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "ToBackendIsOrgExistRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendIsOrgExistRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendIsOrgExistRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendIsOrgExistResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendIsOrgExist"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendIsOrgExistResponsePayload": {
        "type": "object",
        "properties": {
          "isExist": {
            "type": "boolean"
          }
        },
        "required": [
          "isExist"
        ]
      },
      "ToBackendIsOrgExistResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendIsOrgExistResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendIsOrgExistResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetOrgInfoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetOrgInfo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetOrgInfoRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "orgId"
        ]
      },
      "ToBackendSetOrgInfoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetOrgInfoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetOrgInfoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetOrgInfoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetOrgInfo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetOrgInfoResponsePayload": {
        "type": "object",
        "properties": {
          "org": {
            "$ref": "#/components/schemas/Org"
          }
        },
        "required": [
          "org"
        ]
      },
      "ToBackendSetOrgInfoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetOrgInfoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetOrgInfoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetOrgOwnerRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetOrgOwner"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetOrgOwnerRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "ownerEmail": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "ownerEmail"
        ]
      },
      "ToBackendSetOrgOwnerRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetOrgOwnerRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetOrgOwnerRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetOrgOwnerResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetOrgOwner"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetOrgOwnerResponsePayload": {
        "type": "object",
        "properties": {
          "org": {
            "$ref": "#/components/schemas/Org"
          }
        },
        "required": [
          "org"
        ]
      },
      "ToBackendSetOrgOwnerResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetOrgOwnerResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetOrgOwnerResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateProjectRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateProject"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateProjectRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "remoteType": {
            "type": "string",
            "enum": [
              "Managed",
              "GitClone"
            ]
          },
          "gitUrl": {
            "type": "string",
            "nullable": true
          },
          "noteId": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "orgId",
          "name",
          "remoteType"
        ]
      },
      "ToBackendCreateProjectRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateProjectRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateProjectRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateProjectResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateProject"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateProjectResponsePayload": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/Project"
          }
        },
        "required": [
          "project"
        ]
      },
      "Project": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "remoteType": {
            "type": "string",
            "enum": [
              "Managed",
              "GitClone"
            ]
          },
          "name": {
            "type": "string"
          },
          "gitUrl": {
            "type": "string",
            "nullable": true
          },
          "defaultBranch": {
            "type": "string",
            "nullable": true
          },
          "publicKey": {
            "type": "string",
            "nullable": true
          },
          "isZenApiKeySet": {
            "type": "boolean",
            "nullable": true
          },
          "isAnthropicApiKeySet": {
            "type": "boolean",
            "nullable": true
          },
          "isOpenaiApiKeySet": {
            "type": "boolean",
            "nullable": true
          },
          "isE2bApiKeySet": {
            "type": "boolean",
            "nullable": true
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "orgId",
          "projectId",
          "remoteType",
          "name"
        ]
      },
      "ToBackendCreateProjectResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateProjectResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateProjectResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteProjectRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteProject"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteProjectRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendDeleteProjectRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteProjectRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteProjectRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteProjectResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteProject"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteProjectResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteProjectResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteProjectResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteProjectResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGenerateProjectRemoteKeyRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGenerateProjectRemoteKey"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGenerateProjectRemoteKeyRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          }
        },
        "required": [
          "orgId"
        ]
      },
      "ToBackendGenerateProjectRemoteKeyRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGenerateProjectRemoteKeyRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGenerateProjectRemoteKeyRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGenerateProjectRemoteKeyResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGenerateProjectRemoteKey"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGenerateProjectRemoteKeyResponsePayload": {
        "type": "object",
        "properties": {
          "noteId": {
            "type": "string"
          },
          "publicKey": {
            "type": "string"
          }
        },
        "required": [
          "noteId",
          "publicKey"
        ]
      },
      "ToBackendGenerateProjectRemoteKeyResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGenerateProjectRemoteKeyResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGenerateProjectRemoteKeyResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetProjectRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetProject"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetProjectRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetProjectRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetProjectRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetProjectRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetProjectResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetProject"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetProjectResponsePayload": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/Project"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          }
        },
        "required": [
          "project",
          "userMember"
        ]
      },
      "ToBackendGetProjectResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetProjectResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetProjectResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetProjectsListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetProjectsList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetProjectsListRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          }
        },
        "required": [
          "orgId"
        ]
      },
      "ToBackendGetProjectsListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetProjectsListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetProjectsListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetProjectsListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetProjectsList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetProjectsListResponsePayload": {
        "type": "object",
        "properties": {
          "projectsList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectsItem"
            }
          }
        },
        "required": [
          "projectsList"
        ]
      },
      "ProjectsItem": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "defaultBranch": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "name",
          "defaultBranch"
        ]
      },
      "ToBackendGetProjectsListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetProjectsListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetProjectsListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendIsProjectExistRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendIsProjectExist"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendIsProjectExistRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "name"
        ]
      },
      "ToBackendIsProjectExistRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendIsProjectExistRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendIsProjectExistRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendIsProjectExistResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendIsProjectExist"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendIsProjectExistResponsePayload": {
        "type": "object",
        "properties": {
          "isExist": {
            "type": "boolean"
          }
        },
        "required": [
          "isExist"
        ]
      },
      "ToBackendIsProjectExistResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendIsProjectExistResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendIsProjectExistResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetProjectApiKeyRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetProjectApiKey"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetProjectApiKeyRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "zenApiKey": {
            "type": "string",
            "nullable": true
          },
          "anthropicApiKey": {
            "type": "string",
            "nullable": true
          },
          "openaiApiKey": {
            "type": "string",
            "nullable": true
          },
          "e2bApiKey": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendSetProjectApiKeyRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetProjectApiKeyRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetProjectApiKeyRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetProjectApiKeyResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetProjectApiKey"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetProjectApiKeyResponsePayload": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/Project"
          }
        },
        "required": [
          "project"
        ]
      },
      "ToBackendSetProjectApiKeyResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetProjectApiKeyResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetProjectApiKeyResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetProjectInfoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetProjectInfo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetProjectInfoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendSetProjectInfoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetProjectInfoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetProjectInfoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetProjectInfoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetProjectInfo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetProjectInfoResponsePayload": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/Project"
          }
        },
        "required": [
          "project"
        ]
      },
      "ToBackendSetProjectInfoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetProjectInfoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetProjectInfoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEnvRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateEnv"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateEnvRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId"
        ]
      },
      "ToBackendCreateEnvRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEnvRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEnvRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEnvResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateEnv"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateEnvResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "Env": {
        "type": "object",
        "properties": {
          "envId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "envUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnvUser"
            }
          },
          "isFallbackToProdConnections": {
            "type": "boolean"
          },
          "isFallbackToProdVariables": {
            "type": "boolean"
          },
          "useProdCache": {
            "type": "boolean"
          },
          "envConnectionIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "envConnectionIdsWithFallback": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fallbackConnectionIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "evs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Ev"
            }
          },
          "evsWithFallback": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Ev"
            }
          },
          "fallbackEvIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "envId",
          "projectId",
          "envUsers",
          "isFallbackToProdConnections",
          "isFallbackToProdVariables",
          "useProdCache",
          "envConnectionIds",
          "envConnectionIdsWithFallback",
          "fallbackConnectionIds",
          "evs",
          "evsWithFallback",
          "fallbackEvIds"
        ]
      },
      "Ev": {
        "type": "object",
        "properties": {
          "evId": {
            "type": "string"
          },
          "val": {
            "type": "string"
          }
        },
        "required": [
          "evId",
          "val"
        ]
      },
      "ToBackendCreateEnvResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEnvResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEnvResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEnvVarRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateEnvVar"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateEnvVarRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "evId": {
            "type": "string"
          },
          "val": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "evId",
          "val"
        ]
      },
      "ToBackendCreateEnvVarRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEnvVarRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEnvVarRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEnvVarResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateEnvVar"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateEnvVarResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendCreateEnvVarResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEnvVarResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEnvVarResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEnvUserRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateEnvUser"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateEnvUserRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "envUserId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "envUserId"
        ]
      },
      "ToBackendCreateEnvUserRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEnvUserRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEnvUserRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateEnvUserResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateEnvUser"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateEnvUserResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendCreateEnvUserResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateEnvUserResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateEnvUserResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteEnvRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteEnv"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteEnvRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId"
        ]
      },
      "ToBackendDeleteEnvRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteEnvResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteEnv"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteEnvResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendDeleteEnvResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteEnvVarRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteEnvVar"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteEnvVarRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "evId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "evId"
        ]
      },
      "ToBackendDeleteEnvVarRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvVarRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvVarRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteEnvVarResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteEnvVar"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteEnvVarResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendDeleteEnvVarResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvVarResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvVarResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteEnvUserRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteEnvUser"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteEnvUserRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "envUserId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "envUserId"
        ]
      },
      "ToBackendDeleteEnvUserRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvUserRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvUserRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteEnvUserResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteEnvUser"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteEnvUserResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendDeleteEnvUserResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvUserResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteEnvUserResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditEnvVarRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditEnvVar"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditEnvVarRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "evId": {
            "type": "string"
          },
          "val": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "envId",
          "evId",
          "val"
        ]
      },
      "ToBackendEditEnvVarRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditEnvVarRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditEnvVarRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditEnvVarResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditEnvVar"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditEnvVarResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendEditEnvVarResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditEnvVarResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditEnvVarResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetEnvsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetEnvs"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetEnvsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetEnvsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetEnvsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetEnvsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetEnvsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetEnvs"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetEnvsResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendGetEnvsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetEnvsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetEnvsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetEnvsListRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetEnvsList"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetEnvsListRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "isFilter": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "isFilter"
        ]
      },
      "ToBackendGetEnvsListRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetEnvsListRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetEnvsListRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetEnvsListResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetEnvsList"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetEnvsListResponsePayload": {
        "type": "object",
        "properties": {
          "envsList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnvsItem"
            }
          }
        },
        "required": [
          "envsList"
        ]
      },
      "EnvsItem": {
        "type": "object",
        "properties": {
          "envId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "envId",
          "projectId"
        ]
      },
      "ToBackendGetEnvsListResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetEnvsListResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetEnvsListResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditEnvFallbacksRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditEnvFallbacks"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditEnvFallbacksRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "isFallbackToProdConnections": {
            "type": "boolean"
          },
          "isFallbackToProdVariables": {
            "type": "boolean"
          },
          "useProdCache": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "envId",
          "isFallbackToProdConnections",
          "isFallbackToProdVariables",
          "useProdCache"
        ]
      },
      "ToBackendEditEnvFallbacksRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditEnvFallbacksRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditEnvFallbacksRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditEnvFallbacksResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditEnvFallbacks"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditEnvFallbacksResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Env"
            }
          }
        },
        "required": [
          "userMember",
          "envs"
        ]
      },
      "ToBackendEditEnvFallbacksResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditEnvFallbacksResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditEnvFallbacksResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateGivenRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateGiven"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateGivenRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "givenId": {
            "type": "string",
            "pattern": "^[A-Z_][A-Z0-9_]*$"
          },
          "type": {
            "type": "string",
            "enum": [
              "String",
              "Number",
              "Boolean",
              "Date",
              "Timestamp"
            ]
          },
          "isMultiple": {
            "type": "boolean"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "givenId",
          "type",
          "isMultiple",
          "values"
        ]
      },
      "ToBackendCreateGivenRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateGivenRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateGivenRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateGivenResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateGiven"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateGivenResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "givens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Given"
            }
          }
        },
        "required": [
          "userMember",
          "givens"
        ]
      },
      "Given": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "givenId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "String",
              "Number",
              "Boolean",
              "Date",
              "Timestamp"
            ]
          },
          "isMultiple": {
            "type": "boolean"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "givenId",
          "type",
          "isMultiple",
          "values"
        ]
      },
      "ToBackendCreateGivenResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateGivenResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateGivenResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteGivenRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteGiven"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteGivenRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "givenId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "givenId"
        ]
      },
      "ToBackendDeleteGivenRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteGivenRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteGivenRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteGivenResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteGiven"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteGivenResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "givens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Given"
            }
          }
        },
        "required": [
          "userMember",
          "givens"
        ]
      },
      "ToBackendDeleteGivenResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteGivenResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteGivenResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditGivenRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditGiven"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditGivenRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "givenId": {
            "type": "string",
            "pattern": "^[A-Z_][A-Z0-9_]*$"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "givenId",
          "values"
        ]
      },
      "ToBackendEditGivenRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditGivenRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditGivenRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditGivenResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditGiven"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditGivenResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "givens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Given"
            }
          }
        },
        "required": [
          "userMember",
          "givens"
        ]
      },
      "ToBackendEditGivenResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditGivenResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditGivenResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetGivensRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetGivens"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetGivensRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetGivensRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetGivensRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetGivensRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetGivensResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetGivens"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetGivensResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "givens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Given"
            }
          }
        },
        "required": [
          "userMember",
          "givens"
        ]
      },
      "ToBackendGetGivensResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetGivensResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetGivensResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateRoleRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateRole"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateRoleRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "roleId": {
            "type": "string",
            "pattern": "^[a-z_][a-z0-9_]*$"
          }
        },
        "required": [
          "projectId",
          "roleId"
        ]
      },
      "ToBackendCreateRoleRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateRoleRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateRoleRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateRoleResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateRole"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateRoleResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          }
        },
        "required": [
          "userMember",
          "roles"
        ]
      },
      "ToBackendCreateRoleResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateRoleResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateRoleResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateRoleGivenRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateRoleGiven"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateRoleGivenRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "givenId": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "roleId",
          "givenId",
          "values"
        ]
      },
      "ToBackendCreateRoleGivenRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateRoleGivenRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateRoleGivenRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateRoleGivenResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateRoleGiven"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateRoleGivenResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          }
        },
        "required": [
          "userMember",
          "roles"
        ]
      },
      "ToBackendCreateRoleGivenResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateRoleGivenResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateRoleGivenResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditRoleGivenRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditRoleGiven"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditRoleGivenRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "givenId": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "roleId",
          "givenId",
          "values"
        ]
      },
      "ToBackendEditRoleGivenRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditRoleGivenRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditRoleGivenRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditRoleGivenResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditRoleGiven"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditRoleGivenResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          }
        },
        "required": [
          "userMember",
          "roles"
        ]
      },
      "ToBackendEditRoleGivenResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditRoleGivenResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditRoleGivenResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteRoleGivenRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteRoleGiven"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteRoleGivenRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "givenId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "roleId",
          "givenId"
        ]
      },
      "ToBackendDeleteRoleGivenRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleGivenRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleGivenRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteRoleGivenResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteRoleGiven"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteRoleGivenResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          }
        },
        "required": [
          "userMember",
          "roles"
        ]
      },
      "ToBackendDeleteRoleGivenResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleGivenResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleGivenResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteRoleRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteRole"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteRoleRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "roleId"
        ]
      },
      "ToBackendDeleteRoleRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteRoleResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteRole"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteRoleResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          }
        },
        "required": [
          "userMember",
          "roles"
        ]
      },
      "ToBackendDeleteRoleResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteRoleResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetRolesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetRoles"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetRolesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetRolesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetRolesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetRolesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetRolesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetRoles"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetRolesResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          },
          "givens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Given"
            }
          }
        },
        "required": [
          "userMember",
          "roles",
          "givens"
        ]
      },
      "ToBackendGetRolesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetRolesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetRolesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCancelQueriesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCancelQueries"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCancelQueriesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "mconfigIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "mconfigIds"
        ]
      },
      "ToBackendCancelQueriesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCancelQueriesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCancelQueriesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCancelQueriesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCancelQueries"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCancelQueriesResponsePayload": {
        "type": "object",
        "properties": {
          "queries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Query"
            }
          }
        },
        "required": [
          "queries"
        ]
      },
      "ToBackendCancelQueriesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCancelQueriesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCancelQueriesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetQueriesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetQueries"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetQueriesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "mconfigIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "skipData": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "mconfigIds",
          "skipData"
        ]
      },
      "ToBackendGetQueriesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetQueriesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetQueriesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetQueriesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetQueries"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetQueriesResponsePayload": {
        "type": "object",
        "properties": {
          "queries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Query"
            }
          }
        },
        "required": [
          "queries"
        ]
      },
      "ToBackendGetQueriesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetQueriesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetQueriesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetQueryRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetQuery"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetQueryRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "mconfigId": {
            "type": "string"
          },
          "queryId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "mconfigId",
          "queryId"
        ]
      },
      "ToBackendGetQueryRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetQueryRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetQueryRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetQueryResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetQuery"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetQueryResponsePayload": {
        "type": "object",
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          }
        },
        "required": [
          "query"
        ]
      },
      "ToBackendGetQueryResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetQueryResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetQueryResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetQueryInfoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetQueryInfo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetQueryInfoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "chartId": {
            "type": "string",
            "nullable": true
          },
          "dashboardId": {
            "type": "string",
            "nullable": true
          },
          "tileIndex": {
            "type": "number",
            "nullable": true
          },
          "reportId": {
            "type": "string",
            "nullable": true
          },
          "rowId": {
            "type": "string",
            "nullable": true
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ],
            "nullable": true
          },
          "timeRangeFractionBrick": {
            "type": "string",
            "nullable": true
          },
          "getMalloy": {
            "type": "boolean"
          },
          "getSql": {
            "type": "boolean"
          },
          "getData": {
            "type": "boolean"
          },
          "isFetch": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "timezone",
          "getMalloy",
          "getSql",
          "getData",
          "isFetch"
        ]
      },
      "ToBackendGetQueryInfoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetQueryInfoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetQueryInfoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetQueryInfoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetQueryInfo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetQueryInfoResponsePayload": {
        "type": "object",
        "properties": {
          "chart": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInfoChart"
              }
            ],
            "nullable": true
          },
          "dashboard": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInfoDashboard"
              }
            ],
            "nullable": true
          },
          "report": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInfoReport"
              }
            ],
            "nullable": true
          }
        }
      },
      "QueryInfoChart": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "query": {
            "$ref": "#/components/schemas/QueryInfoQuery"
          }
        },
        "required": [
          "title",
          "chartId",
          "url",
          "query"
        ]
      },
      "QueryInfoQuery": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string"
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "queryId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "Running",
              "Canceled",
              "Completed",
              "Error"
            ]
          },
          "lastRunBy": {
            "type": "string",
            "nullable": true
          },
          "lastRunTs": {
            "type": "number",
            "nullable": true
          },
          "lastCancelTs": {
            "type": "number",
            "nullable": true
          },
          "lastCompleteTs": {
            "type": "number",
            "nullable": true
          },
          "lastCompleteDuration": {
            "type": "number",
            "nullable": true
          },
          "lastErrorMessage": {
            "type": "string",
            "nullable": true
          },
          "lastErrorTs": {
            "type": "number",
            "nullable": true
          },
          "data": {
            "nullable": true
          },
          "malloy": {
            "type": "string",
            "nullable": true
          },
          "sql": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "connectionId",
          "connectionType",
          "queryId",
          "status"
        ]
      },
      "QueryInfoDashboard": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryInfoTile"
            }
          }
        },
        "required": [
          "title",
          "dashboardId",
          "url",
          "tiles"
        ]
      },
      "QueryInfoTile": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "query": {
            "$ref": "#/components/schemas/QueryInfoQuery"
          }
        },
        "required": [
          "title",
          "query"
        ]
      },
      "QueryInfoReport": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryInfoRow"
            }
          }
        },
        "required": [
          "title",
          "reportId",
          "url",
          "rows"
        ]
      },
      "QueryInfoRow": {
        "type": "object",
        "properties": {
          "rowId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rowType": {
            "type": "string",
            "enum": [
              "empty",
              "header",
              "metric",
              "formula"
            ]
          },
          "metricId": {
            "type": "string"
          },
          "formula": {
            "type": "string"
          },
          "parameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Parameter"
            }
          },
          "query": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryInfoQuery"
              }
            ],
            "nullable": true
          },
          "records": {
            "type": "array",
            "items": {},
            "nullable": true
          }
        },
        "required": [
          "rowId",
          "name",
          "rowType",
          "metricId",
          "formula",
          "parameters"
        ]
      },
      "Parameter": {
        "type": "object",
        "properties": {
          "apply_to": {
            "type": "string"
          },
          "listen": {
            "type": "string"
          },
          "fractions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fraction"
            }
          }
        },
        "required": [
          "apply_to",
          "listen",
          "fractions"
        ]
      },
      "ToBackendGetQueryInfoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetQueryInfoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetQueryInfoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRunQueriesRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRunQueries"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRunQueriesRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "mconfigIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "poolSize": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "mconfigIds"
        ]
      },
      "ToBackendRunQueriesRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRunQueriesRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRunQueriesRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRunQueriesResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRunQueries"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRunQueriesResponsePayload": {
        "type": "object",
        "properties": {
          "runningQueries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Query"
            }
          },
          "startedQueryIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "runningQueries",
          "startedQueryIds"
        ]
      },
      "ToBackendRunQueriesResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRunQueriesResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRunQueriesResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRunQueriesDryRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRunQueriesDry"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRunQueriesDryRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "mconfigIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dryId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "mconfigIds",
          "dryId"
        ]
      },
      "ToBackendRunQueriesDryRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRunQueriesDryRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRunQueriesDryRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRunQueriesDryResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRunQueriesDry"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRunQueriesDryResponsePayload": {
        "type": "object",
        "properties": {
          "dryId": {
            "type": "string"
          },
          "validQueryEstimates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryEstimate"
            }
          },
          "errorQueries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Query"
            }
          }
        },
        "required": [
          "dryId",
          "validQueryEstimates",
          "errorQueries"
        ]
      },
      "QueryEstimate": {
        "type": "object",
        "properties": {
          "queryId": {
            "type": "string"
          },
          "estimate": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lastRunDryTs": {
            "type": "number"
          }
        },
        "required": [
          "queryId",
          "estimate",
          "lastRunDryTs"
        ]
      },
      "ToBackendRunQueriesDryResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRunQueriesDryResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRunQueriesDryResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCloneTestRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCloneTestRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCloneTestRepoRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "testId": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "testId"
        ]
      },
      "ToBackendCloneTestRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCloneTestRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCloneTestRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCloneTestRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCloneTestRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCloneTestRepoResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendCloneTestRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCloneTestRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCloneTestRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteRecordsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteRecords"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteRecordsRequestPayload": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "orgNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "orgIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "projectNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "projectIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "structIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        }
      },
      "ToBackendDeleteRecordsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteRecordsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteRecordsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteRecordsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteRecords"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteRecordsResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteRecordsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteRecordsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteRecordsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetRebuildStructRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetRebuildStruct"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetRebuildStructRequestPayload": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "overrideTimezone": {
            "type": "string",
            "nullable": true
          },
          "isUseCache": {
            "type": "boolean"
          },
          "cachedMproveConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MproveConfig"
              }
            ],
            "nullable": true
          },
          "cachedModels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Model"
            }
          },
          "cachedMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelMetric"
            }
          }
        },
        "required": [
          "orgId",
          "projectId",
          "repoId",
          "branch",
          "envId",
          "isUseCache",
          "cachedModels",
          "cachedMetrics"
        ]
      },
      "Model": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "type": "string"
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "spaceFullTitle": {
            "type": "string"
          },
          "fileText": {
            "type": "string"
          },
          "storeContent": {},
          "dateRangeIncludesRightSide": {
            "type": "boolean"
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "label": {
            "type": "string"
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelField"
            }
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelNode"
            }
          },
          "malloyModelDef": {},
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "hasAccess": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "structId",
          "modelId",
          "type",
          "connectionId",
          "connectionType",
          "filePath",
          "spaceFullTitle",
          "fileText",
          "storeContent",
          "dateRangeIncludesRightSide",
          "accessRoles",
          "accessRolesCombined",
          "label",
          "fields",
          "nodes",
          "malloyModelDef",
          "serverTs"
        ]
      },
      "ModelMetric": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string",
            "nullable": true
          },
          "modelType": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "connectionType": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "fieldId": {
            "type": "string"
          },
          "fieldClass": {
            "type": "string",
            "enum": [
              "dimension",
              "time",
              "measure",
              "calculation",
              "filter",
              "join",
              "info"
            ]
          },
          "fieldResult": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "timeFieldId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "fieldLineNum": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "Model"
            ]
          },
          "metricId": {
            "type": "string"
          },
          "topNode": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "topLabel": {
            "type": "string",
            "nullable": true
          },
          "partNodeLabel": {
            "type": "string",
            "nullable": true
          },
          "partFieldLabel": {
            "type": "string",
            "nullable": true
          },
          "partLabel": {
            "type": "string",
            "nullable": true
          },
          "timeNodeLabel": {
            "type": "string",
            "nullable": true
          },
          "timeFieldLabel": {
            "type": "string",
            "nullable": true
          },
          "timeLabel": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "formatNumber": {
            "type": "string",
            "nullable": true
          },
          "currencyPrefix": {
            "type": "string",
            "nullable": true
          },
          "currencySuffix": {
            "type": "string",
            "nullable": true
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "modelType",
          "connectionType",
          "fieldId",
          "fieldClass",
          "timeFieldId",
          "structId",
          "type",
          "metricId",
          "serverTs"
        ]
      },
      "ToBackendGetRebuildStructRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetRebuildStructRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetRebuildStructRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetRebuildStructResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetRebuildStruct"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBlockmlRebuildStructResponsePayload": {
        "type": "object",
        "properties": {
          "extraSchemas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtraSchema"
            }
          },
          "mproveConfig": {
            "$ref": "#/components/schemas/MproveConfig"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BmlError"
            }
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Model"
            }
          },
          "dashboards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dashboard"
            }
          },
          "reports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Report"
            }
          },
          "charts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Chart"
            }
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelMetric"
            }
          },
          "presets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Preset"
            }
          },
          "spaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Space"
            }
          },
          "mproveExplorer": {
            "type": "string",
            "nullable": true
          },
          "mconfigs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Mconfig"
            }
          },
          "queries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Query"
            }
          }
        },
        "required": [
          "extraSchemas",
          "mproveConfig",
          "errors",
          "models",
          "dashboards",
          "reports",
          "charts",
          "metrics",
          "presets",
          "spaces",
          "mconfigs",
          "queries"
        ]
      },
      "ExtraSchema": {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "tables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtraSchemaTable"
            }
          }
        },
        "required": [
          "schema",
          "tables"
        ]
      },
      "ExtraSchemaTable": {
        "type": "object",
        "properties": {
          "table": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtraSchemaColumn"
            }
          }
        },
        "required": [
          "table",
          "columns"
        ]
      },
      "ExtraSchemaColumn": {
        "type": "object",
        "properties": {
          "column": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "example": {
            "type": "string",
            "nullable": true
          },
          "cacheUniqueValues": {
            "type": "boolean",
            "nullable": true
          },
          "relationships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtraSchemaRelationship"
            }
          }
        },
        "required": [
          "column",
          "relationships"
        ]
      },
      "ExtraSchemaRelationship": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "toSchema": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "one_to_one",
              "one_to_many",
              "many_to_one",
              "many_to_many"
            ]
          }
        },
        "required": [
          "to",
          "type"
        ]
      },
      "Dashboard": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "creatorId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tile"
            }
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardField"
            }
          },
          "content": {},
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "structId",
          "dashboardId",
          "draft",
          "creatorId",
          "title",
          "filePath",
          "accessRoles",
          "accessRolesCombined",
          "tiles",
          "fields",
          "content",
          "serverTs"
        ]
      },
      "Tile": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "modelFilePath": {
            "type": "string"
          },
          "mconfigId": {
            "type": "string"
          },
          "queryId": {
            "type": "string"
          },
          "trackChangeId": {
            "type": "string"
          },
          "listen": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "deletedFilterFieldIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "plateWidth": {
            "type": "number"
          },
          "plateHeight": {
            "type": "number"
          },
          "plateX": {
            "type": "number"
          },
          "plateY": {
            "type": "number"
          }
        },
        "required": [
          "modelId",
          "modelLabel",
          "modelFilePath",
          "mconfigId",
          "queryId",
          "trackChangeId",
          "listen",
          "title",
          "plateWidth",
          "plateHeight",
          "plateX",
          "plateY"
        ]
      },
      "DashboardField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "hidden": {
            "type": "boolean"
          },
          "maxFractions": {
            "type": "number",
            "nullable": true
          },
          "label": {
            "type": "string"
          },
          "result": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "storeModel": {
            "type": "string",
            "nullable": true
          },
          "storeResult": {
            "type": "string",
            "nullable": true
          },
          "storeFilter": {
            "type": "string",
            "nullable": true
          },
          "suggestModelDimension": {
            "type": "string",
            "nullable": true
          },
          "fractions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fraction"
            }
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "hidden",
          "label",
          "fractions"
        ]
      },
      "Report": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "creatorId": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportField"
            }
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "title": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFraction": {
            "$ref": "#/components/schemas/Fraction"
          },
          "rangeStart": {
            "type": "number",
            "nullable": true
          },
          "rangeEnd": {
            "type": "number",
            "nullable": true
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Column"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Row"
            }
          },
          "isTimeColumnsLimitExceeded": {
            "type": "boolean"
          },
          "timeColumnsLimit": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "timeColumnsLength": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "draftCreatedTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "structId",
          "reportId",
          "draft",
          "creatorId",
          "filePath",
          "fields",
          "accessRoles",
          "accessRolesCombined",
          "title",
          "timezone",
          "timeSpec",
          "timeRangeFraction",
          "columns",
          "rows",
          "isTimeColumnsLimitExceeded",
          "timeColumnsLimit",
          "timeColumnsLength",
          "draftCreatedTs",
          "chart",
          "serverTs"
        ]
      },
      "ReportField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "hidden": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "fractions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fraction"
            }
          },
          "maxFractions": {
            "type": "number",
            "nullable": true
          },
          "result": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "suggestModelDimension": {
            "type": "string",
            "nullable": true
          },
          "storeModel": {
            "type": "string",
            "nullable": true
          },
          "storeResult": {
            "type": "string",
            "nullable": true
          },
          "storeFilter": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "hidden",
          "label",
          "fractions"
        ]
      },
      "Column": {
        "type": "object",
        "properties": {
          "columnId": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "columnId",
          "label"
        ]
      },
      "Row": {
        "type": "object",
        "properties": {
          "rowId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rowType": {
            "type": "string",
            "enum": [
              "empty",
              "header",
              "metric",
              "formula"
            ]
          },
          "metricId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "topLabel": {
            "type": "string"
          },
          "partNodeLabel": {
            "type": "string"
          },
          "partFieldLabel": {
            "type": "string"
          },
          "partLabel": {
            "type": "string"
          },
          "timeNodeLabel": {
            "type": "string"
          },
          "timeFieldLabel": {
            "type": "string"
          },
          "timeLabel": {
            "type": "string"
          },
          "formulaError": {
            "type": "string",
            "nullable": true
          },
          "topQueryError": {
            "type": "string",
            "nullable": true
          },
          "hasAccessToModel": {
            "type": "boolean"
          },
          "mconfig": {
            "$ref": "#/components/schemas/MconfigX"
          },
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "showChart": {
            "type": "boolean"
          },
          "rqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Rq"
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RowRecord"
            }
          },
          "formatNumber": {
            "type": "string"
          },
          "currencyPrefix": {
            "type": "string"
          },
          "currencySuffix": {
            "type": "string"
          },
          "parameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Parameter"
            }
          },
          "parametersFiltersWithExcludedTime": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Filter"
            }
          },
          "formula": {
            "type": "string"
          },
          "formulaDeps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "deps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "rowId",
          "name",
          "rowType",
          "metricId",
          "modelId",
          "topLabel",
          "partNodeLabel",
          "partFieldLabel",
          "partLabel",
          "timeNodeLabel",
          "timeFieldLabel",
          "timeLabel",
          "hasAccessToModel",
          "mconfig",
          "query",
          "showChart",
          "rqs",
          "records",
          "formatNumber",
          "currencyPrefix",
          "currencySuffix",
          "parameters",
          "parametersFiltersWithExcludedTime",
          "formula",
          "formulaDeps",
          "deps"
        ]
      },
      "Rq": {
        "type": "object",
        "properties": {
          "fractionBrick": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeStartTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "timeEndTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "mconfigId": {
            "type": "string"
          },
          "queryId": {
            "type": "string"
          },
          "kitId": {
            "type": "string"
          },
          "lastCalculatedTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          }
        },
        "required": [
          "fractionBrick",
          "timezone",
          "timeSpec",
          "timeStartTs",
          "timeEndTs",
          "mconfigId",
          "queryId",
          "kitId"
        ]
      },
      "RowRecord": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "columnLabel": {
            "type": "string"
          },
          "key": {
            "type": "number"
          },
          "value": {},
          "error": {}
        },
        "required": [
          "id",
          "columnLabel",
          "key",
          "value",
          "error"
        ]
      },
      "Chart": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "isExplorer": {
            "type": "boolean",
            "nullable": true
          },
          "sessionId": {
            "type": "string",
            "nullable": true
          },
          "chartYaml": {
            "type": "string",
            "nullable": true
          },
          "creatorId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tile"
            }
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "structId",
          "chartId",
          "draft",
          "creatorId",
          "title",
          "modelId",
          "modelLabel",
          "filePath",
          "accessRoles",
          "accessRolesCombined",
          "tiles",
          "serverTs"
        ]
      },
      "Mconfig": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "mconfigId": {
            "type": "string"
          },
          "queryId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelType": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "parentType": {
            "type": "string",
            "enum": [
              "Dashboard",
              "ChartDialogDashboard",
              "SuggestDimensionDashboard",
              "Report",
              "ChartDialogReport",
              "SuggestDimensionReport",
              "Chart",
              "SuggestDimensionChart",
              "SuggestDimensionModel",
              "Blank"
            ]
          },
          "parentId": {
            "type": "string",
            "nullable": true
          },
          "dateRangeIncludesRightSide": {
            "type": "boolean",
            "nullable": true
          },
          "storePart": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StorePart"
              }
            ],
            "nullable": true
          },
          "modelLabel": {
            "type": "string"
          },
          "modelFilePath": {
            "type": "string",
            "nullable": true
          },
          "malloyQueryStable": {
            "type": "string",
            "nullable": true
          },
          "malloyQueryExtra": {
            "type": "string",
            "nullable": true
          },
          "compiledQuery": {},
          "select": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sortings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sorting"
            }
          },
          "sorts": {
            "type": "string",
            "nullable": true
          },
          "timezone": {
            "type": "string"
          },
          "limit": {
            "type": "number"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Filter"
            }
          },
          "appliedGivens": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    },
                    {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "boolean"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "defaultText": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "defaultText"
                  ]
                }
              ]
            },
            "nullable": true
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "structId",
          "mconfigId",
          "queryId",
          "modelId",
          "modelType",
          "parentType",
          "modelLabel",
          "compiledQuery",
          "select",
          "sortings",
          "timezone",
          "limit",
          "filters",
          "chart",
          "serverTs"
        ]
      },
      "ToBackendGetRebuildStructResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetRebuildStructResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBlockmlRebuildStructResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSeedRecordsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSeedRecords"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSeedRecordsRequestPayload": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadUsersItem"
            },
            "nullable": true
          },
          "orgs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadOrgsItem"
            },
            "nullable": true
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadProjectsItem"
            },
            "nullable": true
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadMembersItem"
            },
            "nullable": true
          },
          "connections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadConnectionsItem"
            },
            "nullable": true
          },
          "envs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadEnvsItem"
            },
            "nullable": true
          },
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadSessionsItem"
            },
            "nullable": true
          },
          "queries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Query"
            },
            "nullable": true
          },
          "mconfigs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Mconfig"
            },
            "nullable": true
          },
          "cachedColumns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadCachedColumnsItem"
            },
            "nullable": true
          },
          "cachedParts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadCachedPartsItem"
            },
            "nullable": true
          },
          "modelFieldLeafs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayloadModelFieldLeafsItem"
            },
            "nullable": true
          }
        }
      },
      "ToBackendSeedRecordsRequestPayloadUsersItem": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "isEmailVerified": {
            "type": "boolean",
            "nullable": true
          },
          "emailVerificationToken": {
            "type": "string",
            "nullable": true
          },
          "passwordResetToken": {
            "type": "string",
            "nullable": true
          },
          "passwordResetExpiresTs": {
            "type": "number",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "email"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadOrgsItem": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "ownerId": {
            "type": "string",
            "nullable": true
          },
          "ownerEmail": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "ownerEmail"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadProjectsItem": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "projectId": {
            "type": "string",
            "nullable": true
          },
          "testProjectId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "defaultBranch": {
            "type": "string"
          },
          "remoteType": {
            "type": "string",
            "enum": [
              "Managed",
              "GitClone"
            ]
          },
          "gitUrl": {
            "type": "string",
            "nullable": true
          },
          "publicKey": {
            "type": "string",
            "nullable": true
          },
          "privateKey": {
            "type": "string",
            "nullable": true
          },
          "publicKeyEncrypted": {
            "type": "string",
            "nullable": true
          },
          "privateKeyEncrypted": {
            "type": "string",
            "nullable": true
          },
          "passPhrase": {
            "type": "string",
            "nullable": true
          },
          "e2bApiKey": {
            "type": "string",
            "nullable": true
          },
          "zenApiKey": {
            "type": "string",
            "nullable": true
          },
          "anthropicApiKey": {
            "type": "string",
            "nullable": true
          },
          "openaiApiKey": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "orgId",
          "name",
          "defaultBranch",
          "remoteType"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadMembersItem": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "memberId": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "envs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isAdmin": {
            "type": "boolean"
          },
          "isEditor": {
            "type": "boolean"
          },
          "isExplorer": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "email",
          "memberId",
          "isAdmin",
          "isEditor",
          "isExplorer"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadConnectionsItem": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "PostgreSQL",
              "MySQL",
              "SnowFlake",
              "BigQuery",
              "Databricks",
              "MotherDuck",
              "Presto",
              "Trino",
              "GoogleApi",
              "Api"
            ]
          },
          "options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionOptions"
              }
            ],
            "nullable": true
          },
          "rawSchema": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionRawSchema"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId",
          "connectionId",
          "type"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadEnvsItem": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "evs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Ev"
            },
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "envId"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadSessionsItem": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "apiKey": {
            "type": "string"
          },
          "apiKeyPrefix": {
            "type": "string"
          },
          "apiKeySecretHash": {
            "type": "string"
          },
          "apiKeySalt": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "Active",
              "Paused",
              "Error",
              "Archived",
              "Deleted"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "Explorer",
              "Editor"
            ]
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId",
          "userId",
          "projectId",
          "apiKey",
          "apiKeyPrefix",
          "apiKeySecretHash",
          "apiKeySalt",
          "status",
          "type",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadCachedColumnsItem": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "schemaNameLc": {
            "type": "string"
          },
          "tableNameLc": {
            "type": "string"
          },
          "columnNameLc": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "completed",
              "error"
            ]
          },
          "limit": {
            "type": "number"
          },
          "startedTs": {
            "type": "number"
          },
          "completedTs": {
            "type": "number",
            "nullable": true
          },
          "completedDurationMs": {
            "type": "number",
            "nullable": true
          },
          "sampleSize": {
            "type": "number",
            "nullable": true
          },
          "isLimitReached": {
            "type": "boolean",
            "nullable": true
          },
          "uniqueValuesCount": {
            "type": "number",
            "nullable": true
          },
          "requestedByUserId": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "connectionId",
          "envId",
          "schemaNameLc",
          "tableNameLc",
          "columnNameLc",
          "status",
          "limit",
          "startedTs"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadCachedPartsItem": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "schemaNameLc": {
            "type": "string"
          },
          "tableNameLc": {
            "type": "string"
          },
          "columnNameLc": {
            "type": "string"
          },
          "columnValue": {
            "type": "string",
            "nullable": true
          },
          "columnValueLc": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "projectId",
          "connectionId",
          "envId",
          "schemaNameLc",
          "tableNameLc",
          "columnNameLc",
          "count"
        ]
      },
      "ToBackendSeedRecordsRequestPayloadModelFieldLeafsItem": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelType": {
            "type": "string",
            "enum": [
              "Store",
              "Malloy"
            ]
          },
          "connectionId": {
            "type": "string",
            "nullable": true
          },
          "fieldId": {
            "type": "string"
          },
          "fieldResult": {
            "type": "string",
            "enum": [
              "day_of_week",
              "day_of_week_index",
              "month_name",
              "quarter_of_year",
              "ts",
              "yesno",
              "string",
              "number",
              "date",
              "boolean",
              "array",
              "record",
              "json",
              "sql_native"
            ],
            "nullable": true
          },
          "schemaNameLc": {
            "type": "string",
            "nullable": true
          },
          "tableNameLc": {
            "type": "string",
            "nullable": true
          },
          "columnNameLc": {
            "type": "string",
            "nullable": true
          },
          "fieldNameLc": {
            "type": "string",
            "nullable": true
          },
          "labelLc": {
            "type": "string",
            "nullable": true
          },
          "descriptionLc": {
            "type": "string",
            "nullable": true
          },
          "malloyFieldNameLc": {
            "type": "string",
            "nullable": true
          },
          "sqlNameLc": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "structId",
          "modelId",
          "modelType",
          "fieldId"
        ]
      },
      "ToBackendSeedRecordsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSeedRecordsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSeedRecordsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSeedRecordsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSeedRecords"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSeedRecordsResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendSeedRecordsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSeedRecordsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSeedRecordsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCommitRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCommitRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCommitRepoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "commitMessage": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "branchId",
          "repoId",
          "commitMessage"
        ]
      },
      "ToBackendCommitRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCommitRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCommitRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCommitRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCommitRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCommitRepoResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "session": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SessionApi"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "repo"
        ]
      },
      "ToBackendCommitRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCommitRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCommitRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetRepoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "isFetch": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "isFetch"
        ]
      },
      "ToBackendGetRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetRepoResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "repo": {
            "$ref": "#/components/schemas/Repo"
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "user",
          "repo"
        ]
      },
      "ToBackendGetRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendMergeRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendMergeRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendMergeRepoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "theirBranchId": {
            "type": "string"
          },
          "isTheirBranchRemote": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "theirBranchId",
          "isTheirBranchRemote"
        ]
      },
      "ToBackendMergeRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendMergeRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendMergeRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendMergeRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendMergeRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendMergeRepoResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendMergeRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendMergeRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendMergeRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPullRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendPullRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendPullRepoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendPullRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPullRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPullRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPullRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendPullRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendPullRepoResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendPullRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPullRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPullRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPushRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendPushRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendPushRepoRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendPushRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPushRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPushRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPushRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendPushRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendPushRepoResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendPushRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPushRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPushRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRevertRepoToLastCommitRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRevertRepoToLastCommit"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRevertRepoToLastCommitRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendRevertRepoToLastCommitRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToLastCommitRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToLastCommitRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRevertRepoToLastCommitResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRevertRepoToLastCommit"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRevertRepoToLastCommitResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendRevertRepoToLastCommitResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToLastCommitResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToLastCommitResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRevertRepoToRemoteRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRevertRepoToRemote"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRevertRepoToRemoteRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendRevertRepoToRemoteRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToRemoteRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToRemoteRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRevertRepoToRemoteResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRevertRepoToRemote"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRevertRepoToRemoteResponsePayload": {
        "type": "object",
        "properties": {
          "repo": {
            "$ref": "#/components/schemas/Repo"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "needValidate": {
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "struct",
          "needValidate"
        ]
      },
      "ToBackendRevertRepoToRemoteResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToRemoteResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRevertRepoToRemoteResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSyncRepoRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSyncRepo"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSyncRepoRequestPayload": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "string"
              },
              "repoId": {
                "type": "string"
              },
              "branchId": {
                "type": "string"
              },
              "lastCommit": {
                "type": "string"
              },
              "envId": {
                "type": "string"
              },
              "getRepo": {
                "type": "boolean",
                "nullable": true
              },
              "getRepoNodes": {
                "type": "boolean",
                "nullable": true
              },
              "getErrors": {
                "type": "boolean",
                "nullable": true
              },
              "debug": {
                "type": "boolean",
                "nullable": true
              },
              "direction": {
                "type": "string",
                "enum": [
                  "to-server"
                ]
              },
              "changedFiles": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DiskSyncFile"
                }
              },
              "deletedFiles": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DiskSyncFile"
                }
              }
            },
            "required": [
              "projectId",
              "repoId",
              "branchId",
              "lastCommit",
              "envId",
              "direction",
              "changedFiles",
              "deletedFiles"
            ]
          },
          {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "string"
              },
              "repoId": {
                "type": "string"
              },
              "branchId": {
                "type": "string"
              },
              "lastCommit": {
                "type": "string"
              },
              "envId": {
                "type": "string"
              },
              "getRepo": {
                "type": "boolean",
                "nullable": true
              },
              "getRepoNodes": {
                "type": "boolean",
                "nullable": true
              },
              "getErrors": {
                "type": "boolean",
                "nullable": true
              },
              "debug": {
                "type": "boolean",
                "nullable": true
              },
              "direction": {
                "type": "string",
                "enum": [
                  "from-server"
                ]
              }
            },
            "required": [
              "projectId",
              "repoId",
              "branchId",
              "lastCommit",
              "envId",
              "direction"
            ]
          }
        ]
      },
      "DiskSyncFile": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "Deleted",
              "Modified",
              "Conflicted",
              "TypeChange",
              "Renamed",
              "Ignored",
              "Unmodified",
              "Copied",
              "Untracked",
              "Unreadable"
            ],
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "path"
        ]
      },
      "ToBackendSyncRepoRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSyncRepoRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSyncRepoRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSyncRepoResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSyncRepo"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSyncRepoResponsePayload": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "orgId": {
                "type": "string"
              },
              "repoId": {
                "type": "string"
              },
              "validationErrorsTotal": {
                "type": "number"
              },
              "validationErrors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BmlError"
                },
                "nullable": true
              },
              "devChangesToCommit": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DiskFileChange"
                }
              },
              "repo": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ToBackendSyncRepoRepo"
                  }
                ],
                "nullable": true
              },
              "needValidate": {
                "type": "boolean",
                "nullable": true
              },
              "structId": {
                "type": "string",
                "nullable": true
              },
              "direction": {
                "type": "string",
                "enum": [
                  "to-server"
                ]
              },
              "appliedChangesOnServer": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "orgId",
              "repoId",
              "validationErrorsTotal",
              "devChangesToCommit",
              "direction",
              "appliedChangesOnServer"
            ]
          },
          {
            "type": "object",
            "properties": {
              "orgId": {
                "type": "string"
              },
              "repoId": {
                "type": "string"
              },
              "validationErrorsTotal": {
                "type": "number"
              },
              "validationErrors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BmlError"
                },
                "nullable": true
              },
              "devChangesToCommit": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DiskFileChange"
                }
              },
              "repo": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ToBackendSyncRepoRepo"
                  }
                ],
                "nullable": true
              },
              "needValidate": {
                "type": "boolean",
                "nullable": true
              },
              "structId": {
                "type": "string",
                "nullable": true
              },
              "direction": {
                "type": "string",
                "enum": [
                  "from-server"
                ]
              },
              "changedFiles": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DiskSyncFile"
                }
              },
              "deletedFiles": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DiskSyncFile"
                }
              }
            },
            "required": [
              "orgId",
              "repoId",
              "validationErrorsTotal",
              "devChangesToCommit",
              "direction",
              "changedFiles",
              "deletedFiles"
            ]
          }
        ]
      },
      "ToBackendSyncRepoRepo": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "currentBranchId": {
            "type": "string"
          },
          "repoStatus": {
            "type": "string",
            "enum": [
              "NeedCommit",
              "NeedPull",
              "NeedPush",
              "Ok"
            ]
          },
          "conflicts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskFileLine"
            }
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiskCatalogNode"
            },
            "nullable": true
          }
        },
        "required": [
          "orgId",
          "projectId",
          "repoId",
          "currentBranchId",
          "repoStatus",
          "conflicts"
        ]
      },
      "ToBackendSyncRepoResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSyncRepoResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSyncRepoResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSpecialRebuildStructsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSpecialRebuildStructs"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSpecialRebuildStructsRequestPayload": {
        "type": "object",
        "properties": {
          "specialKey": {
            "type": "string"
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "skipRebuild": {
            "type": "boolean"
          },
          "overrideTimezone": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "specialKey",
          "userIds",
          "skipRebuild"
        ]
      },
      "ToBackendSpecialRebuildStructsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSpecialRebuildStructsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSpecialRebuildStructsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSpecialRebuildStructsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSpecialRebuildStructs"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSpecialRebuildStructsResponsePayload": {
        "type": "object",
        "properties": {
          "notFoundProjectIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "successBridgeItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BridgeItem"
            }
          },
          "successTotal": {
            "type": "number"
          },
          "errorGetCatalogBridgeItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BridgeItem"
            }
          },
          "errorTotal": {
            "type": "number"
          }
        },
        "required": [
          "notFoundProjectIds",
          "successBridgeItems",
          "successTotal",
          "errorGetCatalogBridgeItems",
          "errorTotal"
        ]
      },
      "BridgeItem": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "needValidate": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "orgId",
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "structId",
          "needValidate"
        ]
      },
      "ToBackendSpecialRebuildStructsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSpecialRebuildStructsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSpecialRebuildStructsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRunRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRun"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRunRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "concurrency": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "wait": {
            "type": "boolean"
          },
          "sleep": {
            "type": "number",
            "nullable": true
          },
          "dashboardIds": {
            "type": "string",
            "nullable": true
          },
          "chartIds": {
            "type": "string",
            "nullable": true
          },
          "noDashboards": {
            "type": "boolean"
          },
          "noCharts": {
            "type": "boolean"
          },
          "getDashboards": {
            "type": "boolean"
          },
          "getCharts": {
            "type": "boolean"
          },
          "reportIds": {
            "type": "string",
            "nullable": true
          },
          "noReports": {
            "type": "boolean"
          },
          "getReports": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "wait",
          "noDashboards",
          "noCharts",
          "getDashboards",
          "getCharts",
          "noReports",
          "getReports"
        ]
      },
      "ToBackendRunRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRunRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRunRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRunResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRun"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRunResponsePayload": {
        "type": "object",
        "properties": {
          "charts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunChart"
            }
          },
          "dashboards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunDashboard"
            }
          },
          "errorCharts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunChart"
            }
          },
          "errorDashboards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunDashboard"
            }
          },
          "reports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunReport"
            }
          },
          "errorReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunReport"
            }
          },
          "queriesStats": {
            "$ref": "#/components/schemas/McliQueriesStats"
          }
        },
        "required": [
          "charts",
          "dashboards",
          "errorCharts",
          "errorDashboards",
          "reports",
          "errorReports",
          "queriesStats"
        ]
      },
      "RunChart": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "query": {
            "$ref": "#/components/schemas/RunQuery"
          }
        },
        "required": [
          "title",
          "chartId",
          "url",
          "query"
        ]
      },
      "RunQuery": {
        "type": "object",
        "properties": {
          "queryId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "New",
              "Running",
              "Canceled",
              "Completed",
              "Error"
            ]
          },
          "lastErrorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "queryId",
          "status"
        ]
      },
      "RunDashboard": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunTile"
            }
          }
        },
        "required": [
          "title",
          "dashboardId",
          "url",
          "tiles"
        ]
      },
      "RunTile": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "query": {
            "$ref": "#/components/schemas/RunQuery"
          }
        },
        "required": [
          "title",
          "query"
        ]
      },
      "RunReport": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunReportRow"
            }
          }
        },
        "required": [
          "title",
          "reportId",
          "url",
          "rows"
        ]
      },
      "RunReportRow": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "query": {
            "$ref": "#/components/schemas/RunQuery"
          }
        },
        "required": [
          "title",
          "query"
        ]
      },
      "McliQueriesStats": {
        "type": "object",
        "properties": {
          "started": {
            "type": "number"
          },
          "running": {
            "type": "number"
          },
          "completed": {
            "type": "number"
          },
          "error": {
            "type": "number"
          },
          "canceled": {
            "type": "number"
          }
        },
        "required": [
          "started",
          "running",
          "completed",
          "error",
          "canceled"
        ]
      },
      "ToBackendRunResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRunResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRunResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetServerUsersRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetServerUsers"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetServerUsersRequestPayload": {
        "type": "object",
        "properties": {
          "pageNum": {
            "type": "number"
          },
          "perPage": {
            "type": "number"
          }
        },
        "required": [
          "pageNum",
          "perPage"
        ]
      },
      "ToBackendGetServerUsersRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetServerUsersRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetServerUsersRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetServerUsersResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetServerUsers"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetServerUsersResponsePayload": {
        "type": "object",
        "properties": {
          "serverUsersList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServerUsersItem"
            }
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "serverUsersList",
          "total"
        ]
      },
      "ServerUsersItem": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          },
          "avatarSmall": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "createdTs": {
            "type": "number",
            "nullable": true
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServerUsersMembershipItem"
            }
          }
        },
        "required": [
          "userId",
          "email",
          "alias",
          "firstName",
          "lastName",
          "fullName",
          "memberships"
        ]
      },
      "ServerUsersMembershipItem": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "isOrgOwner": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "isFileEditor": {
            "type": "boolean"
          },
          "isExplorer": {
            "type": "boolean"
          }
        },
        "required": [
          "orgId",
          "isOrgOwner",
          "projectId",
          "isAdmin",
          "isFileEditor",
          "isExplorer"
        ]
      },
      "ToBackendGetServerUsersResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetServerUsersResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetServerUsersResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetStateRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetState"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetStateRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "isFetch": {
            "type": "boolean"
          },
          "getErrors": {
            "type": "boolean"
          },
          "getRepo": {
            "type": "boolean"
          },
          "getRepoNodes": {
            "type": "boolean"
          },
          "getModels": {
            "type": "boolean"
          },
          "getDashboards": {
            "type": "boolean"
          },
          "getCharts": {
            "type": "boolean"
          },
          "getMetrics": {
            "type": "boolean"
          },
          "getReports": {
            "type": "boolean"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "isFetch",
          "getErrors",
          "getRepo",
          "getRepoNodes",
          "getModels",
          "getDashboards",
          "getCharts",
          "getMetrics",
          "getReports"
        ]
      },
      "ToBackendGetStateRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetStateRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetStateRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetStateResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetState"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetStateResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "structId": {
            "type": "string"
          },
          "validationErrorsTotal": {
            "type": "number"
          },
          "modelsTotal": {
            "type": "number"
          },
          "chartsTotal": {
            "type": "number"
          },
          "dashboardsTotal": {
            "type": "number"
          },
          "reportsTotal": {
            "type": "number"
          },
          "builderUrl": {
            "type": "string"
          },
          "validationErrors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MproveValidationError"
            }
          },
          "modelItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StateModelItem"
            }
          },
          "chartItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StateChartItem"
            }
          },
          "dashboardItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StateDashboardItem"
            }
          },
          "reportItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StateReportItem"
            }
          },
          "metricItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StateMetricItem"
            }
          },
          "repo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Repo"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "needValidate",
          "structId",
          "validationErrorsTotal",
          "modelsTotal",
          "chartsTotal",
          "dashboardsTotal",
          "reportsTotal",
          "builderUrl",
          "validationErrors",
          "modelItems",
          "chartItems",
          "dashboardItems",
          "reportItems",
          "metricItems"
        ]
      },
      "MproveValidationError": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MproveValidationErrorLine"
            }
          }
        },
        "required": [
          "title",
          "message",
          "lines"
        ]
      },
      "MproveValidationErrorLine": {
        "type": "object",
        "properties": {
          "filePath": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "lineNumber": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "filePath",
          "fileName",
          "lineNumber"
        ]
      },
      "StateModelItem": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "modelId",
          "url"
        ]
      },
      "StateChartItem": {
        "type": "object",
        "properties": {
          "chartId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "chartId",
          "url"
        ]
      },
      "StateDashboardItem": {
        "type": "object",
        "properties": {
          "dashboardId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "dashboardId",
          "url"
        ]
      },
      "StateReportItem": {
        "type": "object",
        "properties": {
          "reportId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "reportId",
          "url"
        ]
      },
      "StateMetricItem": {
        "type": "object",
        "properties": {
          "metricId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "metricId",
          "name"
        ]
      },
      "ToBackendGetStateResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetStateResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetStateResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetStructRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetStruct"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetStructRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendGetStructRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetStructRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetStructRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetStructResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetStruct"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetStructResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember"
        ]
      },
      "ToBackendGetStructResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetStructResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetStructResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendConfirmUserEmailRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendConfirmUserEmail"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendConfirmUserEmailRequestPayload": {
        "type": "object",
        "properties": {
          "emailVerificationToken": {
            "type": "string"
          }
        },
        "required": [
          "emailVerificationToken"
        ]
      },
      "ToBackendConfirmUserEmailRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendConfirmUserEmailRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendConfirmUserEmailRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendConfirmUserEmailResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendConfirmUserEmail"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendConfirmUserEmailResponsePayload": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          }
        }
      },
      "ToBackendConfirmUserEmailResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendConfirmUserEmailResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendConfirmUserEmailResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCompleteUserRegistrationRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCompleteUserRegistration"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCompleteUserRegistrationRequestPayload": {
        "type": "object",
        "properties": {
          "emailVerificationToken": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          }
        },
        "required": [
          "emailVerificationToken",
          "newPassword"
        ]
      },
      "ToBackendCompleteUserRegistrationRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCompleteUserRegistrationRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCompleteUserRegistrationRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCompleteUserRegistrationResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCompleteUserRegistration"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCompleteUserRegistrationResponsePayload": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          }
        }
      },
      "ToBackendCompleteUserRegistrationResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCompleteUserRegistrationResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCompleteUserRegistrationResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteUserRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteUser"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteUserRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteUserRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteUserRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteUserRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteUserResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteUser"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteUserResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteUserResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteUserResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteUserResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetUserGivensRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetUserGivens"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetUserGivensRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "ToBackendGetUserGivensRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetUserGivensRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetUserGivensRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetUserGivensResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetUserGivens"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetUserGivensResponsePayload": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "memberGivens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberGiven"
            }
          }
        },
        "required": [
          "user",
          "memberGivens"
        ]
      },
      "ToBackendGetUserGivensResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetUserGivensResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetUserGivensResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetUserProfileRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetUserProfile"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetUserProfileRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendGetUserProfileRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetUserProfileRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetUserProfileRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetUserProfileResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetUserProfile"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetUserProfileResponsePayload": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ]
      },
      "ToBackendGetUserProfileResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetUserProfileResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetUserProfileResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendLoginUserRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendLoginUser"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendLoginUserRequestPayload": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ]
      },
      "ToBackendLoginUserRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendLoginUserRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendLoginUserRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendLoginUserResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendLoginUser"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendLoginUserResponsePayload": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "token",
          "user"
        ]
      },
      "ToBackendLoginUserResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendLoginUserResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendLoginUserResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendLogoutUserRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendLogoutUser"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendLogoutUserRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendLogoutUserRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendLogoutUserRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendLogoutUserRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendLogoutUserResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendLogoutUser"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendLogoutUserResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendLogoutUserResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendLogoutUserResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendLogoutUserResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRegisterUserRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendRegisterUser"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendRegisterUserRequestPayload": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ]
      },
      "ToBackendRegisterUserRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRegisterUserRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRegisterUserRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendRegisterUserResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendRegisterUser"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendRegisterUserResponsePayload": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ]
      },
      "ToBackendRegisterUserResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendRegisterUserResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendRegisterUserResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendResendUserEmailRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendResendUserEmail"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendResendUserEmailRequestPayload": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "userId"
        ]
      },
      "ToBackendResendUserEmailRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendResendUserEmailRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendResendUserEmailRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendResendUserEmailResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendResendUserEmail"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendResendUserEmailResponsePayload": {
        "type": "object",
        "properties": {
          "isEmailVerified": {
            "type": "boolean"
          }
        },
        "required": [
          "isEmailVerified"
        ]
      },
      "ToBackendResendUserEmailResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendResendUserEmailResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendResendUserEmailResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendResetUserPasswordRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendResetUserPassword"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendResetUserPasswordRequestPayload": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ]
      },
      "ToBackendResetUserPasswordRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendResetUserPasswordRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendResetUserPasswordRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendResetUserPasswordResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendResetUserPassword"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendResetUserPasswordResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendResetUserPasswordResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendResetUserPasswordResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendResetUserPasswordResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetUserNameRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetUserName"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetUserNameRequestPayload": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          }
        },
        "required": [
          "firstName",
          "lastName"
        ]
      },
      "ToBackendSetUserNameRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetUserNameRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetUserNameRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetUserNameResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetUserName"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetUserNameResponsePayload": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ]
      },
      "ToBackendSetUserNameResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetUserNameResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetUserNameResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetUserUiRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSetUserUi"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSetUserUiRequestPayload": {
        "type": "object",
        "properties": {
          "ui": {
            "$ref": "#/components/schemas/Ui"
          }
        },
        "required": [
          "ui"
        ]
      },
      "ToBackendSetUserUiRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetUserUiRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetUserUiRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSetUserUiResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSetUserUi"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSetUserUiResponsePayload": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ]
      },
      "ToBackendSetUserUiResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSetUserUiResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSetUserUiResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendUpdateUserPasswordRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendUpdateUserPassword"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendUpdateUserPasswordRequestPayload": {
        "type": "object",
        "properties": {
          "passwordResetToken": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          }
        },
        "required": [
          "passwordResetToken",
          "newPassword"
        ]
      },
      "ToBackendUpdateUserPasswordRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendUpdateUserPasswordRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendUpdateUserPasswordRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendUpdateUserPasswordResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendUpdateUserPassword"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendUpdateUserPasswordResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendUpdateUserPasswordResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendUpdateUserPasswordResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendUpdateUserPasswordResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGenerateUserApiKeyResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGenerateUserApiKey"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGenerateUserApiKeyResponsePayload": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string"
          },
          "apiKeyPrefix": {
            "type": "string"
          }
        },
        "required": [
          "apiKey",
          "apiKeyPrefix"
        ]
      },
      "ToBackendGenerateUserApiKeyResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGenerateUserApiKeyResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGenerateUserApiKeyResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteUserApiKeyResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteUserApiKey"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteUserApiKeyResponsePayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteUserApiKeyResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteUserApiKeyResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteUserApiKeyResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendStartUserCodexAuthRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendStartUserCodexAuth"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendStartUserCodexAuthRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendStartUserCodexAuthRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendStartUserCodexAuthRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendStartUserCodexAuthRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendStartUserCodexAuthResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendStartUserCodexAuth"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendStartUserCodexAuthResponsePayload": {
        "type": "object",
        "properties": {
          "userCode": {
            "type": "string"
          },
          "verificationUrl": {
            "type": "string"
          },
          "deviceAuthId": {
            "type": "string"
          },
          "intervalSec": {
            "type": "number"
          }
        },
        "required": [
          "userCode",
          "verificationUrl",
          "deviceAuthId",
          "intervalSec"
        ]
      },
      "ToBackendStartUserCodexAuthResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendStartUserCodexAuthResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendStartUserCodexAuthResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPollUserCodexAuthRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendPollUserCodexAuth"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendPollUserCodexAuthRequestPayload": {
        "type": "object",
        "properties": {
          "deviceAuthId": {
            "type": "string"
          },
          "userCode": {
            "type": "string"
          }
        },
        "required": [
          "deviceAuthId",
          "userCode"
        ]
      },
      "ToBackendPollUserCodexAuthRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPollUserCodexAuthRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPollUserCodexAuthRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendPollUserCodexAuthResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendPollUserCodexAuth"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendPollUserCodexAuthResponsePayload": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "Pending",
              "Authorized",
              "Failed"
            ]
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ]
      },
      "ToBackendPollUserCodexAuthResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendPollUserCodexAuthResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendPollUserCodexAuthResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteUserCodexAuthRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteUserCodexAuth"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteUserCodexAuthRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendDeleteUserCodexAuthRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteUserCodexAuthRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteUserCodexAuthRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteUserCodexAuthResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteUserCodexAuth"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteUserCodexAuthResponsePayload": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ]
      },
      "ToBackendDeleteUserCodexAuthResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteUserCodexAuthResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteUserCodexAuthResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateDraftChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateDraftChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateDraftChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "mconfig": {
            "$ref": "#/components/schemas/MconfigX"
          },
          "isKeepQueryId": {
            "type": "boolean",
            "nullable": true
          },
          "cellMetricsStartDateMs": {
            "type": "number",
            "nullable": true
          },
          "cellMetricsEndDateMs": {
            "type": "number",
            "nullable": true
          },
          "queryOperation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryOperation"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "mconfig"
        ]
      },
      "QueryOperation": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Get",
              "WhereOrHaving",
              "GroupOrAggregate",
              "GroupOrAggregatePlusSort",
              "Limit",
              "Sort",
              "Move",
              "Remove",
              "Replace"
            ]
          },
          "timezone": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "fieldId": {
            "type": "string",
            "nullable": true
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Filter"
            },
            "nullable": true
          },
          "sortFieldId": {
            "type": "string",
            "nullable": true
          },
          "desc": {
            "type": "boolean",
            "nullable": true
          },
          "replaceWithFieldId": {
            "type": "string",
            "nullable": true
          },
          "moveFieldIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "required": [
          "type",
          "timezone"
        ]
      },
      "ToBackendCreateDraftChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateDraftChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateDraftChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateDraftChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateDraftChart"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateDraftChartResponsePayload": {
        "type": "object",
        "properties": {
          "chart": {
            "$ref": "#/components/schemas/ChartX"
          },
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          }
        },
        "required": [
          "chart",
          "chartUnitDrafts"
        ]
      },
      "ChartX": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "isExplorer": {
            "type": "boolean",
            "nullable": true
          },
          "sessionId": {
            "type": "string",
            "nullable": true
          },
          "chartYaml": {
            "type": "string",
            "nullable": true
          },
          "creatorId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TileX"
            }
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "author": {
            "type": "string"
          },
          "canEditOrDeleteChart": {
            "type": "boolean"
          },
          "chartType": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ]
          },
          "iconPath": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "structId",
          "chartId",
          "draft",
          "creatorId",
          "title",
          "modelId",
          "modelLabel",
          "filePath",
          "accessRoles",
          "accessRolesCombined",
          "tiles",
          "serverTs",
          "author",
          "canEditOrDeleteChart",
          "chartType"
        ]
      },
      "TileX": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "modelFilePath": {
            "type": "string"
          },
          "mconfigId": {
            "type": "string"
          },
          "queryId": {
            "type": "string"
          },
          "trackChangeId": {
            "type": "string"
          },
          "listen": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "deletedFilterFieldIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "plateWidth": {
            "type": "number"
          },
          "plateHeight": {
            "type": "number"
          },
          "plateX": {
            "type": "number"
          },
          "plateY": {
            "type": "number"
          },
          "mconfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MconfigX"
              }
            ],
            "nullable": true
          },
          "query": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Query"
              }
            ],
            "nullable": true
          },
          "hasAccessToModel": {
            "type": "boolean"
          }
        },
        "required": [
          "modelId",
          "modelLabel",
          "modelFilePath",
          "mconfigId",
          "queryId",
          "trackChangeId",
          "listen",
          "title",
          "plateWidth",
          "plateHeight",
          "plateX",
          "plateY",
          "hasAccessToModel"
        ]
      },
      "ChartUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "chartUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "chartType": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ]
          },
          "iconPath": {
            "type": "string",
            "nullable": true
          },
          "draft": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "canEditOrDeleteChart": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "chartId",
          "modelId",
          "modelLabel",
          "chartType",
          "draft",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteChart",
          "isFavorite",
          "spaceFullTitle"
        ]
      },
      "ToBackendCreateDraftChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateDraftChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateDraftChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "chartId"
        ]
      },
      "ToBackendDeleteChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteChart"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteChartResponsePayload": {
        "type": "object",
        "properties": {
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          },
          "chartSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendDeleteChartResponse__schema0"
            }
          }
        },
        "required": [
          "chartUnitDrafts",
          "chartSpaceNodes"
        ]
      },
      "ToBackendDeleteChartResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendDeleteChartResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "SpaceUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "spaceUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "unitId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "canEditOrDeleteUnit": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          },
          "modelId": {
            "type": "string",
            "nullable": true
          },
          "modelLabel": {
            "type": "string",
            "nullable": true
          },
          "chartType": {
            "type": "string",
            "enum": [
              "table",
              "line",
              "bar",
              "scatter",
              "pie",
              "single",
              "pivot_table"
            ],
            "nullable": true
          },
          "iconPath": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "id",
          "unitId",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteUnit",
          "isFavorite",
          "spaceFullTitle"
        ]
      },
      "ToBackendDeleteChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDraftChartsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteDraftCharts"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteDraftChartsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "chartIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "chartIds"
        ]
      },
      "ToBackendDeleteDraftChartsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftChartsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftChartsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDraftChartsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteDraftCharts"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteDraftChartsResponsePayload": {
        "type": "object",
        "properties": {
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          }
        },
        "required": [
          "chartUnitDrafts"
        ]
      },
      "ToBackendDeleteDraftChartsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftChartsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftChartsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditDraftChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditDraftChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditDraftChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "mconfig": {
            "$ref": "#/components/schemas/MconfigX"
          },
          "queryOperation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QueryOperation"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "chartId",
          "mconfig"
        ]
      },
      "ToBackendEditDraftChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditDraftChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditDraftChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditDraftChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditDraftChart"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditDraftChartResponsePayload": {
        "type": "object",
        "properties": {
          "chart": {
            "$ref": "#/components/schemas/ChartX"
          },
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          }
        },
        "required": [
          "chart",
          "chartUnitDrafts"
        ]
      },
      "ToBackendEditDraftChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditDraftChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditDraftChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetExplorerChartTabRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetExplorerChartTab"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetExplorerChartTabRequestPayload": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          }
        },
        "required": [
          "sessionId",
          "chartId"
        ]
      },
      "ToBackendGetExplorerChartTabRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetExplorerChartTabRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetExplorerChartTabRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetExplorerChartTabResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetExplorerChartTab"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetExplorerChartTabResponsePayload": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ok"
                ]
              },
              "chart": {
                "$ref": "#/components/schemas/ChartX"
              },
              "mconfig": {
                "$ref": "#/components/schemas/MconfigX"
              },
              "query": {
                "$ref": "#/components/schemas/Query"
              }
            },
            "required": [
              "status",
              "chart",
              "mconfig",
              "query"
            ]
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "error"
                ]
              },
              "errors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BmlError"
                }
              }
            },
            "required": [
              "status",
              "errors"
            ]
          }
        ]
      },
      "ToBackendGetExplorerChartTabResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetExplorerChartTabResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetExplorerChartTabResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "chartId",
          "timezone"
        ]
      },
      "ToBackendGetChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetChart"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetChartResponsePayload": {
        "type": "object",
        "properties": {
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "chart": {
            "$ref": "#/components/schemas/ChartX"
          }
        },
        "required": [
          "userMember",
          "chart"
        ]
      },
      "ToBackendGetChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetChartsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetCharts"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetChartsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendGetChartsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetChartsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetChartsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetChartsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetCharts"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetChartsResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelX"
            }
          },
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          },
          "chartSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendGetChartsResponse__schema0"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "models",
          "chartUnitDrafts",
          "chartSpaceNodes"
        ]
      },
      "ToBackendGetChartsResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendGetChartsResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendGetChartsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetChartsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetChartsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveCreateChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveCreateChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveCreateChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromChartId": {
            "type": "string"
          },
          "newChartId": {
            "type": "string"
          },
          "tileTitle": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mconfig": {
            "$ref": "#/components/schemas/MconfigX"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fromChartId",
          "newChartId",
          "tileTitle",
          "accessRoles",
          "mconfig"
        ]
      },
      "ToBackendSaveCreateChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveCreateChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveCreateChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveCreateChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveCreateChart"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveCreateChartResponsePayload": {
        "type": "object",
        "properties": {
          "chart": {
            "$ref": "#/components/schemas/ChartX"
          },
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          },
          "chartSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSaveCreateChartResponse__schema0"
            }
          }
        },
        "required": [
          "chart",
          "chartUnitDrafts",
          "chartSpaceNodes"
        ]
      },
      "ToBackendSaveCreateChartResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendSaveCreateChartResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendSaveCreateChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveCreateChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveCreateChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveModifyChartRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveModifyChart"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveModifyChartRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromChartId": {
            "type": "string"
          },
          "chartId": {
            "type": "string"
          },
          "tileTitle": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fromChartId",
          "chartId",
          "tileTitle",
          "accessRoles",
          "timezone"
        ]
      },
      "ToBackendSaveModifyChartRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveModifyChartRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveModifyChartRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveModifyChartResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveModifyChart"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveModifyChartResponsePayload": {
        "type": "object",
        "properties": {
          "chart": {
            "$ref": "#/components/schemas/ChartX"
          },
          "chartUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChartUnit"
            }
          },
          "chartSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSaveModifyChartResponse__schema0"
            }
          }
        },
        "required": [
          "chart",
          "chartUnitDrafts",
          "chartSpaceNodes"
        ]
      },
      "ToBackendSaveModifyChartResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendSaveModifyChartResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendSaveModifyChartResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveModifyChartResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveModifyChartResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateDraftDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateDraftDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateDraftDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "oldDashboardId": {
            "type": "string"
          },
          "newDashboardId": {
            "type": "string"
          },
          "newDashboardFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardField"
            }
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tile"
            }
          },
          "timezone": {
            "type": "string"
          },
          "isQueryCache": {
            "type": "boolean"
          },
          "cachedQueryMconfigIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "oldDashboardId",
          "newDashboardId",
          "newDashboardFields",
          "tiles",
          "timezone",
          "isQueryCache",
          "cachedQueryMconfigIds"
        ]
      },
      "ToBackendCreateDraftDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateDraftDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateDraftDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateDraftDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateDraftDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateDraftDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "dashboard": {
            "$ref": "#/components/schemas/DashboardX"
          },
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          }
        },
        "required": [
          "dashboard",
          "dashboardUnitDrafts"
        ]
      },
      "DashboardX": {
        "type": "object",
        "properties": {
          "structId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "creatorId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TileX"
            }
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardField"
            }
          },
          "content": {},
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "extendedFilters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterX"
            }
          },
          "author": {
            "type": "string"
          },
          "canEditOrDeleteDashboard": {
            "type": "boolean"
          },
          "storeModels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelX"
            }
          }
        },
        "required": [
          "structId",
          "dashboardId",
          "draft",
          "creatorId",
          "title",
          "filePath",
          "accessRoles",
          "accessRolesCombined",
          "tiles",
          "fields",
          "content",
          "serverTs",
          "extendedFilters",
          "author",
          "canEditOrDeleteDashboard",
          "storeModels"
        ]
      },
      "DashboardUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "dashboardUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "canEditOrDeleteDashboard": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "dashboardId",
          "draft",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteDashboard",
          "isFavorite",
          "spaceFullTitle"
        ]
      },
      "ToBackendCreateDraftDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateDraftDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateDraftDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "dashboardId"
        ]
      },
      "ToBackendDeleteDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          },
          "dashboardSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendDeleteDashboardResponse__schema0"
            }
          }
        },
        "required": [
          "dashboardUnitDrafts",
          "dashboardSpaceNodes"
        ]
      },
      "ToBackendDeleteDashboardResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendDeleteDashboardResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendDeleteDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDraftDashboardsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteDraftDashboards"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteDraftDashboardsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "dashboardIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "dashboardIds"
        ]
      },
      "ToBackendDeleteDraftDashboardsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftDashboardsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftDashboardsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDraftDashboardsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteDraftDashboards"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteDraftDashboardsResponsePayload": {
        "type": "object",
        "properties": {
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          }
        },
        "required": [
          "dashboardUnitDrafts"
        ]
      },
      "ToBackendDeleteDraftDashboardsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftDashboardsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftDashboardsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditDraftDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditDraftDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditDraftDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "oldDashboardId": {
            "type": "string"
          },
          "newDashboardId": {
            "type": "string"
          },
          "newDashboardFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardField"
            }
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tile"
            }
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "oldDashboardId",
          "newDashboardId",
          "newDashboardFields",
          "tiles",
          "timezone"
        ]
      },
      "ToBackendEditDraftDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditDraftDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditDraftDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditDraftDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditDraftDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditDraftDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "dashboard": {
            "$ref": "#/components/schemas/DashboardX"
          }
        },
        "required": [
          "dashboard"
        ]
      },
      "ToBackendEditDraftDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditDraftDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditDraftDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "dashboardId": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "dashboardId",
          "timezone"
        ]
      },
      "ToBackendGetDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "dashboard": {
            "$ref": "#/components/schemas/DashboardX"
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "dashboard"
        ]
      },
      "ToBackendGetDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetDashboardsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetDashboards"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetDashboardsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendGetDashboardsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetDashboardsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetDashboardsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetDashboardsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetDashboards"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetDashboardsResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelX"
            }
          },
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          },
          "dashboardSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendGetDashboardsResponse__schema0"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "models",
          "dashboardUnitDrafts",
          "dashboardSpaceNodes"
        ]
      },
      "ToBackendGetDashboardsResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendGetDashboardsResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendGetDashboardsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetDashboardsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetDashboardsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveCreateDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveCreateDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveCreateDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromDashboardId": {
            "type": "string",
            "nullable": true
          },
          "newDashboardId": {
            "type": "string"
          },
          "dashboardTitle": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tilesGrid": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TileX"
            },
            "nullable": true
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "newDashboardId",
          "timezone"
        ]
      },
      "ToBackendSaveCreateDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveCreateDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveCreateDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveCreateDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveCreateDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveCreateDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          },
          "dashboardSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSaveCreateDashboardResponse__schema0"
            }
          }
        },
        "required": [
          "dashboardUnitDrafts",
          "dashboardSpaceNodes"
        ]
      },
      "ToBackendSaveCreateDashboardResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendSaveCreateDashboardResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendSaveCreateDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveCreateDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveCreateDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveModifyDashboardRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveModifyDashboard"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveModifyDashboardRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "toDashboardId": {
            "type": "string"
          },
          "fromDashboardId": {
            "type": "string"
          },
          "newTile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TileX"
              }
            ],
            "nullable": true
          },
          "isReplaceTile": {
            "type": "boolean",
            "nullable": true
          },
          "selectedTileTitle": {
            "type": "string",
            "nullable": true
          },
          "dashboardTitle": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tilesGrid": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TileX"
            },
            "nullable": true
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "toDashboardId",
          "fromDashboardId",
          "timezone"
        ]
      },
      "ToBackendSaveModifyDashboardRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveModifyDashboardRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveModifyDashboardRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveModifyDashboardResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveModifyDashboard"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveModifyDashboardResponsePayload": {
        "type": "object",
        "properties": {
          "dashboard": {
            "$ref": "#/components/schemas/DashboardX"
          },
          "dashboardUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardUnit"
            }
          },
          "dashboardSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSaveModifyDashboardResponse__schema0"
            }
          }
        },
        "required": [
          "dashboard",
          "dashboardUnitDrafts",
          "dashboardSpaceNodes"
        ]
      },
      "ToBackendSaveModifyDashboardResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendSaveModifyDashboardResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendSaveModifyDashboardResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveModifyDashboardResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveModifyDashboardResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateDraftReportRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendCreateDraftReport"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendCreateDraftReportRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromReportId": {
            "type": "string"
          },
          "changeType": {
            "type": "string",
            "enum": [
              "AddEmpty",
              "AddMetric",
              "AddHeader",
              "AddFormula",
              "EditInfo",
              "EditChart",
              "EditFormula",
              "EditParameters",
              "EditListeners",
              "Delete",
              "Move"
            ]
          },
          "rowChange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RowChange"
              }
            ],
            "nullable": true
          },
          "rowIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFractionBrick": {
            "type": "string"
          },
          "newReportFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportField"
            }
          },
          "listeners": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Listener"
            },
            "nullable": true
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fromReportId",
          "changeType",
          "timezone",
          "timeSpec",
          "timeRangeFractionBrick",
          "newReportFields",
          "chart"
        ]
      },
      "RowChange": {
        "type": "object",
        "properties": {
          "rowId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "rowType": {
            "type": "string",
            "enum": [
              "empty",
              "header",
              "metric",
              "formula"
            ],
            "nullable": true
          },
          "metricId": {
            "type": "string",
            "nullable": true
          },
          "formula": {
            "type": "string",
            "nullable": true
          },
          "showChart": {
            "type": "boolean",
            "nullable": true
          },
          "parameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Parameter"
            },
            "nullable": true
          },
          "formatNumber": {
            "type": "string",
            "nullable": true
          },
          "currencyPrefix": {
            "type": "string",
            "nullable": true
          },
          "currencySuffix": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Listener": {
        "type": "object",
        "properties": {
          "rowId": {
            "type": "string"
          },
          "applyTo": {
            "type": "string"
          },
          "listen": {
            "type": "string"
          }
        },
        "required": [
          "rowId",
          "applyTo",
          "listen"
        ]
      },
      "ToBackendCreateDraftReportRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateDraftReportRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateDraftReportRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCreateDraftReportResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCreateDraftReport"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCreateDraftReportResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "report": {
            "$ref": "#/components/schemas/ReportX"
          },
          "reportUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportUnit"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "report",
          "reportUnitDrafts"
        ]
      },
      "ReportX": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "structId": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "creatorId": {
            "type": "string"
          },
          "filePath": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportField"
            }
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "title": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFraction": {
            "$ref": "#/components/schemas/Fraction"
          },
          "rangeStart": {
            "type": "number",
            "nullable": true
          },
          "rangeEnd": {
            "type": "number",
            "nullable": true
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Column"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Row"
            }
          },
          "isTimeColumnsLimitExceeded": {
            "type": "boolean"
          },
          "timeColumnsLimit": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "timeColumnsLength": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "draftCreatedTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          },
          "serverTs": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "extendedFilters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterX"
            }
          },
          "author": {
            "type": "string"
          },
          "canEditOrDeleteReport": {
            "type": "boolean"
          },
          "metricsStartDateYYYYMMDD": {
            "type": "string"
          },
          "metricsEndDateExcludedYYYYMMDD": {
            "type": "string"
          },
          "metricsEndDateIncludedYYYYMMDD": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "structId",
          "reportId",
          "draft",
          "creatorId",
          "filePath",
          "fields",
          "accessRoles",
          "accessRolesCombined",
          "title",
          "timezone",
          "timeSpec",
          "timeRangeFraction",
          "columns",
          "rows",
          "isTimeColumnsLimitExceeded",
          "timeColumnsLimit",
          "timeColumnsLength",
          "draftCreatedTs",
          "chart",
          "serverTs",
          "extendedFilters",
          "author",
          "canEditOrDeleteReport",
          "metricsStartDateYYYYMMDD",
          "metricsEndDateExcludedYYYYMMDD",
          "metricsEndDateIncludedYYYYMMDD"
        ]
      },
      "ReportUnit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "reportUnit"
            ]
          },
          "id": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "filePath": {
            "type": "string",
            "nullable": true
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessRolesCombined": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "isDirect": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "isDirect"
              ]
            }
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "canEditOrDeleteReport": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "draft": {
            "type": "boolean"
          },
          "spaceFullTitle": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "reportId",
          "title",
          "accessRoles",
          "accessRolesCombined",
          "canEditOrDeleteReport",
          "isFavorite",
          "draft",
          "spaceFullTitle"
        ]
      },
      "ToBackendCreateDraftReportResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCreateDraftReportResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCreateDraftReportResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteReportRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteReport"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteReportRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "reportId"
        ]
      },
      "ToBackendDeleteReportRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteReportRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteReportRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteReportResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteReport"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteReportResponsePayload": {
        "type": "object",
        "properties": {
          "reportUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportUnit"
            }
          },
          "reportSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendDeleteReportResponse__schema0"
            }
          }
        },
        "required": [
          "reportUnitDrafts",
          "reportSpaceNodes"
        ]
      },
      "ToBackendDeleteReportResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendDeleteReportResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendDeleteReportResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteReportResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteReportResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDraftReportsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendDeleteDraftReports"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendDeleteDraftReportsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "reportIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "reportIds"
        ]
      },
      "ToBackendDeleteDraftReportsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftReportsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftReportsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendDeleteDraftReportsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendDeleteDraftReports"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendDeleteDraftReportsResponsePayload": {
        "type": "object",
        "properties": {
          "reportUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportUnit"
            }
          }
        },
        "required": [
          "reportUnitDrafts"
        ]
      },
      "ToBackendDeleteDraftReportsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftReportsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendDeleteDraftReportsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditDraftReportRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendEditDraftReport"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendEditDraftReportRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "changeType": {
            "type": "string",
            "enum": [
              "AddEmpty",
              "AddMetric",
              "AddHeader",
              "AddFormula",
              "EditInfo",
              "EditChart",
              "EditFormula",
              "EditParameters",
              "EditListeners",
              "Delete",
              "Move"
            ]
          },
          "rowChange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RowChange"
              }
            ],
            "nullable": true
          },
          "rowIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFractionBrick": {
            "type": "string"
          },
          "newReportFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportField"
            }
          },
          "listeners": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Listener"
            },
            "nullable": true
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "reportId",
          "changeType",
          "timezone",
          "timeSpec",
          "timeRangeFractionBrick",
          "newReportFields",
          "chart"
        ]
      },
      "ToBackendEditDraftReportRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditDraftReportRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditDraftReportRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendEditDraftReportResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendEditDraftReport"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendEditDraftReportResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "report": {
            "$ref": "#/components/schemas/ReportX"
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "report"
        ]
      },
      "ToBackendEditDraftReportResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendEditDraftReportResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendEditDraftReportResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetReportRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetReport"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetReportRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "reportId": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFractionBrick": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "reportId",
          "timezone",
          "timeSpec",
          "timeRangeFractionBrick"
        ]
      },
      "ToBackendGetReportRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetReportRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetReportRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetReportResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetReport"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetReportResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "report": {
            "$ref": "#/components/schemas/ReportX"
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "report"
        ]
      },
      "ToBackendGetReportResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetReportResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetReportResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetReportsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetReports"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetReportsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId"
        ]
      },
      "ToBackendGetReportsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetReportsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetReportsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetReportsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetReports"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetReportsResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "reportUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportUnit"
            }
          },
          "reportSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendGetReportsResponse__schema0"
            }
          },
          "storeModels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelX"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "reportUnitDrafts",
          "reportSpaceNodes",
          "storeModels"
        ]
      },
      "ToBackendGetReportsResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendGetReportsResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendGetReportsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetReportsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetReportsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveCreateReportRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveCreateReport"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveCreateReportRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromReportId": {
            "type": "string"
          },
          "newReportId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFractionBrick": {
            "type": "string"
          },
          "newReportFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportField"
            }
          },
          "chart": {
            "$ref": "#/components/schemas/MconfigChart"
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fromReportId",
          "newReportId",
          "title",
          "accessRoles",
          "timezone",
          "timeSpec",
          "timeRangeFractionBrick",
          "newReportFields",
          "chart"
        ]
      },
      "ToBackendSaveCreateReportRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveCreateReportRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveCreateReportRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveCreateReportResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveCreateReport"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveCreateReportResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "report": {
            "$ref": "#/components/schemas/ReportX"
          },
          "reportUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportUnit"
            }
          },
          "reportSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSaveCreateReportResponse__schema0"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "report",
          "reportUnitDrafts",
          "reportSpaceNodes"
        ]
      },
      "ToBackendSaveCreateReportResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendSaveCreateReportResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendSaveCreateReportResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveCreateReportResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveCreateReportResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveModifyReportRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendSaveModifyReport"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendSaveModifyReportRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "repoId": {
            "type": "string"
          },
          "branchId": {
            "type": "string"
          },
          "envId": {
            "type": "string"
          },
          "fromReportId": {
            "type": "string"
          },
          "modReportId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "space": {
            "type": "string",
            "nullable": true
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timezone": {
            "type": "string"
          },
          "timeSpec": {
            "type": "string",
            "enum": [
              "timestamps",
              "seconds",
              "minutes",
              "hours",
              "days",
              "weeks",
              "months",
              "quarters",
              "years"
            ]
          },
          "timeRangeFractionBrick": {
            "type": "string"
          },
          "newReportFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportField"
            },
            "nullable": true
          },
          "chart": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MconfigChart"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "projectId",
          "repoId",
          "branchId",
          "envId",
          "fromReportId",
          "modReportId",
          "title",
          "accessRoles",
          "timezone",
          "timeSpec",
          "timeRangeFractionBrick"
        ]
      },
      "ToBackendSaveModifyReportRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveModifyReportRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveModifyReportRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendSaveModifyReportResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendSaveModifyReport"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendSaveModifyReportResponsePayload": {
        "type": "object",
        "properties": {
          "needValidate": {
            "type": "boolean"
          },
          "struct": {
            "$ref": "#/components/schemas/StructX"
          },
          "userMember": {
            "$ref": "#/components/schemas/Member"
          },
          "report": {
            "$ref": "#/components/schemas/ReportX"
          },
          "reportUnitDrafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportUnit"
            }
          },
          "reportSpaceNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToBackendSaveModifyReportResponse__schema0"
            }
          }
        },
        "required": [
          "needValidate",
          "struct",
          "userMember",
          "report",
          "reportUnitDrafts",
          "reportSpaceNodes"
        ]
      },
      "ToBackendSaveModifyReportResponse__schema0": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "spaceFolder"
                ]
              },
              "id": {
                "type": "string"
              },
              "space": {
                "type": "string"
              },
              "filePath": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "accessRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "accessRolesCombined": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "isDirect": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "isDirect"
                  ]
                }
              },
              "isSynthetic": {
                "type": "boolean"
              },
              "modelId": {
                "type": "string",
                "nullable": true
              },
              "modelLabel": {
                "type": "string",
                "nullable": true
              },
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ToBackendSaveModifyReportResponse__schema0"
                }
              }
            },
            "required": [
              "type",
              "id",
              "space",
              "filePath",
              "title",
              "accessRoles",
              "accessRolesCombined",
              "isSynthetic",
              "children"
            ]
          },
          {
            "$ref": "#/components/schemas/SpaceUnit"
          }
        ]
      },
      "ToBackendSaveModifyReportResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendSaveModifyReportResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendSaveModifyReportResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSkillsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetSkills"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetSkillsRequestPayload": {
        "type": "object",
        "properties": {}
      },
      "ToBackendGetSkillsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSkillsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSkillsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetSkillsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetSkills"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetSkillsResponsePayload": {
        "type": "object",
        "properties": {
          "skillItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SkillItem"
            }
          }
        },
        "required": [
          "skillItems"
        ]
      },
      "SkillItem": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "content"
        ]
      },
      "ToBackendGetSkillsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetSkillsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetSkillsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendCheckSignUpResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendCheckSignUp"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendCheckSignUpResponsePayload": {
        "type": "object",
        "properties": {
          "isRegisterOnlyInvitedUsers": {
            "type": "boolean"
          }
        },
        "required": [
          "isRegisterOnlyInvitedUsers"
        ]
      },
      "ToBackendCheckSignUpResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendCheckSignUpResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendCheckSignUpResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      }
    }
  }
}
