{
  "openapi": "3.0.0",
  "info": {
    "title": "mprove backend",
    "description": "",
    "version": "12.0.20",
    "contact": {}
  },
  "paths": {
    "/api/ToBackendGetCachedColumns": {
      "post": {
        "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"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ToBackendGetCachedColumnsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetCachedColumnsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetCachedColumnsResponsePayload"
          }
        },
        "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"
        ]
      },
      "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"
        ]
      }
    }
  }
}
