{
  "components" : {
    "schemas" : {
      "gsheets.response" : {
        "anyOf" : [ {
          "type" : "object",
          "properties" : {
            "error" : {
              "type" : "boolean"
            },
            "message" : {
              "type" : "string",
              "minLength" : 1
            }
          },
          "required" : [ "error", "message" ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : { }
          }, {
            "type" : "object",
            "properties" : {
              "created_at" : {
                "type" : "integer",
                "minimum" : 1
              },
              "created_by_id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "db_id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "sync_started_at" : {
                "type" : "integer",
                "minimum" : 1
              },
              "url" : {
                "type" : "string",
                "minLength" : 1
              }
            },
            "required" : [ "url", "created_at", "sync_started_at", "created_by_id", "db_id" ]
          }, {
            "type" : "object",
            "properties" : {
              "created_at" : {
                "type" : "integer",
                "minimum" : 1
              },
              "created_by_id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "db_id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "last_sync_at" : {
                "type" : "integer",
                "minimum" : 1
              },
              "next_sync_at" : {
                "type" : "integer",
                "minimum" : 1
              },
              "url" : {
                "type" : "string",
                "minLength" : 1
              }
            },
            "required" : [ "url", "created_at", "last_sync_at", "next_sync_at", "created_by_id", "db_id" ]
          }, {
            "type" : "object",
            "properties" : {
              "created_at" : {
                "type" : "integer",
                "minimum" : 1
              },
              "created_by_id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "db_id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "error_message" : {
                "type" : "string",
                "minLength" : 1
              },
              "url" : {
                "type" : "string",
                "minLength" : 1
              }
            },
            "required" : [ "url", "created_at", "error_message", "created_by_id", "db_id" ]
          } ]
        } ]
      },
      "mbql.clause.-" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.arithmetic.plus-minus-temporal-interval-schema"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema"
        }, {
          "anyOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.arithmetic.temporal-difference-schema"
          } ]
        } ]
      },
      "mbql.clause._BANG__EQ_" : { },
      "mbql.clause._EQ_" : { },
      "mbql.clause._GT_" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : ">"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause._GT__EQ_" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : ">="
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause._LT_" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "<"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause._LT__EQ_" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "<="
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause._PLUS_" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.arithmetic.plus-minus-temporal-interval-schema"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema"
        } ]
      },
      "mbql.clause._SLASH_" : { },
      "mbql.clause._STAR_" : { },
      "mbql.clause.abs" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "abs"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.absolute-datetime" : { },
      "mbql.clause.aggregation" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "aggregation"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref.aggregation-options"
        }, {
          "type" : "string"
        } ]
      },
      "mbql.clause.and" : { },
      "mbql.clause.asc" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "asc"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause.avg" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "avg"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.between" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "between"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause.case" : { },
      "mbql.clause.ceil" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "ceil"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.coalesce" : { },
      "mbql.clause.collate" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "collate"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "type" : "string"
        } ]
      },
      "mbql.clause.concat" : { },
      "mbql.clause.contains" : { },
      "mbql.clause.convert-timezone" : { },
      "mbql.clause.count" : { },
      "mbql.clause.count-where" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "count-where"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ]
      },
      "mbql.clause.cum-count" : { },
      "mbql.clause.cum-sum" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "cum-sum"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.date" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "date"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "anyOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
          } ]
        } ]
      },
      "mbql.clause.datetime" : { },
      "mbql.clause.datetime-add" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "datetime-add"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "type" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "mbql.clause.datetime-diff" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "datetime-diff"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal.datetime-diff-unit"
        } ]
      },
      "mbql.clause.datetime-subtract" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "datetime-subtract"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "type" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "mbql.clause.day-name" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "day-name"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
        } ]
      },
      "mbql.clause.desc" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "desc"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause.distinct" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "distinct"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.aggregation..distinct.arg"
        } ]
      },
      "mbql.clause.distinct-where" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "distinct-where"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.aggregation..distinct.arg"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ]
      },
      "mbql.clause.does-not-contain" : { },
      "mbql.clause.domain" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "domain"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.during" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "during"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "anyOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.date"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.datetime"
          } ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "mbql.clause.ends-with" : { },
      "mbql.clause.exp" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "exp"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.expression" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "expression"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref..expression.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
        } ]
      },
      "mbql.clause.field" : {
        "allOf" : [ {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "field"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.options"
          }, {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "type" : "string"
            } ]
          } ]
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.id"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.literal"
          } ]
        } ]
      },
      "mbql.clause.float" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "float"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.floor" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "floor"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.get-day" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-day"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.get-day-of-week" : { },
      "mbql.clause.get-hour" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-hour"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.get-minute" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-minute"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.get-month" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-month"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.get-quarter" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-quarter"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.get-second" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-second"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.get-week" : { },
      "mbql.clause.get-year" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "get-year"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ]
      },
      "mbql.clause.host" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "host"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.if" : { },
      "mbql.clause.in" : { },
      "mbql.clause.inside" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "inside"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause.integer" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "anyOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
          } ]
        } ]
      },
      "mbql.clause.interval" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "interval"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "type" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "mbql.clause.is-empty" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "is-empty"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ]
      },
      "mbql.clause.is-null" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "is-null"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ]
      },
      "mbql.clause.length" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "length"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.log" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "log"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.lower" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "lower"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.ltrim" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "ltrim"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.max" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "max"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause.measure" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "measure"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.measure"
        } ]
      },
      "mbql.clause.median" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "median"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.metric" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "metric"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
        } ]
      },
      "mbql.clause.min" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "min"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ]
      },
      "mbql.clause.month-name" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "month-name"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
        } ]
      },
      "mbql.clause.not" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "not"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ]
      },
      "mbql.clause.not-empty" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "not-empty"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ]
      },
      "mbql.clause.not-in" : { },
      "mbql.clause.not-null" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "not-null"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ]
      },
      "mbql.clause.now" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "now"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        } ]
      },
      "mbql.clause.offset" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "offset"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.window..offset.n"
        } ]
      },
      "mbql.clause.or" : { },
      "mbql.clause.path" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "path"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.percentile" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "percentile"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.aggregation..percentile.percentile"
        } ]
      },
      "mbql.clause.power" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "power"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.quarter-name" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "quarter-name"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
        } ]
      },
      "mbql.clause.regex-match-first" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "regex-match-first"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.relative-datetime" : { },
      "mbql.clause.relative-time-interval" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "relative-time-interval"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "type" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        }, {
          "type" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "mbql.clause.replace" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "replace"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "type" : "string"
        }, {
          "type" : "string"
        } ]
      },
      "mbql.clause.round" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "round"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.rtrim" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "rtrim"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.segment" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "segment"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.segment"
          } ]
        } ]
      },
      "mbql.clause.share" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "share"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ]
      },
      "mbql.clause.split-part" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "split-part"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "type" : "string",
          "minLength" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.positive-integer-or-numeric-expression"
        } ]
      },
      "mbql.clause.sqrt" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "sqrt"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.starts-with" : { },
      "mbql.clause.stddev" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "stddev"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.subdomain" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "subdomain"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.substring" : { },
      "mbql.clause.sum" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "sum"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "mbql.clause.sum-where" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "sum-where"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ]
      },
      "mbql.clause.temporal-extract" : { },
      "mbql.clause.text" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "text"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ]
      },
      "mbql.clause.time" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "time"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "anyOf" : [ {
            "const" : "default"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.time.interval"
          } ]
        } ]
      },
      "mbql.clause.time-interval" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "time-interval"
        }, {
          "default" : { },
          "allOf" : [ {
            "description" : "Options for `:time-interval` operator. Note that `:relative-time-interval` does not support these options.",
            "type" : "object",
            "properties" : {
              "lib/uuid" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
              },
              "base-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "effective-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "semantic-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
                }, {
                  "type" : "null"
                } ]
              },
              "database-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "display-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "include-current" : {
                "type" : "boolean"
              }
            },
            "required" : [ "lib/uuid" ]
          }, { } ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "oneOf" : [ {
            "type" : "string",
            "enum" : [ "current", "last", "next" ]
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
          } ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "mbql.clause.today" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "today"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        } ]
      },
      "mbql.clause.trim" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "trim"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.upper" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "upper"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ]
      },
      "mbql.clause.value" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "value"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal..value.options"
        }, { } ]
      },
      "mbql.clause.var" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "var"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ]
      },
      "metabase-enterprise.action-v2.api.api-action-expression" : {
        "description" : "A more relaxed version of ::action-expression that can still have opaque identifiers inside inside.",
        "type" : "object",
        "properties" : { }
      },
      "metabase-enterprise.action-v2.api.api-action-id" : {
        "description" : "Primitive actions, saved actions, and packed encodings from the picker.",
        "anyOf" : [ {
          "description" : "value must be an integer greater than zero.",
          "type" : "integer",
          "minimum" : 1
        }, {
          "type" : "string"
        } ]
      },
      "metabase-enterprise.action-v2.api.api-action-id-or-expression" : {
        "description" : "All the various ways of referring to an action with the v2 APIs.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-id"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-expression"
        } ]
      },
      "metabase-enterprise.data-studio.api.table.publish-tables-response" : {
        "description" : "Schema for /publish-tables endpoint response. Matches frontend PublishTablesResponse type.",
        "type" : "object",
        "properties" : {
          "target_collection" : {
            "oneOf" : [ {
              "description" : "value must be an instance of :model/Collection"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "target_collection" ]
      },
      "metabase-enterprise.data-studio.api.table.table-selectors" : {
        "type" : "object",
        "properties" : {
          "database_ids" : {
            "type" : "array",
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "schema_ids" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "table_ids" : {
            "type" : "array",
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          }
        }
      },
      "metabase-enterprise.dependencies.api.base-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : { }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.broken-cards-response" : {
        "type" : "object",
        "properties" : {
          "bad_cards" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.queries.schema.card"
            }
          },
          "bad_transforms" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.transforms.schema.transform"
            }
          },
          "success" : {
            "type" : "boolean"
          }
        },
        "required" : [ "success" ]
      },
      "metabase-enterprise.dependencies.api.broken-dependent-entity" : {
        "description" : "Entity returned by /graph/broken endpoint - includes errors but no dependents_count.",
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : { }
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "type", "data" ]
      },
      "metabase-enterprise.dependencies.api.card-body" : {
        "description" : "Schema for an instance of a `:model/Card` (everything is optional to support updates).",
        "type" : "object",
        "properties" : {
          "dataset_query" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.queries.schema.query"
            }, {
              "type" : "null"
            } ]
          },
          "parameter_mappings" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
            }, {
              "type" : "null"
            } ]
          },
          "document_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
            }, {
              "type" : "null"
            } ]
          },
          "result_metadata" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
            }, {
              "type" : "null"
            } ]
          },
          "parameters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "dashboard_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase-enterprise.dependencies.api.card-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "dashboard" : { },
              "last-edit-info" : { },
              "view_count" : { },
              "collection" : { },
              "document" : { },
              "creator" : { },
              "name" : { },
              "database_id" : { },
              "document_id" : { },
              "result_metadata" : { },
              "query_type" : { },
              "collection_id" : { },
              "type" : { },
              "created_at" : { },
              "display" : { },
              "creator_id" : { },
              "description" : { },
              "dashboard_id" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "card"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.dashboard-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "last-edit-info" : { },
              "view_count" : { },
              "collection" : { },
              "moderation_reviews" : { },
              "creator" : { },
              "name" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator_id" : { },
              "description" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "dashboard"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.document-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "description" : { },
              "name" : { },
              "view_count" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "document"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.entity" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.table-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.card-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.snippet-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.transform-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.dashboard-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.document-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.sandbox-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.segment-entity"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.measure-entity"
        } ]
      },
      "metabase-enterprise.dependencies.api.graph-response" : {
        "type" : "object",
        "properties" : {
          "edges" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "from_entity_id" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.entity-id"
                },
                "from_entity_type" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
                },
                "to_entity_id" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.entity-id"
                },
                "to_entity_type" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
                }
              },
              "required" : [ "from_entity_type", "from_entity_id", "to_entity_type", "to_entity_id" ]
            }
          },
          "nodes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
            }
          }
        },
        "required" : [ "nodes", "edges" ]
      },
      "metabase-enterprise.dependencies.api.measure-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "description" : { },
              "name" : { },
              "table" : { },
              "table_id" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "measure"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.sandbox-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "table" : { },
              "table_id" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "sandbox"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.segment-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "dashboard" : { },
              "last-edit-info" : { },
              "view_count" : { },
              "collection" : { },
              "document" : { },
              "creator" : { },
              "name" : { },
              "database_id" : { },
              "document_id" : { },
              "result_metadata" : { },
              "query_type" : { },
              "collection_id" : { },
              "type" : { },
              "created_at" : { },
              "display" : { },
              "creator_id" : { },
              "description" : { },
              "dashboard_id" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "segment"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.snippet-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "description" : { },
              "name" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "snippet"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.table-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "owner" : { },
              "schema" : { },
              "transform" : { },
              "owner_email" : { },
              "owner_user_id" : { },
              "name" : { },
              "display_name" : { },
              "fields" : { },
              "db" : { },
              "db_id" : { },
              "description" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.transform-body" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
          },
          "name" : {
            "type" : "string"
          },
          "source" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : {
                "query" : {
                  "$ref" : "#/components/schemas/metabase.queries.schema.query"
                },
                "type" : {
                  "type" : "string"
                }
              }
            }, {
              "type" : "null"
            } ]
          },
          "target" : {
            "oneOf" : [ {
              "description" : "Value must be a map.",
              "type" : "object",
              "properties" : { }
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id" ]
      },
      "metabase-enterprise.dependencies.api.transform-entity" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "creator" : { },
              "description" : { },
              "last_run" : { },
              "name" : { },
              "owner" : { },
              "owner_email" : { },
              "owner_user_id" : { },
              "table" : { }
            }
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "uniqueItems" : true
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "transform"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ]
      },
      "metabase-enterprise.dependencies.api.usages" : {
        "type" : "object",
        "additionalProperties" : {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.entity-id"
        }
      },
      "metabase-enterprise.dependencies.dependency-types.dependency-types" : {
        "type" : "string",
        "enum" : [ "transform", "table", "snippet", "dashboard", "sandbox", "measure", "card", "document", "segment" ]
      },
      "metabase-enterprise.dependencies.dependency-types.entity-id" : {
        "type" : "integer",
        "minimum" : 1
      },
      "metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error" : {
        "description" : "Schema for an AnalysisFindingError record.",
        "type" : "object",
        "properties" : {
          "analyzed_entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "analyzed_entity_type" : {
            "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
          },
          "error_detail" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "error_type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.validate.validate-error-type"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "source_entity_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "source_entity_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.validate.source-entity-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "analyzed_entity_type", "analyzed_entity_id", "error_type" ]
      },
      "metabase-enterprise.permission-debug.impl.group-id" : {
        "type" : "integer"
      },
      "metabase-enterprise.permission-debug.impl.perm-debug-info" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : { }
          },
          "decision" : {
            "type" : "string",
            "enum" : [ "allow", "denied", "limited" ]
          },
          "message" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "model-id" : {
            "type" : "string"
          },
          "model-type" : {
            "type" : "string",
            "enum" : [ "card", "invalid" ]
          },
          "segment" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "enum" : [ "sandboxed", "impersonated", "routed" ]
            },
            "uniqueItems" : true
          },
          "suggestions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          }
        },
        "required" : [ "model-type", "model-id", "decision", "segment", "message", "data", "suggestions" ]
      },
      "metabase-enterprise.replacement.schema.check-replace-source-response" : {
        "type" : "object",
        "properties" : {
          "column_mappings" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.column-mapping"
            }
          },
          "errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.error-type"
            }
          },
          "success" : {
            "type" : "boolean"
          }
        },
        "required" : [ "success" ]
      },
      "metabase-enterprise.replacement.schema.column" : {
        "type" : "object",
        "properties" : {
          "base_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "effective_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "semantic_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "display_name", "base_type", "effective_type", "semantic_type" ]
      },
      "metabase-enterprise.replacement.schema.column-mapping" : {
        "type" : "object",
        "properties" : {
          "errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.source-swap.schema.column-error"
            }
          },
          "source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.column"
            }, {
              "type" : "null"
            } ]
          },
          "target" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.column"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase-enterprise.replacement.schema.error-type" : {
        "type" : "string",
        "enum" : [ "cycle-detected", "database-mismatch", "incompatible-implicit-joins", "affects-gtap-policies" ]
      },
      "metabase-enterprise.replacement.schema.run" : {
        "type" : "object",
        "properties" : {
          "message" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "target_entity_id" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
          },
          "user_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
            }, {
              "type" : "null"
            } ]
          },
          "progress" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "target_entity_type" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
          },
          "is_active" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-id"
          },
          "source_entity_type" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
          },
          "status" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-status"
          },
          "source_entity_id" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
          },
          "end_time" : {
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time"
            }, {
              "type" : "null"
            } ]
          },
          "start_time" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "required" : [ "id", "status", "is_active", "source_entity_type", "source_entity_id", "target_entity_type", "target_entity_id", "progress", "message", "user_id", "start_time", "end_time" ]
      },
      "metabase-enterprise.replacement.schema.run-id" : {
        "type" : "integer",
        "minimum" : 1
      },
      "metabase-enterprise.replacement.schema.run-status" : {
        "type" : "string",
        "enum" : [ "pending", "started", "succeeded", "failed", "canceled", "timeout" ]
      },
      "metabase-enterprise.replacement.schema.source-entity-id" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
        } ]
      },
      "metabase-enterprise.replacement.schema.source-entity-type" : {
        "type" : "string",
        "enum" : [ "card", "table", "transform" ]
      },
      "metabase-enterprise.sandbox.schema.attribute-remappings" : {
        "description" : "value must be a valid attribute remappings map (attribute name -> remapped name)",
        "oneOf" : [ {
          "type" : "object",
          "additionalProperties" : {
            "anyOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
            } ]
          }
        }, {
          "type" : "null"
        } ]
      },
      "metabase-enterprise.security-center.schema.advisory-id" : {
        "type" : "string",
        "minLength" : 1
      },
      "metabase-enterprise.security-center.schema.affected-versions" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.version-range"
        }
      },
      "metabase-enterprise.security-center.schema.match-status" : {
        "type" : "string",
        "enum" : [ "unknown", "active", "resolved", "not_affected", "error" ]
      },
      "metabase-enterprise.security-center.schema.semver" : {
        "type" : "string",
        "pattern" : "^\\d+\\.\\d+\\.\\d+$"
      },
      "metabase-enterprise.security-center.schema.severity" : {
        "type" : "string",
        "enum" : [ "critical", "high", "medium", "low" ]
      },
      "metabase-enterprise.security-center.schema.version-range" : {
        "description" : "A single affected version range with inclusive min and exclusive fixed.",
        "type" : "object",
        "properties" : {
          "fixed" : {
            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.semver"
          },
          "min" : {
            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.semver"
          }
        },
        "required" : [ "min", "fixed" ]
      },
      "metabase-enterprise.support-access-grants.schema.create-grant-request" : {
        "description" : "Schema for POST /api/ee/support-access-grants request body.",
        "type" : "object",
        "properties" : {
          "grant_duration_minutes" : {
            "type" : "integer",
            "minimum" : 1,
            "maximum" : 10080
          },
          "notes" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1,
              "maxLength" : 255
            }, {
              "type" : "null"
            } ]
          },
          "ticket_number" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1,
              "maxLength" : 100
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "grant_duration_minutes" ]
      },
      "metabase-enterprise.support-access-grants.schema.current-grant-response" : {
        "description" : "Schema for GET /api/ee/support-access-grants/current response.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response"
        }, {
          "type" : "null"
        } ]
      },
      "metabase-enterprise.support-access-grants.schema.grant-response" : {
        "description" : "Schema for a support access grant object in API responses.",
        "type" : "object",
        "properties" : {
          "user_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "token" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "user_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "user_email" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "grant_end_timestamp" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "revoked_at" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
            }, {
              "type" : "null"
            } ]
          },
          "revoked_by_user_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "ticket_number" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "updated_at" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "created_at" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "notes" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "grant_start_timestamp" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          }
        },
        "required" : [ "id", "user_id", "user_name", "user_email", "ticket_number", "notes", "grant_start_timestamp", "grant_end_timestamp", "revoked_at", "revoked_by_user_id", "created_at", "updated_at" ]
      },
      "metabase-enterprise.support-access-grants.schema.list-grants-response" : {
        "description" : "Schema for GET /api/ee/support-access-grants response (paginated list).",
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response"
            }
          },
          "limit" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "offset" : {
            "type" : "integer",
            "minimum" : 0
          },
          "total" : {
            "type" : "integer",
            "minimum" : 0
          }
        },
        "required" : [ "data", "total", "limit", "offset" ]
      },
      "metabase-enterprise.support-access-grants.schema.timestamp" : {
        "anyOf" : [ { }, { } ]
      },
      "metabase-enterprise.transforms-inspector.schema.alert-trigger" : {
        "description" : "Definition for conditional alerts.\n   FE evaluates condition against card results and shows alert if triggered.",
        "type" : "object",
        "properties" : {
          "condition" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.trigger-condition"
          },
          "id" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "metadata" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.trigger-metadata"
          },
          "severity" : {
            "type" : "string",
            "enum" : [ "info", "warning", "error" ]
          }
        },
        "required" : [ "id", "condition", "severity", "message" ]
      },
      "metabase-enterprise.transforms-inspector.schema.card" : {
        "description" : "A visualization card in the inspector output.\n\n   Cards are generic - lens-specific data goes in :metadata.\n   The :metadata map is opaque to the core but interpreted by\n   lens-specific lib utilities on the frontend. ",
        "type" : "object",
        "properties" : {
          "dataset_query" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.query"
          },
          "display" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.display-type"
          },
          "id" : {
            "type" : "string"
          },
          "metadata" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.card-metadata"
          },
          "section_id" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "title" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "title", "display", "dataset_query" ]
      },
      "metabase-enterprise.transforms-inspector.schema.card-metadata" : {
        "description" : "Common metadata for join-related cards and triggers.",
        "type" : "object",
        "properties" : {
          "dedup_key" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.dedup-key"
          },
          "group_id" : {
            "type" : "string"
          },
          "group_order" : {
            "type" : "integer"
          },
          "card_type" : {
            "type" : "string"
          },
          "group_role" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.group-role"
          },
          "join_step" : {
            "type" : "integer"
          },
          "join_alias" : {
            "type" : "string"
          },
          "join_strategy" : {
            "type" : "string"
          },
          "depends_on_cards" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "uniqueItems" : true
          }
        }
      },
      "metabase-enterprise.transforms-inspector.schema.complexity" : {
        "description" : "Complexity estimate for a lens.",
        "type" : "object",
        "properties" : {
          "level" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.complexity-level"
          },
          "score" : {
            "type" : "integer",
            "minimum" : 1
          }
        },
        "required" : [ "level" ]
      },
      "metabase-enterprise.transforms-inspector.schema.complexity-level" : {
        "description" : "Estimated complexity/cost of generating a lens.",
        "type" : "string",
        "enum" : [ "fast", "slow", "very-slow" ]
      },
      "metabase-enterprise.transforms-inspector.schema.dedup-key" : {
        "description" : "Key for deduplicating identical queries across lenses.\n   Typically a vector like [:table_count table-id].",
        "type" : "array",
        "items" : { }
      },
      "metabase-enterprise.transforms-inspector.schema.discovery-response" : {
        "description" : "Response from lens discovery.",
        "type" : "object",
        "properties" : {
          "available_lenses" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens-metadata"
            }
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "sources" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.table"
            }
          },
          "status" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.inspector-status"
          },
          "target" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.table"
            }, {
              "type" : "null"
            } ]
          },
          "visited_fields" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.visited-fields"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "name", "status", "sources", "available_lenses" ]
      },
      "metabase-enterprise.transforms-inspector.schema.display-type" : {
        "description" : "Valid display types for cards.",
        "type" : "string",
        "enum" : [ "bar", "row", "line", "area", "pie", "scalar", "gauge", "progress", "table", "hidden" ]
      },
      "metabase-enterprise.transforms-inspector.schema.drill-lens" : {
        "description" : "A drill-down lens available from the current lens.",
        "type" : "object",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "id" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "display_name" ]
      },
      "metabase-enterprise.transforms-inspector.schema.drill-lens-trigger" : {
        "description" : "Definition for conditional drill lens availability.\n   FE evaluates condition and shows drill lens option if triggered.\n   :params is passed to the drill lens when triggered.",
        "type" : "object",
        "properties" : {
          "condition" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.trigger-condition"
          },
          "lens_id" : {
            "type" : "string"
          },
          "metadata" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.trigger-metadata"
          },
          "params" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "reason" : {
            "type" : "string"
          }
        },
        "required" : [ "lens_id", "condition" ]
      },
      "metabase-enterprise.transforms-inspector.schema.field" : {
        "description" : "Field metadata for inspector.",
        "type" : "object",
        "properties" : {
          "base_type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "name" : {
            "type" : "string"
          },
          "semantic_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          },
          "stats" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.field-stats"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "base_type" ]
      },
      "metabase-enterprise.transforms-inspector.schema.field-stats" : {
        "description" : "Statistics for a field from fingerprints.",
        "type" : "object",
        "properties" : {
          "min" : {
            "type" : "number"
          },
          "earliest" : {
            "type" : "string"
          },
          "q1" : {
            "type" : "number"
          },
          "max" : {
            "type" : "number"
          },
          "distinct_count" : {
            "type" : "integer"
          },
          "nil_percent" : {
            "type" : "number"
          },
          "avg" : {
            "type" : "number"
          },
          "latest" : {
            "type" : "string"
          },
          "q3" : {
            "type" : "number"
          }
        }
      },
      "metabase-enterprise.transforms-inspector.schema.group-role" : {
        "description" : "Role of a card within a comparison group.",
        "type" : "string",
        "enum" : [ "input", "output" ]
      },
      "metabase-enterprise.transforms-inspector.schema.inspector-status" : {
        "description" : "Status of the inspector result.",
        "type" : "string",
        "enum" : [ "not-run", "ready" ]
      },
      "metabase-enterprise.transforms-inspector.schema.layout-type" : {
        "description" : "Layout hints for sections.\n   - :flat - cards displayed in a grid\n   - :comparison - cards grouped for side-by-side comparison",
        "type" : "string",
        "enum" : [ "flat", "comparison" ]
      },
      "metabase-enterprise.transforms-inspector.schema.lens" : {
        "description" : "Full lens contents and drill lens/alert triggers.",
        "type" : "object",
        "properties" : {
          "complexity" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.complexity"
          },
          "sections" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.section"
            }
          },
          "id" : {
            "type" : "string"
          },
          "summary" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens-summary"
          },
          "alert_triggers" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.alert-trigger"
            }
          },
          "drill_lenses" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.drill-lens"
            }
          },
          "display_name" : {
            "type" : "string"
          },
          "drill_lens_triggers" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.drill-lens-trigger"
            }
          },
          "cards" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.card"
            }
          }
        },
        "required" : [ "id", "display_name", "sections", "cards" ]
      },
      "metabase-enterprise.transforms-inspector.schema.lens-metadata" : {
        "type" : "object",
        "properties" : {
          "complexity" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.complexity"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "id" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "display_name" ]
      },
      "metabase-enterprise.transforms-inspector.schema.lens-summary" : {
        "description" : "Summary section of a lens.",
        "type" : "object",
        "properties" : {
          "alerts" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : { }
            }
          },
          "highlights" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.summary-highlight"
            }
          },
          "text" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase-enterprise.transforms-inspector.schema.section" : {
        "description" : "A section grouping cards in a lens.",
        "type" : "object",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "string"
          },
          "layout" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.layout-type"
          },
          "title" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "title" ]
      },
      "metabase-enterprise.transforms-inspector.schema.summary-highlight" : {
        "description" : "A highlight in the lens summary.",
        "type" : "object",
        "properties" : {
          "card_id" : {
            "type" : "string"
          },
          "label" : {
            "type" : "string"
          },
          "value" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "label" ]
      },
      "metabase-enterprise.transforms-inspector.schema.table" : {
        "description" : "Table metadata.",
        "type" : "object",
        "properties" : {
          "column_count" : {
            "type" : "integer"
          },
          "db_id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "fields" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.field"
            }
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "table_id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "table_name" : {
            "type" : "string"
          }
        },
        "required" : [ "table_id", "table_name", "db_id", "column_count", "fields" ]
      },
      "metabase-enterprise.transforms-inspector.schema.trigger-condition" : {
        "description" : "A named condition that triggers an alert or drill lens.\n   Evaluated by multimethod in lib against card results.\n   Only :name is required; other keys are condition-specific.",
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "name" ]
      },
      "metabase-enterprise.transforms-inspector.schema.trigger-metadata" : {
        "description" : "Common metadata for join-related cards and triggers.",
        "type" : "object",
        "properties" : {
          "join_alias" : {
            "type" : "string"
          },
          "join_step" : {
            "type" : "integer"
          },
          "join_strategy" : {
            "type" : "string"
          }
        }
      },
      "metabase-enterprise.transforms-inspector.schema.visited-fields" : {
        "description" : "Field IDs used in semantically important query clauses.\n   Used for interestingness scoring and preselection.",
        "type" : "object",
        "properties" : {
          "all" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "minimum" : 1
            },
            "uniqueItems" : true
          }
        }
      },
      "metabase.actions.schema..action.for-insert" : {
        "description" : "Schema for inserting a new Action (REST API or internally).",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "archived" : {
              "type" : "boolean"
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "model_id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            },
            "name" : {
              "type" : "string"
            },
            "parameter_mappings" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
              }, {
                "type" : "null"
              } ]
            },
            "parameters" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
              }, {
                "type" : "null"
              } ]
            },
            "type" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.type"
            },
            "visualization_settings" : {
              "oneOf" : [ {
                "type" : "object"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "name", "type", "model_id" ]
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.actions.schema.http-action"
          }, {
            "$ref" : "#/components/schemas/metabase.actions.schema.implicit-action"
          }, {
            "$ref" : "#/components/schemas/metabase.actions.schema.query-action"
          }, {
            "type" : "object",
            "properties" : { }
          } ]
        } ]
      },
      "metabase.actions.schema..action.for-update" : {
        "description" : "Schema for updating an Action (REST API or internally).",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "visualization_settings" : {
              "oneOf" : [ {
                "type" : "object"
              }, {
                "type" : "null"
              } ]
            },
            "parameter_mappings" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.id"
            },
            "name" : {
              "type" : "string"
            },
            "archived" : {
              "type" : "boolean"
            },
            "type" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.type"
            },
            "model_id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            },
            "parameters" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
              }, {
                "type" : "null"
              } ]
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            }
          }
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.actions.schema.http-action"
          }, {
            "$ref" : "#/components/schemas/metabase.actions.schema.implicit-action"
          }, {
            "$ref" : "#/components/schemas/metabase.actions.schema.query-action"
          }, {
            "type" : "object",
            "properties" : { }
          } ]
        } ]
      },
      "metabase.actions.schema..http-action.json-query" : {
        "description" : "must be a valid json-query, something like '.item.title'",
        "type" : "string"
      },
      "metabase.actions.schema..http-action.template" : {
        "type" : "object",
        "properties" : {
          "body" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "headers" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "method" : {
            "type" : "string",
            "enum" : [ "GET", "POST", "PUT", "DELETE", "PATCH" ]
          },
          "parameters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
            }, {
              "type" : "null"
            } ]
          },
          "url" : {
            "type" : "string"
          }
        },
        "required" : [ "method", "url" ],
        "additionalProperties" : false
      },
      "metabase.actions.schema..implicit-action.kind" : {
        "description" : "Unsupported implicit action kind",
        "type" : "string",
        "enum" : [ "row/create", "row/update", "row/delete", "bulk/create", "bulk/update", "bulk/delete" ]
      },
      "metabase.actions.schema.action" : {
        "description" : "An Action as it should appear when we `SELECT` it from the app DB.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "visualization_settings" : {
              "oneOf" : [ {
                "type" : "object"
              }, {
                "type" : "null"
              } ]
            },
            "parameter_mappings" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.id"
            },
            "made_public_by_id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
              }, {
                "type" : "null"
              } ]
            },
            "name" : {
              "type" : "string"
            },
            "archived" : {
              "type" : "boolean"
            },
            "updated_at" : { },
            "type" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.type"
            },
            "created_at" : { },
            "public_uuid" : {
              "oneOf" : [ {
                "description" : "value must be a valid UUID.",
                "type" : "string",
                "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
              }, {
                "type" : "null"
              } ]
            },
            "model_id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            },
            "parameters" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
              }, {
                "type" : "null"
              } ]
            },
            "creator_id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
              }, {
                "type" : "null"
              } ]
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "id" ]
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.actions.schema.http-action"
          }, {
            "$ref" : "#/components/schemas/metabase.actions.schema.implicit-action"
          }, {
            "$ref" : "#/components/schemas/metabase.actions.schema.query-action"
          }, {
            "type" : "object",
            "properties" : { }
          } ]
        } ]
      },
      "metabase.actions.schema.http-action" : {
        "type" : "object",
        "properties" : {
          "error_handle" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.actions.schema..http-action.json-query"
            }, {
              "type" : "null"
            } ]
          },
          "response_handle" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.actions.schema..http-action.json-query"
            }, {
              "type" : "null"
            } ]
          },
          "template" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.actions.schema..http-action.template"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.actions.schema.id" : {
        "description" : "Valid Action ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.actions.schema.implicit-action" : {
        "type" : "object",
        "properties" : {
          "kind" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.actions.schema.query-action" : {
        "type" : "object",
        "properties" : {
          "database_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
            }, {
              "type" : "null"
            } ]
          },
          "dataset_query" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.queries.schema.query"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.actions.schema.type" : {
        "description" : "Unsupported action type",
        "type" : "string",
        "enum" : [ "http", "implicit", "query" ]
      },
      "metabase.actions.types..scope.raw" : {
        "anyOf" : [ {
          "type" : "object",
          "properties" : {
            "dashboard-id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "dashboard-id" ]
        }, {
          "type" : "object",
          "properties" : {
            "dashcard-id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "dashcard-id" ]
        }, {
          "type" : "object",
          "properties" : {
            "card-id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "card-id" ]
        }, {
          "type" : "object",
          "properties" : {
            "model-id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "model-id" ]
        }, {
          "type" : "object",
          "properties" : {
            "table-id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "table-id" ]
        }, {
          "type" : "object",
          "properties" : {
            "webhook-id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "webhook-id" ]
        }, {
          "type" : "object",
          "properties" : {
            "unknown" : {
              "type" : "string",
              "enum" : [ "model-action" ]
            }
          },
          "required" : [ "unknown" ]
        } ]
      },
      "metabase.agent-api.api.column-metadata" : {
        "description" : "Metadata for a single result column.",
        "type" : "object",
        "properties" : {
          "base_type" : {
            "type" : "string"
          },
          "display_name" : {
            "type" : "string"
          },
          "effective_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "name", "base_type", "display_name" ]
      },
      "metabase.agent-api.api.construct-query-response" : {
        "description" : "Response containing a base64-encoded MBQL query for use with /v1/execute.",
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "minLength" : 1
          }
        },
        "required" : [ "query" ]
      },
      "metabase.agent-api.api.entity-type" : {
        "description" : "The type of queryable entity.",
        "type" : "string",
        "enum" : [ "table", "metric" ]
      },
      "metabase.agent-api.api.execute-query-request" : {
        "description" : "Request schema for /v1/execute. Accepts a base64-encoded MBQL query.",
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string",
            "minLength" : 1
          }
        },
        "required" : [ "query" ]
      },
      "metabase.agent-api.api.execute-query-response" : {
        "description" : "Response from query execution. The HTTP status is always 202 because results are streamed —\n   check the `status` field to determine success or failure.",
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "cols" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.column-metadata"
                }
              },
              "rows" : {
                "type" : "array",
                "items" : {
                  "type" : "array",
                  "items" : { }
                }
              }
            },
            "required" : [ "cols", "rows" ]
          },
          "error" : {
            "type" : "string"
          },
          "row_count" : {
            "type" : "integer"
          },
          "running_time" : {
            "type" : "integer"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "completed", "failed" ]
          }
        },
        "required" : [ "status" ]
      },
      "metabase.agent-api.api.field" : {
        "description" : "A field from a table or metric. field_id is the real database field ID (integer) for concrete fields,\n  or a string alias for expression/aggregation columns.",
        "type" : "object",
        "properties" : {
          "base_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "coercion_strategy" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "semantic_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "field_values" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : { }
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field-type"
            }, {
              "type" : "null"
            } ]
          },
          "field_id" : {
            "$ref" : "#/components/schemas/metabase.agent-api.api.field-id"
          },
          "effective_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "database_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "field_id", "name", "display_name" ]
      },
      "metabase.agent-api.api.field-id" : {
        "description" : "Field id as accepted by agent_api endpoints — either a real app-DB field id (positive integer)\n  or a string alias for expression/aggregation columns.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
        }, {
          "type" : "string"
        } ]
      },
      "metabase.agent-api.api.field-type" : {
        "description" : "A data type for a field derived from Metabase's type hierarchy.",
        "type" : "string",
        "enum" : [ "boolean", "date", "datetime", "time", "number", "string" ]
      },
      "metabase.agent-api.api.field-values" : {
        "description" : "Statistics and sample values for a specific field.",
        "type" : "object",
        "properties" : {
          "field_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field-id"
            }, {
              "type" : "null"
            } ]
          },
          "statistics" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.agent-api.api.statistics"
            }, {
              "type" : "null"
            } ]
          },
          "values" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : { }
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.agent-api.api.measure" : {
        "description" : "A reusable aggregation expression associated with a table. Reference via measure_id in the aggregations array.",
        "type" : "object",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name" ]
      },
      "metabase.agent-api.api.metric" : {
        "description" : "A metric with its queryable dimensions and segments. The default_time_dimension_field_id is the field_id of the recommended time dimension for temporal breakouts.",
        "type" : "object",
        "properties" : {
          "default_time_dimension_field_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field-id"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "queryable_dimensions" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.field"
              }
            }, {
              "type" : "null"
            } ]
          },
          "segments" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.segment"
              }
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "metric"
          },
          "verified" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type", "name" ]
      },
      "metabase.agent-api.api.metric-summary" : {
        "description" : "Summary of a metric associated with a table. Includes the field_id of the default time dimension for temporal breakouts.",
        "type" : "object",
        "properties" : {
          "default_time_dimension_field_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field-id"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "type" : {
            "const" : "metric"
          }
        },
        "required" : [ "id", "type", "name" ]
      },
      "metabase.agent-api.api.program-request" : {
        "description" : "Request body for /v2/construct-query and /v2/query.\n  An agent-lib structured program with `:source` and `:operations`. The top-level\n  `:source` must reference a database entity (`table`, `card`, `dataset`, or\n  `metric`); `context` and nested `program` sources are rejected at the HTTP\n  boundary by [[evaluate-program-for-execution]] because they require an\n  in-process evaluation context.",
        "$ref" : "#/components/schemas/metabase.agent-lib.schema.program"
      },
      "metabase.agent-api.api.query-request" : {
        "description" : "Request body for /v2/query. Accepts either a structured program or a continuation_token.",
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "continuation_token" : {
              "type" : "string",
              "minLength" : 1
            }
          },
          "required" : [ "continuation_token" ]
        }, {
          "$ref" : "#/components/schemas/metabase.agent-api.api.program-request"
        } ]
      },
      "metabase.agent-api.api.query-response" : {
        "description" : "Response from query execution. The HTTP status is always 202 because results are streamed —\n   check the `status` field to determine success or failure.",
        "type" : "object",
        "properties" : {
          "continuation_token" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "data" : {
            "type" : "object",
            "properties" : {
              "cols" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.column-metadata"
                }
              },
              "rows" : {
                "type" : "array",
                "items" : {
                  "type" : "array",
                  "items" : { }
                }
              }
            },
            "required" : [ "cols", "rows" ]
          },
          "error" : {
            "type" : "string"
          },
          "row_count" : {
            "type" : "integer"
          },
          "running_time" : {
            "type" : "integer"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "completed", "failed" ]
          }
        },
        "required" : [ "status" ]
      },
      "metabase.agent-api.api.related-table" : {
        "description" : "A table related to the queried entity via foreign key. The related_by field indicates the FK field name.",
        "type" : "object",
        "properties" : {
          "database_engine" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "database_id" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "related_by" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "table"
          },
          "fields" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.field"
              }
            }, {
              "type" : "null"
            } ]
          },
          "database_schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type", "name" ]
      },
      "metabase.agent-api.api.search-response" : {
        "description" : "Search results containing tables and metrics matching the query.",
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.agent-api.api.search-result-item"
            }
          },
          "total_count" : {
            "type" : "integer"
          }
        },
        "required" : [ "data", "total_count" ]
      },
      "metabase.agent-api.api.search-result-item" : {
        "description" : "A table or metric returned from search.",
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "verified" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "updated_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "type" : "string",
            "enum" : [ "table", "metric" ]
          },
          "database_schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "created_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type", "name" ]
      },
      "metabase.agent-api.api.segment" : {
        "description" : "A predefined filter condition that can be applied to queries via the segment_id in filters.",
        "type" : "object",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name" ]
      },
      "metabase.agent-api.api.statistics" : {
        "description" : "Statistical summary of a field's values computed during database sync. Includes counts, percentages, numeric summaries (min/max/avg/quartiles/sd), and date ranges.",
        "type" : "object",
        "properties" : {
          "min" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_url" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "average_length" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "earliest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "q1" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "max" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "distinct_count" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "percent_state" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_null" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "avg" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "sd" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_email" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "latest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "q3" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_json" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.agent-api.api.table" : {
        "description" : "Full details of a table including its fields, related tables, metrics, and segments.",
        "type" : "object",
        "properties" : {
          "database_engine" : {
            "type" : "string"
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "database_id" : {
            "type" : "integer"
          },
          "related_tables" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.related-table"
              }
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "segments" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.segment"
              }
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.agent-api.api.entity-type"
          },
          "fields" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field"
            }
          },
          "database_schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "metrics" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.metric-summary"
              }
            }, {
              "type" : "null"
            } ]
          },
          "measures" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.measure"
              }
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type", "name", "display_name", "database_id", "database_engine", "fields" ]
      },
      "metabase.agent-lib.schema.aggregation-ref-form" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "aggregation-ref"
        }, {
          "type" : "integer",
          "minimum" : 0
        } ]
      },
      "metabase.agent-lib.schema.expression-ref-form" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "expression-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.non-blank-string"
        } ]
      },
      "metabase.agent-lib.schema.form" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.source-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.query-aware-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.nested-operator-form"
        } ]
      },
      "metabase.agent-lib.schema.map-literal" : {
        "type" : "object",
        "additionalProperties" : {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.node"
        }
      },
      "metabase.agent-lib.schema.nested-operator-form" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.node"
        },
        "minItems" : 1
      },
      "metabase.agent-lib.schema.node" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.scalar"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.program-literal"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.map-literal"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.vector-literal"
        } ]
      },
      "metabase.agent-lib.schema.non-blank-string" : {
        "type" : "string"
      },
      "metabase.agent-lib.schema.page" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "page" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          }
        },
        "required" : [ "page", "items" ],
        "additionalProperties" : false
      },
      "metabase.agent-lib.schema.program" : {
        "type" : "object",
        "properties" : {
          "operations" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.agent-lib.schema.top-level-op"
            }
          },
          "source" : {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.source"
          }
        },
        "required" : [ "source", "operations" ],
        "additionalProperties" : false
      },
      "metabase.agent-lib.schema.program-literal" : {
        "type" : "object",
        "properties" : {
          "program" : {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.program"
          },
          "type" : {
            "const" : "program"
          }
        },
        "required" : [ "type", "program" ],
        "additionalProperties" : false
      },
      "metabase.agent-lib.schema.query-aware-ref" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.expression-ref-form"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.aggregation-ref-form"
        } ]
      },
      "metabase.agent-lib.schema.scalar" : {
        "anyOf" : [ {
          "type" : "null"
        }, {
          "type" : "string"
        }, {
          "type" : "number"
        }, {
          "type" : "boolean"
        } ]
      },
      "metabase.agent-lib.schema.source" : {
        "anyOf" : [ {
          "type" : "object",
          "properties" : {
            "ref" : {
              "const" : "source"
            },
            "type" : {
              "const" : "context"
            }
          },
          "required" : [ "type", "ref" ],
          "additionalProperties" : false
        }, {
          "type" : "object",
          "properties" : {
            "id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            },
            "type" : {
              "type" : "string",
              "enum" : [ "table", "card", "dataset", "metric" ]
            }
          },
          "required" : [ "type", "id" ],
          "additionalProperties" : false
        }, {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.program-literal"
        } ]
      },
      "metabase.agent-lib.schema.source-ref" : {
        "anyOf" : [ {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "field"
          }, {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "table"
          }, {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "card"
          }, {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "metric"
          }, {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          } ]
        } ]
      },
      "metabase.agent-lib.schema.top-level-op" : {
        "anyOf" : [ {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "filter"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "aggregate"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "breakout"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "with-fields"
          }, {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
            }
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "limit"
          }, {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "expression"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.non-blank-string"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "join"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
          } ]
        }, {
          "anyOf" : [ {
            "type" : "array",
            "prefixItems" : [ {
              "const" : "order-by"
            }, {
              "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
            } ]
          }, {
            "type" : "array",
            "prefixItems" : [ {
              "const" : "order-by"
            }, {
              "$ref" : "#/components/schemas/metabase.agent-lib.schema.form"
            }, {
              "type" : "string",
              "enum" : [ "asc", "desc" ]
            } ]
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "append-stage"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "drop-stage"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "drop-empty-stages"
          } ]
        }, {
          "type" : "array",
          "prefixItems" : [ {
            "const" : "with-page"
          }, {
            "$ref" : "#/components/schemas/metabase.agent-lib.schema.page"
          } ]
        } ]
      },
      "metabase.agent-lib.schema.vector-literal" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.agent-lib.schema.node"
        }
      },
      "metabase.analyze.query-results.ResultsMetadata" : {
        "description" : "value must be an array of valid results column metadata maps.",
        "oneOf" : [ {
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema..result-metadata.column"
          }
        }, {
          "type" : "null"
        } ]
      },
      "metabase.api-keys.schema..key.masked" : {
        "description" : "Masked string like 'mb_1234**********'.",
        "allOf" : [ {
          "$ref" : "#/components/schemas/metabase.api-keys.schema..key.raw"
        }, {
          "type" : "string",
          "pattern" : "^mb_.*{4}\\*+$"
        } ]
      },
      "metabase.api-keys.schema..key.raw" : {
        "description" : "Unhashed string of the form 'mb_<base-64-bytes>'.",
        "type" : "string",
        "minLength" : 12,
        "maxLength" : 254
      },
      "metabase.api-keys.schema.id" : {
        "description" : "value must be an integer greater than zero.",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.api-keys.schema.name" : {
        "type" : "string",
        "minLength" : 1,
        "maxLength" : 254
      },
      "metabase.api-keys.schema.prefix" : {
        "description" : "Prefix string of an API Key, suitable for passing around unmasked. This must be unique.",
        "type" : "string",
        "minLength" : 7,
        "maxLength" : 7
      },
      "metabase.cache.api..cache-strategy.base.ee" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "type" : "string",
            "enum" : [ "nocache", "ttl", "duration", "schedule" ]
          }
        },
        "required" : [ "type" ]
      },
      "metabase.cache.api..cache-strategy.base.oss" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "type" : "string",
            "enum" : [ "nocache", "ttl" ]
          }
        },
        "required" : [ "type" ]
      },
      "metabase.cache.api..cache-strategy.ee" : {
        "description" : "Schema for a caching strategy in EE when we have an premium token with `:cache-granular-controls`.",
        "allOf" : [ {
          "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.base.ee"
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.nocache"
          }, {
            "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.ttl"
          }, {
            "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.ee.duration"
          }, {
            "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.ee.schedule"
          } ]
        } ]
      },
      "metabase.cache.api..cache-strategy.ee.duration" : {
        "type" : "object",
        "properties" : {
          "duration" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "refresh_automatically" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "duration"
          },
          "unit" : {
            "type" : "string",
            "enum" : [ "hours", "minutes", "seconds", "days" ]
          }
        },
        "required" : [ "type", "duration", "unit" ],
        "additionalProperties" : false
      },
      "metabase.cache.api..cache-strategy.ee.schedule" : {
        "type" : "object",
        "properties" : {
          "refresh_automatically" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "schedule" : {
            "$ref" : "#/components/schemas/metabase.util.cron.CronScheduleString"
          },
          "type" : {
            "const" : "schedule"
          }
        },
        "required" : [ "type", "schedule" ],
        "additionalProperties" : false
      },
      "metabase.cache.api..cache-strategy.nocache" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "const" : "nocache"
          }
        },
        "required" : [ "type" ]
      },
      "metabase.cache.api..cache-strategy.oss" : {
        "description" : "Schema for a caching strategy (OSS)",
        "allOf" : [ {
          "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.base.oss"
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.nocache"
          }, {
            "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.ttl"
          } ]
        } ]
      },
      "metabase.cache.api..cache-strategy.ttl" : {
        "type" : "object",
        "properties" : {
          "min_duration_ms" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "type" : "integer",
            "minimum" : 0
          },
          "multiplier" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "type" : {
            "const" : "ttl"
          }
        },
        "required" : [ "type", "multiplier", "min_duration_ms" ],
        "additionalProperties" : false
      },
      "metabase.cache.api.cache-config-item" : {
        "type" : "object",
        "properties" : {
          "collection" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : {
                "authority_level" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                },
                "id" : {
                  "description" : "value must be an integer greater than zero.",
                  "type" : "integer",
                  "minimum" : 1
                },
                "name" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                },
                "type" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                }
              },
              "required" : [ "id", "name" ]
            }, {
              "type" : "null"
            } ]
          },
          "model" : {
            "type" : "string",
            "enum" : [ "root", "database", "dashboard", "question" ]
          },
          "model_id" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "type" : "integer",
            "minimum" : 0
          },
          "name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "strategy" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              }
            },
            "required" : [ "type" ]
          }
        },
        "required" : [ "model", "model_id", "strategy" ]
      },
      "metabase.cache.api.cache-config-list-response" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.cache.api.cache-config-item"
            }
          },
          "limit" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "offset" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater or equal to than zero.",
              "type" : "integer",
              "minimum" : 0
            }, {
              "type" : "null"
            } ]
          },
          "total" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "type" : "integer",
            "minimum" : 0
          }
        },
        "required" : [ "data" ]
      },
      "metabase.cache.api.cache-config-store-response" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          }
        },
        "required" : [ "id" ]
      },
      "metabase.cache.api.cache-invalidate-response" : {
        "type" : "object",
        "properties" : {
          "body" : {
            "type" : "object",
            "properties" : {
              "count" : {
                "type" : "integer"
              },
              "message" : {
                "type" : "string"
              }
            },
            "required" : [ "count", "message" ]
          },
          "status" : {
            "type" : "integer",
            "enum" : [ 200, 404 ]
          }
        },
        "required" : [ "status", "body" ]
      },
      "metabase.cache.api.cache-strategy" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.ee"
        }, {
          "$ref" : "#/components/schemas/metabase.cache.api..cache-strategy.oss"
        } ]
      },
      "metabase.channel.models.channel.Channel" : {
        "description" : "Channel schema.",
        "type" : "object",
        "properties" : {
          "active" : {
            "type" : "boolean"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "details" : {
            "type" : "object",
            "properties" : { }
          },
          "name" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "name", "type", "details" ]
      },
      "metabase.channel.models.channel.ChannelTemplate" : {
        "description" : "Channel Template schema.",
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "channel_type" : { },
            "details" : {
              "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateEmailDetails"
            }
          },
          "required" : [ "channel_type", "details" ]
        }, { } ]
      },
      "metabase.channel.models.channel.ChannelTemplateEmailDetails" : {
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "path" : {
              "type" : "string"
            },
            "recipient-type" : {
              "enum" : [ "cc", "bcc", "cc", "bcc" ]
            },
            "subject" : {
              "type" : "string"
            },
            "type" : {
              "enum" : [ "email/handlebars-resource", "email/handlebars-text", "email/handlebars-resource", "email/handlebars-text" ]
            }
          },
          "required" : [ "type", "subject", "path" ]
        }, {
          "type" : "object",
          "properties" : {
            "body" : {
              "type" : "string"
            },
            "recipient-type" : {
              "enum" : [ "cc", "bcc", "cc", "bcc" ]
            },
            "subject" : {
              "type" : "string"
            },
            "type" : {
              "enum" : [ "email/handlebars-resource", "email/handlebars-text", "email/handlebars-resource", "email/handlebars-text" ]
            }
          },
          "required" : [ "type", "subject", "body" ]
        } ]
      },
      "metabase.channel.models.channel.ChannelTemplateEmailDetailsUserProvided" : {
        "description" : "Email template details schema for API-provided templates. Only handlebars-text is allowed;\n  handlebars-resource is restricted to internal use only.",
        "type" : "object",
        "properties" : {
          "body" : {
            "type" : "string"
          },
          "recipient-type" : {
            "enum" : [ "cc", "bcc", "cc", "bcc" ]
          },
          "subject" : {
            "type" : "string"
          },
          "type" : {
            "enum" : [ "email/handlebars-text", "email/handlebars-text" ]
          }
        },
        "required" : [ "type", "subject", "body" ]
      },
      "metabase.channel.models.channel.ChannelTemplateUserProvided" : {
        "description" : "Channel Template schema for API-provided templates. Does not allow handlebars-resource.",
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "channel_type" : { },
            "details" : {
              "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateEmailDetailsUserProvided"
            }
          },
          "required" : [ "channel_type", "details" ]
        }, { } ]
      },
      "metabase.collections-rest.api.DashboardQuestionCandidate" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "name" : {
            "type" : "string"
          },
          "sole_dashboard_info" : {
            "type" : "object",
            "properties" : {
              "description" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "id" : {
                "type" : "integer",
                "minimum" : 1
              },
              "name" : {
                "type" : "string"
              }
            },
            "required" : [ "id", "name", "description" ]
          }
        },
        "required" : [ "id", "name", "description", "sole_dashboard_info" ]
      },
      "metabase.collections-rest.api.DashboardQuestionCandidatesResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections-rest.api.DashboardQuestionCandidate"
            }
          },
          "total" : {
            "type" : "integer"
          }
        },
        "required" : [ "data", "total" ]
      },
      "metabase.collections-rest.api.MoveDashboardQuestionCandidatesResponse" : {
        "type" : "object",
        "properties" : {
          "moved" : {
            "type" : "array",
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          }
        },
        "required" : [ "moved" ]
      },
      "metabase.collections.schema.CardType" : {
        "type" : "string",
        "enum" : [ "model", "question", "metric" ]
      },
      "metabase.collections.schema.Collection" : {
        "type" : "object",
        "properties" : {
          "git_sync_enabled" : {
            "type" : "boolean"
          },
          "can_delete" : {
            "type" : "boolean"
          },
          "entity_id" : {
            "type" : "string"
          },
          "authority_level" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "is_sample" : {
            "type" : "boolean"
          },
          "children" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.Collection"
            }
          },
          "id" : {
            "anyOf" : [ {
              "type" : "string"
            }, {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            } ]
          },
          "effective_ancestors" : {
            "type" : "object",
            "properties" : { }
          },
          "effective_location" : {
            "type" : "string"
          },
          "is_remote_synced" : {
            "type" : "boolean"
          },
          "name" : {
            "type" : "string"
          },
          "slug" : {
            "type" : "string"
          },
          "archived" : {
            "type" : "boolean"
          },
          "location" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "can_write" : {
            "type" : "boolean"
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.collections.schema.CollectionType"
          },
          "here" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            },
            "uniqueItems" : true
          },
          "parent_id" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string"
              }, {
                "description" : "value must be an integer greater than zero.",
                "type" : "integer",
                "minimum" : 1
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "can_restore" : {
            "type" : "boolean"
          },
          "is_personal" : {
            "type" : "boolean"
          },
          "personal_owner_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "below" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            }
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "description", "can_write", "can_restore", "can_delete", "archived", "location" ]
      },
      "metabase.collections.schema.CollectionItem" : {
        "type" : "object",
        "properties" : {
          "last-edit-info" : {
            "$ref" : "#/components/schemas/metabase.collections.schema.LastEditInfo"
          },
          "model" : {
            "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
          },
          "copy" : {
            "type" : "boolean"
          },
          "collection_preview" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "dashboard_count" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "can_delete" : {
            "type" : "boolean"
          },
          "entity_id" : {
            "type" : "string"
          },
          "authority_level" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "collection" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.collections.schema.Collection"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "effective_location" : {
            "type" : "string"
          },
          "fully_parameterized" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "archived" : {
            "type" : "boolean"
          },
          "collection_position" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "location" : {
            "type" : "string"
          },
          "database_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "can_write" : {
            "type" : "boolean"
          },
          "collection_id" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "description" : "value must be an integer greater than zero.",
                "type" : "integer",
                "minimum" : 1
              }, {
                "type" : "string"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "based_on_upload" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "description" : "value must be an integer greater than zero.",
                "type" : "integer",
                "minimum" : 1
              }, {
                "type" : "string"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "moderated_status" : {
            "type" : "string"
          },
          "type" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionType"
            }, {
              "$ref" : "#/components/schemas/metabase.collections.schema.CardType"
            } ]
          },
          "here" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            },
            "uniqueItems" : true
          },
          "display" : {
            "type" : "string"
          },
          "can_restore" : {
            "type" : "boolean"
          },
          "personal_owner_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "below" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            }
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "description", "archived" ]
      },
      "metabase.collections.schema.CollectionItemModel" : {
        "type" : "string",
        "enum" : [ "card", "dataset", "metric", "dashboard", "snippet", "collection", "indexed-entity", "indexed-entity", "document", "table" ]
      },
      "metabase.collections.schema.CollectionType" : {
        "type" : "string",
        "enum" : [ "instance-analytics", "trash", "remote-synced", "library", "library-models", "library-metrics" ]
      },
      "metabase.collections.schema.LastEditInfo" : {
        "type" : "object",
        "properties" : {
          "email" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "first_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "last_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "timestamp" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "email", "first_name", "last_name", "timestamp" ]
      },
      "metabase.data-studio.api.table.bulk-table-info" : {
        "description" : "Schema for table info in bulk operations. Matches frontend BulkTableInfo type.",
        "type" : "object",
        "properties" : {
          "db_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "display_name" : {
            "type" : "string"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "is_published" : {
            "type" : "boolean"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "db_id", "name", "display_name", "schema", "is_published" ]
      },
      "metabase.data-studio.api.table.bulk-table-selection-info" : {
        "description" : "Schema for /selection endpoint response. Matches frontend BulkTableSelectionInfo type.",
        "type" : "object",
        "properties" : {
          "published_downstream_tables" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-info"
            }
          },
          "selected_table" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-info"
            }, {
              "type" : "null"
            } ]
          },
          "unpublished_upstream_tables" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-info"
            }
          }
        },
        "required" : [ "selected_table", "published_downstream_tables", "unpublished_upstream_tables" ]
      },
      "metabase.data-studio.api.table.data-authorities" : {
        "type" : "string",
        "enum" : [ "computed", "authoritative", "unconfigured", "ingested" ]
      },
      "metabase.data-studio.api.table.data-layers" : {
        "type" : "string",
        "enum" : [ "final", "internal", "hidden" ]
      },
      "metabase.data-studio.api.table.data-sources" : {
        "type" : "string",
        "enum" : [ "source-data", "transform", "unknown", "ingested", "metabase-transform", "upload" ]
      },
      "metabase.data-studio.api.table.table-selectors" : {
        "type" : "object",
        "properties" : {
          "database_ids" : {
            "type" : "array",
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "schema_ids" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "table_ids" : {
            "type" : "array",
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          }
        }
      },
      "metabase.documents.schema..document.id" : {
        "description" : "Valid Document ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.documents.schema.document" : {
        "description" : "Schema for an instance of a `:model/Document`.",
        "type" : "object",
        "properties" : {
          "id" : {
            "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
          }
        },
        "required" : [ "id" ]
      },
      "metabase.driver.connection.connection-type" : {
        "type" : "string",
        "enum" : [ "default", "write-data" ]
      },
      "metabase.embedding-rest.api.theme.EmbeddingTheme" : {
        "type" : "object",
        "properties" : {
          "created_at" : { },
          "entity_id" : {
            "type" : "string",
            "minLength" : 1
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "name" : {
            "type" : "string",
            "minLength" : 1
          },
          "settings" : {
            "type" : "object",
            "properties" : { }
          },
          "updated_at" : { }
        },
        "required" : [ "id", "entity_id", "name", "settings", "created_at", "updated_at" ]
      },
      "metabase.frontend-errors.api.frontend-error-type" : {
        "type" : "string",
        "enum" : [ "component-crash", "chart-render-error" ]
      },
      "metabase.legacy-mbql.schema.-" : {
        "description" : "schema for a valid MBQL 4 :- clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema..NativeQuery.Common" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "collection" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "template-tags" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTagMap"
            }
          }
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.Common" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTagType"
          }
        },
        "required" : [ "type", "name", "display-name" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.FieldFilter" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "const" : "dimension"
          },
          "alias" : {
            "type" : "string"
          },
          "options" : {
            "description" : "optional map to be appended to filter clause",
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.FieldFilter.Options"
            }, {
              "type" : "null"
            } ]
          },
          "dimension" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field"
          },
          "default" : { },
          "widget-type" : {
            "default" : "category",
            "description" : "which type of widget the frontend should show for this Field Filter; this also affects which parameter types\n  are allowed to be specified for it.",
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.WidgetType"
          }
        },
        "required" : [ "type", "name", "display-name", "dimension", "widget-type" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.FieldFilter.Options" : {
        "type" : "object",
        "additionalProperties" : { }
      },
      "metabase.legacy-mbql.schema..TemplateTag.RawValue" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "default" : { },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "type" : "string",
            "enum" : [ "date", "number", "boolean", "text" ]
          }
        },
        "required" : [ "type", "name", "display-name" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.Snippet" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "database" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
          },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "snippet-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
          },
          "snippet-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "type" : {
            "const" : "snippet"
          }
        },
        "required" : [ "type", "name", "display-name", "snippet-name", "snippet-id" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.SourceFilter" : {
        "description" : "Schema for a single source-filter applied to a table template tag.",
        "type" : "object",
        "properties" : {
          "field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "op" : {
            "type" : "string",
            "enum" : [ "<=", ">", ">=", "!=", "=", "<" ]
          },
          "value" : { }
        },
        "required" : [ "field-id", "op", "value" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.SourceQuery" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "card-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
          },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "type" : {
            "const" : "card"
          }
        },
        "required" : [ "type", "name", "display-name", "card-id" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.SourceTable" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "emit-alias" : {
            "type" : "boolean"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "source-filters" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.SourceFilter"
            }
          },
          "table-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "type", "name", "display-name", "table-id" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.TemporalUnit" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "alias" : {
            "type" : "string"
          },
          "default" : { },
          "dimension" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field"
          },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "const" : "temporal-unit"
          }
        },
        "required" : [ "type", "name", "display-name", "dimension" ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.Value.Common" : {
        "description" : "Things required by all template tag types.",
        "type" : "object",
        "properties" : {
          "default" : { },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTagType"
          }
        },
        "required" : [ "type", "name", "display-name" ]
      },
      "metabase.legacy-mbql.schema..legacy-column-metadata.binning-info" : {
        "type" : "object",
        "properties" : {
          "bin_width" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
          },
          "binning_strategy" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
          },
          "num_bins" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
          },
          "strategy" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
          }
        },
        "required" : [ "strategy" ]
      },
      "metabase.legacy-mbql.schema..legacy-column-metadata.qualified-keys" : {
        "type" : "object",
        "properties" : {
          "metabase.lib.metadata.result-metadata/field-ref" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
            }, {
              "type" : "null"
            } ]
          },
          "lib/external-remap" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
            }, {
              "type" : "null"
            } ]
          },
          "lib/source-column-alias" : {
            "oneOf" : [ {
              "description" : "Name for a column as returned/projected by the previous stage of the query or source Table/source Card. The\n  left-hand side (LHS) of\n\n    SELECT lhs AS rhs",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/temporal-unit" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "day", "day-of-month", "day-of-week", "day-of-year", "default", "hour", "hour-of-day", "millisecond", "minute", "minute-of-hour", "month", "month-of-year", "quarter", "quarter-of-year", "second", "second-of-minute", "week", "week-of-year", "year", "year-of-era" ]
            }, {
              "type" : "null"
            } ]
          },
          "lib/type" : {
            "default" : "metadata/column",
            "const" : "metadata/column"
          },
          "lib/source-uuid" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
            }, {
              "type" : "null"
            } ]
          },
          "qp/implicit-field?" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/ref-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/deduplicated-name" : {
            "description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n  the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n  by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n  `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/transformation-added-base-type" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-expression-name" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "lib/from-model?" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/card-id" : {
            "oneOf" : [ {
              "description" : "Valid Card ID",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "lib/expression-name" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "lib/breakout?" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-effective-type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/join-alias" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "qp/native-sandbox-column.propagate-coercion?" : {
            "type" : "boolean"
          },
          "lib/internal-remap" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-binning" : {
            "oneOf" : [ {
              "description" : "Schema for `:binning` options passed to a `:field` clause.",
              "allOf" : [ {
                "type" : "object",
                "properties" : {
                  "strategy" : {
                    "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                  }
                },
                "required" : [ "strategy" ]
              }, {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "strategy" : {
                      "const" : "default"
                    }
                  },
                  "required" : [ "strategy" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "bin-width" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
                    },
                    "strategy" : {
                      "const" : "bin-width"
                    }
                  },
                  "required" : [ "strategy", "bin-width" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "num-bins" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
                    },
                    "strategy" : {
                      "const" : "num-bins"
                    }
                  },
                  "required" : [ "strategy", "num-bins" ]
                } ]
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-join-alias" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "qp/native-sandbox-column.force-coercion-strategy" : {
            "type" : "string"
          },
          "lib/binning" : {
            "oneOf" : [ {
              "description" : "Schema for `:binning` options passed to a `:field` clause.",
              "allOf" : [ {
                "type" : "object",
                "properties" : {
                  "strategy" : {
                    "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                  }
                },
                "required" : [ "strategy" ]
              }, {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "strategy" : {
                      "const" : "default"
                    }
                  },
                  "required" : [ "strategy" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "bin-width" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
                    },
                    "strategy" : {
                      "const" : "bin-width"
                    }
                  },
                  "required" : [ "strategy", "bin-width" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "num-bins" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
                    },
                    "strategy" : {
                      "const" : "num-bins"
                    }
                  },
                  "required" : [ "strategy", "num-bins" ]
                } ]
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "metabase.lib.metadata.result-metadata/source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
            }, {
              "type" : "null"
            } ]
          },
          "lib/source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
            }, {
              "type" : "null"
            } ]
          },
          "lib/ref-display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-name" : {
            "description" : "The original name of the column as it appeared in the very first place it came from (i.e., the physical name of the\n  column in the table it appears in). This should be the same as the `:lib/source-column-alias` for the very first\n  usage of the column.\n  Allowed to be blank because some databases like SQL Server allow blank column names.",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/simple-display-name" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "lib/desired-column-alias" : {
            "oneOf" : [ {
              "description" : "Name we should use as a column alias for a column in this stage of a query. The desired column alias in stage N\n  becomes the source column alias in stage N+1. The right-hand side (RHS) in\n\n    SELECT lhs AS rhs",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.legacy-mbql.schema.Addable" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpressionArg"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DateTimeExpressionArg"
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.interval"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.segment"
          } ]
        } ]
      },
      "metabase.legacy-mbql.schema.Aggregation" : {
        "description" : "Schema for anything that is a valid `:aggregation` clause.",
        "allOf" : [ {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation-options"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.UnnamedAggregation"
          } ]
        }, {
          "description" : "Normalization should automatically unwrap :aggregation-options with an empty options map"
        } ]
      },
      "metabase.legacy-mbql.schema.AggregationOptionsOptions" : {
        "description" : "Additional options for any aggregation clause when wrapping it in `:aggregation-options`.",
        "type" : "object",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          }
        }
      },
      "metabase.legacy-mbql.schema.AggregationRefOptions" : {
        "type" : "object",
        "properties" : {
          "base-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          }
        }
      },
      "metabase.legacy-mbql.schema.Aggregations" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregation"
        },
        "minItems" : 1
      },
      "metabase.legacy-mbql.schema.AnyMBQLClause" : {
        "description" : "Schema for ANY valid MBQL clause"
      },
      "metabase.legacy-mbql.schema.ArithmeticDateTimeUnit" : {
        "type" : "string",
        "enum" : [ "millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", "year" ]
      },
      "metabase.legacy-mbql.schema.BooleanExpression" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.and"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.or"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.not"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._EQ_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._BANG__EQ_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._LT_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._GT_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._LT__EQ_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._GT__EQ_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.between"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.starts-with"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ends-with"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.contains"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.in"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.not-in"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.does-not-contain"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.inside"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.is-empty"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.not-empty"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.is-null"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.not-null"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.relative-time-interval"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.time-interval"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.during"
        } ]
      },
      "metabase.legacy-mbql.schema.Breakouts" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        },
        "minItems" : 1
      },
      "metabase.legacy-mbql.schema.CaseOptions" : {
        "type" : "object",
        "properties" : {
          "default" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ExpressionArg"
          }
        }
      },
      "metabase.legacy-mbql.schema.CaseSubclause" : {
        "type" : "array",
        "prefixItems" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ExpressionArg"
        } ]
      },
      "metabase.legacy-mbql.schema.CaseSubclauses" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.CaseSubclause"
        },
        "minItems" : 1
      },
      "metabase.legacy-mbql.schema.CheckKeysForQueryType" : {
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.CheckQueryDoesNotHaveSourceMetadata" : {
        "description" : "`:source-metadata` is added to queries when `card__id` source queries are resolved. It contains info about the\n  columns in the source query.\n\n  Where this is added was changed in Metabase 0.33.0 -- previously, when `card__id` source queries were resolved, the\n  middleware would add `:source-metadata` to the top-level; to support joins against source queries, this has been\n  changed so it is always added at the same level the resolved `:source-query` is added.\n\n  This should automatically be fixed by `normalize`; if we encounter it, it means some middleware is not functioning\n  properly."
      },
      "metabase.legacy-mbql.schema.DatabaseID" : {
        "description" : "Schema for a valid `:database` ID, in the top-level 'outer' query. Either a positive integer (referring to an\n  actual Database), or the saved questions virtual ID, which is a placeholder used for queries using the\n  `:source-table \"card__id\"` shorthand for a source query resolved by middleware (since clients might not know the\n  actual DB for that source query.)",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
        } ]
      },
      "metabase.legacy-mbql.schema.DateOrDatetimeLiteral" : {
        "description" : "Schema for a valid date or datetime literal.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.relative-datetime"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.absolute-datetime"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.datetime"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.date"
        } ]
      },
      "metabase.legacy-mbql.schema.DateTimeExpressionArg" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregation"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeExpression"
        }, {
          "anyOf" : [ {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DateOrDatetimeLiteral"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
          } ]
        } ]
      },
      "metabase.legacy-mbql.schema.DateTimeUnit" : {
        "description" : "Valid unit for *datetime* bucketing.",
        "type" : "string",
        "enum" : [ "quarter", "day", "hour", "week", "second", "default", "day-of-week", "hour-of-day", "month", "month-of-year", "day-of-month", "year", "day-of-year", "millisecond", "year-of-era", "week-of-year", "quarter-of-year", "minute-of-hour", "minute" ]
      },
      "metabase.legacy-mbql.schema.DateUnit" : {
        "description" : "Valid unit for date bucketing.",
        "type" : "string",
        "enum" : [ "quarter", "day", "week", "default", "day-of-week", "month", "month-of-year", "day-of-month", "year", "day-of-year", "year-of-era", "week-of-year", "quarter-of-year" ]
      },
      "metabase.legacy-mbql.schema.DatetimeDiffUnit" : {
        "description" : "Valid units for a datetime-diff clause.",
        "type" : "string",
        "enum" : [ "second", "minute", "hour", "day", "week", "month", "quarter", "year" ]
      },
      "metabase.legacy-mbql.schema.DatetimeExpression" : {
        "description" : "Schema for the definition of a date function expression.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._PLUS_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.datetime-add"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.datetime-subtract"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.convert-timezone"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.now"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.date"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.datetime"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.today"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.coalesce"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.case"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.if"
        } ]
      },
      "metabase.legacy-mbql.schema.DatetimeOptions" : {
        "type" : "object",
        "properties" : {
          "mode" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeOptionsMode"
          }
        }
      },
      "metabase.legacy-mbql.schema.DatetimeOptionsMode" : {
        "type" : "string",
        "enum" : [ "simple-bytes", "unix-nanoseconds", "simple", "iso", "iso-bytes", "unix-seconds", "unix-milliseconds", "unix-microseconds" ]
      },
      "metabase.legacy-mbql.schema.Emptyable" : {
        "description" : "Schema for a valid is-empty or not-empty argument.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpressionArg"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ]
      },
      "metabase.legacy-mbql.schema.EqualityComparable" : {
        "description" : "Schema for things that make sense in a `=` or `!=` filter, i.e. things that can be compared for equality.",
        "oneOf" : [ {
          "anyOf" : [ {
            "type" : "boolean"
          }, {
            "type" : "number"
          }, {
            "type" : "string"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemporalLiteral"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRefOrRelativeDatetime"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ExpressionArg"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
          } ]
        }, {
          "type" : "null"
        } ]
      },
      "metabase.legacy-mbql.schema.EqualityFilterFieldArg" : {
        "description" : "Schema for the first arg to `=`, `!=`, and friends.",
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.EqualityComparable"
      },
      "metabase.legacy-mbql.schema.ExpressionArg" : {
        "oneOf" : [ {
          "type" : "number"
        }, {
          "type" : "boolean"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.BooleanExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregation"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation"
        }, {
          "type" : "string"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ]
      },
      "metabase.legacy-mbql.schema.ExpressionName" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
      },
      "metabase.legacy-mbql.schema.ExpressionRefOptions" : {
        "description" : "Options for a legacy `:expression` ref in MBQL 4 are the same as in MBQL 5, except that `:lib/uuid` is optional and\n  it cannot be empty.",
        "default" : { },
        "type" : "object",
        "properties" : {
          "base-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "database-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "lib/uuid" : {
            "type" : "string",
            "minLength" : 36,
            "maxLength" : 36
          },
          "name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          },
          "temporal-unit" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
          }
        }
      },
      "metabase.legacy-mbql.schema.Expressions" : {
        "type" : "object",
        "additionalProperties" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionDef"
        }
      },
      "metabase.legacy-mbql.schema.ExtractWeekMode" : {
        "description" : "Valid modes to extract weeks.",
        "type" : "string",
        "enum" : [ "iso", "us", "instance" ]
      },
      "metabase.legacy-mbql.schema.FieldOrExpressionDef" : {
        "description" : "Schema for anything that is accepted as a top-level expression definition, either an arithmetic expression such as a\n  `:+` clause or a `:field` or `:value` clause.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
        }, {
          "type" : "number"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpression"
        }, {
          "type" : "string"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.BooleanExpression"
        }, {
          "type" : "boolean"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeExpression"
        }, { }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.case"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.if"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.offset"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ]
      },
      "metabase.legacy-mbql.schema.FieldOrExpressionRef" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.expression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field"
        } ]
      },
      "metabase.legacy-mbql.schema.FieldOrExpressionRefOrRelativeDatetime" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.relative-datetime"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ]
      },
      "metabase.legacy-mbql.schema.FieldRefOptions" : {
        "description" : "Options for an MBQL 4 `:field` ref are the same as MBQL 5, except that `:lib/uuid` is not required and it cannot be\n  empty.",
        "oneOf" : [ {
          "allOf" : [ {
            "default" : { },
            "type" : "object",
            "properties" : {
              "binning" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              },
              "inherited-temporal-unit" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              },
              "database-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "display-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "source-field-name" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              },
              "effective-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "base-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/uuid" : {
                "type" : "string",
                "minLength" : 36,
                "maxLength" : 36
              },
              "name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-effective-type" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              },
              "source-field" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              },
              "join-alias" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              },
              "lib/original-binning" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              },
              "temporal-unit" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              },
              "source-field-join-alias" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              },
              "semantic-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
                }, {
                  "type" : "null"
                } ]
              },
              "original-temporal-unit" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }
            }
          }, {
            "allOf" : [ ]
          } ]
        }, {
          "type" : "null"
        } ]
      },
      "metabase.legacy-mbql.schema.Fields" : {
        "allOf" : [ {
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
          },
          "minItems" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.helpers.distinct"
        } ]
      },
      "metabase.legacy-mbql.schema.Filter" : {
        "description" : "Schema for a valid MBQL `:filter` clause.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.BooleanExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.segment"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ]
      },
      "metabase.legacy-mbql.schema.IntGreaterThanZeroOrNumericExpression" : {
        "oneOf" : [ {
          "type" : "integer",
          "minimum" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
        } ]
      },
      "metabase.legacy-mbql.schema.Join" : {
        "description" : "Perform the equivalent of a SQL `JOIN` with another Table or nested `:source-query`. JOINs are either explicitly\n  specified in the incoming query, or implicitly generated when one uses a `:field` clause with `:source-field`.\n\n  In the top-level query, you can reference Fields from the joined table or nested query by including `:source-field`\n  in the `:field` options (known as implicit joins); for explicit joins, you *must* specify `:join-alias` yourself; in\n  the `:field` options, e.g.\n\n    ;; for joins against other Tables/MBQL source queries\n    [:field 1 {:join-alias \"my_join_alias\"}]\n\n    ;; for joins against native queries\n    [:field \"my_field\" {:base-type :field/Integer, :join-alias \"my_join_alias\"}]",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "alias" : {
              "description" : "The name used to alias the joined table or query. This is usually generated automatically and generally looks\n  like `table__via__field`. You can specify this yourself if you need to reference a joined field with a `:join-alias`\n  in the options.\n\n  Driver implementations: This is guaranteed to be present after pre-processing.",
              "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
            },
            "condition" : {
              "description" : "The condition on which to JOIN. Can be anything that is a valid `:filter` clause. For automatically-generated\n  JOINs this is usually something like\n\n    [:= <source-table-fk-field> [:field <dest-table-pk-field> {:join-alias <join-table-alias>}]]",
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
            },
            "fields" : {
              "description" : "The Fields from this join to include in parent-level results. This can be either `:none`, `:all`, or a sequence\n  of `:field` clauses.\n\n  * `:none`: no Fields from the joined table or nested query are included (unless indirectly included by breakouts or\n     other clauses). This is the default, and what is used for automatically-generated joins.\n\n  * `:all`: will include all of the Field from the joined table or query\n\n  * a sequence of Field clauses: include only the Fields specified. Valid clauses are the same as the top-level\n    `:fields` clause. This should be non-empty and all elements should be distinct. The normalizer will automatically\n    remove duplicate fields for you, and replace empty clauses with `:none`.\n\n  Driver implementations: you can ignore this clause. Relevant fields will be added to top-level `:fields` clause with\n  appropriate aliases.",
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.JoinFields"
            },
            "fk-field-id" : {
              "description" : "Mostly used only internally. When a join is implicitly generated via a `:field` clause with\n  `:source-field`, the ID of the foreign key field in the source Table will be recorded here. This information is used\n  to add `fk_field_id` information to the `:cols` in the query results, and also for drill-thru. When generating\n  explicit joins by hand you can usually omit this information, altho it doesn't hurt to include it if you know it.\n\n  Don't set this information yourself. It will have no effect.",
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "source-metadata" : {
              "description" : "Metadata about the source query being used, if pulled in from a Card via the\n  `:source-table \"card__id\"` syntax. added automatically by the `resolve-card-id-source-tables` middleware.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
                }
              }, {
                "type" : "null"
              } ]
            },
            "source-query" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceQuery"
            },
            "source-table" : {
              "description" : "*What* to JOIN. Self-joins can be done by using the same `:source-table` as in the query where\n  this is specified. YOU MUST SUPPLY EITHER `:source-table` OR `:source-query`, BUT NOT BOTH!",
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceTable"
            },
            "strategy" : {
              "description" : "Defaults to `:left-join`; used for all automatically-generated JOINs\n\n  Driver implementations: this is guaranteed to be present after pre-processing.",
              "$ref" : "#/components/schemas/metabase.lib.schema.join.strategy"
            }
          },
          "required" : [ "condition" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.JoinFields" : {
        "anyOf" : [ {
          "type" : "string",
          "enum" : [ "all", "none" ]
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Fields"
        } ]
      },
      "metabase.legacy-mbql.schema.Joins" : {
        "description" : "Schema for a valid sequence of `Join`s. Must be a non-empty sequence, and `:alias`, if specified, must be unique.",
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Join"
        },
        "minItems" : 1
      },
      "metabase.legacy-mbql.schema.MBQLQuery" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "breakout" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Breakouts"
            },
            "source-metadata" : {
              "description" : "Info about the columns of the source query. Added in automatically by middleware. This metadata is\n  primarily used to let power things like binning when used with Field Literals instead of normal Fields.",
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
                }
              }, {
                "type" : "null"
              } ]
            },
            "source-query" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceQuery"
            },
            "limit" : {
              "type" : "integer",
              "minimum" : 0
            },
            "filter" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
            },
            "joins" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Joins"
            },
            "aggregation" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregations"
            },
            "fields" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Fields"
            },
            "source-table" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceTable"
            },
            "order-by" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.OrderBys"
            },
            "page" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.page"
            },
            "expressions" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Expressions"
            }
          }
        }, {
          "type" : "object",
          "properties" : { }
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.RemoveFieldRefsFromFieldsAlreadyInBreakout"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.NativeQuery" : {
        "description" : "Schema for a valid, normalized native [inner] query.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "collection" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "query" : { },
            "template-tags" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTagMap"
            }
          },
          "required" : [ "query" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.NativeSourceQuery" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "collection" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "native" : { },
            "template-tags" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTagMap"
            }
          },
          "required" : [ "native" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.NumericExpression" : {
        "description" : "Schema for the definition of a numeric expression. All numeric expressions evaluate to numeric values.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._PLUS_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.-"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._SLASH_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema._STAR_"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.coalesce"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.length"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.floor"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ceil"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.round"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.abs"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.power"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.sqrt"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.exp"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.log"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.case"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.if"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.datetime-diff"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.integer"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.float"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.temporal-extract"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-year"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-quarter"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-month"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-week"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-day"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-day-of-week"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-hour"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-minute"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.get-second"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation"
        } ]
      },
      "metabase.legacy-mbql.schema.NumericExpressionArg" : {
        "oneOf" : [ {
          "type" : "number"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregation"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
        } ]
      },
      "metabase.legacy-mbql.schema.OrderBy" : {
        "description" : "Schema for an `order-by` clause subclause.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.asc"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.desc"
        } ]
      },
      "metabase.legacy-mbql.schema.OrderBys" : {
        "allOf" : [ {
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.OrderBy"
          },
          "minItems" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.helpers.distinct"
        } ]
      },
      "metabase.legacy-mbql.schema.OrderComparable" : {
        "description" : "Schema for things that make sense in a filter like `>` or `<`, i.e. things that can be sorted.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "anyOf" : [ {
            "type" : "number"
          }, {
            "type" : "string"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemporalLiteral"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ExpressionArg"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation"
          }, {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRefOrRelativeDatetime"
          } ]
        } ]
      },
      "metabase.legacy-mbql.schema.OrderedFilterFieldArg" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.OrderComparable"
      },
      "metabase.legacy-mbql.schema.Query" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : { }
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.CheckQueryDoesNotHaveSourceMetadata"
        }, {
          "type" : "object",
          "properties" : {
            "update-row" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              }, {
                "type" : "null"
              } ]
            },
            "settings" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
              }, {
                "type" : "null"
              } ]
            },
            "constraints" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
              }, {
                "type" : "null"
              } ]
            },
            "query" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.MBQLQuery"
            },
            "native" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NativeQuery"
            },
            "info" : {
              "description" : "Used when recording info about this run in the QueryExecution log; things like context query was\n  ran in and User who ran it.",
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.info.info"
              }, {
                "type" : "null"
              } ]
            },
            "middleware" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
              }, {
                "type" : "null"
              } ]
            },
            "database" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatabaseID"
            },
            "type" : {
              "description" : "Type of query. `:query` = MBQL; `:native` = native.",
              "type" : "string",
              "enum" : [ "query", "native" ]
            },
            "parameters" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
              }, {
                "type" : "null"
              } ]
            },
            "create-row" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "type" ]
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.CheckKeysForQueryType"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.Reference" : {
        "description" : "Schema for any type of valid Field clause, or for an indexed reference to an aggregation clause.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.aggregation"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.expression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field"
        } ]
      },
      "metabase.legacy-mbql.schema.RelativeDatetimeUnit" : {
        "type" : "string",
        "enum" : [ "default", "minute", "hour", "day", "week", "month", "quarter", "year" ]
      },
      "metabase.legacy-mbql.schema.RemoveFieldRefsFromFieldsAlreadyInBreakout" : { },
      "metabase.legacy-mbql.schema.SourceQuery" : {
        "description" : "Schema for a valid value for a `:source-query`.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NativeSourceQuery"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.MBQLQuery"
        } ]
      },
      "metabase.legacy-mbql.schema.SourceTable" : {
        "description" : "Schema for a valid value for the `:source-table` clause of an MBQL query.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
        }, {
          "description" : "`card__<id>` string Table ID",
          "type" : "string",
          "pattern" : "^card__[1-9]\\d*$"
        } ]
      },
      "metabase.legacy-mbql.schema.StringExpression" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.substring"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.trim"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ltrim"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.rtrim"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.replace"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.lower"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.upper"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.concat"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.regex-match-first"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.coalesce"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.case"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.if"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.host"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.domain"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.subdomain"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.path"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.month-name"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.quarter-name"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.day-name"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.text"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.split-part"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.collate"
        } ]
      },
      "metabase.legacy-mbql.schema.StringExpressionArg" : {
        "oneOf" : [ {
          "type" : "string"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpression"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.value"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ]
      },
      "metabase.legacy-mbql.schema.StringFilterOptions" : {
        "type" : "object",
        "properties" : {
          "case-sensitive" : {
            "type" : "boolean"
          }
        }
      },
      "metabase.legacy-mbql.schema.TemplateTag" : {
        "description" : "Schema for a template tag as specified in a native query. There are four types of template tags, differentiated by\n  `:type`.\n\n  Template tags are used to specify {{placeholders}} in native queries that are replaced with some sort of value when\n  the query itself runs. There are four basic types of template tag for native queries:\n\n  1. Field filters, which are used like\n\n         SELECT * FROM table WHERE {{field_filter}}\n\n     These reference specific Fields and are replaced with entire conditions, e.g. `some_field > 1000`\n\n  2. Raw values, which are used like\n\n         SELECT * FROM table WHERE my_field = {{x}}\n\n     These are replaced with raw values.\n\n   3. Native query snippets, which might be used like\n\n          SELECT * FROM ({{snippet: orders}}) source\n\n      These are replaced with `NativeQuerySnippet`s from the application database.\n\n   4. Source query Card IDs, which are used like\n\n          SELECT * FROM ({{#123}}) source\n\n      These are replaced with the query from the Card with that ID.\n\n  Field filters and raw values usually have their value specified by `:parameters`.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.FieldFilter"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.Snippet"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.SourceQuery"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.SourceTable"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.TemporalUnit"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.RawValue"
        } ]
      },
      "metabase.legacy-mbql.schema.TemplateTagMap" : {
        "description" : "Schema for the `:template-tags` map passed in as part of a native query.\n\n  Map of template tag name -> template tag definition",
        "allOf" : [ {
          "type" : "object",
          "additionalProperties" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTag"
          }
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..template-tag-map.validate-names"
        } ]
      },
      "metabase.legacy-mbql.schema.TemplateTagType" : {
        "description" : "Schema for valid values of template tag `:type`.",
        "type" : "string",
        "enum" : [ "snippet", "card", "dimension", "number", "text", "date", "table" ]
      },
      "metabase.legacy-mbql.schema.TemporalExtractUnit" : {
        "description" : "Valid units to extract from a temporal.",
        "type" : "string",
        "enum" : [ "year-of-era", "quarter-of-year", "month-of-year", "week-of-year-iso", "week-of-year-us", "week-of-year-instance", "day-of-month", "day-of-week", "day-of-week-iso", "hour-of-day", "minute-of-hour", "second-of-minute" ]
      },
      "metabase.legacy-mbql.schema.TemporalLiteral" : {
        "description" : "Schema for valid temporal literals.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DateOrDatetimeLiteral"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TimeLiteral"
        } ]
      },
      "metabase.legacy-mbql.schema.TimeIntervalOptions" : {
        "type" : "object",
        "properties" : {
          "include-current" : {
            "type" : "boolean"
          }
        }
      },
      "metabase.legacy-mbql.schema.TimeLiteral" : {
        "description" : "Schema for valid time literals.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.time"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.time"
        } ]
      },
      "metabase.legacy-mbql.schema.TimeUnit" : {
        "description" : "Valid unit for time bucketing.",
        "type" : "string",
        "enum" : [ "hour", "second", "default", "hour-of-day", "millisecond", "minute-of-hour", "minute" ]
      },
      "metabase.legacy-mbql.schema.UnnamedAggregation" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.AnyMBQLClause"
      },
      "metabase.legacy-mbql.schema.ValueTypeInfo" : {
        "description" : "Type info about a value in a `:value` clause. Added automatically by `wrap-value-literals` middleware to values in filter clauses based on the Field in the clause.",
        "type" : "object",
        "properties" : {
          "base_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "database_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "semantic_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          },
          "unit" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DateTimeUnit"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.legacy-mbql.schema.WidgetType" : {
        "description" : "Schema for valid values of `:widget-type` for a `::TemplateTag.FieldFilter`.",
        "$ref" : "#/components/schemas/metabase.lib.schema.parameter.widget-type"
      },
      "metabase.legacy-mbql.schema._BANG__EQ_" : {
        "description" : "schema for a valid MBQL 4 :!= clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._EQ_" : {
        "description" : "schema for a valid MBQL 4 := clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._GT_" : {
        "description" : "schema for a valid MBQL 4 :> clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._GT__EQ_" : {
        "description" : "schema for a valid MBQL 4 :>= clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._LT_" : {
        "description" : "schema for a valid MBQL 4 :< clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._LT__EQ_" : {
        "description" : "schema for a valid MBQL 4 :<= clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._PLUS_" : {
        "description" : "schema for a valid MBQL 4 :+ clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._SLASH_" : {
        "description" : "schema for a valid MBQL 4 :/ clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema._STAR_" : {
        "description" : "schema for a valid MBQL 4 :* clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.abs" : {
        "description" : "schema for a valid MBQL 4 :abs clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.absolute-datetime" : {
        "description" : "Schema for a valid MBQL 4 :absolute-datetime clause.",
        "oneOf" : [ { }, {
          "description" : "schema for a valid MBQL 4 :absolute-datetime clause",
          "allOf" : [ ]
        }, {
          "description" : "schema for a valid MBQL 4 :absolute-datetime clause",
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.aggregation" : {
        "description" : "schema for a valid MBQL 4 :aggregation clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.aggregation-options" : {
        "description" : "schema for a valid MBQL 4 :aggregation-options clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.and" : {
        "description" : "Schema for a valid MBQL 4 :and clause.",
        "oneOf" : [ {
          "description" : "schema for a valid MBQL 4 :and clause",
          "allOf" : [ ]
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
        } ]
      },
      "metabase.legacy-mbql.schema.asc" : {
        "description" : "schema for a valid MBQL 4 :asc clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.between" : {
        "description" : "schema for a valid MBQL 4 :between clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.case" : {
        "description" : "schema for a valid MBQL 4 :case clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.ceil" : {
        "description" : "schema for a valid MBQL 4 :ceil clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.coalesce" : {
        "description" : "schema for a valid MBQL 4 :coalesce clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.collate" : {
        "description" : "schema for a valid MBQL 4 :collate clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.concat" : {
        "description" : "schema for a valid MBQL 4 :concat clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.contains" : {
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/contains clause.",
        "anyOf" : [ {
          "description" : "schema for a valid MBQL 4 :contains clause",
          "allOf" : [ ]
        }, {
          "description" : "schema for a valid MBQL 4 :contains clause",
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.convert-timezone" : {
        "description" : "schema for a valid MBQL 4 :convert-timezone clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.date" : {
        "description" : "schema for a valid MBQL 4 :date clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.datetime" : {
        "description" : "schema for a valid MBQL 4 :datetime clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.datetime-add" : {
        "description" : "schema for a valid MBQL 4 :datetime-add clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.datetime-diff" : {
        "description" : "schema for a valid MBQL 4 :datetime-diff clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.datetime-subtract" : {
        "description" : "schema for a valid MBQL 4 :datetime-subtract clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.day-name" : {
        "description" : "schema for a valid MBQL 4 :day-name clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.desc" : {
        "description" : "schema for a valid MBQL 4 :desc clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.does-not-contain" : {
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/does-not-contain clause.",
        "anyOf" : [ {
          "description" : "schema for a valid MBQL 4 :does-not-contain clause",
          "allOf" : [ ]
        }, {
          "description" : "schema for a valid MBQL 4 :does-not-contain clause",
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.domain" : {
        "description" : "schema for a valid MBQL 4 :domain clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.during" : {
        "description" : "schema for a valid MBQL 4 :during clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.ends-with" : {
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/ends-with clause.",
        "anyOf" : [ {
          "description" : "schema for a valid MBQL 4 :ends-with clause",
          "allOf" : [ ]
        }, {
          "description" : "schema for a valid MBQL 4 :ends-with clause",
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.exp" : {
        "description" : "schema for a valid MBQL 4 :exp clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.expression" : {
        "description" : "schema for a valid MBQL 4 :expression clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.field" : {
        "description" : "Schema for a valid MBQL 4 :field clause.",
        "allOf" : [ {
          "description" : "schema for a valid MBQL 4 :field clause",
          "allOf" : [ ]
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.require-base-type-for-field-name"
        } ]
      },
      "metabase.legacy-mbql.schema.float" : {
        "description" : "schema for a valid MBQL 4 :float clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.floor" : {
        "description" : "schema for a valid MBQL 4 :floor clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-day" : {
        "description" : "schema for a valid MBQL 4 :get-day clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-day-of-week" : {
        "description" : "schema for a valid MBQL 4 :get-day-of-week clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-hour" : {
        "description" : "schema for a valid MBQL 4 :get-hour clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-minute" : {
        "description" : "schema for a valid MBQL 4 :get-minute clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-month" : {
        "description" : "schema for a valid MBQL 4 :get-month clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-quarter" : {
        "description" : "schema for a valid MBQL 4 :get-quarter clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-second" : {
        "description" : "schema for a valid MBQL 4 :get-second clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-week" : {
        "description" : "schema for a valid MBQL 4 :get-week clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.get-year" : {
        "description" : "schema for a valid MBQL 4 :get-year clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.helpers.distinct" : {
        "description" : "values must be distinct"
      },
      "metabase.legacy-mbql.schema.host" : {
        "description" : "schema for a valid MBQL 4 :host clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.if" : {
        "description" : "schema for a valid MBQL 4 :if clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.in" : {
        "description" : "schema for a valid MBQL 4 :in clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.inside" : {
        "description" : "schema for a valid MBQL 4 :inside clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.integer" : {
        "description" : "schema for a valid MBQL 4 :integer clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.interval" : {
        "description" : "schema for a valid MBQL 4 :interval clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.is-empty" : {
        "description" : "schema for a valid MBQL 4 :is-empty clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.is-null" : {
        "description" : "schema for a valid MBQL 4 :is-null clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.legacy-column-metadata" : {
        "description" : "Schema for a single legacy metadata column. This is the pre-Lib equivalent of\n  `:metabase.lib.schema.metadata/column`.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "metabase.lib.metadata.result-metadata/field-ref" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
              }, {
                "type" : "null"
              } ]
            },
            "field_ref" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
              }, {
                "type" : "null"
              } ]
            },
            "lib/external-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source-column-alias" : {
              "oneOf" : [ {
                "description" : "Name for a column as returned/projected by the previous stage of the query or source Table/source Card. The\n  left-hand side (LHS) of\n\n    SELECT lhs AS rhs",
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/temporal-unit" : {
              "oneOf" : [ {
                "type" : "string",
                "enum" : [ "day", "day-of-month", "day-of-week", "day-of-year", "default", "hour", "hour-of-day", "millisecond", "minute", "minute-of-hour", "month", "month-of-year", "quarter", "quarter-of-year", "second", "second-of-minute", "week", "week-of-year", "year", "year-of-era" ]
              }, {
                "type" : "null"
              } ]
            },
            "lib/type" : {
              "default" : "metadata/column",
              "const" : "metadata/column"
            },
            "fingerprint" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.fingerprint"
              }, {
                "type" : "null"
              } ]
            },
            "visibility_type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"
              }, {
                "type" : "null"
              } ]
            },
            "base_type" : {
              "default" : "type/*",
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "lib/source-uuid" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
              }, {
                "type" : "null"
              } ]
            },
            "qp/implicit-field?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/ref-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "lib/deduplicated-name" : {
              "description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n  the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n  by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n  `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/transformation-added-base-type" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-expression-name" : {
              "oneOf" : [ {
                "type" : "string",
                "minLength" : 1
              }, {
                "type" : "null"
              } ]
            },
            "lib/from-model?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "name" : {
              "type" : "string"
            },
            "lib/card-id" : {
              "oneOf" : [ {
                "description" : "Valid Card ID",
                "type" : "integer",
                "minimum" : 1
              }, {
                "type" : "null"
              } ]
            },
            "lib/expression-name" : {
              "oneOf" : [ {
                "type" : "string",
                "minLength" : 1
              }, {
                "type" : "null"
              } ]
            },
            "lib/breakout?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "semantic_type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-effective-type" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/join-alias" : {
              "oneOf" : [ {
                "type" : "string",
                "minLength" : 1
              }, {
                "type" : "null"
              } ]
            },
            "display_name" : {
              "type" : "string"
            },
            "qp/native-sandbox-column.propagate-coercion?" : {
              "type" : "boolean"
            },
            "lib/internal-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
              }, {
                "type" : "null"
              } ]
            },
            "converted_timezone" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal.timezone-id"
              }, {
                "type" : "null"
              } ]
            },
            "source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
              }, {
                "type" : "null"
              } ]
            },
            "binning_info" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..legacy-column-metadata.binning-info"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-binning" : {
              "oneOf" : [ {
                "description" : "Schema for `:binning` options passed to a `:field` clause.",
                "allOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "strategy" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                    }
                  },
                  "required" : [ "strategy" ]
                }, {
                  "oneOf" : [ {
                    "type" : "object",
                    "properties" : {
                      "strategy" : {
                        "const" : "default"
                      }
                    },
                    "required" : [ "strategy" ]
                  }, {
                    "type" : "object",
                    "properties" : {
                      "bin-width" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
                      },
                      "strategy" : {
                        "const" : "bin-width"
                      }
                    },
                    "required" : [ "strategy", "bin-width" ]
                  }, {
                    "type" : "object",
                    "properties" : {
                      "num-bins" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
                      },
                      "strategy" : {
                        "const" : "num-bins"
                      }
                    },
                    "required" : [ "strategy", "num-bins" ]
                  } ]
                } ]
              }, {
                "type" : "null"
              } ]
            },
            "effective_type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "lib/original-join-alias" : {
              "oneOf" : [ {
                "type" : "string",
                "minLength" : 1
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "unit" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }, {
                "type" : "null"
              } ]
            },
            "qp/native-sandbox-column.force-coercion-strategy" : {
              "type" : "string"
            },
            "lib/binning" : {
              "oneOf" : [ {
                "description" : "Schema for `:binning` options passed to a `:field` clause.",
                "allOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "strategy" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                    }
                  },
                  "required" : [ "strategy" ]
                }, {
                  "oneOf" : [ {
                    "type" : "object",
                    "properties" : {
                      "strategy" : {
                        "const" : "default"
                      }
                    },
                    "required" : [ "strategy" ]
                  }, {
                    "type" : "object",
                    "properties" : {
                      "bin-width" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
                      },
                      "strategy" : {
                        "const" : "bin-width"
                      }
                    },
                    "required" : [ "strategy", "bin-width" ]
                  }, {
                    "type" : "object",
                    "properties" : {
                      "num-bins" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
                      },
                      "strategy" : {
                        "const" : "num-bins"
                      }
                    },
                    "required" : [ "strategy", "num-bins" ]
                  } ]
                } ]
              }, {
                "type" : "null"
              } ]
            },
            "metabase.lib.metadata.result-metadata/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
              }, {
                "type" : "null"
              } ]
            },
            "lib/ref-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-name" : {
              "description" : "The original name of the column as it appeared in the very first place it came from (i.e., the physical name of the\n  column in the table it appears in). This should be the same as the `:lib/source-column-alias` for the very first\n  usage of the column.\n  Allowed to be blank because some databases like SQL Server allow blank column names.",
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/simple-display-name" : {
              "oneOf" : [ {
                "type" : "string",
                "minLength" : 1
              }, {
                "type" : "null"
              } ]
            },
            "lib/desired-column-alias" : {
              "oneOf" : [ {
                "description" : "Name we should use as a column alias for a column in this stage of a query. The desired column alias in stage N\n  becomes the source column alias in stage N+1. The right-hand side (RHS) in\n\n    SELECT lhs AS rhs",
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "base_type", "display_name", "name" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.length" : {
        "description" : "schema for a valid MBQL 4 :length clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.log" : {
        "description" : "schema for a valid MBQL 4 :log clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.lower" : {
        "description" : "schema for a valid MBQL 4 :lower clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.ltrim" : {
        "description" : "schema for a valid MBQL 4 :ltrim clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.month-name" : {
        "description" : "schema for a valid MBQL 4 :month-name clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.not" : {
        "description" : "schema for a valid MBQL 4 :not clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.not-empty" : {
        "description" : "schema for a valid MBQL 4 :not-empty clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.not-in" : {
        "description" : "schema for a valid MBQL 4 :not-in clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.not-null" : {
        "description" : "schema for a valid MBQL 4 :not-null clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.now" : {
        "description" : "schema for a valid MBQL 4 :now clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.offset" : {
        "description" : "schema for a valid MBQL 4 :offset clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.or" : {
        "description" : "Schema for a valid MBQL 4 :or clause.",
        "oneOf" : [ {
          "description" : "schema for a valid MBQL 4 :or clause",
          "allOf" : [ ]
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
        } ]
      },
      "metabase.legacy-mbql.schema.path" : {
        "description" : "schema for a valid MBQL 4 :path clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.power" : {
        "description" : "schema for a valid MBQL 4 :power clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.quarter-name" : {
        "description" : "schema for a valid MBQL 4 :quarter-name clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.regex-match-first" : {
        "description" : "schema for a valid MBQL 4 :regex-match-first clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.relative-datetime" : {
        "description" : "schema for a valid MBQL 4 :relative-datetime clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.relative-time-interval" : {
        "description" : "schema for a valid MBQL 4 :relative-time-interval clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.replace" : {
        "description" : "schema for a valid MBQL 4 :replace clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.require-base-type-for-field-name" : {
        "description" : "Fields using names rather than integer IDs are required to specify `:base-type`."
      },
      "metabase.legacy-mbql.schema.round" : {
        "description" : "schema for a valid MBQL 4 :round clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.rtrim" : {
        "description" : "schema for a valid MBQL 4 :rtrim clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.segment" : {
        "description" : "schema for a valid MBQL 4 :segment clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.split-part" : {
        "description" : "schema for a valid MBQL 4 :split-part clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.sqrt" : {
        "description" : "schema for a valid MBQL 4 :sqrt clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.starts-with" : {
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/starts-with clause.",
        "anyOf" : [ {
          "description" : "schema for a valid MBQL 4 :starts-with clause",
          "allOf" : [ ]
        }, {
          "description" : "schema for a valid MBQL 4 :starts-with clause",
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.subdomain" : {
        "description" : "schema for a valid MBQL 4 :subdomain clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.substring" : {
        "description" : "schema for a valid MBQL 4 :substring clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.temporal-extract" : {
        "description" : "schema for a valid MBQL 4 :temporal-extract clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.text" : {
        "description" : "schema for a valid MBQL 4 :text clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.time" : {
        "description" : "schema for a valid MBQL 4 :time clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.time-interval" : {
        "description" : "schema for a valid MBQL 4 :time-interval clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.today" : {
        "description" : "schema for a valid MBQL 4 :today clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.trim" : {
        "description" : "schema for a valid MBQL 4 :trim clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.upper" : {
        "description" : "schema for a valid MBQL 4 :upper clause",
        "allOf" : [ ]
      },
      "metabase.legacy-mbql.schema.value" : {
        "description" : "schema for a valid MBQL 4 :value clause",
        "allOf" : [ ]
      },
      "metabase.lib-metric.schema..dimension-reference.options" : {
        "description" : "Options map for dimension references.",
        "type" : "object",
        "properties" : {
          "binning" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.binning"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          },
          "temporal-unit" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib-metric.schema.binning" : {
        "description" : "Schema for `:binning` options passed to a `:dimension` clause.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "strategy" : {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.binning-strategy"
            }
          },
          "required" : [ "strategy" ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "strategy" : {
                "const" : "default"
              }
            },
            "required" : [ "strategy" ]
          }, {
            "type" : "object",
            "properties" : {
              "bin-width" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.positive-number"
              },
              "strategy" : {
                "const" : "bin-width"
              }
            },
            "required" : [ "strategy", "bin-width" ]
          }, {
            "type" : "object",
            "properties" : {
              "num-bins" : {
                "type" : "integer",
                "minimum" : 1
              },
              "strategy" : {
                "const" : "num-bins"
              }
            },
            "required" : [ "strategy", "num-bins" ]
          } ]
        } ]
      },
      "metabase.lib-metric.schema.binning-strategy" : {
        "type" : "string",
        "enum" : [ "bin-width", "default", "num-bins" ]
      },
      "metabase.lib-metric.schema.dimension-id" : {
        "description" : "UUID string identifying a dimension.",
        "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
      },
      "metabase.lib-metric.schema.dimension-reference" : {
        "description" : "Dimension reference clause [:dimension opts uuid].\n   Handles normalization from JSON where the tag arrives as a string.",
        "type" : "array",
        "prefixItems" : [ {
          "const" : "dimension"
        }, {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-reference.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
        } ]
      },
      "metabase.lib-metric.schema.expression-leaf" : {
        "description" : "A leaf node in a metric math expression: either a metric or measure reference.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-expression-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.measure-expression-ref"
        } ]
      },
      "metabase.lib-metric.schema.filter-clause" : {
        "description" : "MBQL filter clause with normalization for API input.\n   Handles string operators and dimension references."
      },
      "metabase.lib-metric.schema.instance-filter" : {
        "description" : "A filter associated with a specific expression instance via lib/uuid.",
        "type" : "object",
        "properties" : {
          "filter" : {
            "$ref" : "#/components/schemas/metabase.lib-metric.schema.filter-clause"
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          }
        },
        "required" : [ "lib/uuid", "filter" ]
      },
      "metabase.lib-metric.schema.instance-filters" : {
        "description" : "A sequence of per-instance filters.",
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filter"
        }
      },
      "metabase.lib-metric.schema.measure-expression-ref" : {
        "description" : "A measure reference in an expression: [:measure {:lib/uuid uuid} measure-id].",
        "type" : "array",
        "prefixItems" : [ {
          "const" : "measure"
        }, {
          "type" : "object",
          "properties" : {
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }
          },
          "required" : [ "lib/uuid" ]
        }, {
          "type" : "integer",
          "minimum" : 1
        } ]
      },
      "metabase.lib-metric.schema.metric-expression-ref" : {
        "description" : "A metric reference in an expression: [:metric {:lib/uuid uuid} card-id].",
        "type" : "array",
        "prefixItems" : [ {
          "const" : "metric"
        }, {
          "type" : "object",
          "properties" : {
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }
          },
          "required" : [ "lib/uuid" ]
        }, {
          "type" : "integer",
          "minimum" : 1
        } ]
      },
      "metabase.lib-metric.schema.metric-math-expression" : {
        "description" : "A recursive metric math expression tree.\n   Can be a leaf (metric/measure ref) or an arithmetic expression [op opts expr expr ...]\n   with at least 2 operands.\n   Note: uses :fn validator for arithmetic to avoid Malli's recursive seqex limitation.",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.expression-leaf"
        }, {
          "type" : "number"
        }, {
          "type" : "array"
        } ]
      },
      "metabase.lib-metric.schema.typed-projection" : {
        "description" : "A projection associated with a specific expression leaf instance via :lib/uuid.\n   The :type and :id identify the source metric/measure for metadata resolution.\n   The :lib/uuid disambiguates multiple references to the same metric/measure in an expression.",
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "minimum" : 1
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "projection" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-reference"
            }
          },
          "type" : {
            "type" : "string",
            "enum" : [ "metric", "measure" ]
          }
        },
        "required" : [ "type", "id", "lib/uuid", "projection" ]
      },
      "metabase.lib-metric.schema.typed-projections" : {
        "description" : "A sequence of typed projections.",
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.typed-projection"
        }
      },
      "metabase.lib.metadata.protocols.metadata-provider" : {
        "description" : "Schema for something that satisfies the [[metabase.lib.metadata.protocols/MetadataProvider]] protocol."
      },
      "metabase.lib.schema..stage.additional" : {
        "oneOf" : [ { }, { } ]
      },
      "metabase.lib.schema..stage.common" : {
        "type" : "object",
        "properties" : {
          "lib/stage-metadata" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
          },
          "parameters" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
          }
        }
      },
      "metabase.lib.schema..stage.initial" : {
        "oneOf" : [ {
          "type" : "object",
          "properties" : { }
        }, { } ]
      },
      "metabase.lib.schema..stage.mbql" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "source-card" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            },
            "lib/type" : {
              "const" : "mbql.stage/mbql"
            },
            "lib/stage-metadata" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
            },
            "breakout" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.breakouts"
            },
            "filters" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.filters"
            },
            "limit" : {
              "type" : "integer",
              "minimum" : 0
            },
            "joins" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.joins"
            },
            "aggregation" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregations"
            },
            "fields" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.fields"
            },
            "source-table" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
            },
            "order-by" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.order-by.order-bys"
            },
            "page" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.page"
            },
            "parameters" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
            },
            "expressions" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.expression.expressions"
            }
          },
          "required" : [ "lib/type" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema..stage.valid-refs"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema..stage.native" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "collection" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "lib/stage-metadata" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
            },
            "lib/type" : {
              "const" : "mbql.stage/native"
            },
            "native" : { },
            "parameters" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
            },
            "params" : {
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "anyOf" : [ {
                    "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
                  }, { } ]
                }
              }, {
                "type" : "null"
              } ]
            },
            "query-permissions/referenced-card-ids" : {
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
                },
                "uniqueItems" : true
              }, {
                "type" : "null"
              } ]
            },
            "template-tags" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
            }
          },
          "required" : [ "lib/type" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema..stage.type" : {
        "type" : "string",
        "enum" : [ "mbql.stage/native", "mbql.stage/mbql" ]
      },
      "metabase.lib.schema..stage.valid-refs" : { },
      "metabase.lib.schema..stages.valid-refs" : { },
      "metabase.lib.schema.actions.row" : {
        "type" : "object",
        "additionalProperties" : { }
      },
      "metabase.lib.schema.aggregation..distinct.arg" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
      },
      "metabase.lib.schema.aggregation..percentile.percentile" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
      },
      "metabase.lib.schema.aggregation.aggregation" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
      },
      "metabase.lib.schema.aggregation.aggregations" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregation"
        },
        "minItems" : 1
      },
      "metabase.lib.schema.binning.bin-width" : {
        "description" : "Bin width (size of each bin).",
        "$ref" : "#/components/schemas/metabase.lib.schema.common.positive-number"
      },
      "metabase.lib.schema.binning.binning" : {
        "description" : "Schema for `:binning` options passed to a `:field` clause.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "strategy" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
            }
          },
          "required" : [ "strategy" ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "strategy" : {
                "const" : "default"
              }
            },
            "required" : [ "strategy" ]
          }, {
            "type" : "object",
            "properties" : {
              "bin-width" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
              },
              "strategy" : {
                "const" : "bin-width"
              }
            },
            "required" : [ "strategy", "bin-width" ]
          }, {
            "type" : "object",
            "properties" : {
              "num-bins" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
              },
              "strategy" : {
                "const" : "num-bins"
              }
            },
            "required" : [ "strategy", "num-bins" ]
          } ]
        } ]
      },
      "metabase.lib.schema.binning.num-bins" : {
        "description" : "Number of bins to use.",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.binning.strategy" : {
        "type" : "string",
        "enum" : [ "bin-width", "default", "num-bins" ]
      },
      "metabase.lib.schema.breakout" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.ref.ref"
      },
      "metabase.lib.schema.breakouts" : {
        "allOf" : [ {
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.breakout"
          },
          "minItems" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
        } ]
      },
      "metabase.lib.schema.common.base-type" : {
        "type" : "string"
      },
      "metabase.lib.schema.common.kebab-cased-map" : { },
      "metabase.lib.schema.common.non-blank-string" : {
        "type" : "string",
        "minLength" : 1
      },
      "metabase.lib.schema.common.options" : {
        "default" : { },
        "type" : "object",
        "properties" : {
          "base-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "database-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
          },
          "name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "lib/uuid" ]
      },
      "metabase.lib.schema.common.positive-number" : { },
      "metabase.lib.schema.common.semantic-or-relation-type" : {
        "description" : "valid semantic or relation type",
        "type" : "string"
      },
      "metabase.lib.schema.common.uuid" : {
        "type" : "string",
        "minLength" : 36,
        "maxLength" : 36
      },
      "metabase.lib.schema.constraints.constraints" : {
        "description" : "Additional constraints added to a query limiting the maximum number of rows that can be returned. Mostly useful\n  because native queries don't support the MBQL `:limit` clause. For MBQL queries, if `:limit` is set, it will\n  override these values.",
        "type" : "object",
        "properties" : {
          "max-results" : {
            "description" : "Maximum number of results to allow for a query with aggregations. If `max-results-bare-rows` is unset, this\n  applies to all queries",
            "type" : "integer",
            "minimum" : 0
          },
          "max-results-bare-rows" : {
            "description" : "Maximum number of results to allow for a query with no aggregations. If set, this should be LOWER than\n  `:max-results`.",
            "type" : "integer",
            "minimum" : 0
          }
        }
      },
      "metabase.lib.schema.deduplicate-refs-ignoring-source-field-name-when-possible" : { },
      "metabase.lib.schema.expression..expression.definition" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
      },
      "metabase.lib.schema.expression.arithmetic..args.numbers" : { },
      "metabase.lib.schema.expression.arithmetic.plus-minus-numeric-schema" : { },
      "metabase.lib.schema.expression.arithmetic.plus-minus-temporal-interval-schema" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.expression.arithmetic.temporal-difference-schema" : { },
      "metabase.lib.schema.expression.boolean" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
        } ]
      },
      "metabase.lib.schema.expression.equality-comparable" : {
        "oneOf" : [ {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
          } ]
        }, {
          "type" : "null"
        } ]
      },
      "metabase.lib.schema.expression.expression" : {
        "oneOf" : [ {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
          } ]
        }, {
          "type" : "null"
        } ]
      },
      "metabase.lib.schema.expression.expressions" : {
        "description" : "The `:expressions` definition map as found as a top-level key in an MBQL stage.",
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression..expression.definition"
        },
        "minItems" : 1
      },
      "metabase.lib.schema.expression.integer" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
        } ]
      },
      "metabase.lib.schema.expression.number" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
        } ]
      },
      "metabase.lib.schema.expression.orderable" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
        } ]
      },
      "metabase.lib.schema.expression.positive-integer-or-numeric-expression" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
      },
      "metabase.lib.schema.expression.string" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
        } ]
      },
      "metabase.lib.schema.expression.temporal" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
        } ]
      },
      "metabase.lib.schema.expression.temporal..absolute-datetime.base-type" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
      },
      "metabase.lib.schema.expression.temporal..absolute-datetime.options" : {
        "default" : { },
        "type" : "object",
        "properties" : {
          "base-type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
          },
          "database-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
          },
          "name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "lib/uuid" ]
      },
      "metabase.lib.schema.expression.temporal..relative-datetime.amount" : {
        "oneOf" : [ {
          "const" : "current"
        }, {
          "type" : "integer"
        } ]
      },
      "metabase.lib.schema.expression.temporal..relative-datetime.unit" : {
        "anyOf" : [ {
          "const" : "default"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ]
      },
      "metabase.lib.schema.expression.temporal..temporal-extract.unit" : {
        "type" : "string",
        "enum" : [ "year-of-era", "quarter-of-year", "month-of-year", "week-of-year-iso", "week-of-year-us", "week-of-year-instance", "day-of-month", "day-of-week", "day-of-week-iso", "hour-of-day", "minute-of-hour", "second-of-minute" ]
      },
      "metabase.lib.schema.expression.temporal.datetime-diff-unit" : {
        "type" : "string",
        "enum" : [ "day", "week", "month", "quarter", "year", "second", "minute", "hour" ]
      },
      "metabase.lib.schema.expression.temporal.timezone-id" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
        }, {
          "anyOf" : [ {
            "type" : "string"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.zone-offset"
          } ]
        } ]
      },
      "metabase.lib.schema.expression.temporal.week-mode" : {
        "type" : "string",
        "enum" : [ "iso", "us", "instance" ]
      },
      "metabase.lib.schema.expression.window..offset.n" : {
        "type" : "integer"
      },
      "metabase.lib.schema.fields" : {
        "allOf" : [ {
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref.ref"
          },
          "minItems" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.deduplicate-refs-ignoring-source-field-name-when-possible"
        } ]
      },
      "metabase.lib.schema.filter.string-filter-options" : {
        "description" : "String filter operator options. Only set for `:contains`, `:does-not-contain`, `:starts-with`, `:ends-with`\n  operators.",
        "type" : "object",
        "properties" : {
          "case-sensitive" : {
            "type" : "boolean"
          }
        }
      },
      "metabase.lib.schema.filter.time-interval-options" : {
        "description" : "Options for `:time-interval` operator. Note that `:relative-time-interval` does not support these options.",
        "type" : "object",
        "properties" : {
          "include-current" : {
            "type" : "boolean"
          }
        }
      },
      "metabase.lib.schema.filters" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        },
        "minItems" : 1
      },
      "metabase.lib.schema.id.action" : {
        "description" : "Valid Action ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.card" : {
        "description" : "Valid Card ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.collection" : {
        "description" : "Valid Collection ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.dashboard" : {
        "description" : "Valid Dashboard ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.dashcard" : {
        "description" : "Valid DashboardCard ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.database" : {
        "description" : "Valid Database ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.dimension" : {
        "description" : "Valid Dimension ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.field" : {
        "description" : "Valid Field ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.measure" : {
        "description" : "Valid Measure ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.pulse" : {
        "description" : "Valid Pulse ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.sandbox" : {
        "description" : "Valid Sandbox ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.saved-questions-virtual-database" : {
        "description" : "The ID used to signify that a database is 'virtual' rather than physical.\n\n   A fake integer ID is used so as to minimize the number of changes that need to be made on the frontend -- by using\n   something that would otherwise be a legal ID, *nothing* need change there, and the frontend can query against this\n   'database' none the wiser. (This integer ID is negative which means it will never conflict with a *real* database\n   ID.)\n\n   This ID acts as a sort of flag. The relevant places in the middleware can check whether the DB we're querying is\n   this 'virtual' database and take the appropriate actions.",
        "const" : -1337
      },
      "metabase.lib.schema.id.segment" : {
        "description" : "Valid legacy Segment ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.snippet" : {
        "description" : "Valid Snippet ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.table" : {
        "description" : "Valid Table ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.transform" : {
        "description" : "Valid Transform ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.id.user" : {
        "description" : "Valid User ID",
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.lib.schema.info.context" : {
        "description" : "Schema for `info.context`; used for informational purposes to record how a query was executed.",
        "type" : "string",
        "enum" : [ "action", "ad-hoc", "agent", "cache-refresh", "collection", "map-tiles", "pulse", "dashboard-subscription", "dashboard", "question", "csv-download", "xlsx-download", "json-download", "public-dashboard", "public-question", "public-csv-download", "public-xlsx-download", "public-json-download", "embedded-dashboard", "embedded-question", "embedded-csv-download", "embedded-xlsx-download", "embedded-json-download", "table-grid", "table-rows-sample", "transform-inspector", "slackbot" ]
      },
      "metabase.lib.schema.info.hash" : {
        "type" : "string",
        "format" : "byte"
      },
      "metabase.lib.schema.info.info" : {
        "description" : "Schema for query `:info` dictionary, which is used for informational purposes to record information about how a query\n  was executed in QueryExecution and other places. It is considered bad form for middleware to change its behavior\n  based on this information, don't do it!\n\n  TODO - this schema is somewhat misleading because if you use a function\n  like [[metabase.query-processor/userland-query]] some of these keys (e.g. `:context`) are in fact required",
        "type" : "object",
        "properties" : {
          "query-hash" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.info.hash"
            }, {
              "type" : "null"
            } ]
          },
          "action-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.action"
            }, {
              "type" : "null"
            } ]
          },
          "lens-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "pivot/original-query" : {
            "oneOf" : [ {
              "type" : "object",
              "additionalProperties" : { }
            }, {
              "type" : "null"
            } ]
          },
          "executed-by" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
            }, {
              "type" : "null"
            } ]
          },
          "card-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "pivot/result-metadata" : {
            "oneOf" : [ {
              "oneOf" : [ {
                "const" : "none"
              }, {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
                }
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "transform-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
            }, {
              "type" : "null"
            } ]
          },
          "context" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.info.context"
            }, {
              "type" : "null"
            } ]
          },
          "dashboard-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
            }, {
              "type" : "null"
            } ]
          },
          "lens-params" : {
            "oneOf" : [ {
              "type" : "object",
              "additionalProperties" : { }
            }, {
              "type" : "null"
            } ]
          },
          "metadata/model-metadata" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.lib-or-legacy-column"
              }
            }, {
              "type" : "null"
            } ]
          },
          "pulse-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.pulse"
            }, {
              "type" : "null"
            } ]
          },
          "card-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib.schema.join.alias" : {
        "description" : "The name used to alias the joined table or query. This is usually generated automatically and generally looks like\n  `table__via__field`. You can specify this yourself if you need to reference a joined field with a `:join-alias` in\n  the options.",
        "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
      },
      "metabase.lib.schema.join.condition" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
      },
      "metabase.lib.schema.join.conditions" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.join.condition"
        },
        "minItems" : 1
      },
      "metabase.lib.schema.join.fields" : {
        "description" : "The Fields to include in the results *if* a top-level `:fields` clause *is not* specified. This can be either\n  `:none`, `:all`, or a sequence of Field clauses.\n\n  * `:none`: no Fields from the joined table or nested query are included (unless indirectly included by breakouts or\n     other clauses). This is the default, and what is used for automatically-generated joins.\n\n  * `:all`: will include all of the Fields from the joined table or query\n\n  * a sequence of Field clauses: include only the Fields specified. Only `:field` clauses are allowed here! References\n    to expressions or aggregations in the thing we're joining should use column literal (string column name) `:field`\n    references. This should be non-empty and all elements should be distinct (ignoring `:lib/uuid`).",
        "oneOf" : [ {
          "type" : "string",
          "enum" : [ "all", "none" ]
        }, {
          "allOf" : [ {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/mbql.clause.field"
            },
            "minItems" : 1
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
          } ]
        } ]
      },
      "metabase.lib.schema.join.join" : {
        "allOf" : [ {
          "default" : { },
          "type" : "object",
          "properties" : {
            "alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
            },
            "conditions" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.conditions"
            },
            "fields" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.fields"
            },
            "lib/type" : {
              "default" : "mbql/join",
              "const" : "mbql/join"
            },
            "stages" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.stages"
            },
            "strategy" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.strategy"
            }
          },
          "required" : [ "lib/type", "stages", "conditions", "alias" ]
        }, {
          "allOf" : [ ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.join.validate-field-aliases-match-join-alias"
        } ]
      },
      "metabase.lib.schema.join.joins" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.join.join"
        },
        "minItems" : 1
      },
      "metabase.lib.schema.join.strategy" : {
        "description" : "Valid values for the optional `:strategy` key in a join. Note that these are only valid if the current Database\n  supports that specific join type; these match 1:1 with the Database `:features`, e.g. a Database that supports left\n  joins will support the `:left-join` feature.\n\n  When `:strategy` is not specified, [[default-strategy]] is used.",
        "default" : "left-join",
        "type" : "string",
        "enum" : [ "left-join", "right-join", "inner-join", "full-join" ]
      },
      "metabase.lib.schema.join.validate-field-aliases-match-join-alias" : { },
      "metabase.lib.schema.literal..string.date" : {
        "type" : "string",
        "pattern" : "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "metabase.lib.schema.literal..string.datetime" : {
        "anyOf" : [ {
          "type" : "string",
          "pattern" : "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?$"
        }, {
          "type" : "string",
          "pattern" : "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?(?:Z|(?:[+-]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?))$"
        } ]
      },
      "metabase.lib.schema.literal..string.time" : {
        "anyOf" : [ {
          "type" : "string",
          "pattern" : "^\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?$"
        }, {
          "type" : "string",
          "pattern" : "^\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?(?:Z|(?:[+-]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?))$"
        } ]
      },
      "metabase.lib.schema.literal..string.year" : {
        "type" : "string",
        "pattern" : "^\\d{4}$"
      },
      "metabase.lib.schema.literal..string.year-month" : {
        "type" : "string",
        "pattern" : "^\\d{4}-\\d{2}$"
      },
      "metabase.lib.schema.literal..string.zone-offset" : {
        "type" : "string",
        "pattern" : "(?:Z|(?:[+-]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?))"
      },
      "metabase.lib.schema.literal..value.options" : {
        "default" : { },
        "type" : "object",
        "properties" : {
          "base-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "database-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "effective-type" : {
            "type" : "string"
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
          },
          "name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          },
          "unit" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "lib/uuid", "effective-type" ]
      },
      "metabase.lib.schema.literal.date" : {
        "anyOf" : [ { }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.date"
        } ]
      },
      "metabase.lib.schema.literal.datetime" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.datetime"
        }, { }, { }, { } ]
      },
      "metabase.lib.schema.literal.integer" : {
        "anyOf" : [ {
          "type" : "integer"
        }, { } ]
      },
      "metabase.lib.schema.literal.jvm.big-decimal" : { },
      "metabase.lib.schema.literal.jvm.float" : { },
      "metabase.lib.schema.literal.literal" : {
        "anyOf" : [ {
          "type" : "null"
        }, {
          "type" : "boolean"
        }, {
          "type" : "string"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.integer"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.non-integer-real"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.temporal"
        } ]
      },
      "metabase.lib.schema.literal.non-integer-real" : {
        "anyOf" : [ {
          "type" : "number"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.jvm.float"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.jvm.big-decimal"
        } ]
      },
      "metabase.lib.schema.literal.temporal" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.date"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.time"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.datetime"
        } ]
      },
      "metabase.lib.schema.literal.time" : {
        "description" : "time literal",
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.time"
        }, { }, { } ]
      },
      "metabase.lib.schema.mbql-clause.clause" : {
        "oneOf" : [ { }, {
          "$ref" : "#/components/schemas/mbql.clause._BANG__EQ_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._STAR_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._PLUS_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.-"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._SLASH_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._LT_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._LT__EQ_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._EQ_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._GT_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause._GT__EQ_"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.abs"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.absolute-datetime"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.aggregation"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.and"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.asc"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.avg"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.between"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.case"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.ceil"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.coalesce"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.collate"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.concat"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.contains"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.convert-timezone"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.count"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.count-where"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.cum-count"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.cum-sum"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.date"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.datetime"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.datetime-add"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.datetime-diff"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.datetime-subtract"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.day-name"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.desc"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.distinct"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.distinct-where"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.does-not-contain"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.domain"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.during"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.ends-with"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.exp"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.expression"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.field"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.float"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.floor"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-day"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-day-of-week"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-hour"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-minute"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-month"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-quarter"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-second"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-week"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.get-year"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.host"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.if"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.in"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.inside"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.integer"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.interval"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.is-empty"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.is-null"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.length"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.log"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.lower"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.ltrim"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.max"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.measure"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.median"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.metric"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.min"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.month-name"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.not"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.not-empty"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.not-in"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.not-null"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.now"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.offset"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.or"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.path"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.percentile"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.power"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.quarter-name"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.regex-match-first"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.relative-datetime"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.relative-time-interval"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.replace"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.round"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.rtrim"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.segment"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.share"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.split-part"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.sqrt"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.starts-with"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.stddev"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.subdomain"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.substring"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.sum"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.sum-where"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.temporal-extract"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.text"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.time"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.time-interval"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.today"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.trim"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.upper"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.value"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.var"
        } ]
      },
      "metabase.lib.schema.metadata..card.type" : {
        "description" : "All acceptable card types.\n\n  Previously (< 49), we only had 2 card types: question and model, which were differentiated using the boolean\n  `dataset` column. Soon we'll have more card types (e.g: metric) and we will longer be able to use a boolean column\n  to differentiate between all types. So we've added a new `type` column for this purpose.\n\n  Migrating all the code to use `report_card.type` will be quite an effort, we decided that we'll migrate it\n  gradually.",
        "type" : "string",
        "enum" : [ "question", "metric", "model" ]
      },
      "metabase.lib.schema.metadata..column.has-field-values" : {
        "type" : "string",
        "enum" : [ "auto-list", "list", "none", "search" ]
      },
      "metabase.lib.schema.metadata..column.legacy-source" : {
        "description" : "Possible values for `column.source` -- this is added by [[metabase.lib.metadata.result-metadata]] for historical\n  reasons (it is used in a few places in the FE). DO NOT use this in the backend for any purpose, use `:lib/source`\n  instead.",
        "type" : "string",
        "enum" : [ "aggregation", "fields", "breakout", "native" ]
      },
      "metabase.lib.schema.metadata..column.remapping.external" : {
        "description" : "External remapping (Dimension) for a column. From the [[metabase.warehouse-schema.models.dimension]] with `type =\n  external` associated with a `Field` in the application database.\n  See [[metabase.query-processor.middleware.add-remaps]] for what this means.",
        "type" : "object",
        "properties" : {
          "field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
          },
          "lib/type" : {
            "const" : "metadata.column.remapping/external"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          }
        },
        "required" : [ "lib/type", "id", "name", "field-id" ]
      },
      "metabase.lib.schema.metadata..column.remapping.internal" : {
        "description" : "Internal remapping (FieldValues) for a column. From [[metabase.warehouse-schema.models.dimension]] with `type =\n  internal` and the [[metabase.warehouse-schema.models.field-values]] associated with a `Field` in the application\n  database. See [[metabase.query-processor.middleware.add-remaps]] for what this means.",
        "type" : "object",
        "properties" : {
          "human-readable-values" : {
            "type" : "array",
            "items" : { }
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.dimension"
          },
          "lib/type" : {
            "const" : "metadata.column.remapping/internal"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "values" : {
            "type" : "array",
            "items" : { }
          }
        },
        "required" : [ "lib/type", "id", "name", "values", "human-readable-values" ]
      },
      "metabase.lib.schema.metadata..column.source" : {
        "description" : "`:lib/source` -- where a column came from with respect to the current stage.\n\n  Traditionally, `:lib/source` meant something slightly different -- it denoted what part of the current stage a\n  column came from, and thus included two additional options -- `:source/fields`, for columns used by `:fields`, and\n  `:source/breakouts`, for columns used in `:breakout`. This was not really useful information and made `:lib/source`\n  itself useless for determining if a column was 'inherited' or not (i.e., whether it came from a previous stage,\n  source card, or a join, and should get field name refs instead of field ID refs --\n  see [[metabase.lib.field.util/inherited-column?]]).",
        "type" : "string",
        "enum" : [ "source/card", "source/native", "source/previous-stage", "source/table-defaults", "source/aggregations", "source/joins", "source/expressions", "source/implicitly-joinable" ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source" : {
        "description" : "Do additional validation for column metadata based on `:lib/source`.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-card"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-native"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-previous-stage"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-table-defaults"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-aggregations"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-joins"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-expressions"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-implicitly-joinable"
        }, { } ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-aggregations" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-card" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-expressions" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-implicitly-joinable" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-joins" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-native" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-previous-stage" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.validate-for-source-table-defaults" : {
        "allOf" : [ ]
      },
      "metabase.lib.schema.metadata..column.visibility-type" : {
        "type" : "string",
        "enum" : [ "retired", "sensitive", "normal", "hidden", "details-only" ]
      },
      "metabase.lib.schema.metadata.column" : {
        "description" : "Malli schema for a valid map of column metadata, which can mean one of two things:\n\n  1. Metadata about a particular Field in the application database. This will always have an `:id`\n\n  2. Results metadata from a column in `data.cols` and/or `data.results_metadata.columns` in a Query Processor\n     response, or saved in something like `Card.result_metadata`. These *may* have an `:id`, or may not -- columns\n     coming back from native queries or things like `SELECT count(*)` aren't associated with any particular `Field`\n     and thus will not have an `:id`.\n\n  Now maybe these should be two different schemas, but `:id` being there or not is the only real difference; besides\n  that they are largely compatible. So they're the same for now. We can revisit this in the future if we actually want\n  to differentiate between the two versions.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "visibility-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"
              }, {
                "type" : "null"
              } ]
            },
            "fk-join-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              }, {
                "type" : "null"
              } ]
            },
            "metabase.lib.metadata.result-metadata/field-ref" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
              }, {
                "type" : "null"
              } ]
            },
            "lib/external-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
              }, {
                "type" : "null"
              } ]
            },
            "inherited-temporal-unit" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source-column-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.source-column-alias"
              }, {
                "type" : "null"
              } ]
            },
            "database-type" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/temporal-unit" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }, {
                "type" : "null"
              } ]
            },
            "lib/type" : {
              "default" : "metadata/column",
              "const" : "metadata/column"
            },
            "settings" : {
              "oneOf" : [ {
                "type" : "object",
                "additionalProperties" : { }
              }, {
                "type" : "null"
              } ]
            },
            "fingerprint" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.fingerprint"
              }, {
                "type" : "null"
              } ]
            },
            "display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source-uuid" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
              }, {
                "type" : "null"
              } ]
            },
            "qp/implicit-field?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/ref-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "effective-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "lib/deduplicated-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.deduplicated-name"
            },
            "base-type" : {
              "default" : "type/*",
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "lib/transformation-added-base-type" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-expression-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "fk-field-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/from-model?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "name" : {
              "type" : "string"
            },
            "lib/card-id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
              }, {
                "type" : "null"
              } ]
            },
            "lib/expression-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/breakout?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-effective-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "lib/join-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              }, {
                "type" : "null"
              } ]
            },
            "nfc-path" : {
              "oneOf" : [ {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }, {
                "type" : "null"
              } ]
            },
            "qp/native-sandbox-column.propagate-coercion?" : {
              "type" : "boolean"
            },
            "has-field-values" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
              }, {
                "type" : "null"
              } ]
            },
            "lib/internal-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
              }, {
                "type" : "null"
              } ]
            },
            "selected?" : {
              "type" : "boolean"
            },
            "fk-field-id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-binning" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-join-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "qp/native-sandbox-column.force-coercion-strategy" : {
              "type" : "string"
            },
            "lib/binning" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              }, {
                "type" : "null"
              } ]
            },
            "metabase.lib.metadata.result-metadata/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
              }, {
                "type" : "null"
              } ]
            },
            "active" : {
              "type" : "boolean"
            },
            "lib/ref-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"
            },
            "semantic-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "fk-target-field-id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "lib/simple-display-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/desired-column-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "lib/type", "name", "base-type" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.metadata.deduplicated-name" : {
        "description" : "The simply-deduplicated name that was historically used in QP results metadata (originally calculated by\n  the [[metabase.query-processor.middleware.annotate]] middleware, now calculated\n  by [[metabase.lib.middleware.result-metadata]]). This just adds suffixes to column names e.g. `ID` and `ID` become\n  `ID` and `ID_2`, respectively. Kept around because many old field refs use this column name.",
        "oneOf" : [ {
          "type" : "string"
        }, {
          "type" : "null"
        } ]
      },
      "metabase.lib.schema.metadata.desired-column-alias" : {
        "description" : "Name we should use as a column alias for a column in this stage of a query. The desired column alias in stage N\n  becomes the source column alias in stage N+1. The right-hand side (RHS) in\n\n    SELECT lhs AS rhs",
        "type" : "string"
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.global" : {
        "description" : "Fingerprint values that Fields of all types should have.",
        "type" : "object",
        "properties" : {
          "distinct-count" : {
            "type" : "integer"
          },
          "nil%" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.number" : {
        "description" : "Schema for fingerprint information for Fields deriving from `:type/Number`.",
        "type" : "object",
        "properties" : {
          "avg" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "max" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "min" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "q1" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "q3" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "sd" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.temporal" : {
        "description" : "Schema for fingerprint information for Fields deriving from `:type/Temporal`.",
        "type" : "object",
        "properties" : {
          "earliest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "latest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.text" : {
        "description" : "Schema for fingerprint information for Fields deriving from `:type/Text`.",
        "type" : "object",
        "properties" : {
          "average-length" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent-email" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "percent-json" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "percent-state" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "percent-url" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.type-specific" : {
        "description" : "Schema for type-specific fingerprint information.",
        "allOf" : [ {
          "type" : "object",
          "additionalProperties" : {
            "type" : "object",
            "properties" : { }
          }
        }, {
          "type" : "object",
          "properties" : {
            "type/DateTime" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.temporal"
            },
            "type/Number" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.number"
            },
            "type/Text" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.text"
            }
          }
        } ]
      },
      "metabase.lib.schema.metadata.fingerprint.fingerprint" : {
        "description" : "Schema for a Field 'fingerprint' generated as part of the analysis stage. Used to power the 'classification'\n   sub-stage of analysis. Stored as the `fingerprint` column of Field.",
        "type" : "object",
        "properties" : {
          "experimental" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "global" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.global"
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.type-specific"
          }
        }
      },
      "metabase.lib.schema.metadata.fingerprint.percent" : {
        "description" : "Schema for something represting a percentage. A floating-point value between (inclusive) 0 and 1.",
        "type" : "number"
      },
      "metabase.lib.schema.metadata.lib-or-legacy-column" : {
        "description" : "Schema for the maps in card `:result-metadata` and similar. These can be either\n  `:metabase.lib.schema.metadata/result-metadata` (i.e., kebab-cased) maps, or map snake_cased as returned by QP\n  metadata, but they should NOT be a mixture of both -- if we mixed them somehow there is a bug in our code.",
        "oneOf" : [ {
          "description" : "Malli schema for a valid map of column metadata, which can mean one of two things:\n\n  1. Metadata about a particular Field in the application database. This will always have an `:id`\n\n  2. Results metadata from a column in `data.cols` and/or `data.results_metadata.columns` in a Query Processor\n     response, or saved in something like `Card.result_metadata`. These *may* have an `:id`, or may not -- columns\n     coming back from native queries or things like `SELECT count(*)` aren't associated with any particular `Field`\n     and thus will not have an `:id`.\n\n  Now maybe these should be two different schemas, but `:id` being there or not is the only real difference; besides\n  that they are largely compatible. So they're the same for now. We can revisit this in the future if we actually want\n  to differentiate between the two versions.",
          "allOf" : [ {
            "type" : "object",
            "properties" : {
              "visibility-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-join-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
                }, {
                  "type" : "null"
                } ]
              },
              "metabase.lib.metadata.result-metadata/field-ref" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/external-remap" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
                }, {
                  "type" : "null"
                } ]
              },
              "inherited-temporal-unit" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/source-column-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.source-column-alias"
                }, {
                  "type" : "null"
                } ]
              },
              "database-type" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/temporal-unit" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/type" : {
                "default" : "metadata/column",
                "const" : "metadata/column"
              },
              "settings" : {
                "oneOf" : [ {
                  "type" : "object",
                  "additionalProperties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "fingerprint" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.fingerprint"
                }, {
                  "type" : "null"
                } ]
              },
              "display-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/source-uuid" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
                }, {
                  "type" : "null"
                } ]
              },
              "qp/implicit-field?" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/ref-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                }, {
                  "type" : "null"
                } ]
              },
              "effective-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/deduplicated-name" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.deduplicated-name"
              },
              "base-type" : {
                "default" : "type/*",
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              },
              "lib/transformation-added-base-type" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-expression-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-field-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/from-model?" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "name" : {
                "type" : "string"
              },
              "lib/card-id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/expression-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/breakout?" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-effective-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/join-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
                }, {
                  "type" : "null"
                } ]
              },
              "nfc-path" : {
                "oneOf" : [ {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "type" : "null"
                } ]
              },
              "qp/native-sandbox-column.propagate-coercion?" : {
                "type" : "boolean"
              },
              "has-field-values" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/internal-remap" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
                }, {
                  "type" : "null"
                } ]
              },
              "selected?" : {
                "type" : "boolean"
              },
              "fk-field-id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-binning" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-join-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-display-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "qp/native-sandbox-column.force-coercion-strategy" : {
                "type" : "string"
              },
              "lib/binning" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
                }, {
                  "type" : "null"
                } ]
              },
              "metabase.lib.metadata.result-metadata/source" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/source" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
                }, {
                  "type" : "null"
                } ]
              },
              "active" : {
                "type" : "boolean"
              },
              "lib/ref-display-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-name" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"
              },
              "semantic-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-target-field-id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/simple-display-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/desired-column-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
                }, {
                  "type" : "null"
                } ]
              }
            },
            "required" : [ "lib/type", "name", "base-type" ]
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"
          }, {
            "allOf" : [ ]
          } ]
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
        } ]
      },
      "metabase.lib.schema.metadata.metadata-provider" : {
        "description" : "Schema for something that satisfies the [[metabase.lib.metadata.protocols/MetadataProvider]] protocol.",
        "$ref" : "#/components/schemas/metabase.lib.metadata.protocols.metadata-provider"
      },
      "metabase.lib.schema.metadata.original-name" : {
        "description" : "The original name of the column as it appeared in the very first place it came from (i.e., the physical name of the\n  column in the table it appears in). This should be the same as the `:lib/source-column-alias` for the very first\n  usage of the column.\n  Allowed to be blank because some databases like SQL Server allow blank column names.",
        "oneOf" : [ {
          "type" : "string"
        }, {
          "type" : "null"
        } ]
      },
      "metabase.lib.schema.metadata.source-column-alias" : {
        "description" : "Name for a column as returned/projected by the previous stage of the query or source Table/source Card. The\n  left-hand side (LHS) of\n\n    SELECT lhs AS rhs",
        "type" : "string"
      },
      "metabase.lib.schema.metadata.stage" : {
        "description" : "Metadata about the columns returned by a particular stage of a MBQL 5 query. For example a single-stage native query\n  like\n\n    {:database 1\n     :lib/type :mbql/query\n     :stages   [{:lib/type :mbql.stage/mbql\n                 :native   \"SELECT id, name FROM VENUES;\"}]}\n\n  might have stage metadata like\n\n    {:columns [{:name \"id\", :base-type :type/Integer}\n               {:name \"name\", :base-type :type/Text}]}\n\n  associated with the query's lone stage.\n\n  At some point in the near future we will hopefully attach this metadata directly to each stage in a query, so a\n  multi-stage query will have `:lib/stage-metadata` for each stage. The main goal is to facilitate things like\n  returning lists of visible or filterable columns for a given stage of a query. This is TBD, see #28717 for a WIP\n  implementation of this idea.\n\n  This is the same format as the results metadata returned with QP results in `data.results_metadata`. The `:columns`\n  portion of this (`data.results_metadata.columns`) is also saved as `Card.result_metadata` for Saved Questions.\n\n  Note that queries currently actually come back with both `data.results_metadata` AND `data.cols`; it looks like the\n  Frontend actually *merges* these together -- see `applyMetadataDiff` in\n  `frontend/src/metabase/query_builder/selectors.js` -- but this is ridiculous. Let's try to merge anything missing in\n  `results_metadata` into `cols` going forward so things don't need to be manually merged in the future.",
        "type" : "object",
        "properties" : {
          "columns" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
            }
          },
          "lib/type" : {
            "default" : "metadata/results",
            "const" : "metadata/results"
          }
        },
        "required" : [ "lib/type", "columns" ]
      },
      "metabase.lib.schema.middleware-options.middleware-options" : {
        "description" : "Additional options that can be used to toggle middleware on or off.",
        "type" : "object",
        "properties" : {
          "add-default-userland-constraints?" : {
            "description" : "Whether to add some default `max-results` and `max-results-bare-rows` constraints. By default, none are added,\n  although the functions that ultimately power most API endpoints tend to set this to `true`. See\n  `add-constraints` middleware for more details.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "disable-max-results?" : {
            "description" : "Disable applying a default limit on the query results. Handled in the `add-default-limit` middleware. If true,\n  this will override the `:max-results` and `:max-results-bare-rows` values in `Constraints`.",
            "type" : "boolean"
          },
          "disable-mbql->native?" : {
            "description" : "Disable the MBQL->native middleware. If you do this, the query will not work at all, so there are no cases where\n  you should set this yourself. This is only used by the `metabase.query-processor.preprocess/preprocess` function to\n  get the fully pre-processed query without attempting to convert it to native.",
            "type" : "boolean"
          },
          "format-rows?" : {
            "description" : "Should we skip converting datetime types to ISO-8601 strings with appropriate timezone when post-processing\n     results? Used by `metabase.query-processor.middleware.format-rows`default `false`.",
            "type" : "boolean"
          },
          "process-viz-settings?" : {
            "description" : "Whether to process a question's visualization settings and include them in the result metadata so that they can\n  incorporated into an export. Used by `metabase.query-processor.middleware.visualization-settings`; default\n  `false`.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "skip-results-metadata?" : {
            "description" : "Should we skip adding `results_metadata` to query results after running the query? Used by\n     `metabase.query-processor.middleware.results-metadata`; default `false`. (Note: we may change the name of this\n     column in the near future, to `result_metadata`, to fix inconsistencies in how we name things.)",
            "type" : "boolean"
          },
          "userland-query?" : {
            "description" : "Userland queries are ones ran as a result of an API call, Pulse, or the like. Special handling is done in\n  certain userland-only middleware for such queries -- results are returned in a slightly different format, and\n  QueryExecution entries are normally saved, unless you pass `:no-save` as the option.",
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.lib.schema.order-by.order-by" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/mbql.clause.asc"
        }, {
          "$ref" : "#/components/schemas/mbql.clause.desc"
        } ]
      },
      "metabase.lib.schema.order-by.order-bys" : {
        "allOf" : [ {
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.order-by.order-by"
          },
          "minItems" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
        } ]
      },
      "metabase.lib.schema.page" : {
        "description" : "`page` = page num, starting with 1. `items` = number of items per page.\n  e.g.\n\n    {:page 1, :items 10} = items 1-10\n    {:page 2, :items 10} = items 11-20",
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "integer",
            "minimum" : 1
          },
          "page" : {
            "type" : "integer",
            "minimum" : 1
          }
        },
        "required" : [ "page", "items" ]
      },
      "metabase.lib.schema.parameter..dimension.options" : {
        "type" : "object",
        "properties" : {
          "stage-number" : {
            "type" : "integer"
          }
        }
      },
      "metabase.lib.schema.parameter..dimension.target" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-expression-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.template-tag"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
        } ]
      },
      "metabase.lib.schema.parameter..parameter.value" : { },
      "metabase.lib.schema.parameter..target.legacy-expression-ref" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.expression"
      },
      "metabase.lib.schema.parameter..target.legacy-field-ref" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field"
      },
      "metabase.lib.schema.parameter..template-tag.tag-name" : {
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }
          },
          "required" : [ "id" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
        } ]
      },
      "metabase.lib.schema.parameter..variable.target" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.template-tag"
        } ]
      },
      "metabase.lib.schema.parameter.dimension" : { },
      "metabase.lib.schema.parameter.id" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
      },
      "metabase.lib.schema.parameter.parameter" : {
        "description" : "Schema for the *value* of a parameter (e.g. a Dashboard parameter or a native query template tag) as passed in as\n  part of the `:parameters` list in a query.\n\n  Note that this is different from the parameter declarations that are saved as part of Dashboards and Cards; for THAT\n  schema refer to `:metabase.parameters.schema/parameter`.",
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "default" : { },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
            },
            "name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "required" : { },
            "slug" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "target" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
            },
            "type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
            },
            "value" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter..parameter.value"
            }
          },
          "required" : [ "type" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
        } ]
      },
      "metabase.lib.schema.parameter.parameters" : {
        "description" : "Schema for a list of `:parameters` as passed in to a query.",
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameter"
        }
      },
      "metabase.lib.schema.parameter.target" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.dimension"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.variable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.text-tag"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
        } ]
      },
      "metabase.lib.schema.parameter.template-tag" : {
        "description" : "This is the reference like [:template-tag <whatever>], not the schema for native query template tags -- that lives\n  in [[metabase.lib.schema.template-tag]].",
        "type" : "array",
        "prefixItems" : [ {
          "const" : "template-tag"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..template-tag.tag-name"
        } ]
      },
      "metabase.lib.schema.parameter.text-tag" : {
        "description" : "A :text-tag parameter :target applies to parameterized text cards in viz settings",
        "type" : "array",
        "prefixItems" : [ {
          "const" : "text-tag"
        }, {
          "type" : "string"
        } ]
      },
      "metabase.lib.schema.parameter.type" : {
        "description" : "Valid parameter :type",
        "default" : "text",
        "type" : "string",
        "enum" : [ "number", "text", "date", "boolean", "date/single", "id", "category", "location/city", "location/state", "location/zip_code", "location/country", "date/range", "date/month-year", "date/quarter-year", "date/relative", "date/all-options", "temporal-unit", "number/!=", "number/<=", "number/=", "number/>=", "number/between", "string/!=", "string/=", "string/contains", "string/does-not-contain", "string/ends-with", "string/starts-with", "boolean/=" ]
      },
      "metabase.lib.schema.parameter.variable" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "variable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..variable.target"
        } ]
      },
      "metabase.lib.schema.parameter.widget-type" : {
        "description" : "The type of widget to display in the FE UI for the user to use to pick values for this parameter.",
        "type" : "string",
        "enum" : [ "none", "number", "text", "date", "boolean", "date/single", "id", "category", "location/city", "location/state", "location/zip_code", "location/country", "date/range", "date/month-year", "date/quarter-year", "date/relative", "date/all-options", "temporal-unit", "number/!=", "number/<=", "number/=", "number/>=", "number/between", "string/!=", "string/=", "string/contains", "string/does-not-contain", "string/ends-with", "string/starts-with", "boolean/=" ]
      },
      "metabase.lib.schema.query" : {
        "allOf" : [ {
          "description" : "Valid MBQL 5 query.",
          "type" : "object",
          "properties" : {
            "lib/metadata" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.metadata-provider"
            },
            "update-row" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
            },
            "lib/type" : {
              "default" : "mbql/query",
              "const" : "mbql/query"
            },
            "settings" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
            },
            "constraints" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
            },
            "info" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.info.info"
            },
            "middleware" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
            },
            "database" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
              } ]
            },
            "stages" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.stages"
            },
            "parameters" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
            },
            "create-row" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
            }
          },
          "required" : [ "lib/type", "stages" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.util.unique-uuids"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.ref..expression.options" : {
        "default" : { },
        "type" : "object",
        "properties" : {
          "base-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "database-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
          },
          "name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          },
          "temporal-unit" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
          }
        },
        "required" : [ "lib/uuid" ]
      },
      "metabase.lib.schema.ref..field.id" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "field"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
        } ]
      },
      "metabase.lib.schema.ref..field.literal" : {
        "type" : "array",
        "prefixItems" : [ {
          "const" : "field"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.literal.options"
        }, {
          "type" : "string"
        } ]
      },
      "metabase.lib.schema.ref..field.literal.options" : {
        "allOf" : [ {
          "default" : { },
          "type" : "object",
          "properties" : {
            "binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "inherited-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "database-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "display-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "source-field-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "effective-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "base-type" : {
              "type" : "string"
            },
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
            },
            "name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-effective-type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "source-field" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            },
            "join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
            },
            "lib/original-binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "source-field-join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "semantic-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "original-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }
          },
          "required" : [ "lib/uuid", "base-type" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.ref..field.options" : {
        "allOf" : [ {
          "default" : { },
          "type" : "object",
          "properties" : {
            "binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "inherited-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "database-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "display-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "source-field-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "effective-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "base-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
            },
            "name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-effective-type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "source-field" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            },
            "join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
            },
            "lib/original-binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "source-field-join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "semantic-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "original-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }
          },
          "required" : [ "lib/uuid" ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.ref.aggregation-options" : {
        "default" : { },
        "type" : "object",
        "properties" : {
          "base-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "database-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "type" : "string",
            "minLength" : 1
          },
          "effective-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            }, {
              "type" : "null"
            } ]
          },
          "lib/source-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
          },
          "name" : {
            "type" : "string",
            "minLength" : 1
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "lib/uuid" ]
      },
      "metabase.lib.schema.ref.ref" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.mbql-clause.clause"
      },
      "metabase.lib.schema.settings.settings" : {
        "description" : "Options that tweak the behavior of the query processor.",
        "type" : "object",
        "properties" : {
          "include-sensitive-fields" : {
            "description" : "Whether to include fields with visibility_type :sensitive when fetching query metadata.",
            "type" : "boolean"
          },
          "report-timezone" : {
            "description" : "The timezone the query should be ran in, overriding the default report timezone for the instance.",
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal.timezone-id"
          }
        }
      },
      "metabase.lib.schema.stage" : {
        "default" : {
          "lib/type" : "mbql.stage/mbql"
        },
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "lib/type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema..stage.type"
            }
          },
          "required" : [ "lib/type" ]
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema..stage.native"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema..stage.mbql"
          } ]
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.stages" : {
        "allOf" : [ {
          "default" : [ ],
          "type" : "array",
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.stage"
          },
          "minItems" : 1
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema..stages.valid-refs"
        } ]
      },
      "metabase.lib.schema.template-tag..field-filter.options" : {
        "type" : "object",
        "properties" : { }
      },
      "metabase.lib.schema.template-tag..raw-value.type" : {
        "type" : "string",
        "enum" : [ "date", "number", "boolean", "text" ]
      },
      "metabase.lib.schema.template-tag..template-tag-map.validate-names" : { },
      "metabase.lib.schema.template-tag..value.common" : {
        "type" : "object",
        "properties" : {
          "default" : { },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
          },
          "required" : {
            "type" : "boolean"
          }
        },
        "required" : [ "name", "display-name" ]
      },
      "metabase.lib.schema.template-tag.common" : {
        "type" : "object",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
          }
        },
        "required" : [ "name", "display-name" ]
      },
      "metabase.lib.schema.template-tag.disallow-dimension" : { },
      "metabase.lib.schema.template-tag.field-filter" : {
        "type" : "object",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "const" : "dimension"
          },
          "alias" : {
            "type" : "string"
          },
          "options" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..field-filter.options"
            }, {
              "type" : "null"
            } ]
          },
          "dimension" : {
            "$ref" : "#/components/schemas/mbql.clause.field"
          },
          "default" : { },
          "widget-type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.widget-type"
          }
        },
        "required" : [ "name", "display-name", "type", "widget-type" ]
      },
      "metabase.lib.schema.template-tag.id" : {
        "oneOf" : [ {
          "type" : "string",
          "format" : "uuid"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
        } ]
      },
      "metabase.lib.schema.template-tag.name" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
      },
      "metabase.lib.schema.template-tag.raw-value" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "default" : { },
            "display-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
            },
            "required" : {
              "type" : "boolean"
            },
            "type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..raw-value.type"
            }
          },
          "required" : [ "name", "display-name", "type" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.snippet" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "database" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
            },
            "display-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
            },
            "snippet-id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
            },
            "snippet-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "type" : {
              "const" : "snippet"
            }
          },
          "required" : [ "name", "display-name", "type", "snippet-name" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.source-filter" : {
        "description" : "Schema for a single source-filter applied to a table template tag.",
        "type" : "object",
        "properties" : {
          "field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "op" : {
            "type" : "string",
            "enum" : [ "<=", ">", ">=", "!=", "=", "<" ]
          },
          "value" : { }
        },
        "required" : [ "field-id", "op", "value" ]
      },
      "metabase.lib.schema.template-tag.source-query" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "card-id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            },
            "display-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
            },
            "type" : {
              "const" : "card"
            }
          },
          "required" : [ "name", "display-name", "type", "card-id" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.source-table" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "display-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "emit-alias" : {
              "type" : "boolean"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
            },
            "source-filters" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.source-filter"
              }
            },
            "table-id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
            },
            "type" : {
              "const" : "table"
            }
          },
          "required" : [ "name", "display-name", "type", "table-id" ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.template-tag" : {
        "allOf" : [ {
          "type" : "object",
          "properties" : {
            "type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.type"
            }
          },
          "required" : [ "type" ]
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.temporal-unit"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.field-filter"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.snippet"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.source-query"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.source-table"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.raw-value"
          } ]
        } ]
      },
      "metabase.lib.schema.template-tag.template-tag-map" : {
        "allOf" : [ {
          "type" : "object",
          "additionalProperties" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag"
          }
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..template-tag-map.validate-names"
        } ]
      },
      "metabase.lib.schema.template-tag.temporal-unit" : {
        "type" : "object",
        "properties" : {
          "alias" : {
            "type" : "string"
          },
          "dimension" : {
            "$ref" : "#/components/schemas/mbql.clause.field"
          },
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
          },
          "type" : {
            "const" : "temporal-unit"
          }
        },
        "required" : [ "name", "display-name", "type" ]
      },
      "metabase.lib.schema.template-tag.type" : {
        "description" : "Schema for valid values of template tag `:type`.",
        "type" : "string",
        "enum" : [ "snippet", "card", "dimension", "number", "text", "date", "boolean", "temporal-unit", "table" ]
      },
      "metabase.lib.schema.template-tag.widget-type" : {
        "description" : "Schema for valid values of `:widget-type` for a `:metabase.lib.schema.template-tag/field-filter` template tag.",
        "$ref" : "#/components/schemas/metabase.lib.schema.parameter.widget-type"
      },
      "metabase.lib.schema.temporal-bucketing..unit.date" : {
        "type" : "string",
        "enum" : [ "day", "day-of-month", "day-of-week", "day-of-year", "month", "month-of-year", "quarter", "quarter-of-year", "week", "week-of-year", "year", "year-of-era" ]
      },
      "metabase.lib.schema.temporal-bucketing..unit.date-time" : {
        "type" : "string",
        "enum" : [ "millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", "year", "second-of-minute", "minute-of-hour", "hour-of-day", "day-of-week", "day-of-month", "day-of-year", "week-of-year", "month-of-year", "quarter-of-year", "year-of-era" ]
      },
      "metabase.lib.schema.temporal-bucketing..unit.date-time.interval" : {
        "type" : "string",
        "enum" : [ "day", "hour", "millisecond", "minute", "month", "quarter", "second", "week", "year" ]
      },
      "metabase.lib.schema.temporal-bucketing..unit.time.interval" : {
        "type" : "string",
        "enum" : [ "hour", "millisecond", "minute", "second" ]
      },
      "metabase.lib.schema.temporal-bucketing.unit" : {
        "type" : "string",
        "enum" : [ "day", "day-of-month", "day-of-week", "day-of-year", "default", "hour", "hour-of-day", "millisecond", "minute", "minute-of-hour", "month", "month-of-year", "quarter", "quarter-of-year", "second", "second-of-minute", "week", "week-of-year", "year", "year-of-era" ]
      },
      "metabase.lib.schema.util.distinct-mbql-clauses" : { },
      "metabase.lib.schema.util.unique-uuids" : { },
      "metabase.lib.schema.validate.source-entity-type" : {
        "description" : "The type of the source entity causing an error.",
        "type" : "string",
        "enum" : [ "table", "card" ]
      },
      "metabase.lib.schema.validate.validate-error-type" : {
        "type" : "string",
        "enum" : [ "missing-column", "missing-table-alias", "duplicate-column", "syntax-error", "validation-exception-error" ]
      },
      "metabase.logger.api.log-level" : {
        "type" : "string",
        "enum" : [ "off", "fatal", "error", "warn", "info", "debug", "trace" ]
      },
      "metabase.logger.api.time-unit" : {
        "type" : "string",
        "enum" : [ "days", "hours", "minutes", "seconds", "milliseconds", "microseconds", "nanoseconds" ]
      },
      "metabase.measures.api.RemappedValueResponse" : {
        "description" : "Response schema for dimension remapping endpoint.\n   Returns [value] if no remapping, or [value, display-name] if remapped.",
        "anyOf" : [ {
          "type" : "array",
          "prefixItems" : [ { } ]
        }, {
          "type" : "array",
          "prefixItems" : [ { }, {
            "type" : "string"
          } ]
        } ]
      },
      "metabase.measures.api.measure" : {
        "description" : "Schema for a Measure entity as returned from the API.",
        "type" : "object",
        "properties" : {
          "dimension_mappings" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "object",
                "properties" : { }
              }
            }, {
              "type" : "null"
            } ]
          },
          "entity_id" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "result_column_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "creator" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : { }
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string",
            "minLength" : 1
          },
          "archived" : {
            "type" : "boolean"
          },
          "dimensions" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "object",
                "properties" : { }
              }
            }, {
              "type" : "null"
            } ]
          },
          "updated_at" : { },
          "table_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "definition" : {
            "type" : "object",
            "properties" : { }
          },
          "created_at" : { },
          "creator_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "table_id", "definition", "archived", "creator_id", "created_at", "updated_at" ]
      },
      "metabase.metabot.context.context" : {
        "allOf" : [ {
          "type" : "object",
          "additionalProperties" : { }
        }, {
          "type" : "object",
          "properties" : {
            "user_is_viewing" : {
              "type" : "array",
              "items" : {
                "anyOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "chart_configs" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "query" : {
                            "anyOf" : [ {
                              "$ref" : "#/components/schemas/metabase.lib.schema.query"
                            }, {
                              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Query"
                            } ]
                          }
                        }
                      }
                    },
                    "query" : {
                      "anyOf" : [ {
                        "$ref" : "#/components/schemas/metabase.lib.schema.query"
                      }, {
                        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Query"
                      } ]
                    },
                    "type" : {
                      "type" : "string",
                      "enum" : [ "model", "question", "metric", "adhoc" ]
                    }
                  },
                  "required" : [ "type" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "query" : {
                      "anyOf" : [ {
                        "$ref" : "#/components/schemas/metabase.lib.schema.query"
                      }, {
                        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Query"
                      } ]
                    },
                    "type" : {
                      "type" : "string",
                      "enum" : [ "dashboard", "model", "transform", "code_editor", "document", "question", "metric", "adhoc" ]
                    }
                  },
                  "required" : [ "type" ]
                } ]
              }
            }
          }
        } ]
      },
      "metabase.metabot.schema.message" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "role" : {
            "$ref" : "#/components/schemas/metabase.metabot.schema.role"
          },
          "tool_call_id" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "tool_calls" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "object",
                "properties" : {
                  "arguments" : {
                    "type" : "string"
                  },
                  "id" : {
                    "type" : "string"
                  },
                  "name" : {
                    "type" : "string"
                  }
                },
                "required" : [ "id", "name", "arguments" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "role" ]
      },
      "metabase.metabot.schema.messages" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.metabot.schema.message"
        }
      },
      "metabase.metabot.schema.role" : {
        "type" : "string",
        "enum" : [ "system", "user", "assistant", "tool" ]
      },
      "metabase.metrics.api.BreakoutValuesResponse" : {
        "type" : "object",
        "properties" : {
          "col" : {
            "type" : "object",
            "properties" : { }
          },
          "values" : {
            "type" : "array",
            "items" : { }
          }
        },
        "required" : [ "values", "col" ]
      },
      "metabase.metrics.api.DatasetRequest" : {
        "description" : "Schema for POST /dataset request body.",
        "type" : "object",
        "properties" : {
          "definition" : {
            "$ref" : "#/components/schemas/metabase.metrics.api.Definition"
          }
        },
        "required" : [ "definition" ]
      },
      "metabase.metrics.api.DatasetResponse" : {
        "description" : "Schema for POST /dataset response.",
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object",
            "properties" : {
              "cols" : {
                "type" : "array",
                "items" : { }
              },
              "rows" : {
                "type" : "array",
                "items" : { }
              }
            },
            "required" : [ "cols", "rows" ]
          },
          "row_count" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "type" : "integer",
            "minimum" : 0
          },
          "status" : {
            "enum" : [ "completed", "completed" ]
          }
        },
        "required" : [ "status", "data", "row_count" ]
      },
      "metabase.metrics.api.Definition" : {
        "description" : "Schema for the definition object within a dataset request.\n   Uses expression-based contract for metric math support.",
        "type" : "object",
        "properties" : {
          "expression" : {
            "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-math-expression"
          },
          "filters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filters"
            }, {
              "type" : "null"
            } ]
          },
          "projections" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.typed-projections"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "expression" ]
      },
      "metabase.metrics.api.Metric" : {
        "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
        "type" : "object",
        "properties" : {
          "collection" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : {
                "id" : {
                  "oneOf" : [ {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }, {
                    "type" : "null"
                  } ]
                },
                "name" : {
                  "type" : "string"
                }
              },
              "required" : [ "id", "name" ]
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name", "description", "collection_id" ]
      },
      "metabase.metrics.api.MetricWithDimensions" : {
        "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
        "type" : "object",
        "properties" : {
          "dimension_mappings" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "object",
                "properties" : { }
              }
            }, {
              "type" : "null"
            } ]
          },
          "collection" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : {
                "id" : {
                  "oneOf" : [ {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }, {
                    "type" : "null"
                  } ]
                },
                "name" : {
                  "type" : "string"
                }
              },
              "required" : [ "id", "name" ]
            }, {
              "type" : "null"
            } ]
          },
          "dataset_query" : {
            "type" : "object",
            "properties" : { }
          },
          "result_column_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "name" : {
            "type" : "string"
          },
          "dimensions" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "object",
                "properties" : { }
              }
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "description", "collection_id" ]
      },
      "metabase.metrics.api.RemappedValueResponse" : {
        "description" : "Response schema for dimension remapping endpoint.\n   Returns [value] if no remapping, or [value, display-name] if remapped.",
        "anyOf" : [ {
          "type" : "array",
          "prefixItems" : [ { } ]
        }, {
          "type" : "array",
          "prefixItems" : [ { }, {
            "type" : "string"
          } ]
        } ]
      },
      "metabase.notification.api.notification.NotificationApiInput" : {
        "description" : "Notification schema for API input. Like FullyHydratedNotification but restricts templates\n  to user-provided types only (no handlebars-resource).",
        "oneOf" : [ {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type", "payload" ]
          }, {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type" ]
          } ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type", "payload" ]
          }, {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type" ]
          } ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload" ]
          }, {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            }
          } ]
        } ]
      },
      "metabase.notification.models.FullyHydratedNotification" : {
        "description" : "Fully hydrated notification.",
        "oneOf" : [ {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type", "payload" ]
          }, {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type" ]
          } ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type", "payload" ]
          }, {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "type" : "string",
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload_type" ]
          } ]
        }, {
          "oneOf" : [ {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            },
            "required" : [ "payload" ]
          }, {
            "type" : "object",
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : {
                    "active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.Channel"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "recipients" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      }
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ]
                }
              },
              "subscriptions" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                }
              }
            }
          } ]
        } ]
      },
      "metabase.notification.models.Notification" : {
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "payload_id" : {
              "type" : "null"
            },
            "payload_type" : {
              "type" : "string",
              "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
            }
          },
          "required" : [ "payload_type" ]
        }, {
          "type" : "object",
          "properties" : {
            "creator_id" : {
              "type" : "integer"
            },
            "payload_id" : {
              "type" : "integer"
            },
            "payload_type" : {
              "type" : "string",
              "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
            }
          },
          "required" : [ "payload_type" ]
        }, { } ]
      },
      "metabase.notification.models.NotificationCard" : {
        "description" : "Schema for :model/NotificationCard.",
        "type" : "object",
        "properties" : {
          "card" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : { }
            }, {
              "type" : "null"
            } ]
          },
          "card_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "send_condition" : {
            "type" : "string",
            "enum" : [ "goal_below", "has_result", "goal_above" ]
          },
          "send_once" : {
            "type" : "boolean"
          }
        },
        "required" : [ "card_id" ]
      },
      "metabase.notification.models.NotificationHandler" : {
        "type" : "object",
        "properties" : {
          "active" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "channel_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "channel_type" : { },
          "notification_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "template_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "channel_type" ]
      },
      "metabase.notification.models.NotificationRecipient" : {
        "description" : "Schema for :model/NotificationRecipient.",
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "details" : { },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            },
            "permissions_group_id" : { },
            "type" : {
              "type" : "string",
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
            },
            "user_id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }
          },
          "required" : [ "type", "user_id" ]
        }, {
          "type" : "object",
          "properties" : {
            "details" : { },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            },
            "permissions_group_id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            },
            "type" : {
              "type" : "string",
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
            },
            "user_id" : { }
          },
          "required" : [ "type", "permissions_group_id" ]
        }, {
          "type" : "object",
          "properties" : {
            "details" : {
              "type" : "object",
              "properties" : {
                "channel_id" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                },
                "value" : { }
              },
              "required" : [ "value" ],
              "additionalProperties" : false
            },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            },
            "permissions_group_id" : { },
            "type" : {
              "type" : "string",
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
            },
            "user_id" : { }
          },
          "required" : [ "type", "details" ]
        }, {
          "type" : "object",
          "properties" : {
            "details" : {
              "type" : "object",
              "properties" : {
                "is_optional" : {
                  "type" : "boolean"
                },
                "pattern" : {
                  "type" : "string"
                }
              },
              "required" : [ "pattern" ],
              "additionalProperties" : false
            },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            },
            "permissions_group_id" : { },
            "type" : {
              "type" : "string",
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ]
            },
            "user_id" : { }
          },
          "required" : [ "type", "details" ]
        } ]
      },
      "metabase.notification.models.NotificationSubscription" : {
        "description" : "Schema for :model/NotificationSubscription.",
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "cron_schedule" : {
              "type" : "null"
            },
            "event_name" : {
              "anyOf" : [ {
                "type" : "string"
              }, {
                "type" : "string"
              } ]
            },
            "type" : {
              "type" : "string",
              "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
            }
          },
          "required" : [ "type", "event_name" ]
        }, {
          "type" : "object",
          "properties" : {
            "cron_schedule" : {
              "type" : "string"
            },
            "event_name" : {
              "type" : "null"
            },
            "type" : {
              "type" : "string",
              "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ]
            },
            "ui_display_type" : {
              "oneOf" : [ {
                "type" : "string",
                "enum" : [ "cron/raw", "cron/builder" ]
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "type", "cron_schedule" ]
        } ]
      },
      "metabase.parameters.schema.legacy-ref" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-expression-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..target.legacy-field-ref"
        } ]
      },
      "metabase.parameters.schema.parameter" : {
        "description" : "parameter must be a map with :id and :type keys",
        "type" : "object",
        "properties" : {
          "filteringParameters" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
              }
            }, {
              "type" : "null"
            } ]
          },
          "mappings" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
                }
              }, {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
                },
                "uniqueItems" : true
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "sectionId" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "values_source_config" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-config"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          },
          "name" : {
            "type" : "string"
          },
          "slug" : {
            "type" : "string"
          },
          "values_query_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.values-query-type"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
          },
          "temporal_units" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }
            }, {
              "type" : "null"
            } ]
          },
          "target" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
          },
          "values_source_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-type"
            }, {
              "type" : "null"
            } ]
          },
          "default" : { }
        },
        "required" : [ "id", "type" ]
      },
      "metabase.parameters.schema.parameter-mapping" : {
        "description" : "parameter_mapping must be a map with :parameter_id and :target keys",
        "type" : "object",
        "properties" : {
          "card_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "dashcard" : {
            "type" : "object",
            "properties" : { }
          },
          "parameter_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          },
          "target" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
          }
        },
        "required" : [ "parameter_id", "target" ]
      },
      "metabase.parameters.schema.parameter-mappings" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
        }
      },
      "metabase.parameters.schema.parameters" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
        }
      },
      "metabase.parameters.schema.values-query-type" : {
        "type" : "string",
        "enum" : [ "none", "list", "search" ]
      },
      "metabase.parameters.schema.values-source-config" : {
        "description" : "Schema for valid source_options within a Parameter",
        "type" : "object",
        "properties" : {
          "card_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
          },
          "label_field" : {
            "$ref" : "#/components/schemas/metabase.parameters.schema.legacy-ref"
          },
          "value_field" : {
            "$ref" : "#/components/schemas/metabase.parameters.schema.legacy-ref"
          },
          "values" : { }
        }
      },
      "metabase.parameters.schema.values-source-type" : {
        "type" : "string",
        "enum" : [ "static-list", "card" ]
      },
      "metabase.queries.schema..card.result-metadata" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata.lib-or-legacy-column"
        }
      },
      "metabase.queries.schema.card" : {
        "description" : "Schema for an instance of a `:model/Card` (everything is optional to support updates).",
        "type" : "object",
        "properties" : {
          "dataset_query" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.queries.schema.query"
            }, {
              "type" : "null"
            } ]
          },
          "parameter_mappings" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
            }, {
              "type" : "null"
            } ]
          },
          "document_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
            }, {
              "type" : "null"
            } ]
          },
          "result_metadata" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
            }, {
              "type" : "null"
            } ]
          },
          "parameters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "dashboard_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "metabase.queries.schema.card-type" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
      },
      "metabase.queries.schema.empty-map" : {
        "description" : "An empty map, allowed for Card.dataset_query for historic purposes.",
        "const" : { }
      },
      "metabase.queries.schema.query" : {
        "description" : "Schema for Card.dataset_query. Cards are for some wacko reason allowed to be saved with empty queries (`{}`), but not\n  `NULL` ones, because the column is non-null. This sorta seems like an oversight but fixing all the tests that save\n  Cards with empty queries is too much to attempt at this point. So a Card either has an empty query or a valid MBQL 5\n  query.",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.queries.schema.empty-map"
        }, {
          "allOf" : [ {
            "description" : "Valid MBQL 5 query.",
            "type" : "object",
            "properties" : {
              "lib/metadata" : {
                "description" : "Schema for something that satisfies the [[metabase.lib.metadata.protocols/MetadataProvider]] protocol."
              },
              "update-row" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              },
              "lib/type" : {
                "default" : "mbql/query",
                "const" : "mbql/query"
              },
              "settings" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
              },
              "constraints" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
              },
              "info" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.info.info"
              },
              "middleware" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
              },
              "database" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
                }, {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
                } ]
              },
              "stages" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.stages"
              },
              "parameters" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
              },
              "create-row" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              }
            },
            "required" : [ "lib/type", "lib/metadata", "stages" ]
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.util.unique-uuids"
          }, {
            "allOf" : [ ]
          } ]
        } ]
      },
      "metabase.query-processor.schema..query-result.data" : {
        "description" : "Schema for the :data key of query results.",
        "type" : "object",
        "properties" : {
          "insights" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : { }
            }
          },
          "results_metadata" : {
            "type" : "object",
            "properties" : {
              "columns" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema..result-metadata.column"
                }
              }
            },
            "required" : [ "columns" ]
          },
          "download_perms" : {
            "type" : "string"
          },
          "format-rows?" : {
            "type" : "boolean"
          },
          "is_sandboxed" : {
            "type" : "boolean"
          },
          "cols" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.query-processor.schema..result-metadata.column"
            }
          },
          "results_timezone" : {
            "type" : "string"
          },
          "rows" : {
            "type" : "array",
            "items" : {
              "type" : "array",
              "items" : { }
            }
          },
          "native_form" : {
            "type" : "object",
            "properties" : { }
          }
        },
        "required" : [ "cols", "rows" ]
      },
      "metabase.query-processor.schema..result-metadata.column" : {
        "description" : "A single result metadata column as returned by the Query Processor.",
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
      },
      "metabase.query-processor.schema.export-format" : {
        "description" : "Schema for valid export formats for downloading query results.",
        "type" : "string",
        "enum" : [ "csv", "api", "xlsx", "json" ]
      },
      "metabase.query-processor.schema.query-result" : {
        "description" : "Schema for query execution results returned by the Query Processor.",
        "type" : "object",
        "properties" : {
          "row_count" : {
            "type" : "integer"
          },
          "error" : {
            "type" : "string"
          },
          "started_at" : {
            "type" : "string"
          },
          "database_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
          },
          "context" : { },
          "status" : {
            "type" : "string",
            "enum" : [ "completed", "failed" ]
          },
          "error_type" : {
            "type" : "string"
          },
          "running_time" : {
            "type" : "integer"
          },
          "json_query" : {
            "type" : "object",
            "properties" : { }
          },
          "average_execution_time" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "cached" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "data" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema..query-result.data"
          }
        },
        "required" : [ "status", "row_count" ]
      },
      "metabase.source-swap.schema.column-error" : {
        "type" : "string",
        "enum" : [ "column-type-mismatch", "missing-primary-key", "missing-foreign-key", "foreign-key-mismatch" ]
      },
      "metabase.sync.schedules.ExpandedSchedulesMap" : {
        "description" : "value must be a valid map of schedule maps for a DB.",
        "type" : "object",
        "properties" : {
          "cache_field_values" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.util.cron.ScheduleMap"
            }, {
              "type" : "null"
            } ]
          },
          "metadata_sync" : {
            "$ref" : "#/components/schemas/metabase.util.cron.ScheduleMap"
          }
        }
      },
      "metabase.task-history.api.RunEntity" : {
        "type" : "object",
        "properties" : {
          "entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "entity_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "entity_type" : {
            "type" : "string",
            "enum" : [ "dashboard", "card", "database" ]
          }
        },
        "required" : [ "entity_type", "entity_id" ]
      },
      "metabase.task-history.api.RunFilterParams" : {
        "type" : "object",
        "properties" : {
          "entity-id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "entity-type" : {
            "type" : "string",
            "enum" : [ "dashboard", "card", "database" ]
          },
          "run-type" : {
            "type" : "string",
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ]
          },
          "started-at" : {
            "type" : "string",
            "minLength" : 1
          },
          "status" : {
            "type" : "string",
            "enum" : [ "started", "success", "failed", "abandoned" ]
          }
        }
      },
      "metabase.task-history.api.TaskHistory" : {
        "type" : "object",
        "properties" : {
          "task_details" : {
            "oneOf" : [ {
              "type" : "object",
              "properties" : { }
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "started_at" : { },
          "ended_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "status" : {
            "type" : "string",
            "enum" : [ "started", "success", "failed", "unknown" ]
          },
          "logs" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "task" : {
            "type" : "string"
          },
          "duration" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "run_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "task", "started_at", "ended_at", "duration", "status" ]
      },
      "metabase.task-history.api.TaskRun" : {
        "type" : "object",
        "properties" : {
          "run_type" : {
            "type" : "string",
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ]
          },
          "entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "started_at" : { },
          "failed_count" : {
            "type" : "integer"
          },
          "ended_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "entity_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "status" : {
            "type" : "string",
            "enum" : [ "started", "success", "failed", "abandoned" ]
          },
          "task_count" : {
            "type" : "integer"
          },
          "success_count" : {
            "type" : "integer"
          },
          "entity_type" : {
            "type" : "string",
            "enum" : [ "dashboard", "card", "database" ]
          }
        },
        "required" : [ "id", "run_type", "entity_type", "entity_id", "started_at", "ended_at", "status" ]
      },
      "metabase.task-history.api.TaskRunWithTasks" : {
        "type" : "object",
        "properties" : {
          "run_type" : {
            "type" : "string",
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ]
          },
          "tasks" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.task-history.api.TaskHistory"
            }
          },
          "entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "started_at" : { },
          "failed_count" : {
            "type" : "integer"
          },
          "ended_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "entity_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "status" : {
            "type" : "string",
            "enum" : [ "started", "success", "failed", "abandoned" ]
          },
          "task_count" : {
            "type" : "integer"
          },
          "success_count" : {
            "type" : "integer"
          },
          "entity_type" : {
            "type" : "string",
            "enum" : [ "dashboard", "card", "database" ]
          }
        },
        "required" : [ "id", "run_type", "entity_type", "entity_id", "started_at", "ended_at", "status", "tasks" ]
      },
      "metabase.task-history.api.TaskRunsResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.task-history.api.TaskRun"
            }
          },
          "limit" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "offset" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater or equal to than zero.",
              "type" : "integer",
              "minimum" : 0
            }, {
              "type" : "null"
            } ]
          },
          "total" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "type" : "integer",
            "minimum" : 0
          }
        },
        "required" : [ "total", "limit", "offset", "data" ]
      },
      "metabase.tiles.api.legacy-ref" : {
        "description" : "Form-encoded JSON-encoded legacy MBQL :field ref.",
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field"
      },
      "metabase.tiles.api.parameters" : {
        "description" : "Form-encoded JSON-encoded array of parameter maps.",
        "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
      },
      "metabase.tiles.api.query" : {
        "description" : "Form-encoded JSON-encoded MBQL query.",
        "$ref" : "#/components/schemas/metabase.lib.schema.query"
      },
      "metabase.timeline.api.timeline.Timeline" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "minimum" : 1
          }
        },
        "required" : [ "id" ]
      },
      "metabase.timeline.api.timeline.include" : {
        "type" : "string",
        "enum" : [ "events" ]
      },
      "metabase.transforms-base.util.source-table-entry" : {
        "description" : "A source table entry in the array format. Combines alias with table reference.",
        "type" : "object",
        "properties" : {
          "alias" : {
            "type" : "string"
          },
          "database_id" : {
            "type" : "integer"
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "table" : {
            "type" : "string"
          },
          "table_id" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "alias", "database_id", "schema" ]
      },
      "metabase.transforms-rest.api.transform.run-trigger" : {
        "type" : "string",
        "enum" : [ "none", "global-schedule" ]
      },
      "metabase.transforms.schema.append-config" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "const" : "append"
          }
        },
        "required" : [ "type" ]
      },
      "metabase.transforms.schema.checkpoint-strategy" : {
        "type" : "object",
        "properties" : {
          "checkpoint-filter-field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "type" : {
            "const" : "checkpoint"
          }
        },
        "required" : [ "type" ]
      },
      "metabase.transforms.schema.id" : {
        "type" : "integer",
        "minimum" : 1
      },
      "metabase.transforms.schema.source-incremental-strategy" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.transforms.schema.checkpoint-strategy"
        } ]
      },
      "metabase.transforms.schema.table-incremental-target" : {
        "type" : "object",
        "properties" : {
          "database" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "target-incremental-strategy" : {
            "$ref" : "#/components/schemas/metabase.transforms.schema.target-incremental-strategy"
          },
          "type" : {
            "const" : "table-incremental"
          }
        },
        "required" : [ "type", "name", "target-incremental-strategy" ]
      },
      "metabase.transforms.schema.table-target" : {
        "type" : "object",
        "properties" : {
          "database" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "type", "name" ]
      },
      "metabase.transforms.schema.target-incremental-strategy" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.transforms.schema.append-config"
        } ]
      },
      "metabase.transforms.schema.transform" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.transforms.schema.id"
          },
          "name" : {
            "type" : "string"
          },
          "source" : {
            "$ref" : "#/components/schemas/metabase.transforms.schema.transform-source"
          },
          "target" : {
            "$ref" : "#/components/schemas/metabase.transforms.schema.transform-target"
          }
        },
        "required" : [ "id", "name", "source", "target" ]
      },
      "metabase.transforms.schema.transform-source" : {
        "oneOf" : [ {
          "type" : "object",
          "properties" : {
            "query" : {
              "$ref" : "#/components/schemas/metabase.queries.schema.query"
            },
            "source-incremental-strategy" : {
              "$ref" : "#/components/schemas/metabase.transforms.schema.source-incremental-strategy"
            },
            "type" : {
              "const" : "query"
            }
          },
          "required" : [ "type", "query" ]
        }, {
          "type" : "object",
          "properties" : {
            "body" : {
              "type" : "string"
            },
            "source-database" : {
              "type" : "integer"
            },
            "source-incremental-strategy" : {
              "$ref" : "#/components/schemas/metabase.transforms.schema.source-incremental-strategy"
            },
            "source-tables" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.transforms-base.util.source-table-entry"
              }
            },
            "type" : {
              "const" : "python"
            }
          },
          "required" : [ "source-tables", "type", "body" ]
        } ]
      },
      "metabase.transforms.schema.transform-target" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.transforms.schema.table-target"
        }, {
          "$ref" : "#/components/schemas/metabase.transforms.schema.table-incremental-target"
        } ]
      },
      "metabase.users.schema.user-group-membership" : {
        "description" : "Group Membership info of a User.\n  In which :is_group_manager is only included if `advanced-permissions` is enabled.",
        "type" : "object",
        "properties" : {
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "type" : "integer",
            "minimum" : 1
          },
          "is_group_manager" : {
            "description" : "Only relevant if `advanced-permissions` is enabled. If it is, you should always include this key.",
            "type" : "boolean"
          }
        },
        "required" : [ "id" ]
      },
      "metabase.util.cron.CronHour" : {
        "type" : "integer",
        "minimum" : 0,
        "maximum" : 23
      },
      "metabase.util.cron.CronMinute" : {
        "type" : "integer",
        "minimum" : 0,
        "maximum" : 59
      },
      "metabase.util.cron.CronScheduleString" : {
        "description" : "value must be a valid Quartz cron schedule string.",
        "type" : "string",
        "minLength" : 1
      },
      "metabase.util.cron.ScheduleMap" : {
        "description" : "value must be a valid schedule map. See schema in metabase.util.cron for details.",
        "type" : "object",
        "properties" : {
          "schedule_day" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "sun", "mon", "tue", "wed", "thu", "fri", "sat" ]
            }, {
              "type" : "null"
            } ]
          },
          "schedule_frame" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "first", "mid", "last" ]
            }, {
              "type" : "null"
            } ]
          },
          "schedule_hour" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.util.cron.CronHour"
            }, {
              "type" : "null"
            } ]
          },
          "schedule_minute" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.util.cron.CronMinute"
            }, {
              "type" : "null"
            } ]
          },
          "schedule_type" : {
            "type" : "string",
            "enum" : [ "hourly", "daily", "weekly", "monthly" ]
          }
        },
        "required" : [ "schedule_type" ]
      },
      "metabase.warehouse-schema-rest.api.table.data-authority-write" : {
        "description" : "Schema for writing a valid table data authority.",
        "type" : "string",
        "enum" : [ "computed", "authoritative", "unconfigured", "ingested" ]
      },
      "metabase.warehouse-schema-rest.api.table.data-layers" : {
        "type" : "string",
        "enum" : [ "final", "internal", "hidden" ]
      },
      "metabase.warehouse-schema-rest.api.table.data-sources" : {
        "type" : "string",
        "enum" : [ "source-data", "transform", "unknown", "ingested", "metabase-transform", "upload" ]
      },
      "metabase.warehouses-rest.api.available-settings" : {
        "type" : "object",
        "additionalProperties" : {
          "type" : "object",
          "properties" : {
            "enabled" : {
              "type" : "boolean"
            },
            "reasons" : {
              "type" : "array",
              "items" : {
                "type" : "object",
                "properties" : {
                  "key" : {
                    "type" : "string"
                  },
                  "message" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, { } ]
                  },
                  "type" : {
                    "type" : "string",
                    "enum" : [ "error", "warning" ]
                  }
                },
                "required" : [ "key", "type", "message" ]
              }
            }
          },
          "required" : [ "enabled" ]
        }
      },
      "metabase.warehouses-rest.api.database-info" : {
        "type" : "object",
        "properties" : {
          "engine" : {
            "type" : "string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name", "engine" ]
      },
      "metabase.warehouses-rest.api.databases-metadata-response" : {
        "type" : "object",
        "properties" : {
          "databases" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.warehouses-rest.api.database-info"
            }
          },
          "fields" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.warehouses-rest.api.field-info"
            }
          },
          "tables" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.warehouses-rest.api.table-info"
            }
          }
        },
        "required" : [ "databases", "tables", "fields" ]
      },
      "metabase.warehouses-rest.api.field-info" : {
        "type" : "object",
        "properties" : {
          "base_type" : {
            "type" : "string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "coercion_strategy" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "semantic_type" : {
            "type" : "string"
          },
          "table_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
          },
          "effective_type" : {
            "type" : "string"
          },
          "parent_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "database_type" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "fk_target_field_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          }
        },
        "required" : [ "id", "table_id", "name", "base_type" ]
      },
      "metabase.warehouses-rest.api.field-values-info" : {
        "type" : "object",
        "properties" : {
          "field_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "has_more_values" : {
            "type" : "boolean"
          },
          "human_readable_values" : {
            "type" : "array",
            "items" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            }
          },
          "values" : {
            "type" : "array",
            "items" : {
              "type" : "array",
              "items" : { }
            }
          }
        },
        "required" : [ "field_id", "values", "has_more_values" ]
      },
      "metabase.warehouses-rest.api.field-values-response" : {
        "type" : "object",
        "properties" : {
          "field_values" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.warehouses-rest.api.field-values-info"
            }
          }
        },
        "required" : [ "field_values" ]
      },
      "metabase.warehouses-rest.api.metadata-import-report" : {
        "type" : "object",
        "properties" : {
          "databases" : {
            "type" : "object",
            "properties" : {
              "failed" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : { }
                }
              },
              "matched" : {
                "type" : "integer"
              },
              "missing" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : { }
                }
              }
            },
            "required" : [ "matched", "missing" ]
          },
          "fields" : {
            "type" : "object",
            "properties" : {
              "created" : {
                "type" : "integer"
              },
              "matched" : {
                "type" : "integer"
              },
              "missing" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : { }
                }
              }
            },
            "required" : [ "matched", "created", "missing" ]
          },
          "tables" : {
            "type" : "object",
            "properties" : {
              "created" : {
                "type" : "integer"
              },
              "matched" : {
                "type" : "integer"
              },
              "missing" : {
                "type" : "array",
                "items" : {
                  "type" : "object",
                  "properties" : { }
                }
              }
            },
            "required" : [ "matched", "created", "missing" ]
          }
        },
        "required" : [ "databases", "tables", "fields" ]
      },
      "metabase.warehouses-rest.api.table-info" : {
        "type" : "object",
        "properties" : {
          "db_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
          },
          "description" : {
            "type" : "string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "db_id", "name" ]
      },
      "metabase.xrays.api.automagic-dashboards.base-64-encoded-json" : {
        "description" : "form-encoded base-64-encoded JSON"
      },
      "metabase.xrays.api.automagic-dashboards.entity-id-or-query" : {
        "description" : "One of these:\n\n  * A non-empty string with an Entity ID (including `card__<id>`-encoded Card IDs)\n\n  * a form-encoded base-64-encoded JSON-encoded MBQL query\n\n  * The name of a transform\n\n  (Effectively since the names of transforms are unconstrained this parameter is allowed to be any form-encoded\n  string.)",
        "type" : "string",
        "minLength" : 1
      }
    },
    "securitySchemes" : {
      "ApiKeyAuth" : {
        "type" : "apiKey",
        "in" : "header",
        "name" : "X-API-Key",
        "description" : "API key for authentication"
      }
    }
  },
  "info" : {
    "title" : "Metabase API documentation",
    "description" : "- **The API is subject to change.** We rarely change API endpoints, and almost never remove them, but if you write code that relies on the API, there's a chance you might have to update your code in the future.\n- **The API isn't versioned.** So don’t expect to stay on a particular version of Metabase in order to use a “stable” API.\n\n## API tutorial\n\nCheck out an introduction to the [Metabase API](https://www.metabase.com/learn/administration/metabase-api.html).\n\n## API keys\n\nCreate keys to authenticate programmatic requests to your Metabase. See [API keys](./people-and-groups/api-keys).\n\n## API changelog\n\nFor breaking changes, see the API [changelog](./developers-guide/api-changelog).\n\n## View the API docs for your Metabase\n\nYou can view the API docs for your Metabase by visiting `https://[your-metabase-url]/api/docs`.\n\n## Generating API docs\n\nYou can generate these docs by running:\n\n```\nclojure -M:ee:doc api-documentation\n```\n"
  },
  "openapi" : "3.1.0",
  "paths" : {
    "/api/action" : {
      "get" : {
        "operationId" : "get-api-action",
        "summary" : "GET /api/action",
        "description" : "Returns actions that can be used for QueryActions. By default lists all viewable actions. Pass optional\n  `?model-id=<model-id>` to limit to actions on a particular model.",
        "parameters" : [ {
          "in" : "query",
          "name" : "model-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.actions.schema.action"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      },
      "post" : {
        "operationId" : "post-api-action",
        "summary" : "POST /api/action",
        "description" : "Create a new action.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.actions.schema.action"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.actions.schema..action.for-insert"
              }
            }
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/public" : {
      "get" : {
        "operationId" : "get-api-action-public",
        "summary" : "GET /api/action/public",
        "description" : "Fetch a list of Actions with public UUIDs. These actions are publicly-accessible *if* public sharing is enabled.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.actions.schema.action"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{action-id}" : {
      "get" : {
        "operationId" : "get-api-action-action-id",
        "summary" : "GET /api/action/{action-id}",
        "description" : "Fetch an Action.",
        "parameters" : [ {
          "in" : "path",
          "name" : "action-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.actions.schema.action"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      },
      "delete" : {
        "operationId" : "delete-api-action-action-id",
        "summary" : "DELETE /api/action/{action-id}",
        "description" : "Delete an Action.",
        "parameters" : [ {
          "in" : "path",
          "name" : "action-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{action-id}/execute" : {
      "get" : {
        "operationId" : "get-api-action-action-id-execute",
        "summary" : "GET /api/action/{action-id}/execute",
        "description" : "Fetches the values for filling in execution parameters. Pass PK parameters and values to select.",
        "parameters" : [ {
          "in" : "path",
          "name" : "action-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : true,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{id}" : {
      "put" : {
        "operationId" : "put-api-action-id",
        "summary" : "PUT /api/action/{id}",
        "description" : "Update an Action.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.actions.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.actions.schema..action.for-update"
              }
            }
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{id}/execute" : {
      "post" : {
        "operationId" : "post-api-action-id-execute",
        "summary" : "POST /api/action/{id}/execute",
        "description" : "Execute the Action.\n\n   `parameters` should be the mapped dashboard parameters with values.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.actions.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "parameters" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "additionalProperties" : { }
                      }, {
                        "type" : "null"
                      } ]
                    }
                  }
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{id}/public_link" : {
      "post" : {
        "operationId" : "post-api-action-id-public_link",
        "summary" : "POST /api/action/{id}/public_link",
        "description" : "Generate publicly-accessible links for this Action. Returns UUID to be used in public links. (If this\n  Action has already been shared, it will return the existing public link rather than creating a new one.) Public\n  sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.actions.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      },
      "delete" : {
        "operationId" : "delete-api-action-id-public_link",
        "summary" : "DELETE /api/action/{id}/public_link",
        "description" : "Delete the publicly-accessible link to this Dashboard.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.actions.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/action" ]
      }
    },
    "/api/activity/most_recently_viewed_dashboard" : {
      "get" : {
        "operationId" : "get-api-activity-most_recently_viewed_dashboard",
        "summary" : "GET /api/activity/most_recently_viewed_dashboard",
        "description" : "Get the most recently viewed dashboard for the current user. Returns a 204 if the user has not viewed any dashboards\n   in the last 24 hours.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/activity/popular_items" : {
      "get" : {
        "operationId" : "get-api-activity-popular_items",
        "summary" : "GET /api/activity/popular_items",
        "description" : "Get the list of 5 popular things on the instance. Query takes 8 and limits to 5 so that if it finds anything\n  archived, deleted, etc it can usually still get 5. ",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/activity/recent_views" : {
      "get" : {
        "operationId" : "get-api-activity-recent_views",
        "summary" : "GET /api/activity/recent_views",
        "description" : "Get a list of 100 models (cards, models, tables, dashboards, and collections) that the current user has been viewing most\n  recently. Return a maximum of 20 model of each, if they've looked at at least 20.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "deprecated" : true,
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/activity/recents" : {
      "get" : {
        "operationId" : "get-api-activity-recents",
        "summary" : "GET /api/activity/recents",
        "description" : "Get a list of recent items the current user has been viewing most recently under the `:recents` key.\n  Allows for filtering by context: views or selections",
        "parameters" : [ {
          "in" : "query",
          "name" : "context",
          "required" : true,
          "schema" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "enum" : [ "selections", "views" ]
            }
          }
        }, {
          "in" : "query",
          "name" : "include_metadata",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/activity" ]
      },
      "post" : {
        "operationId" : "post-api-activity-recents",
        "summary" : "POST /api/activity/recents",
        "description" : "Adds a model to the list of recently selected items.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "context" : {
                    "type" : "string",
                    "enum" : [ "selection" ]
                  },
                  "model" : {
                    "type" : "string",
                    "enum" : [ "card", "dataset", "metric", "dashboard", "table", "collection", "document" ]
                  },
                  "model_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "model", "model_id", "context" ]
              }
            }
          }
        },
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/agent/v1/execute" : {
      "post" : {
        "operationId" : "post-api-agent-v1-execute",
        "summary" : "POST /api/agent/v1/execute",
        "description" : "Execute an MBQL query and return results.\n\n  Accepts a base64-encoded MBQL query (as returned by /v1/construct-query) and executes it,\n  returning results with column metadata.\n\n  Response format:\n  - On success: {:data {:cols [...] :rows [...]} :row_count N :status :completed :running_time M}\n  - On failure: {:status :failed :error \"message\" ...}\n\n  Standard userspace query limits are enforced (2000 rows for simple queries, 10000 for aggregated).",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.execute-query-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.execute-query-request"
              }
            }
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/metric/{id}" : {
      "get" : {
        "operationId" : "get-api-agent-v1-metric-id",
        "summary" : "GET /api/agent/v1/metric/{id}",
        "description" : "Get details for a metric by ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "with-default-temporal-breakout",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-field-values",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-queryable-dimensions",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-segments",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.metric"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/metric/{id}/field/{field-id}/values" : {
      "get" : {
        "operationId" : "get-api-agent-v1-metric-id-field-field-id-values",
        "summary" : "GET /api/agent/v1/metric/{id}/field/{field-id}/values",
        "description" : "Get statistics and sample values for a metric field.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "field-id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.field-values"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/ping" : {
      "get" : {
        "operationId" : "get-api-agent-v1-ping",
        "summary" : "GET /api/agent/v1/ping",
        "description" : "Health check endpoint for the Agent API.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "message" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/search" : {
      "post" : {
        "operationId" : "post-api-agent-v1-search",
        "summary" : "POST /api/agent/v1/search",
        "description" : "Search for tables and metrics.\n\n  Supports both term-based and semantic search queries. Results are ranked using\n  Reciprocal Rank Fusion when both query types are provided.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.search-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "semantic_queries" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      }, {
                        "type" : "string",
                        "minLength" : 1
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "term_queries" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      }, {
                        "type" : "string",
                        "minLength" : 1
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/table/{id}" : {
      "get" : {
        "operationId" : "get-api-agent-v1-table-id",
        "summary" : "GET /api/agent/v1/table/{id}",
        "description" : "Get details for a table by ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "with-field-values",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-fields",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-related-tables",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-metrics",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-measures",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "with-segments",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.table"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/table/{id}/field/{field-id}/values" : {
      "get" : {
        "operationId" : "get-api-agent-v1-table-id-field-field-id-values",
        "summary" : "GET /api/agent/v1/table/{id}/field/{field-id}/values",
        "description" : "Get statistics and sample values for a table field.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "field-id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.field-values"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v2/construct-query" : {
      "post" : {
        "operationId" : "post-api-agent-v2-construct-query",
        "summary" : "POST /api/agent/v2/construct-query",
        "description" : "Construct an MBQL query from a structured agent-lib program.\n\n  The body is the program itself: a JSON object with `source` (identifying the\n  table/card/dataset/metric to query) and `operations` (an array of operator\n  tuples). Returns a base64-encoded MBQL query that can be executed via\n  /v1/execute. See the agent_api reference for the full program syntax.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.construct-query-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.program-request"
              }
            }
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v2/query" : {
      "post" : {
        "operationId" : "post-api-agent-v2-query",
        "summary" : "POST /api/agent/v2/query",
        "description" : "Execute a structured program and stream the results, with continuation-token pagination.\n\n  Accepts either a program (same shape as /v2/construct-query) or a\n  `continuation_token` from a previous response. Returns results with column\n  metadata and an optional `continuation_token` for fetching the next page.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.query-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.query-request"
              }
            }
          }
        },
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/ai-entity-analysis/analyze-chart" : {
      "post" : {
        "operationId" : "post-api-ai-entity-analysis-analyze-chart",
        "summary" : "POST /api/ai-entity-analysis/analyze-chart",
        "description" : "Analyze a chart image using an AI vision model. This function sends the image data to a separate external AI service\n  for analysis.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "image_base64" : {
                    "type" : "string"
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timeline_events" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "name" : {
                            "type" : "string"
                          },
                          "timestamp" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "name", "timestamp" ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "image_base64" ]
              }
            }
          }
        },
        "tags" : [ "/api/ai-entity-analysis" ]
      }
    },
    "/api/alert" : {
      "get" : {
        "operationId" : "get-api-alert",
        "summary" : "GET /api/alert",
        "description" : "Fetch alerts which the current user has created or will receive, or all alerts if the user is an admin.\n  The optional `user_id` will return alerts created by the corresponding user, but is ignored for non-admin users.",
        "parameters" : [ {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "user_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/alert" ]
      }
    },
    "/api/alert/{id}" : {
      "get" : {
        "operationId" : "get-api-alert-id",
        "summary" : "GET /api/alert/{id}",
        "description" : "Fetch an alert by ID",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/alert" ]
      }
    },
    "/api/alert/{id}/subscription" : {
      "delete" : {
        "operationId" : "delete-api-alert-id-subscription",
        "summary" : "DELETE /api/alert/{id}/subscription",
        "description" : "For users to unsubscribe themselves from the given alert.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/alert" ]
      }
    },
    "/api/analytics/anonymous-stats" : {
      "get" : {
        "operationId" : "get-api-analytics-anonymous-stats",
        "summary" : "GET /api/analytics/anonymous-stats",
        "description" : "Anonymous usage stats. Endpoint for testing, and eventually exposing this to instance admins to let them see\n  what is being phoned home.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/analytics" ]
      }
    },
    "/api/analytics/internal" : {
      "post" : {
        "operationId" : "post-api-analytics-internal",
        "summary" : "POST /api/analytics/internal",
        "description" : "Receive a batch of internal analytics events from the frontend and record them as Prometheus metrics.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "events" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "amount" : {
                          "oneOf" : [ {
                            "type" : "number"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "labels" : {
                          "oneOf" : [ {
                            "type" : "object",
                            "additionalProperties" : {
                              "type" : "string"
                            }
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "metric" : {
                          "type" : "string"
                        },
                        "op" : {
                          "type" : "string",
                          "enum" : [ "inc", "dec", "set", "observe", "clear" ]
                        }
                      },
                      "required" : [ "op", "metric" ]
                    }
                  }
                },
                "required" : [ "events" ]
              }
            }
          }
        },
        "tags" : [ "/api/analytics" ]
      }
    },
    "/api/api-key" : {
      "post" : {
        "operationId" : "post-api-api-key",
        "summary" : "POST /api/api-key",
        "description" : "Create a new API key (and an associated `User`) with the provided name and group ID.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "group_id" : {
                    "$ref" : "#/components/schemas/metabase.api-keys.schema.id"
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "group_id", "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/api-key" ]
      },
      "get" : {
        "operationId" : "get-api-api-key",
        "summary" : "GET /api/api-key",
        "description" : "Get a list of API keys with the default scope. Non-paginated.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/api-key/count" : {
      "get" : {
        "operationId" : "get-api-api-key-count",
        "summary" : "GET /api/api-key/count",
        "description" : "Get the count of API keys in the DB with the default scope.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/api-key/{id}" : {
      "put" : {
        "operationId" : "put-api-api-key-id",
        "summary" : "PUT /api/api-key/{id}",
        "description" : "Update an API key by changing its group and/or its name",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "group_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.api-keys.schema.name"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/api-key" ]
      },
      "delete" : {
        "operationId" : "delete-api-api-key-id",
        "summary" : "DELETE /api/api-key/{id}",
        "description" : "Delete an ApiKey",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.api-keys.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/api-key/{id}/regenerate" : {
      "put" : {
        "operationId" : "put-api-api-key-id-regenerate",
        "summary" : "PUT /api/api-key/{id}/regenerate",
        "description" : "Regenerate an API Key",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.api-keys.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "$ref" : "#/components/schemas/metabase.api-keys.schema.id"
                    },
                    "masked_key" : {
                      "$ref" : "#/components/schemas/metabase.api-keys.schema..key.masked"
                    },
                    "prefix" : {
                      "$ref" : "#/components/schemas/metabase.api-keys.schema.prefix"
                    },
                    "unmasked_key" : {
                      "$ref" : "#/components/schemas/metabase.api-keys.schema..key.raw"
                    }
                  },
                  "required" : [ "id", "unmasked_key", "masked_key", "prefix" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/automagic-dashboards/database/{id}/candidates" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-database-id-candidates",
        "summary" : "GET /api/automagic-dashboards/database/{id}/candidates",
        "description" : "Return a list of candidates for automagic dashboards ordered by interestingness.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-model_index-model-index-id-primary_key-pk-id",
        "summary" : "GET /api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}",
        "description" : "Return an automagic dashboard for an entity detail specified by `entity`\n  with id `id` and a primary key of `indexed-value`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "model-index-id",
          "required" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "pk-id",
          "required" : true,
          "schema" : {
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}",
        "description" : "Return an automagic dashboard for entity `entity` with id `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "const" : "all"
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}",
        "description" : "Return an automagic dashboard analyzing cell in automagic dashboard for entity `entity` defined by query\n  `cell-query`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "cell-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.base-64-encoded-json"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query-compare-comparison-entity-comparison-entity-id-or-query",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "description" : "Return an automagic comparison dashboard for cell in automagic dashboard for entity `entity`\n   with id `id` defined by query `cell-query`; compared with entity `comparison-entity` with id\n   `comparison-entity-id-or-query.`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "cell-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.base-64-encoded-json"
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "segment", "table" ]
          },
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\""
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/rule/{prefix}/{dashboard-template}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query-rule-prefix-dashboard-template",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/rule/{prefix}/{dashboard-template}",
        "description" : "Return an automagic dashboard analyzing cell in question with id `id` defined by query `cell-query` using\n  dashboard-template `dashboard-template`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : { }
        }, {
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { },
          "description" : "invalid value for dashboard template name"
        }, {
          "in" : "path",
          "name" : "cell-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.base-64-encoded-json"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/rule/{prefix}/{dashboard-template}/compare/{comparison-entity}/{comparison-entity-id-or-query}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query-rule-prefix-dashboard-template-compare-comparison-entity-comparison-entity-id-or-query",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/rule/{prefix}/{dashboard-template}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "description" : "Return an automagic comparison dashboard for cell in automagic dashboard for entity `entity`\n   with id `id` defined by query `cell-query` using dashboard-template `dashboard-template`; compared with entity\n   `comparison-entity` with id `comparison-entity-id-or-query.`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : { }
        }, {
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { },
          "description" : "invalid value for dashboard template name"
        }, {
          "in" : "path",
          "name" : "cell-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.base-64-encoded-json"
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "segment", "table" ]
          },
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\""
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-compare-comparison-entity-comparison-entity-id-or-query",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "description" : "Return an automagic comparison dashboard for entity `entity` with id `id` compared with entity `comparison-entity`\n  with id `comparison-entity-id-or-query.`",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "segment", "table" ]
          },
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\""
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/query_metadata" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-query_metadata",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/query_metadata",
        "description" : "Return all metadata for an automagic dashboard for entity `entity` with id `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-rule-prefix-dashboard-template",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}",
        "description" : "Return an automagic dashboard for entity `entity` with id `id` using dashboard-template `dashboard-template`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : { }
        }, {
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { },
          "description" : "invalid value for dashboard template name"
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}/compare/{comparison-entity}/{comparison-entity-id-or-query}" : {
      "get" : {
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-rule-prefix-dashboard-template-compare-comparison-entity-comparison-entity-id-or-query",
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "description" : "Return an automagic comparison dashboard for entity `entity` with id `id` using dashboard-template\n  `dashboard-template`; compared with entity `comparison-entity` with id `comparison-entity-id-or-query.`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : { }
        }, {
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { },
          "description" : "invalid value for dashboard template name"
        }, {
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "adhoc", "segment", "table" ]
          },
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\""
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string",
                "enum" : [ "all" ]
              }, {
                "type" : "integer",
                "minimum" : 0
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "invalid show value"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/bookmark" : {
      "get" : {
        "operationId" : "get-api-bookmark",
        "summary" : "GET /api/bookmark",
        "description" : "Fetch all bookmarks for the user",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/bookmark" ]
      }
    },
    "/api/bookmark/ordering" : {
      "put" : {
        "operationId" : "put-api-bookmark-ordering",
        "summary" : "PUT /api/bookmark/ordering",
        "description" : "Sets the order of bookmarks for user.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "orderings" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "item_id" : {
                          "description" : "value must be an integer greater than zero.",
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "type" : {
                          "type" : "string",
                          "enum" : [ "card", "dashboard", "collection", "document" ]
                        }
                      },
                      "required" : [ "type", "item_id" ]
                    }
                  }
                },
                "required" : [ "orderings" ]
              }
            }
          }
        },
        "tags" : [ "/api/bookmark" ]
      }
    },
    "/api/bookmark/{model}/{id}" : {
      "post" : {
        "operationId" : "post-api-bookmark-model-id",
        "summary" : "POST /api/bookmark/{model}/{id}",
        "description" : "Create a new bookmark for user.",
        "parameters" : [ {
          "in" : "path",
          "name" : "model",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "card", "dashboard", "collection", "document" ]
          }
        }, {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/bookmark" ]
      },
      "delete" : {
        "operationId" : "delete-api-bookmark-model-id",
        "summary" : "DELETE /api/bookmark/{model}/{id}",
        "description" : "Delete a bookmark. Will delete a bookmark assigned to the user making the request by model and id.",
        "parameters" : [ {
          "in" : "path",
          "name" : "model",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "card", "dashboard", "collection", "document" ]
          }
        }, {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/bookmark" ]
      }
    },
    "/api/bug-reporting/connection-pool-details" : {
      "get" : {
        "operationId" : "get-api-bug-reporting-connection-pool-details",
        "summary" : "GET /api/bug-reporting/connection-pool-details",
        "description" : "Returns database connection pool info for the current Metabase instance.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/bug-reporting" ]
      }
    },
    "/api/bug-reporting/details" : {
      "get" : {
        "operationId" : "get-api-bug-reporting-details",
        "summary" : "GET /api/bug-reporting/details",
        "description" : "Returns version and system information relevant to filing a bug report against Metabase.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/bug-reporting" ]
      }
    },
    "/api/cache" : {
      "get" : {
        "operationId" : "get-api-cache",
        "summary" : "GET /api/cache",
        "description" : "Return cache configuration. Supports pagination via `limit` and `offset` query parameters,\n   and sorting via `sort_column` and `sort_direction`.",
        "parameters" : [ {
          "in" : "query",
          "name" : "model",
          "required" : true,
          "schema" : {
            "default" : [ "root" ],
            "type" : "array",
            "items" : {
              "type" : "string",
              "enum" : [ "root", "database", "dashboard", "question" ]
            }
          },
          "description" : "Type of model"
        }, {
          "in" : "query",
          "name" : "collection",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "description" : "Collection id to filter results. Returns everything if not supplied."
        }, {
          "in" : "query",
          "name" : "id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          },
          "description" : "Model id to get configuration for."
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : true,
          "schema" : {
            "default" : "name",
            "type" : "string",
            "enum" : [ "name", "policy", "collection" ]
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : true,
          "schema" : {
            "default" : "asc",
            "type" : "string",
            "enum" : [ "asc", "desc" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.cache.api.cache-config-list-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/cache" ]
      },
      "put" : {
        "operationId" : "put-api-cache",
        "summary" : "PUT /api/cache",
        "description" : "Store cache configuration.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.cache.api.cache-config-store-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "model" : {
                    "type" : "string",
                    "enum" : [ "root", "database", "dashboard", "question" ]
                  },
                  "model_id" : {
                    "description" : "value must be an integer greater or equal to than zero.",
                    "type" : "integer",
                    "minimum" : 0
                  },
                  "strategy" : {
                    "$ref" : "#/components/schemas/metabase.cache.api.cache-strategy"
                  }
                },
                "required" : [ "model", "model_id", "strategy" ]
              }
            }
          }
        },
        "tags" : [ "/api/cache" ]
      },
      "delete" : {
        "operationId" : "delete-api-cache",
        "summary" : "DELETE /api/cache",
        "description" : "Delete cache configurations.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "model" : {
                    "type" : "string",
                    "enum" : [ "root", "database", "dashboard", "question" ]
                  },
                  "model_id" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "type" : "integer",
                      "minimum" : 0
                    }
                  }
                },
                "required" : [ "model", "model_id" ]
              }
            }
          }
        },
        "tags" : [ "/api/cache" ]
      }
    },
    "/api/cache/invalidate" : {
      "post" : {
        "operationId" : "post-api-cache-invalidate",
        "summary" : "POST /api/cache/invalidate",
        "description" : "Invalidate cache entries.\n\n  Use it like `/api/cache/invalidate?database=1&dashboard=15` (any number of database/dashboard/question can be\n  supplied).\n\n  `&include=overrides` controls whenever you want to invalidate cache for a specific cache configuration without\n  touching all nested configurations, or you want your invalidation to trickle down to every card.",
        "parameters" : [ {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "const" : "overrides"
            }, {
              "type" : "null"
            } ]
          },
          "description" : "All cache configuration overrides should invalidate cache too"
        }, {
          "in" : "query",
          "name" : "database",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          },
          "description" : "A list of database ids"
        }, {
          "in" : "query",
          "name" : "dashboard",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          },
          "description" : "A list of dashboard ids"
        }, {
          "in" : "query",
          "name" : "question",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          },
          "description" : "A list of question ids"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.cache.api.cache-invalidate-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/cache" ]
      }
    },
    "/api/card" : {
      "get" : {
        "operationId" : "get-api-card",
        "summary" : "GET /api/card",
        "description" : "Get all the Cards. Option filter param `f` can be used to change the set of Cards that are returned; default is\n  `all`, but other options include `mine`, `bookmarked`, `database`, `table`, `using_model`, `using_segment`, and\n  `archived`. See corresponding implementation functions above for the specific behavior of each filter\n  option. :card_index:",
        "parameters" : [ {
          "in" : "query",
          "name" : "f",
          "required" : true,
          "schema" : {
            "default" : "all",
            "type" : "string",
            "enum" : [ "archived", "table", "using_model", "bookmarked", "using_segment", "all", "mine", "database" ]
          }
        }, {
          "in" : "query",
          "name" : "model_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      },
      "post" : {
        "operationId" : "post-api-card",
        "summary" : "POST /api/card",
        "description" : "Create a new `Card`. Card `type` can be `question`, `metric`, or `model`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "visualization_settings" : {
                    "description" : "Value must be a map.",
                    "type" : "object",
                    "properties" : { }
                  },
                  "dashboard_tab_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "entity_id" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dataset_query" : {
                    "description" : "Value must be a map.",
                    "type" : "object",
                    "properties" : { }
                  },
                  "parameter_mappings" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "result_metadata" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "description" : "String must be a valid 21-character NanoID string.",
                        "type" : "string",
                        "pattern" : "^[A-Za-z0-9_\\-]{21}$"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.queries.schema.card-type"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "display" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name", "dataset_query", "display", "visualization_settings" ]
              }
            }
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/collections" : {
      "post" : {
        "operationId" : "post-api-card-collections",
        "summary" : "POST /api/card/collections",
        "description" : "Bulk update endpoint for Card Collections. Move a set of `Cards` with `card_ids` into a `Collection` with\n  `collection_id`, or remove them from any Collections by passing a `null` `collection_id`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "card_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "card_ids" ]
              }
            }
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/embeddable" : {
      "get" : {
        "operationId" : "get-api-card-embeddable",
        "summary" : "GET /api/card/embeddable",
        "description" : "Fetch a list of Cards where `enable_embedding` is `true`. The cards can be embedded using the embedding endpoints\n  and a signed JWT.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/pivot/{card-id}/query" : {
      "post" : {
        "operationId" : "post-api-card-pivot-card-id-query",
        "summary" : "POST /api/card/pivot/{card-id}/query",
        "description" : "Run the query associated with a Card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "ignore_cache" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/public" : {
      "get" : {
        "operationId" : "get-api-card-public",
        "summary" : "GET /api/card/public",
        "description" : "Fetch a list of Cards with public UUIDs. These cards are publicly-accessible *if* public sharing is enabled.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/params/{param-key}/search/{query}" : {
      "get" : {
        "operationId" : "get-api-card-card-id-params-param-key-search-query",
        "summary" : "GET /api/card/{card-id}/params/{param-key}/search/{query}",
        "description" : "Fetch possible values of the parameter whose ID is `:param-key` that contain `:query`.\n\n    ;; fetch values for Card 1 parameter 'abc' that contain 'Orange';\n     GET /api/queries/1/params/abc/search/Orange\n\n  Currently limited to first 1000 results.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          }
        }, {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-card-card-id-params-param-key-values",
        "summary" : "GET /api/card/{card-id}/params/{param-key}/values",
        "description" : "Fetch possible values of the parameter whose ID is `:param-key`.\n\n    ;; fetch values for Card 1 parameter 'abc' that are possible\n    GET /api/queries/1/params/abc/values",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/public_link" : {
      "post" : {
        "operationId" : "post-api-card-card-id-public_link",
        "summary" : "POST /api/card/{card-id}/public_link",
        "description" : "Generate publicly-accessible links for this Card. Returns UUID to be used in public links. (If this Card has\n  already been shared, it will return the existing public link rather than creating a new one.)  Public sharing must\n  be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      },
      "delete" : {
        "operationId" : "delete-api-card-card-id-public_link",
        "summary" : "DELETE /api/card/{card-id}/public_link",
        "description" : "Delete the publicly-accessible link to this Card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/query" : {
      "post" : {
        "operationId" : "post-api-card-card-id-query",
        "summary" : "POST /api/card/{card-id}/query",
        "description" : "Run the query associated with a Card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collection_preview" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "ignore_cache" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "ignore_cache" ]
              }
            }
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/query/{export-format}" : {
      "post" : {
        "operationId" : "post-api-card-card-id-query-export-format",
        "summary" : "POST /api/card/{card-id}/query/{export-format}",
        "description" : "Run the query associated with a Card, and return its results as a file in the specified format.\n\n  `parameters`, `pivot-results?` and `format-rows?` should be passed as application/x-www-form-urlencoded form content\n  or json in the body. This is because this endpoint is normally used to power 'Download Results' buttons that use\n  HTML `form` actions).",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "additionalProperties" : { }
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ]
              }
            }
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}" : {
      "get" : {
        "operationId" : "get-api-card-id",
        "summary" : "GET /api/card/{id}",
        "description" : "Get `Card` with ID.\n\n  As of v57, returns the MBQL query (`dataset_query`) as MBQL 5; to return the query as MBQL 4 (aka legacy MBQL)\n  instead, you can specify `?legacy-mbql=true`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "legacy-mbql",
          "required" : false,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      },
      "put" : {
        "operationId" : "put-api-card-id",
        "summary" : "PUT /api/card/{id}",
        "description" : "Update a `Card`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "delete_old_dashcards",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "enable_embedding" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "visualization_settings" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_tab_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_preview" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dataset_query" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter_mappings" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_type" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_params" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid embedding params map.",
                      "oneOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string",
                          "enum" : [ "disabled", "enabled", "locked" ]
                        }
                      }, {
                        "type" : "null"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "result_metadata" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.queries.schema.card-type"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "display" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/card" ]
      },
      "delete" : {
        "operationId" : "delete-api-card-id",
        "summary" : "DELETE /api/card/{id}",
        "description" : "Hard delete a Card. To soft delete, use `PUT /api/queries/:id`",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/copy" : {
      "post" : {
        "operationId" : "post-api-card-id-copy",
        "summary" : "POST /api/card/{id}/copy",
        "description" : "Copy a `Card`, with the new name 'Copy of _name_'",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/dashboards" : {
      "get" : {
        "operationId" : "get-api-card-id-dashboards",
        "summary" : "GET /api/card/{id}/dashboards",
        "description" : "Get a list of `{:name ... :id ...}` pairs for all the dashboards this card appears in.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-card-id-params-param-key-remapping",
        "summary" : "GET /api/card/{id}/params/{param-key}/remapping",
        "description" : "Fetch the remapped value for a given value of the parameter with ID `:param-key`.\n\n    ;; fetch the remapped value for Card 1 parameter 'abc' for value 100\n    GET /api/queries/1/params/abc/remapping?value=100",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/query_metadata" : {
      "get" : {
        "operationId" : "get-api-card-id-query_metadata",
        "summary" : "GET /api/card/{id}/query_metadata",
        "description" : "Get all of the required query metadata for a card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/series" : {
      "get" : {
        "operationId" : "get-api-card-id-series",
        "summary" : "GET /api/card/{id}/series",
        "description" : "Fetches a list of compatible series with the card with id `card_id`.\n\n  - `last_cursor` with value is the id of the last card from the previous page to fetch the next page.\n  - `query` to search card by name.\n  - `exclude_ids` to filter out a list of card ids",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "last_cursor",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "exclude_ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/card" ]
      }
    },
    "/api/cards/dashboards" : {
      "post" : {
        "operationId" : "post-api-cards-dashboards",
        "summary" : "POST /api/cards/dashboards",
        "description" : "Get the dashboards that multiple cards appear in. The response is a sequence of maps, each of which has a `card_id`\n  and `dashboards`. `dashboard` may include an `:error` key, either `:unreadable-dashboard` or\n  `:unwritable-dashboard`. In the case of an `unreadable-dashboard` the dashboard details (name, ID) will NOT be\n  present.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "card_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  }
                },
                "required" : [ "card_ids" ]
              }
            }
          }
        },
        "tags" : [ "/api/cards" ]
      }
    },
    "/api/cards/move" : {
      "post" : {
        "operationId" : "post-api-cards-move",
        "summary" : "POST /api/cards/move",
        "description" : "Moves a number of Cards to a single collection or dashboard.\n\n  For now, just either succeed or fail as a batch - we can think more about error handling later down the road.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "card_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "card_ids" ]
              }
            }
          }
        },
        "tags" : [ "/api/cards" ]
      }
    },
    "/api/channel" : {
      "get" : {
        "operationId" : "get-api-channel",
        "summary" : "GET /api/channel",
        "description" : "Get all channels",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "include_inactive" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/channel" ]
      },
      "post" : {
        "operationId" : "post-api-channel",
        "summary" : "POST /api/channel",
        "description" : "Create a channel",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "active" : {
                    "default" : true,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "type" : "object",
                    "properties" : { }
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "type" : {
                    "description" : "Must be a namespaced channel. E.g: channel/http"
                  }
                },
                "required" : [ "name", "type", "details" ]
              }
            }
          }
        },
        "tags" : [ "/api/channel" ]
      }
    },
    "/api/channel/test" : {
      "post" : {
        "operationId" : "post-api-channel-test",
        "summary" : "POST /api/channel/test",
        "description" : "Test a channel connection",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "details" : {
                    "type" : "object",
                    "properties" : { }
                  },
                  "type" : {
                    "description" : "Must be a namespaced channel. E.g: channel/http"
                  }
                },
                "required" : [ "type", "details" ]
              }
            }
          }
        },
        "tags" : [ "/api/channel" ]
      }
    },
    "/api/channel/{id}" : {
      "get" : {
        "operationId" : "get-api-channel-id",
        "summary" : "GET /api/channel/{id}",
        "description" : "Get a channel",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/channel" ]
      },
      "put" : {
        "operationId" : "put-api-channel-id",
        "summary" : "PUT /api/channel/{id}",
        "description" : "Update a channel",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "active" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "description" : "Must be a namespaced channel. E.g: channel/http"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/channel" ]
      }
    },
    "/api/cloud-migration" : {
      "post" : {
        "operationId" : "post-api-cloud-migration",
        "summary" : "POST /api/cloud-migration",
        "description" : "Initiate a new cloud migration.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/cloud-migration" ]
      },
      "get" : {
        "operationId" : "get-api-cloud-migration",
        "summary" : "GET /api/cloud-migration",
        "description" : "Get the latest cloud migration, if any.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/cloud-migration" ]
      }
    },
    "/api/cloud-migration/cancel" : {
      "put" : {
        "operationId" : "put-api-cloud-migration-cancel",
        "summary" : "PUT /api/cloud-migration/cancel",
        "description" : "Cancel any ongoing cloud migrations, if any.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/cloud-migration" ]
      }
    },
    "/api/collection" : {
      "get" : {
        "operationId" : "get-api-collection",
        "summary" : "GET /api/collection",
        "description" : "Fetch a list of all Collections that the current user has read permissions for (`:can_write` is returned as an\n  additional property of each Collection so you can tell which of these you have write permissions for.)\n\n  By default, this returns non-archived Collections, but instead you can show archived ones by passing\n  `?archived=true`.\n\n  By default, admin users will see all collections. To hide other user's collections pass in\n  `?exclude-other-user-collections=true`.\n\n  If personal-only is `true`, then return only personal collections where `personal_owner_id` is not `nil`.",
        "parameters" : [ {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "exclude-other-user-collections",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "personal-only",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      },
      "post" : {
        "operationId" : "post-api-collection",
        "summary" : "POST /api/collection",
        "description" : "Create a new Collection.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "authority_level" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "official" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "namespace" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parent_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/graph" : {
      "get" : {
        "operationId" : "get-api-collection-graph",
        "summary" : "GET /api/collection/graph",
        "description" : "Fetch a graph of all Collection Permissions.",
        "parameters" : [ {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      },
      "put" : {
        "operationId" : "put-api-collection-graph",
        "summary" : "PUT /api/collection/graph",
        "description" : "Do a batch update of Collections Permissions by passing in a modified graph. Will overwrite parts of the graph that\n  are present in the request, and leave the rest unchanged.\n\n  If the `force` query parameter is `true`, a `revision` number is not required. The provided graph will be persisted\n  as-is, and has the potential to clobber other writes that happened since the last read.\n\n  If the `skip_graph` query parameter is `true`, it will only return the current revision, not the entire permissions\n  graph.",
        "parameters" : [ {
          "in" : "query",
          "name" : "force",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "skip-graph",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "groups" : {
                    "type" : "object",
                    "properties" : { }
                  },
                  "namespace" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "revision" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer.",
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "groups" ]
              }
            }
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root" : {
      "get" : {
        "operationId" : "get-api-collection-root",
        "summary" : "GET /api/collection/root",
        "description" : "Return the 'Root' Collection object with standard details added",
        "parameters" : [ {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root/dashboard-question-candidates" : {
      "get" : {
        "operationId" : "get-api-collection-root-dashboard-question-candidates",
        "summary" : "GET /api/collection/root/dashboard-question-candidates",
        "description" : "Find cards in the root collection that can be moved into dashboards in the root collection. (Same as the above\n  endpoint, but for the root collection)",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.DashboardQuestionCandidatesResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root/items" : {
      "get" : {
        "operationId" : "get-api-collection-root-items",
        "summary" : "GET /api/collection/root/items",
        "description" : "Fetch objects that the current user should see at their root level. As mentioned elsewhere, the 'Root' Collection\n  doesn't actually exist as a row in the application DB: it's simply a virtual Collection where things with no\n  `collection_id` exist. It does, however, have its own set of Permissions.\n\n  This endpoint will actually show objects with no `collection_id` for Users that have Root Collection\n  permissions, but for people without Root Collection perms, we'll just show the objects that have an effective\n  location of `/`.\n\n  This endpoint is intended to power a 'Root Folder View' for the Current User, so regardless you'll see all the\n  top-level objects you're allowed to access.\n\n  By default, this will show the 'normal' Collections namespace; to view a different Collections namespace, such as\n  `snippets`, you can pass the `?namespace=` parameter.\n\n  By default, library collections are excluded from the results; to include them, pass `?include_library=true`.\n\n  Note that this endpoint should return results in a similar shape to `/api/dashboard/:id/items`, so if this is\n  changed, that should too.",
        "parameters" : [ {
          "in" : "query",
          "name" : "models",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "dashboard", "table", "dataset", "no_models", "timeline", "snippet", "collection", "transform", "document", "pulse", "metric", "card" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "collection_type",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "remote-synced" ]
          }
        }, {
          "in" : "query",
          "name" : "include_can_run_adhoc_query",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_library",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "pinned_state",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "is_not_pinned", "is_pinned", "all" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "model", "name", "last_edited_by", "last_edited_at", "description" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "desc", "asc" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "official_collections_first",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "show_dashboard_questions",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root/move-dashboard-question-candidates" : {
      "post" : {
        "operationId" : "post-api-collection-root-move-dashboard-question-candidates",
        "summary" : "POST /api/collection/root/move-dashboard-question-candidates",
        "description" : "Move candidate cards to the dashboards they appear in (for the root collection)",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.MoveDashboardQuestionCandidatesResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "card_ids" : {
                      "type" : "array",
                      "items" : {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "uniqueItems" : true
                    }
                  }
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/trash" : {
      "get" : {
        "operationId" : "get-api-collection-trash",
        "summary" : "GET /api/collection/trash",
        "description" : "Fetch the trash collection, as in `/api/collection/:trash-id`",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/tree" : {
      "get" : {
        "operationId" : "get-api-collection-tree",
        "summary" : "GET /api/collection/tree",
        "description" : "Similar to `GET /`, but returns Collections in a tree structure, e.g.\n\n  ```\n  [{:name     \"A\"\n  :below    #{:card :dataset}\n  :children [{:name \"B\"}\n             {:name     \"C\"\n              :here     #{:dataset :card}\n              :below    #{:dataset :card}\n              :children [{:name     \"D\"\n                          :here     #{:dataset}\n                          :children [{:name \"E\"}]}\n                         {:name     \"F\"\n                          :here     #{:card}\n                          :children [{:name \"G\"}]}]}]}\n  {:name \"H\"}]\n  ```\n\n  The here and below keys indicate the types of items at this particular level of the tree (here) and in its\n  subtree (below).\n\n  TODO: for historical reasons this returns Saved Questions AS 'card' AND Models as 'dataset'; we should fix this at\n  some point in the future.\n\n  By default, looks at the `analytics` (if enabled) and regular (`nil`) namespaces. You can optionally pass a\n  `namespace` argument, or one or many `namespaces`, to specify the particular collection namespaces you wish to look\n  at. For example, `namespaces=analytics&namespaces=` would match the default behavior.\n\n  When `shallow` is true, takes an optional `collection-id` and returns only the requested collection (or\n  the root, if `collection-id` is `nil`).",
        "parameters" : [ {
          "in" : "query",
          "name" : "exclude-archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "exclude-other-user-collections",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include-library",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "namespaces",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "shallow",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "collection-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}" : {
      "get" : {
        "operationId" : "get-api-collection-id",
        "summary" : "GET /api/collection/{id}",
        "description" : "Fetch a specific Collection with standard details added",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      },
      "put" : {
        "operationId" : "put-api-collection-id",
        "summary" : "PUT /api/collection/{id}",
        "description" : "Modify an existing Collection, including archiving or unarchiving it, or moving it.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "authority_level" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "official" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parent_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "remote-synced" ]
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "archived" ]
              }
            }
          }
        },
        "tags" : [ "/api/collection" ]
      },
      "delete" : {
        "operationId" : "delete-api-collection-id",
        "summary" : "DELETE /api/collection/{id}",
        "description" : "Deletes a collection permanently",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}/dashboard-question-candidates" : {
      "get" : {
        "operationId" : "get-api-collection-id-dashboard-question-candidates",
        "summary" : "GET /api/collection/{id}/dashboard-question-candidates",
        "description" : "Find cards in this collection that can be moved into dashboards in this collection.\n\n  To be eligible, a card must only appear in one dashboard (which is also in this collection), and must not already be a\n  dashboard question.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.DashboardQuestionCandidatesResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}/items" : {
      "get" : {
        "operationId" : "get-api-collection-id-items",
        "summary" : "GET /api/collection/{id}/items",
        "description" : "Fetch a specific Collection's items with the following options:\n\n  *  `models` - only include objects of a specific set of `models`. If unspecified, returns objects of all models\n  *  `archived` - when `true`, return archived objects *instead* of unarchived ones. Defaults to `false`.\n  *  `pinned_state` - when `is_pinned`, return pinned objects only.\n                   when `is_not_pinned`, return non pinned objects only.\n                   when `all`, return everything. By default returns everything.\n  *  `include_can_run_adhoc_query` - when this is true hydrates the `can_run_adhoc_query` flag on card models\n\n  Note that this endpoint should return results in a similar shape to `/api/dashboard/:id/items`, so if this is\n  changed, that should too.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "models",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "dashboard", "table", "dataset", "no_models", "timeline", "snippet", "collection", "transform", "document", "pulse", "metric", "card" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_can_run_adhoc_query",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "pinned_state",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "is_not_pinned", "is_pinned", "all" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "model", "name", "last_edited_by", "last_edited_at", "description" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "desc", "asc" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "official_collections_first",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "show_dashboard_questions",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}/move-dashboard-question-candidates" : {
      "post" : {
        "operationId" : "post-api-collection-id-move-dashboard-question-candidates",
        "summary" : "POST /api/collection/{id}/move-dashboard-question-candidates",
        "description" : "Move candidate cards to the dashboards they appear in.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.MoveDashboardQuestionCandidatesResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "card_ids" : {
                      "type" : "array",
                      "items" : {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "uniqueItems" : true
                    }
                  }
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/comment" : {
      "get" : {
        "operationId" : "get-api-comment",
        "summary" : "GET /api/comment",
        "description" : "Get comments for an entity",
        "parameters" : [ {
          "in" : "query",
          "name" : "target_type",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "document" ]
          }
        }, {
          "in" : "query",
          "name" : "target_id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/comment" ]
      },
      "post" : {
        "operationId" : "post-api-comment",
        "summary" : "POST /api/comment",
        "description" : "Create a new comment",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "child_target_id" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "content" : {
                    "type" : "object"
                  },
                  "parent_comment_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "target_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "target_type" : {
                    "type" : "string",
                    "enum" : [ "document" ]
                  }
                },
                "required" : [ "target_type", "target_id", "content" ]
              }
            }
          }
        },
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/comment/mentions" : {
      "get" : {
        "operationId" : "get-api-comment-mentions",
        "summary" : "GET /api/comment/mentions",
        "description" : "Get a list of entities suitable for mentions. NOTE: only users for now.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/comment/{comment-id}" : {
      "put" : {
        "operationId" : "put-api-comment-comment-id",
        "summary" : "PUT /api/comment/{comment-id}",
        "description" : "Update a comment",
        "parameters" : [ {
          "in" : "path",
          "name" : "comment-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "content" : {
                    "type" : "object"
                  },
                  "is_resolved" : {
                    "type" : "boolean"
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/comment" ]
      },
      "delete" : {
        "operationId" : "delete-api-comment-comment-id",
        "summary" : "DELETE /api/comment/{comment-id}",
        "description" : "Soft delete a comment",
        "parameters" : [ {
          "in" : "path",
          "name" : "comment-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/comment/{comment-id}/reaction" : {
      "post" : {
        "operationId" : "post-api-comment-comment-id-reaction",
        "summary" : "POST /api/comment/{comment-id}/reaction",
        "description" : "Toggle a reaction on a comment",
        "parameters" : [ {
          "in" : "path",
          "name" : "comment-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "emoji" : {
                    "type" : "string",
                    "minLength" : 1,
                    "maxLength" : 10
                  }
                },
                "required" : [ "emoji" ]
              }
            }
          }
        },
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/dashboard" : {
      "get" : {
        "operationId" : "get-api-dashboard",
        "summary" : "GET /api/dashboard",
        "description" : "This endpoint is currently unused by the Metabase frontend and may be out of date with the rest of the application.\n  It only exists for backwards compatibility and may be removed in the future.\n\n  Get `Dashboards`. With filter option `f` (default `all`), restrict results as follows:\n  *  `all`      - Return all Dashboards.\n  *  `mine`     - Return Dashboards created by the current user.\n  *  `archived` - Return Dashboards that have been archived. (By default, these are *excluded*.)",
        "parameters" : [ {
          "in" : "query",
          "name" : "f",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "all", "mine", "archived" ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "deprecated" : true,
        "tags" : [ "/api/dashboard" ]
      },
      "post" : {
        "operationId" : "post-api-dashboard",
        "summary" : "POST /api/dashboard",
        "description" : "Create a new Dashboard.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/embeddable" : {
      "get" : {
        "operationId" : "get-api-dashboard-embeddable",
        "summary" : "GET /api/dashboard/embeddable",
        "description" : "Fetch a list of Dashboards where `enable_embedding` is `true`. The dashboards can be embedded using the embedding\n  endpoints and a signed JWT.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/params/valid-filter-fields" : {
      "get" : {
        "operationId" : "get-api-dashboard-params-valid-filter-fields",
        "summary" : "GET /api/dashboard/params/valid-filter-fields",
        "description" : "Utility endpoint for powering Dashboard UI. Given some set of `filtered` Field IDs (presumably Fields used in\n  parameters) and a set of `filtering` Field IDs that will be used to restrict values of `filtered` Fields, for each\n  `filtered` Field ID return the subset of `filtering` Field IDs that would actually be used in a chain filter query\n  with these Fields.\n\n  e.g. in a chain filter query like\n\n  GET /api/dashboard/10/params/PARAM_1/values?PARAM_2=100\n\n  Assume `PARAM_1` maps to Field 1 and `PARAM_2` maps to Fields 2 and 3. The underlying MBQL query may or may not\n  filter against Fields 2 and 3, depending on whether an FK relationship that lets us create a join against Field 1\n  can be found. You can use this endpoint to determine which of those Fields is actually used:\n\n  GET /api/dashboard/params/valid-filter-fields?filtered=1&filtering=2&filtering=3\n  ;; ->\n  {1 [2 3]}\n\n  Results are returned as a map of\n\n  `filtered` Field ID -> subset of `filtering` Field IDs that would be used in chain filter query",
        "parameters" : [ {
          "in" : "query",
          "name" : "filtered",
          "required" : true,
          "schema" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }
          }
        }, {
          "in" : "query",
          "name" : "filtering",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/pivot/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query" : {
      "post" : {
        "operationId" : "post-api-dashboard-pivot-dashboard-id-dashcard-dashcard-id-card-card-id-query",
        "summary" : "POST /api/dashboard/pivot/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query",
        "description" : "Run a pivot table query for a specific DashCard.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "description" : "value must be a parameter map with an 'id' key",
                        "allOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "id" : {
                              "type" : "string",
                              "minLength" : 1
                            }
                          },
                          "required" : [ "id" ]
                        }, {
                          "type" : "object",
                          "additionalProperties" : { }
                        } ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/public" : {
      "get" : {
        "operationId" : "get-api-dashboard-public",
        "summary" : "GET /api/dashboard/public",
        "description" : "Fetch a list of Dashboards with public UUIDs. These dashboards are publicly-accessible *if* public sharing is\n  enabled.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/save" : {
      "post" : {
        "operationId" : "post-api-dashboard-save",
        "summary" : "POST /api/dashboard/save",
        "description" : "Save a denormalized description of dashboard.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/save/collection/{parent-collection-id}" : {
      "post" : {
        "operationId" : "post-api-dashboard-save-collection-parent-collection-id",
        "summary" : "POST /api/dashboard/save/collection/{parent-collection-id}",
        "description" : "Save a denormalized description of dashboard into collection with ID `:parent-collection-id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "parent-collection-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query" : {
      "post" : {
        "operationId" : "post-api-dashboard-dashboard-id-dashcard-dashcard-id-card-card-id-query",
        "summary" : "POST /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query",
        "description" : "Run the query associated with a Saved Question (`Card`) in the context of a `Dashboard` that includes it.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "dashboard_load_id" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "description" : "value must be a parameter map with an 'id' key",
                        "allOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "id" : {
                              "type" : "string",
                              "minLength" : 1
                            }
                          },
                          "required" : [ "id" ]
                        }, {
                          "type" : "object",
                          "additionalProperties" : { }
                        } ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query/{export-format}" : {
      "post" : {
        "operationId" : "post-api-dashboard-dashboard-id-dashcard-dashcard-id-card-card-id-query-export-format",
        "summary" : "POST /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query/{export-format}",
        "description" : "Run the query associated with a Saved Question (`Card`) in the context of a `Dashboard` that includes it, and return\n  its results as a file in the specified format.\n\n  `parameters` should be passed as query parameter encoded as a serialized JSON string (this is because this endpoint\n  is normally used to power 'Download Results' buttons that use HTML `form` actions).",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "type" : "array",
                        "items" : {
                          "description" : "value must be a parameter map with an 'id' key",
                          "allOf" : [ {
                            "type" : "object",
                            "properties" : {
                              "id" : {
                                "type" : "string",
                                "minLength" : 1
                              }
                            },
                            "required" : [ "id" ]
                          }, {
                            "type" : "object",
                            "additionalProperties" : { }
                          } ]
                        }
                      }, {
                        "description" : "value must be a valid JSON string.",
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ]
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/execute" : {
      "get" : {
        "operationId" : "get-api-dashboard-dashboard-id-dashcard-dashcard-id-execute",
        "summary" : "GET /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/execute",
        "description" : "Fetches the values for filling in execution parameters. Pass PK parameters and values to select.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      },
      "post" : {
        "operationId" : "post-api-dashboard-dashboard-id-dashcard-dashcard-id-execute",
        "summary" : "POST /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/execute",
        "description" : "Execute the associated Action in the context of a `Dashboard` and `DashboardCard` that includes it.\n\n   `parameters` should be the mapped dashboard parameters with values.\n   `extra_parameters` should be the extra, user entered parameter values.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/public_link" : {
      "post" : {
        "operationId" : "post-api-dashboard-dashboard-id-public_link",
        "summary" : "POST /api/dashboard/{dashboard-id}/public_link",
        "description" : "Generate publicly-accessible links for this Dashboard. Returns UUID to be used in public links. (If this\n  Dashboard has already been shared, it will return the existing public link rather than creating a new one.) Public\n  sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      },
      "delete" : {
        "operationId" : "delete-api-dashboard-dashboard-id-public_link",
        "summary" : "DELETE /api/dashboard/{dashboard-id}/public_link",
        "description" : "Delete the publicly-accessible link to this Dashboard.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{from-dashboard-id}/copy" : {
      "post" : {
        "operationId" : "post-api-dashboard-from-dashboard-id-copy",
        "summary" : "POST /api/dashboard/{from-dashboard-id}/copy",
        "description" : "Copy a Dashboard.",
        "parameters" : [ {
          "in" : "path",
          "name" : "from-dashboard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_deep_copy" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "is_deep_copy" ]
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}" : {
      "get" : {
        "operationId" : "get-api-dashboard-id",
        "summary" : "GET /api/dashboard/{id}",
        "description" : "Get Dashboard with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      },
      "delete" : {
        "operationId" : "delete-api-dashboard-id",
        "summary" : "DELETE /api/dashboard/{id}",
        "description" : "Hard delete a Dashboard. To soft delete, use `PUT /api/dashboard/:id`\n\n  This will remove also any questions/models/segments/metrics that use this database.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      },
      "put" : {
        "operationId" : "put-api-dashboard-id",
        "summary" : "PUT /api/dashboard/{id}",
        "description" : "Update a Dashboard, and optionally the `dashcards` and `tabs` of a Dashboard. The request body should be a JSON object with the same\n  structure as the response from `GET /api/dashboard/:id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "enable_embedding" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "width" : {
                    "type" : "string",
                    "enum" : [ "fixed", "full" ]
                  },
                  "embedding_type" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "show_in_getting_started" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_params" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid embedding params map.",
                      "oneOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string",
                          "enum" : [ "disabled", "enabled", "locked" ]
                        }
                      }, {
                        "type" : "null"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "tabs" : {
                    "oneOf" : [ {
                      "description" : "value must be seq of maps in which ids are unique",
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "id" : {
                            "description" : "value must be an integer.",
                            "type" : "integer"
                          },
                          "name" : {
                            "type" : "string",
                            "minLength" : 1
                          }
                        },
                        "required" : [ "id", "name" ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashcards" : {
                    "oneOf" : [ {
                      "description" : "value must be seq of maps in which ids are unique",
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "col" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "type" : "integer",
                            "minimum" : 0
                          },
                          "id" : {
                            "type" : "integer"
                          },
                          "inline_parameters" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "type" : "string",
                                "minLength" : 1
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "parameter_mappings" : {
                            "oneOf" : [ {
                              "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "row" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "type" : "integer",
                            "minimum" : 0
                          },
                          "series" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "type" : "object"
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "size_x" : {
                            "description" : "value must be an integer greater than zero.",
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "size_y" : {
                            "description" : "value must be an integer greater than zero.",
                            "type" : "integer",
                            "minimum" : 1
                          }
                        },
                        "required" : [ "id", "size_x", "size_y", "row", "col" ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/cards" : {
      "put" : {
        "operationId" : "put-api-dashboard-id-cards",
        "summary" : "PUT /api/dashboard/{id}/cards",
        "description" : "(DEPRECATED -- Use the `PUT /api/dashboard/:id` endpoint instead.)\n   Update `Cards` and `Tabs` on a Dashboard. Request body should have the form:\n\n    {:cards        [{:id                 ... ; DashboardCard ID\n                     :size_x             ...\n                     :size_y             ...\n                     :row                ...\n                     :col                ...\n                     :parameter_mappings ...\n                     :series             [{:id 123\n                                           ...}]}\n                     ...]\n     :tabs [{:id       ... ; DashboardTab ID\n                     :name     ...}]}",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cards" : {
                    "description" : "value must be seq of maps in which ids are unique",
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "col" : {
                          "description" : "value must be an integer greater or equal to than zero.",
                          "type" : "integer",
                          "minimum" : 0
                        },
                        "id" : {
                          "type" : "integer"
                        },
                        "inline_parameters" : {
                          "oneOf" : [ {
                            "type" : "array",
                            "items" : {
                              "type" : "string",
                              "minLength" : 1
                            }
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "parameter_mappings" : {
                          "oneOf" : [ {
                            "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "row" : {
                          "description" : "value must be an integer greater or equal to than zero.",
                          "type" : "integer",
                          "minimum" : 0
                        },
                        "series" : {
                          "oneOf" : [ {
                            "type" : "array",
                            "items" : {
                              "type" : "object"
                            }
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "size_x" : {
                          "description" : "value must be an integer greater than zero.",
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "size_y" : {
                          "description" : "value must be an integer greater than zero.",
                          "type" : "integer",
                          "minimum" : 1
                        }
                      },
                      "required" : [ "id", "size_x", "size_y", "row", "col" ]
                    }
                  },
                  "tabs" : {
                    "oneOf" : [ {
                      "description" : "value must be seq of maps in which ids are unique",
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "id" : {
                            "description" : "value must be an integer.",
                            "type" : "integer"
                          },
                          "name" : {
                            "type" : "string",
                            "minLength" : 1
                          }
                        },
                        "required" : [ "id", "name" ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "cards" ]
              }
            }
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/items" : {
      "get" : {
        "operationId" : "get-api-dashboard-id-items",
        "summary" : "GET /api/dashboard/{id}/items",
        "description" : "Get Dashboard with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-dashboard-id-params-param-key-remapping",
        "summary" : "GET /api/dashboard/{id}/params/{param-key}/remapping",
        "description" : "Fetch the remapped value for a given value of the parameter with ID `:param-key`.\n\n    ;; fetch the remapped value for Dashboard 1 parameter 'abc' for value 100\n    GET /api/dashboard/1/params/abc/remapping?value=100",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/params/{param-key}/search/{query}" : {
      "get" : {
        "operationId" : "get-api-dashboard-id-params-param-key-search-query",
        "summary" : "GET /api/dashboard/{id}/params/{param-key}/search/{query}",
        "description" : "Fetch possible values of the parameter whose ID is `:param-key` that contain `:query`. Optionally restrict\n  these values by passing query parameters like `other-parameter=value` e.g.\n\n    ;; fetch values for Dashboard 1 parameter 'abc' that contain 'Cam' and are possible when parameter 'def' is set\n    ;; to 100\n     GET /api/dashboard/1/params/abc/search/Cam?def=100\n\n  Currently limited to first 1000 results.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-dashboard-id-params-param-key-values",
        "summary" : "GET /api/dashboard/{id}/params/{param-key}/values",
        "description" : "Fetch possible values of the parameter whose ID is `:param-key`. If the values come directly from a query, optionally\n  restrict these values by passing query parameters like `other-parameter=value` e.g.\n\n    ;; fetch values for Dashboard 1 parameter 'abc' that are possible when parameter 'def' is set to 100\n    GET /api/dashboard/1/params/abc/values?def=100",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/query_metadata" : {
      "get" : {
        "operationId" : "get-api-dashboard-id-query_metadata",
        "summary" : "GET /api/dashboard/{id}/query_metadata",
        "description" : "Get all of the required query metadata for the cards on dashboard.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "type" : "string",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/related" : {
      "get" : {
        "operationId" : "get-api-dashboard-id-related",
        "summary" : "GET /api/dashboard/{id}/related",
        "description" : "Return related entities.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/data-studio/table/discard-values" : {
      "post" : {
        "operationId" : "post-api-data-studio-table-discard-values",
        "summary" : "POST /api/data-studio/table/discard-values",
        "description" : "Batch version of /table/:id/discard_values. Takes an abstract table selection as /table/edit does.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/edit" : {
      "post" : {
        "operationId" : "post-api-data-studio-table-edit",
        "summary" : "POST /api/data-studio/table/edit",
        "description" : "Bulk updating tables.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : { },
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "data_authority" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.data-studio.api.table.data-authorities"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_layer" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.data-studio.api.table.data-layers"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "table_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "owner_email" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_user_id" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_source" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.data-studio.api.table.data-sources"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "schema_ids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "entity_type" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "database_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  }
                },
                "additionalProperties" : false
              }
            }
          }
        },
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/rescan-values" : {
      "post" : {
        "operationId" : "post-api-data-studio-table-rescan-values",
        "summary" : "POST /api/data-studio/table/rescan-values",
        "description" : "Batch version of /table/:id/rescan_values. Takes an abstract table selection as /table/edit does.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/selection" : {
      "post" : {
        "operationId" : "post-api-data-studio-table-selection",
        "summary" : "POST /api/data-studio/table/selection",
        "description" : "Gets information about selected tables",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-selection-info"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/sync-schema" : {
      "post" : {
        "operationId" : "post-api-data-studio-table-sync-schema",
        "summary" : "POST /api/data-studio/table/sync-schema",
        "description" : "Batch version of /table/:id/sync_schema. Takes an abstract table selection as /table/edit does.\n  - Currently checks policy before returning (so you might receive a 4xx on e.g. AuthZ policy failure)\n  - The sync itself is however, asynchronous. This call may return before all tables synced.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/database" : {
      "get" : {
        "operationId" : "get-api-database",
        "summary" : "GET /api/database",
        "description" : "Fetch all `Databases`.\n\n  * `include=tables` means we should hydrate the Tables belonging to each DB. Default: `false`.\n\n  * `saved` means we should include the saved questions virtual database. Default: `false`.\n\n  * `include_editable_data_model` will only include DBs for which the current user has data model editing\n    permissions. (If `include=tables`, this also applies to the list of tables in each DB). Should only be used if\n    Enterprise Edition code is available the advanced-permissions feature is enabled.\n\n  * `exclude_uneditable_details` will only include DBs for which the current user can edit the DB details. Has no\n    effect unless Enterprise Edition code is available and the advanced-permissions feature is enabled.\n\n  * `include_only_uploadable` will only include DBs into which Metabase can insert new data.\n\n  * `can-query` will only include DBs for which the current user has query permissions. Default: `false`.\n\n  * `can-write-metadata` will only include DBs for which the current user has data model editing permissions\n    for at least one table in the database. Default: `false`.\n\n  Independently of these flags, the implementation of [[metabase.models.interface/to-json]] for `:model/Database` in\n  [[metabase.warehouses.models.database]] uses the implementation of [[metabase.models.interface/can-write?]] for\n  `:model/Database` in [[metabase.warehouses.models.database]] to exclude the `details` field, if the requesting user\n  lacks permission to change the database details.",
        "parameters" : [ {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "const" : "tables"
            }, {
              "type" : "null"
            } ]
          },
          "description" : "include must be either empty or the value 'tables'"
        }, {
          "in" : "query",
          "name" : "include_analytics",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "saved",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "exclude_uneditable_details",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_only_uploadable",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "router_database_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-write-metadata",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      },
      "post" : {
        "operationId" : "post-api-database",
        "summary" : "POST /api/database",
        "description" : "Add a new `Database`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "provider_name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "is_on_demand" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "engine" : {
                    "description" : "value must be a valid database engine.",
                    "type" : "string",
                    "minLength" : 1
                  },
                  "details" : {
                    "description" : "Value must be a map.",
                    "type" : "object",
                    "properties" : { }
                  },
                  "is_full_sync" : {
                    "default" : true,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "connection_source" : {
                    "default" : "admin",
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "admin", "setup" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "auto_run_queries" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "schedules" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.sync.schedules.ExpandedSchedulesMap"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name", "engine", "details", "is_full_sync", "is_on_demand", "connection_source" ]
              }
            }
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/field-values" : {
      "get" : {
        "operationId" : "get-api-database-field-values",
        "summary" : "GET /api/database/field-values",
        "description" : "Get sampled field values for every field in the instance, streamed as a single\n  `{\"field_values\": [...]}` document. Each entry carries `field_id`, `values`,\n  optional `human_readable_values`, and `has_more_values`.\n\n  Only unconstrained (`:full`) FieldValues are included — sandboxed, impersonation, and\n  linked-filter variants are user-specific and would bypass their own enforcement\n  mechanisms in a bulk export. Pair with `GET /api/database/metadata` to resolve\n  `field_id` to table and field names. Response is streamed for efficiency with large\n  schemas.\n\n  Admin-only: this endpoint exposes cached values computed over the unrestricted\n  dataset, so it would leak data past sandbox / impersonation rules if served to\n  regular users.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.warehouses-rest.api.field-values-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/metadata" : {
      "get" : {
        "operationId" : "get-api-database-metadata",
        "summary" : "GET /api/database/metadata",
        "description" : "Get metadata (databases, tables, and fields) for all databases visible to the current user.\n  Returns a flat structure with three arrays: databases, tables, and fields.\n  Response is streamed for efficiency with large schemas.\n\n  Requires `View data` → `Can view` and `Create queries` → `Query builder only` (or\n  `Query builder and native`) permissions on each database and table.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.warehouses-rest.api.databases-metadata-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      },
      "post" : {
        "operationId" : "post-api-database-metadata",
        "summary" : "POST /api/database/metadata",
        "description" : "Import database/table/field metadata previously exported from `GET /api/database/metadata`.\n\n  Entities are matched by natural key — databases by `(name, engine)`, tables by\n  `(database, schema, name)`, fields by `(table, parent-path, name)` — so the numeric ids\n  in the payload are only used to link fields to their tables within the request.\n\n  Tables and fields that don't exist on the target are created when their parent\n  (database for tables; table for fields) is present on the target. Databases are\n  not auto-created — missing databases are reported instead. Field `fk_target_field_id`\n  is re-resolved through the natural-key lookup after all fields exist.\n\n  For matched entities, only user-editable metadata is written: table `description`;\n  field `description`, `semantic_type`, `coercion_strategy`, `effective_type`, and\n  `fk_target_field_id`. For newly-created fields, `base_type` and `database_type` are\n  also populated from the payload. Keys absent from the payload (including null values)\n  are left untouched on matched entities.\n\n  Processing is isolated per target database: each matched DB imports in its own\n  transaction so a failure on one DB does not roll back the others. DBs whose\n  transaction failed appear under `databases.failed` in the response along with\n  the error message; every other DB's tables, fields, and same-DB `fk_target_field_id`\n  references still commit. Cross-database `fk_target_field_id` references are\n  resolved in a final pass after all per-DB transactions have committed.\n\n  Returns counts of matched + created entities per type, a list of entities in the\n  payload that could not be placed (their parent was missing on the target), and,\n  when any DB failed, a `databases.failed` list naming each failed DB.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.warehouses-rest.api.metadata-import-report"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.warehouses-rest.api.databases-metadata-response"
              }
            }
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/sample_database" : {
      "post" : {
        "operationId" : "post-api-database-sample_database",
        "summary" : "POST /api/database/sample_database",
        "description" : "Add the sample database as a new `Database`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/validate" : {
      "post" : {
        "operationId" : "post-api-database-validate",
        "summary" : "POST /api/database/validate",
        "description" : "Validate that we can connect to a database given a set of details.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "details" : {
                    "type" : "object",
                    "properties" : {
                      "details" : {
                        "type" : "object",
                        "properties" : { }
                      },
                      "engine" : {
                        "description" : "value must be a valid database engine.",
                        "type" : "string",
                        "minLength" : 1
                      }
                    },
                    "required" : [ "engine", "details" ]
                  }
                },
                "required" : [ "details" ]
              }
            }
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}" : {
      "get" : {
        "operationId" : "get-api-database-id",
        "summary" : "GET /api/database/{id}",
        "description" : "Get a single Database with `id`. Optionally pass `?include=tables` or `?include=tables.fields` to include the Tables\n  belonging to this database, or the Tables and Fields, respectively. If the requestor has write permissions for the\n  DB\n   (i.e. is an admin or has data model permissions), then certain inferred secret values will also be included in the\n   returned details (see [[metabase.secrets.models.secret/expand-db-details-inferred-secret-values]] for full details).\n\n   Passing include_editable_data_model will only return tables for which the current user has data model editing\n   permissions, if Enterprise Edition code is available and a token with the advanced-permissions feature is present.\n   In addition, if the user has no data access for the DB (aka block permissions), it will return only the DB name, ID\n   and tables, with no additional metadata.\n\n   Independently of these flags, the implementation of [[metabase.models.interface/to-json]] for `:model/Database` in\n   [[metabase.warehouses.models.database]] uses the implementation of [[metabase.models.interface/can-write?]] for `:model/Database`\n   in [[metabase.warehouses.models.database]] to exclude the `details` field, if the requesting user lacks permission to change the\n   database details.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "tables", "tables.fields" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "exclude_uneditable_details",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      },
      "put" : {
        "operationId" : "put-api-database-id",
        "summary" : "PUT /api/database/{id}",
        "description" : "Update a `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "provider_name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "write_data_details" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "settings" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "engine" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid database engine.",
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "auto_run_queries" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "refingerprint" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "schedules" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.sync.schedules.ExpandedSchedulesMap"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/database" ]
      },
      "delete" : {
        "operationId" : "delete-api-database-id",
        "summary" : "DELETE /api/database/{id}",
        "description" : "Delete a `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/autocomplete_suggestions" : {
      "get" : {
        "operationId" : "get-api-database-id-autocomplete_suggestions",
        "summary" : "GET /api/database/{id}/autocomplete_suggestions",
        "description" : "Return a list of autocomplete suggestions for a given `prefix`, or `substring`. Should only specify one, but\n  `substring` will have priority if both are present.\n\n  This is intended for use with the ACE Editor when the User is typing raw SQL. Suggestions include matching `Tables`\n  and `Fields` in this `Database`.\n\n  Tables are returned in the format `[table_name \"Table\"]`;\n  When Fields have a semantic_type, they are returned in the format `[field_name \"table_name base_type semantic_type\"]`\n  When Fields lack a semantic_type, they are returned in the format `[field_name \"table_name base_type\"]`",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "prefix",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "substring",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/card_autocomplete_suggestions" : {
      "get" : {
        "operationId" : "get-api-database-id-card_autocomplete_suggestions",
        "summary" : "GET /api/database/{id}/card_autocomplete_suggestions",
        "description" : "Return a list of `Card` autocomplete suggestions for a given `query` in a given `Database`.\n\n  This is intended for use with the ACE Editor when the User is typing in a template tag for a `Card`, e.g. {{#...}}.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "include_dashboard_questions",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/discard_values" : {
      "post" : {
        "operationId" : "post-api-database-id-discard_values",
        "summary" : "POST /api/database/{id}/discard_values",
        "description" : "Discards all saved field values for this `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/dismiss_spinner" : {
      "post" : {
        "operationId" : "post-api-database-id-dismiss_spinner",
        "summary" : "POST /api/database/{id}/dismiss_spinner",
        "description" : "Manually set the initial sync status of the `Database` and corresponding\n  tables to be `complete` (see #20863)",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/fields" : {
      "get" : {
        "operationId" : "get-api-database-id-fields",
        "summary" : "GET /api/database/{id}/fields",
        "description" : "Get a list of all `Fields` in `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/healthcheck" : {
      "get" : {
        "operationId" : "get-api-database-id-healthcheck",
        "summary" : "GET /api/database/{id}/healthcheck",
        "description" : "Reports whether the database can currently connect",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "connection-type",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.driver.connection.connection-type"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/idfields" : {
      "get" : {
        "operationId" : "get-api-database-id-idfields",
        "summary" : "GET /api/database/{id}/idfields",
        "description" : "Get a list of all primary key `Fields` for `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/metadata" : {
      "get" : {
        "operationId" : "get-api-database-id-metadata",
        "summary" : "GET /api/database/{id}/metadata",
        "description" : "Get metadata about a `Database`, including all of its `Tables` and `Fields`. Returns DB, fields, and field values.\n  By default only non-hidden tables and fields are returned. Passing include_hidden=true includes them.\n\n  Passing include_editable_data_model will only return tables for which the current user has data model editing\n  permissions, if Enterprise Edition code is available and a token with the advanced-permissions feature is present.\n  In addition, if the user has no data access for the DB (aka block permissions), it will return only the DB name, ID\n  and tables, with no additional metadata.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_hidden",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "remove_inactive",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "skip_fields",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/rescan_values" : {
      "post" : {
        "operationId" : "post-api-database-id-rescan_values",
        "summary" : "POST /api/database/{id}/rescan_values",
        "description" : "Trigger a manual scan of the field values for this `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/schema" : {
      "get" : {
        "operationId" : "get-api-database-id-schema",
        "summary" : "GET /api/database/{id}/schema",
        "description" : "Return a list of Tables for a Database whose `schema` is `nil` or an empty string.\n\n  Optional filters:\n  - `can-query=true` - filter to only tables the user can query\n  - `can-write-metadata=true` - filter to only tables the user can edit metadata for",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_hidden",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-write-metadata",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/schema/{schema}" : {
      "get" : {
        "operationId" : "get-api-database-id-schema-schema",
        "summary" : "GET /api/database/{id}/schema/{schema}",
        "description" : "Returns a list of Tables for the given Database `id` and `schema`.\n\n  Optional filters:\n  - `can-query=true` - filter to only tables the user can query\n  - `can-write-metadata=true` - filter to only tables the user can edit metadata for",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "schema",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "include_hidden",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-write-metadata",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/schemas" : {
      "get" : {
        "operationId" : "get-api-database-id-schemas",
        "summary" : "GET /api/database/{id}/schemas",
        "description" : "Returns a list of all the schemas with tables found for the database `id`. Excludes schemas with no tables.\n\n  Optional filters:\n  - `can-query=true` - filter to only schemas containing tables the user can query\n  - `can-write-metadata=true` - filter to only schemas containing tables the user can edit metadata for",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_hidden",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-write-metadata",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/settings-available" : {
      "get" : {
        "operationId" : "get-api-database-id-settings-available",
        "summary" : "GET /api/database/{id}/settings-available",
        "description" : "Get all database-local settings and their availability for the given database.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "settings" : {
                      "$ref" : "#/components/schemas/metabase.warehouses-rest.api.available-settings"
                    }
                  },
                  "required" : [ "settings" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/sync_schema" : {
      "post" : {
        "operationId" : "post-api-database-id-sync_schema",
        "summary" : "POST /api/database/{id}/sync_schema",
        "description" : "Trigger a manual update of the schema metadata for this `Database`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/syncable_schemas" : {
      "get" : {
        "operationId" : "get-api-database-id-syncable_schemas",
        "summary" : "GET /api/database/{id}/syncable_schemas",
        "description" : "Returns a list of all syncable schemas found for the database `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/usage_info" : {
      "get" : {
        "operationId" : "get-api-database-id-usage_info",
        "summary" : "GET /api/database/{id}/usage_info",
        "description" : "Get usage info for a database.\n  Returns a map with keys are models and values are the number of entities that use this database.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/datasets" : {
      "get" : {
        "operationId" : "get-api-database-virtual-db-datasets",
        "summary" : "GET /api/database/{virtual-db}/datasets",
        "description" : "Returns a list of all the datasets found for the saved questions virtual database.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/datasets/{schema}" : {
      "get" : {
        "operationId" : "get-api-database-virtual-db-datasets-schema",
        "summary" : "GET /api/database/{virtual-db}/datasets/{schema}",
        "description" : "Returns a list of Tables for the datasets virtual database.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/metadata" : {
      "get" : {
        "operationId" : "get-api-database-virtual-db-metadata",
        "summary" : "GET /api/database/{virtual-db}/metadata",
        "description" : "Endpoint that provides metadata for the Saved Questions 'virtual' database. Used for fooling the frontend\n   and allowing it to treat the Saved Questions virtual DB just like any other database.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/schema/{schema}" : {
      "get" : {
        "operationId" : "get-api-database-virtual-db-schema-schema",
        "summary" : "GET /api/database/{virtual-db}/schema/{schema}",
        "description" : "Returns a list of Tables for the saved questions virtual database.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/schemas" : {
      "get" : {
        "operationId" : "get-api-database-virtual-db-schemas",
        "summary" : "GET /api/database/{virtual-db}/schemas",
        "description" : "Returns a list of all the schemas found for the saved questions virtual database.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/database" ]
      }
    },
    "/api/dataset" : {
      "post" : {
        "operationId" : "post-api-dataset",
        "summary" : "POST /api/dataset",
        "description" : "Execute a query and retrieve the results in the usual format. The query will not use the cache.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "database" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/native" : {
      "post" : {
        "operationId" : "post-api-dataset-native",
        "summary" : "POST /api/dataset/native",
        "description" : "Fetch a native version of an MBQL query.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "database" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "pretty" : {
                    "default" : true,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "database", "pretty" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/parameter/remapping" : {
      "post" : {
        "operationId" : "post-api-dataset-parameter-remapping",
        "summary" : "POST /api/dataset/parameter/remapping",
        "description" : "Return the remapped parameter values for cards or dashboards that are being edited.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "field_ids" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter" : {
                    "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
                  },
                  "value" : { }
                },
                "required" : [ "parameter", "value" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/parameter/search/{query}" : {
      "post" : {
        "operationId" : "post-api-dataset-parameter-search-query",
        "summary" : "POST /api/dataset/parameter/search/{query}",
        "description" : "Return parameter values for cards or dashboards that are being edited. Expects a query string at `?query=foo`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "field_ids" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter" : {
                    "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
                  }
                },
                "required" : [ "parameter" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/parameter/values" : {
      "post" : {
        "operationId" : "post-api-dataset-parameter-values",
        "summary" : "POST /api/dataset/parameter/values",
        "description" : "Return parameter values for cards or dashboards that are being edited.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "field_ids" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter" : {
                    "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
                  }
                },
                "required" : [ "parameter" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/pivot" : {
      "post" : {
        "operationId" : "post-api-dataset-pivot",
        "summary" : "POST /api/dataset/pivot",
        "description" : "Generate a pivoted dataset for an ad-hoc query",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "database" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "database" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/query_metadata" : {
      "post" : {
        "operationId" : "post-api-dataset-query_metadata",
        "summary" : "POST /api/dataset/query_metadata",
        "description" : "Get all of the required query metadata for an ad-hoc query.\n\n  You can pass `{:settings {:include-sensitive-fields true}}` in the query to include fields with\n  visibility_type :sensitive in the response.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "database" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "settings" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "properties" : {
                        "include_sensitive_fields" : {
                          "type" : "boolean"
                        }
                      }
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "database" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/{export-format}" : {
      "post" : {
        "operationId" : "post-api-dataset-export-format",
        "summary" : "POST /api/dataset/{export-format}",
        "description" : "Execute a query and download the result data as a file in the specified format.",
        "parameters" : [ {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "query" : {
                    "type" : "object",
                    "properties" : { }
                  },
                  "visualization_settings" : {
                    "default" : { },
                    "type" : "object",
                    "properties" : { }
                  }
                },
                "required" : [ "query", "visualization_settings", "format_rows", "pivot_results" ]
              }
            }
          }
        },
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/document" : {
      "get" : {
        "operationId" : "get-api-document",
        "summary" : "GET /api/document",
        "description" : "Gets existing `Documents`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/document" ]
      },
      "post" : {
        "operationId" : "post-api-document",
        "summary" : "POST /api/document",
        "description" : "Create a new `Document`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cards" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : {
                        "type" : "object",
                        "properties" : {
                          "visualization_settings" : {
                            "description" : "Value must be a map.",
                            "type" : "object",
                            "properties" : { }
                          },
                          "entity_id" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "minLength" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "dataset_query" : {
                            "description" : "Value must be a map.",
                            "type" : "object",
                            "properties" : { }
                          },
                          "parameter_mappings" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "name" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "result_metadata" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "cache_ttl" : {
                            "oneOf" : [ {
                              "description" : "value must be an integer greater than zero.",
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "parameters" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "minLength" : 1
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "name", "dataset_query", "display", "visualization_settings" ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "document" : { },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1,
                    "maxLength" : 254
                  }
                },
                "required" : [ "name", "document" ]
              }
            }
          }
        },
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/public" : {
      "get" : {
        "operationId" : "get-api-document-public",
        "summary" : "GET /api/document/public",
        "description" : "List all Documents that have public links.\n\n  Returns a sequence of Documents that have been publicly shared. Each Document includes its `:id`, `:name`,\n  and `:public_uuid`. Documents are only actually accessible via the public endpoint if public sharing is\n  currently enabled. Archived Documents are excluded from the results.\n\n  This endpoint is used to populate the public links listing in the Admin settings UI.\n\n  Requires superuser permissions. Public sharing must be enabled via the `enable-public-sharing` setting.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "description" : "value must be an integer greater than zero.",
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "public_uuid" : {
                        "description" : "value must be a valid UUID.",
                        "type" : "string",
                        "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
                      }
                    },
                    "required" : [ "name", "id", "public_uuid" ]
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{document-id}" : {
      "get" : {
        "operationId" : "get-api-document-document-id",
        "summary" : "GET /api/document/{document-id}",
        "description" : "Returns an existing Document by ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/document" ]
      },
      "put" : {
        "operationId" : "put-api-document-document-id",
        "summary" : "PUT /api/document/{document-id}",
        "description" : "Updates an existing `Document`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cards" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : {
                        "type" : "object",
                        "properties" : {
                          "visualization_settings" : {
                            "description" : "Value must be a map.",
                            "type" : "object",
                            "properties" : { }
                          },
                          "entity_id" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "minLength" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "dataset_query" : {
                            "description" : "Value must be a map.",
                            "type" : "object",
                            "properties" : { }
                          },
                          "parameter_mappings" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "name" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "result_metadata" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "cache_ttl" : {
                            "oneOf" : [ {
                              "description" : "value must be an integer greater than zero.",
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "parameters" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "minLength" : 1
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "name", "dataset_query", "display", "visualization_settings" ]
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "document" : { },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1,
                    "maxLength" : 254
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/document" ]
      },
      "delete" : {
        "operationId" : "delete-api-document-document-id",
        "summary" : "DELETE /api/document/{document-id}",
        "description" : "Permanently deletes an archived Document.",
        "parameters" : [ {
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{document-id}/card/{card-id}/query/{export-format}" : {
      "post" : {
        "operationId" : "post-api-document-document-id-card-card-id-query-export-format",
        "summary" : "POST /api/document/{document-id}/card/{card-id}/query/{export-format}",
        "description" : "Download query results for a Card embedded in a Document.\n\n  Returns query results in the requested format. The user must have read access to the document\n  to download results. If the card's query fails, standard query error responses are returned.\n\n  Route parameters:\n  - document-id: ID of the document containing the card\n  - card-id: ID of the card to download results from\n  - export-format: Output format (csv, xlsx, json)\n\n  Body parameters (snake_case):\n  - parameters: Optional query parameters (array of maps or JSON string)\n  - format_rows: Whether to apply formatting to results (boolean, default false)\n  - pivot_results: Whether to pivot results (boolean, default false)",
        "parameters" : [ {
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "type" : "array",
                        "items" : {
                          "description" : "Value must be a map.",
                          "type" : "object",
                          "properties" : { }
                        }
                      }, {
                        "description" : "value must be a valid JSON string.",
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ]
              }
            }
          }
        },
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{document-id}/public-link" : {
      "post" : {
        "operationId" : "post-api-document-document-id-public-link",
        "summary" : "POST /api/document/{document-id}/public-link",
        "description" : "Generate a publicly-accessible UUID for a Document.\n\n  Creates a public link that allows viewing the Document without authentication. If the Document already has\n  a public UUID, returns the existing one rather than generating a new one. This enables sharing the Document\n  via `GET /api/ee/public/document/:uuid`.\n\n  Returns a map containing `:uuid` (the public UUID string).\n\n  Requires superuser permissions. Public sharing must be enabled via the `enable-public-sharing` setting.",
        "parameters" : [ {
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "uuid" : {
                      "description" : "value must be a valid UUID.",
                      "type" : "string",
                      "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
                    }
                  },
                  "required" : [ "uuid" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/document" ]
      },
      "delete" : {
        "operationId" : "delete-api-document-document-id-public-link",
        "summary" : "DELETE /api/document/{document-id}/public-link",
        "description" : "Remove the public link for a Document.\n\n  Deletes the public UUID from the Document, making it no longer accessible via the public sharing endpoint.\n  This revokes public access to the Document - the existing public link will no longer work.\n\n  Returns a 204 No Content response on success.\n\n  Requires superuser permissions. Public sharing must be enabled via the `enable-public-sharing` setting.\n  Throws a 404 if the Document doesn't exist, is archived, or doesn't have a public link.",
        "parameters" : [ {
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{from-document-id}/copy" : {
      "post" : {
        "operationId" : "post-api-document-from-document-id-copy",
        "summary" : "POST /api/document/{from-document-id}/copy",
        "description" : "Copy a Document.",
        "parameters" : [ {
          "in" : "path",
          "name" : "from-document-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.documents.schema.document"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/document" ]
      }
    },
    "/api/ee/action-v2/execute" : {
      "post" : {
        "operationId" : "post-api-ee-action-v2-execute",
        "summary" : "POST /api/ee/action-v2/execute",
        "description" : "Execute an action with a single input.\n\n   Takes:\n   - `action`            - an identifier or an expression for what we want to execute.\n   - `scope`             - where the action is being invoked from.\n   - `input`             - a single map. currently these are typically a database table row pk, or query result.\n   - `params` (optional) - a map of values for the parameters taken by the action's mapping.\n\n   The `input` and `params` are used by the relevant mapping to calculate a map argument to the underlying action fn.\n   If there is no mapping, `params` are simply used as overrides for `input`.\n\n   Returns the outputs from the performed action.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-id-or-expression"
                  },
                  "input" : {
                    "type" : "object",
                    "properties" : { }
                  },
                  "params" : {
                    "type" : "object",
                    "properties" : { }
                  },
                  "scope" : {
                    "$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
                  }
                },
                "required" : [ "action", "scope" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/action-v2" ]
      }
    },
    "/api/ee/action-v2/execute-bulk" : {
      "post" : {
        "operationId" : "post-api-ee-action-v2-execute-bulk",
        "summary" : "POST /api/ee/action-v2/execute-bulk",
        "description" : "Execute an action with multiple inputs.\n\n   This is typically more efficient than calling execute with each input individually, for example by performing batch\n   SQL operations.\n\n   Takes:\n   - `action`            - an identifier or an expression for what we want to execute.\n   - `scope`             - where the action is being invoked from.\n   - `inputs`            - a list of maps. currently these are typically a database table row pk, or query result.\n   - `params` (optional) - a map of values for the parameters taken by the action's mapping.\n\n   The `inputs` and `params` are used by the relevant mapping to calculate a list of args for the underlying action fn.\n   If there is no mapping, `params` are simply used as overrides for each map within `inputs`.\n\n   Returns the outputs from the performed action.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-id-or-expression"
                  },
                  "inputs" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : { }
                    },
                    "minItems" : 1
                  },
                  "params" : {
                    "type" : "object",
                    "additionalProperties" : { }
                  },
                  "scope" : {
                    "$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
                  }
                },
                "required" : [ "action", "scope", "inputs" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/action-v2" ]
      }
    },
    "/api/ee/action-v2/execute-form" : {
      "post" : {
        "operationId" : "post-api-ee-action-v2-execute-form",
        "summary" : "POST /api/ee/action-v2/execute-form",
        "description" : "Temporary endpoint for describing an actions parameters\n  such that they can be presented correctly in a modal ahead of execution.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/action-v2" ]
      }
    },
    "/api/ee/advanced-permissions/application/graph" : {
      "get" : {
        "operationId" : "get-api-ee-advanced-permissions-application-graph",
        "summary" : "GET /api/ee/advanced-permissions/application/graph",
        "description" : "Fetch a graph of Application Permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/advanced-permissions/application" ]
      },
      "put" : {
        "operationId" : "put-api-ee-advanced-permissions-application-graph",
        "summary" : "PUT /api/ee/advanced-permissions/application/graph",
        "description" : "Do a batch update of Application Permissions by passing a modified graph.",
        "parameters" : [ {
          "in" : "query",
          "name" : "skip-graph",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "force",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : { }
              }
            }
          }
        },
        "tags" : [ "/api/ee/advanced-permissions/application" ]
      }
    },
    "/api/ee/advanced-permissions/impersonation" : {
      "get" : {
        "operationId" : "get-api-ee-advanced-permissions-impersonation",
        "summary" : "GET /api/ee/advanced-permissions/impersonation",
        "description" : "Fetch a list of all Impersonation policies currently in effect, or a single policy if both `group_id` and `db_id`\n  are provided.",
        "parameters" : [ {
          "in" : "query",
          "name" : "group_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "db_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/advanced-permissions/impersonation" ]
      }
    },
    "/api/ee/advanced-permissions/impersonation/{id}" : {
      "delete" : {
        "operationId" : "delete-api-ee-advanced-permissions-impersonation-id",
        "summary" : "DELETE /api/ee/advanced-permissions/impersonation/{id}",
        "description" : "Delete a Connection Impersonation entry.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/advanced-permissions/impersonation" ]
      }
    },
    "/api/ee/ai-controls/permissions" : {
      "get" : {
        "operationId" : "get-api-ee-ai-controls-permissions",
        "summary" : "GET /api/ee/ai-controls/permissions",
        "description" : "List all metabot permissions for all groups, filling in defaults for missing entries.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "permissions" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "group_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "perm_type" : {
                            "type" : "string",
                            "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ]
                          },
                          "perm_value" : {
                            "type" : "string",
                            "enum" : [ "yes", "no" ]
                          }
                        },
                        "required" : [ "group_id", "perm_type", "perm_value" ]
                      }
                    }
                  },
                  "required" : [ "permissions" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/ai-controls/permissions" ]
      },
      "put" : {
        "operationId" : "put-api-ee-ai-controls-permissions",
        "summary" : "PUT /api/ee/ai-controls/permissions",
        "description" : "Update metabot permissions for all groups. Upserts each permission entry and returns the full\n   permissions list with defaults filled in.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "permissions" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "group_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "perm_type" : {
                            "type" : "string",
                            "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ]
                          },
                          "perm_value" : {
                            "type" : "string",
                            "enum" : [ "yes", "no" ]
                          }
                        },
                        "required" : [ "group_id", "perm_type", "perm_value" ]
                      }
                    }
                  },
                  "required" : [ "permissions" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "permissions" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "group_id" : {
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "perm_type" : {
                          "type" : "string",
                          "enum" : [ "permission/metabot-nlq", "permission/metabot-sql-generation", "permission/metabot-other-tools", "permission/metabot" ]
                        },
                        "perm_value" : {
                          "type" : "string",
                          "enum" : [ "yes", "no" ]
                        }
                      },
                      "required" : [ "group_id", "perm_type", "perm_value" ]
                    }
                  }
                },
                "required" : [ "permissions" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/ai-controls/permissions" ]
      }
    },
    "/api/ee/ai-controls/usage/group" : {
      "get" : {
        "operationId" : "get-api-ee-ai-controls-usage-group",
        "summary" : "GET /api/ee/ai-controls/usage/group",
        "description" : "Get all group-level metabot usage limits.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "group_id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "max_usage" : {
                        "type" : "integer",
                        "minimum" : 0
                      }
                    },
                    "required" : [ "group_id", "max_usage" ]
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/group/{group-id}" : {
      "get" : {
        "operationId" : "get-api-ee-ai-controls-usage-group-group-id",
        "summary" : "GET /api/ee/ai-controls/usage/group/{group-id}",
        "description" : "Get the metabot usage limit for a specific group. Returns `max_usage: null` if no limit is set.",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "group_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "max_usage" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 0
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "group_id", "max_usage" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      },
      "put" : {
        "operationId" : "put-api-ee-ai-controls-usage-group-group-id",
        "summary" : "PUT /api/ee/ai-controls/usage/group/{group-id}",
        "description" : "Set or update the metabot usage limit for a specific group. Pass `max_usage: null` to remove the limit.",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "group_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "max_usage" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 0
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "group_id", "max_usage" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "max_usage" : {
                    "oneOf" : [ {
                      "type" : "integer",
                      "minimum" : 0
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "max_usage" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/instance" : {
      "get" : {
        "operationId" : "get-api-ee-ai-controls-usage-instance",
        "summary" : "GET /api/ee/ai-controls/usage/instance",
        "description" : "Get the instance-wide metabot usage limit. Returns `max_usage: null` if no limit is set (unlimited).",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 0
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "max_usage" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      },
      "put" : {
        "operationId" : "put-api-ee-ai-controls-usage-instance",
        "summary" : "PUT /api/ee/ai-controls/usage/instance",
        "description" : "Set or update the instance-wide metabot usage limit. Pass `max_usage: null` to remove the limit (unlimited).",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 0
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "max_usage" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "max_usage" : {
                    "oneOf" : [ {
                      "type" : "integer",
                      "minimum" : 0
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "max_usage" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/tenant" : {
      "get" : {
        "operationId" : "get-api-ee-ai-controls-usage-tenant",
        "summary" : "GET /api/ee/ai-controls/usage/tenant",
        "description" : "Get all tenant-level metabot usage limits.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "max_usage" : {
                        "type" : "integer",
                        "minimum" : 0
                      },
                      "tenant_id" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "required" : [ "tenant_id", "max_usage" ]
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/tenant/{tenant-id}" : {
      "get" : {
        "operationId" : "get-api-ee-ai-controls-usage-tenant-tenant-id",
        "summary" : "GET /api/ee/ai-controls/usage/tenant/{tenant-id}",
        "description" : "Get the metabot usage limit for a specific tenant. Returns `max_usage: null` if no limit is set.",
        "parameters" : [ {
          "in" : "path",
          "name" : "tenant-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 0
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tenant_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "tenant_id", "max_usage" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      },
      "put" : {
        "operationId" : "put-api-ee-ai-controls-usage-tenant-tenant-id",
        "summary" : "PUT /api/ee/ai-controls/usage/tenant/{tenant-id}",
        "description" : "Set or update the metabot usage limit for a specific tenant. Pass `max_usage: null` to remove the limit.",
        "parameters" : [ {
          "in" : "path",
          "name" : "tenant-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 0
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tenant_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "tenant_id", "max_usage" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "max_usage" : {
                    "oneOf" : [ {
                      "type" : "integer",
                      "minimum" : 0
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "max_usage" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/audit-app/analytics-dev/export" : {
      "post" : {
        "operationId" : "post-api-ee-audit-app-analytics-dev-export",
        "summary" : "POST /api/ee/audit-app/analytics-dev/export",
        "description" : "Export analytics content as a .tar.gz file for local development.\n\n  Only available when MB_ANALYTICS_DEV_MODE=true. Returns a tarball containing\n  the analytics YAMLs in canonical format, ready to commit to source control.\n\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "body" : { }
                  },
                  "required" : [ "body" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/audit-app/analytics-dev" ]
      }
    },
    "/api/ee/audit-app/user/audit-info" : {
      "get" : {
        "operationId" : "get-api-ee-audit-app-user-audit-info",
        "summary" : "GET /api/ee/audit-app/user/audit-info",
        "description" : "Gets audit info for the current user if he has permissions to access the audit collection.\n  Otherwise return an empty map.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/audit-app/user" ]
      }
    },
    "/api/ee/audit-app/user/{id}/subscriptions" : {
      "delete" : {
        "operationId" : "delete-api-ee-audit-app-user-id-subscriptions",
        "summary" : "DELETE /api/ee/audit-app/user/{id}/subscriptions",
        "description" : "Delete all Alert and DashboardSubscription subscriptions for a User (i.e., so they will no longer receive them).\n  Archive all Alerts and DashboardSubscriptions created by the User. Only allowed for admins or for the current user.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/audit-app/user" ]
      }
    },
    "/api/ee/billing" : {
      "get" : {
        "operationId" : "get-api-ee-billing",
        "summary" : "GET /api/ee/billing",
        "description" : "Get billing information. This acts as a proxy between `metabase-billing-info-url` and the client,\n   using the embedding token and signed in user's email to fetch the billing information.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/billing" ]
      }
    },
    "/api/ee/cloud-add-ons/addons" : {
      "get" : {
        "operationId" : "get-api-ee-cloud-add-ons-addons",
        "summary" : "GET /api/ee/cloud-add-ons/addons",
        "description" : "Get addons information from the Metabase Store API.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/cloud-add-ons" ]
      }
    },
    "/api/ee/cloud-add-ons/plans" : {
      "get" : {
        "operationId" : "get-api-ee-cloud-add-ons-plans",
        "summary" : "GET /api/ee/cloud-add-ons/plans",
        "description" : "Get plans information from the Metabase Store API.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/cloud-add-ons" ]
      }
    },
    "/api/ee/cloud-add-ons/{product-type}" : {
      "post" : {
        "operationId" : "post-api-ee-cloud-add-ons-product-type",
        "summary" : "POST /api/ee/cloud-add-ons/{product-type}",
        "description" : "Purchase an add-on.",
        "parameters" : [ {
          "in" : "path",
          "name" : "product-type",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "metabase-ai", "metabase-ai-tiered", "metabase-ai-managed", "python-execution", "transforms", "transforms-basic", "transforms-advanced", "transforms-basic-metered", "transforms-advanced-metered" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "quantity" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "terms_of_service" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/cloud-add-ons" ]
      },
      "delete" : {
        "operationId" : "delete-api-ee-cloud-add-ons-product-type",
        "summary" : "DELETE /api/ee/cloud-add-ons/{product-type}",
        "description" : "Remove an add-on.",
        "parameters" : [ {
          "in" : "path",
          "name" : "product-type",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "metabase-ai", "metabase-ai-tiered", "metabase-ai-managed", "python-execution", "transforms", "transforms-basic", "transforms-advanced", "transforms-basic-metered", "transforms-advanced-metered" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "body" : { },
                    "status" : {
                      "type" : "integer"
                    }
                  },
                  "required" : [ "status", "body" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/cloud-add-ons" ]
      }
    },
    "/api/ee/cloud-proxy/{operation-id}" : {
      "post" : {
        "operationId" : "post-api-ee-cloud-proxy-operation-id",
        "summary" : "POST /api/ee/cloud-proxy/{operation-id}",
        "description" : "Proxy a call to the Metabase Store API via harbormaster client.\n   This endpoint is used only for hosted instances, and calls Harbormaster Store using a OpenAPI client.\n   :operation-id is the operation-id of the Harbormaster Store endpoint.\n   All parameters for the operation are taken in the POST body.",
        "parameters" : [ {
          "in" : "path",
          "name" : "operation-id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : { }
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/cloud-proxy" ]
      }
    },
    "/api/ee/content-translation/csv" : {
      "get" : {
        "operationId" : "get-api-ee-content-translation-csv",
        "summary" : "GET /api/ee/content-translation/csv",
        "description" : "Provides content translation dictionary in CSV",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/content-translation/dictionary" : {
      "get" : {
        "operationId" : "get-api-ee-content-translation-dictionary",
        "summary" : "GET /api/ee/content-translation/dictionary",
        "description" : "Fetch the content translation dictionary for authenticated users (auth-based embedding flows).",
        "parameters" : [ {
          "in" : "query",
          "name" : "locale",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "locale" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "msgid" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "msgstr" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "locale", "msgid", "msgstr" ]
                      }
                    }
                  },
                  "required" : [ "data" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/content-translation/dictionary/{token}" : {
      "get" : {
        "operationId" : "get-api-ee-content-translation-dictionary-token",
        "summary" : "GET /api/ee/content-translation/dictionary/{token}",
        "description" : "Fetch the content translation dictionary via a JSON Web Token signed with the `embedding-secret-key`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/content-translation/upload-dictionary" : {
      "post" : {
        "operationId" : "post-api-ee-content-translation-upload-dictionary",
        "summary" : "POST /api/ee/content-translation/upload-dictionary",
        "description" : "Upload a CSV of content translations",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "object",
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ]
                  }
                },
                "required" : [ "file" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/data-complexity-score/complexity" : {
      "get" : {
        "operationId" : "get-api-ee-data-complexity-score-complexity",
        "summary" : "GET /api/ee/data-complexity-score/complexity",
        "description" : "Return the current Data Complexity Score for this instance.\n  Superuser-only, expensive, and emits Snowplow events for benchmark consumers. Concurrent\n  requests on the same JVM fast-fail with HTTP 409 — a scoring pass walks the full app-db\n  catalog and one in-flight run per node is enough. The guard is per-JVM, so in a clustered\n  deployment each node can still run one pass concurrently.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "library" : {
                      "type" : "object",
                      "properties" : {
                        "components" : {
                          "type" : "object",
                          "properties" : {
                            "entity-count" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "field-count" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "name-collisions" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "repeated-measures" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "synonym-pairs" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            }
                          },
                          "required" : [ "entity-count", "name-collisions", "synonym-pairs", "field-count", "repeated-measures" ]
                        },
                        "total" : {
                          "oneOf" : [ {
                            "type" : "integer",
                            "minimum" : 0
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "total", "components" ]
                    },
                    "meta" : {
                      "type" : "object",
                      "properties" : {
                        "embedding-model" : {
                          "oneOf" : [ {
                            "type" : "object",
                            "properties" : {
                              "model-name" : {
                                "type" : "string"
                              },
                              "provider" : {
                                "type" : "string"
                              }
                            },
                            "required" : [ "provider", "model-name" ]
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "formula-version" : {
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "synonym-threshold" : {
                          "type" : "number"
                        }
                      },
                      "required" : [ "formula-version", "synonym-threshold" ]
                    },
                    "metabot" : {
                      "type" : "object",
                      "properties" : {
                        "components" : {
                          "type" : "object",
                          "properties" : {
                            "entity-count" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "field-count" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "name-collisions" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "repeated-measures" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "synonym-pairs" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            }
                          },
                          "required" : [ "entity-count", "name-collisions", "synonym-pairs", "field-count", "repeated-measures" ]
                        },
                        "total" : {
                          "oneOf" : [ {
                            "type" : "integer",
                            "minimum" : 0
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "total", "components" ]
                    },
                    "universe" : {
                      "type" : "object",
                      "properties" : {
                        "components" : {
                          "type" : "object",
                          "properties" : {
                            "entity-count" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "field-count" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "name-collisions" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "repeated-measures" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            },
                            "synonym-pairs" : {
                              "anyOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "type" : "integer",
                                    "minimum" : 0
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "additionalProperties" : false
                              }, {
                                "type" : "object",
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "additionalProperties" : false
                              } ]
                            }
                          },
                          "required" : [ "entity-count", "name-collisions", "synonym-pairs", "field-count", "repeated-measures" ]
                        },
                        "total" : {
                          "oneOf" : [ {
                            "type" : "integer",
                            "minimum" : 0
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "total", "components" ]
                    }
                  },
                  "required" : [ "library", "universe", "metabot", "meta" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/data-complexity-score" ]
      }
    },
    "/api/ee/data-studio/table/publish-tables" : {
      "post" : {
        "operationId" : "post-api-ee-data-studio-table-publish-tables",
        "summary" : "POST /api/ee/data-studio/table/publish-tables",
        "description" : "Set collection for each of selected tables and all upstream dependencies recursively.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.data-studio.api.table.publish-tables-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "tags" : [ "/api/ee/data-studio/table" ]
      }
    },
    "/api/ee/data-studio/table/unpublish-tables" : {
      "post" : {
        "operationId" : "post-api-ee-data-studio-table-unpublish-tables",
        "summary" : "POST /api/ee/data-studio/table/unpublish-tables",
        "description" : "Unset collection for each of selected tables and all downstream dependents recursively.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "tags" : [ "/api/ee/data-studio/table" ]
      }
    },
    "/api/ee/database-replication/connection/{database-id}" : {
      "post" : {
        "operationId" : "post-api-ee-database-replication-connection-database-id",
        "summary" : "POST /api/ee/database-replication/connection/{database-id}",
        "description" : "Create a new PG replication connection for the specified database.",
        "parameters" : [ {
          "in" : "path",
          "name" : "database-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "replicationSchemaFilters" : {
                    "type" : "object",
                    "properties" : {
                      "schema-filters-patterns" : {
                        "type" : "string"
                      },
                      "schema-filters-type" : {
                        "type" : "string",
                        "enum" : [ "inclusion", "exclusion", "all" ]
                      }
                    },
                    "required" : [ "schema-filters-type", "schema-filters-patterns" ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/database-replication" ]
      },
      "delete" : {
        "operationId" : "delete-api-ee-database-replication-connection-database-id",
        "summary" : "DELETE /api/ee/database-replication/connection/{database-id}",
        "description" : "Delete PG replication connection for the specified database.",
        "parameters" : [ {
          "in" : "path",
          "name" : "database-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/database-replication" ]
      }
    },
    "/api/ee/database-replication/connection/{database-id}/preview" : {
      "post" : {
        "operationId" : "post-api-ee-database-replication-connection-database-id-preview",
        "summary" : "POST /api/ee/database-replication/connection/{database-id}/preview",
        "description" : "Return info about pg-replication connection that is about to be created.",
        "parameters" : [ {
          "in" : "path",
          "name" : "database-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "replicationSchemaFilters" : {
                    "type" : "object",
                    "properties" : {
                      "schema-filters-patterns" : {
                        "type" : "string"
                      },
                      "schema-filters-type" : {
                        "type" : "string",
                        "enum" : [ "inclusion", "exclusion", "all" ]
                      }
                    },
                    "required" : [ "schema-filters-type", "schema-filters-patterns" ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/database-replication" ]
      }
    },
    "/api/ee/database-routing/destination-database" : {
      "post" : {
        "operationId" : "post-api-ee-database-routing-destination-database",
        "summary" : "POST /api/ee/database-routing/destination-database",
        "description" : "Create new Destination Databases.\n\n  Note that unlike the normal `POST /api/database` endpoint, does NOT check the details before adding the Database.\n\n  This is OK, it's not an invariant that all database details are always valid, but it's something to note.",
        "parameters" : [ {
          "in" : "query",
          "name" : "check_connection_details",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "destinations" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "details" : {
                          "description" : "Value must be a map.",
                          "type" : "object",
                          "properties" : { }
                        },
                        "name" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "name", "details" ]
                    }
                  },
                  "router_database_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "router_database_id", "destinations" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/database-routing" ]
      }
    },
    "/api/ee/database-routing/router-database/{id}" : {
      "put" : {
        "operationId" : "put-api-ee-database-routing-router-database-id",
        "summary" : "PUT /api/ee/database-routing/router-database/{id}",
        "description" : "Updates an existing Database with the `user_attribute` to route on. Will either:\n  - turn an existing Database into a Router database\n  - change the `user_attribute` used to route for an existing Router database, or\n  - turn a Router database into a regular Database\n  depending on the value of `user_attribute`",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "user_attribute" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/database-routing" ]
      }
    },
    "/api/ee/dependencies/backfill-status" : {
      "get" : {
        "operationId" : "get-api-ee-dependencies-backfill-status",
        "summary" : "GET /api/ee/dependencies/backfill-status",
        "description" : "Returns whether the dependency backfill has pending work.\n  `complete` is true when there are no stale or outdated entities awaiting processing.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "complete" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "complete" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/check-card" : {
      "post" : {
        "operationId" : "post-api-ee-dependencies-check-card",
        "summary" : "POST /api/ee/dependencies/check-card",
        "description" : "Check a proposed edit to a card, and return the card IDs for those cards this edit will break.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.card-body"
              }
            }
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/check-snippet" : {
      "post" : {
        "operationId" : "post-api-ee-dependencies-check-snippet",
        "summary" : "POST /api/ee/dependencies/check-snippet",
        "description" : "Check a proposed edit to a native snippet, and return the cards, etc. which will be broken.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "content" : {
                    "type" : "string"
                  },
                  "id" : {
                    "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
                  },
                  "name" : {
                    "description" : "snippet names cannot include '}' or start with spaces"
                  }
                },
                "required" : [ "id" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/check-transform" : {
      "post" : {
        "operationId" : "post-api-ee-dependencies-check-transform",
        "summary" : "POST /api/ee/dependencies/check-transform",
        "description" : "Check a proposed edit to a transform, and return the card, transform, etc. IDs for things that will break.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.transform-body"
              }
            }
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph" : {
      "get" : {
        "operationId" : "get-api-ee-dependencies-graph",
        "summary" : "GET /api/ee/dependencies/graph",
        "description" : "This endpoint takes an :id and a supported entity :type, and returns a graph of all its upstream dependencies.\n  The graph is represented by a list of :nodes and a list of :edges. Each node has an :id, :type, :data (which\n  depends on the node type), and a map of :dependent_counts per entity type. Each edge is a :model/Dependency.\n\n  Optional :archived parameter controls whether entities in archived collections are included:\n  - false (default): Excludes entities in archived collections\n  - true: Includes entities in archived collections",
        "parameters" : [ {
          "in" : "query",
          "name" : "id",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "type",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.graph-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/breaking" : {
      "get" : {
        "operationId" : "get-api-ee-dependencies-graph-breaking",
        "summary" : "GET /api/ee/dependencies/graph/breaking",
        "description" : "Returns a list of entities that are breaking other entities (sources of errors).\n   These are tables or cards that other entities depend on, where those dependents\n   have validation errors traced back to this source entity.\n\n   Accepts optional parameters for filtering:\n   - `types`: List of source entity types - only `:card` or `:table` (default: both)\n   - `card-types`: List of card types to include when filtering cards (e.g., `[:question :model :metric]`)\n   - `query`: Search string to filter by name or location\n   - `archived`: Controls whether archived entities are included\n   - `include-personal-collections`: Controls whether items in personal collections are included (default: false)\n   - `sort-column`: Sort column - `:name`, `:location`, `:dependents-errors`, or `:dependents-with-errors` (default: `:name`)\n   - `sort-direction`: Sort direction - `:asc` or `:desc` (default: `:asc`)\n   - `offset`: Default 0\n   - `limit`: Default 50\n\n   Returns a map with:\n   - `data`: List of breaking source entities\n   - `total`: Total count of matched items\n   - `offset`: Applied offset\n   - `limit`: Applied limit",
        "parameters" : [ {
          "in" : "query",
          "name" : "types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
            }, {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "type" : "string",
              "enum" : [ "question", "metric", "model" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "question", "metric", "model" ]
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "include-personal-collections",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "sort-column",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "dependents-with-errors", "dependents-errors", "name", "location" ]
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "desc", "asc" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
                      }
                    },
                    "limit" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "offset" : {
                      "type" : "integer",
                      "minimum" : 0
                    },
                    "total" : {
                      "type" : "integer",
                      "minimum" : 0
                    }
                  },
                  "required" : [ "data", "total", "offset", "limit" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/broken" : {
      "get" : {
        "operationId" : "get-api-ee-dependencies-graph-broken",
        "summary" : "GET /api/ee/dependencies/graph/broken",
        "description" : "Returns the broken dependents for a specific source entity.\n   These are entities that have validation errors traced back to the specified source.\n\n   Required parameters:\n   - `id`: The ID of the source entity\n   - `type`: The type of the source entity (card, table)\n\n   Optional parameters:\n   - `dependent-types`: Dependency types to filter by. Can be single value or array.\n   - `dependent-card-types`: Card types to filter by when dependent-types includes :card.\n   - `include-personal-collections`: Include items in personal collections (default: false)\n   - `sort-column`: Column to sort by - name, location, or view-count (default: name)\n   - `sort-direction`: Sort direction - asc or desc (default: asc)",
        "parameters" : [ {
          "in" : "query",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "type",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
          }
        }, {
          "in" : "query",
          "name" : "dependent-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
            }, {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "dependent-card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "type" : "string",
              "enum" : [ "question", "metric", "model" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "question", "metric", "model" ]
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include-personal-collections",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "sort-column",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "name", "view-count", "location" ]
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "desc", "asc" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-dependent-entity"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/dependents" : {
      "get" : {
        "operationId" : "get-api-ee-dependencies-graph-dependents",
        "summary" : "GET /api/ee/dependencies/graph/dependents",
        "description" : "Returns a list of dependents for the specified entity.\n\n   Required parameters:\n   - `id`: The ID of the entity\n   - `type`: The type of the entity (card, table, dashboard, etc.)\n\n   Optional parameters:\n   - `dependent-types`: Dependency types to filter by. Can be single value or array.\n     If not provided, returns all types. Example: ?dependent-types=card&dependent-types=dashboard\n   - `dependent-card-types`: Card types to filter by when dependent-types includes :card.\n     Ignored if dependent-types doesn't include :card. Example: ?dependent-card-types=question&dependent-card-types=model\n   - `archived`: Include entities in archived collections (default: false)\n   - `broken`: Return only broken entities (default: false)\n   - `query`: Search string to filter results by name or location (case-insensitive)\n   - `include-personal-collections`: Include items in personal collections (default: false)\n   - `sort-column`: Column to sort by - name, location, or view-count (default: name)\n   - `sort-direction`: Sort direction - asc or desc (default: asc)",
        "parameters" : [ {
          "in" : "query",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "type",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
          }
        }, {
          "in" : "query",
          "name" : "dependent-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
            }, {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "dependent-card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "type" : "string",
              "enum" : [ "question", "metric", "model" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "question", "metric", "model" ]
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "broken",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "include-personal-collections",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "sort-column",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "name", "view-count", "location" ]
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "desc", "asc" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/unreferenced" : {
      "get" : {
        "operationId" : "get-api-ee-dependencies-graph-unreferenced",
        "summary" : "GET /api/ee/dependencies/graph/unreferenced",
        "description" : "Returns a list of all unreferenced items in the instance.\n   An unreferenced item is one that is not a dependency of any other item.\n\n   Accepts optional parameters for filtering:\n   - `types`: List of entity types to include (e.g., [:card :transform :snippet :dashboard])\n   - `card-types`: List of card types to include when filtering cards (e.g., [:question :model :metric])\n   - `query`: Search string to filter by name or location\n   - `archived`: Controls whether archived entities are included\n   - `include-personal-collections`: Controls whether items in personal collections are included (default: false)\n   - `sort-column`: Sort column - `:name`, `:location`, `:dependents-errors`, or `:dependents-with-errors` (default: `:name`)\n   - `sort-direction`: Sort direction - `:asc` or `:desc` (default: `:asc`)\n   - `offset`: Default 0\n   - `limit`: Default 50\n\n   Returns a map with:\n   - `data`: List of unreferenced items, each with `:id`, `:type`, and `:data` fields\n   - `total`: Total count of matched items\n   - `offset`: Applied offset\n   - `limit`: Applied limit",
        "parameters" : [ {
          "in" : "query",
          "name" : "types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
            }, {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "type" : "string",
              "enum" : [ "question", "metric", "model" ]
            }, {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "question", "metric", "model" ]
              }
            } ]
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "include-personal-collections",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "sort-column",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "dependents-with-errors", "dependents-errors", "name", "location" ]
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "desc", "asc" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
                      }
                    },
                    "limit" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "offset" : {
                      "type" : "integer",
                      "minimum" : 0
                    },
                    "total" : {
                      "type" : "integer",
                      "minimum" : 0
                    }
                  },
                  "required" : [ "data", "total", "offset", "limit" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/email/override" : {
      "put" : {
        "operationId" : "put-api-ee-email-override",
        "summary" : "PUT /api/ee/email/override",
        "description" : "Update multiple cloud email Settings. You must be a superuser or have `setting` permission to do this.\n  Calling this automatically sets `cloud-smtp-enabled` to true if the settings are valid.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email-smtp-host-override" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-password-override" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-port-override" : {
                    "anyOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-security-override" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-username-override" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/email" ]
      },
      "delete" : {
        "operationId" : "delete-api-ee-email-override",
        "summary" : "DELETE /api/ee/email/override",
        "description" : "Clear all cloud email related settings. You must be a superuser or have `setting` permission to do this.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/email" ]
      }
    },
    "/api/ee/embedding-hub/checklist" : {
      "get" : {
        "operationId" : "get-api-ee-embedding-hub-checklist",
        "summary" : "GET /api/ee/embedding-hub/checklist",
        "description" : "Get the embedding hub checklist status, indicating which setup steps have been completed.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "checklist" : {
                      "type" : "object",
                      "properties" : {
                        "enable-tenants" : {
                          "type" : "boolean"
                        },
                        "create-models" : {
                          "type" : "boolean"
                        },
                        "sso-configured" : {
                          "type" : "boolean"
                        },
                        "configure-row-column-security" : {
                          "type" : "boolean"
                        },
                        "create-test-embed" : {
                          "type" : "boolean"
                        },
                        "data-permissions-and-enable-tenants" : {
                          "type" : "boolean"
                        },
                        "embed-production" : {
                          "type" : "boolean"
                        },
                        "create-dashboard" : {
                          "type" : "boolean"
                        },
                        "move-dashboard-to-shared" : {
                          "type" : "boolean"
                        },
                        "setup-data-segregation-strategy" : {
                          "type" : "boolean"
                        },
                        "create-tenants" : {
                          "type" : "boolean"
                        },
                        "add-data" : {
                          "type" : "boolean"
                        },
                        "sso-auth-manual-tested" : {
                          "type" : "boolean"
                        }
                      },
                      "required" : [ "add-data", "create-dashboard", "create-models", "configure-row-column-security", "create-test-embed", "embed-production", "sso-configured", "data-permissions-and-enable-tenants", "enable-tenants", "move-dashboard-to-shared", "create-tenants", "setup-data-segregation-strategy", "sso-auth-manual-tested" ],
                      "additionalProperties" : false
                    },
                    "data-isolation-strategy" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "enum" : [ "row-column-level-security", "connection-impersonation", "database-routing" ]
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "checklist", "data-isolation-strategy" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/embedding-hub" ]
      }
    },
    "/api/ee/gsheets/connection" : {
      "post" : {
        "operationId" : "post-api-ee-gsheets-connection",
        "summary" : "POST /api/ee/gsheets/connection",
        "description" : "Hook up a new google drive folder or sheet that will be watched and have its content ETL'd into Metabase.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/gsheets.response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "url" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "url" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/gsheets" ]
      },
      "get" : {
        "operationId" : "get-api-ee-gsheets-connection",
        "summary" : "GET /api/ee/gsheets/connection",
        "description" : "Check the status of a connection. This endpoint gets polled by FE to determine when to\n  stop showing the setup widget.\n\n  Returns the gsheets shape, with the attached datawarehouse db id at `:db_id`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/gsheets.response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/gsheets" ]
      },
      "delete" : {
        "operationId" : "delete-api-ee-gsheets-connection",
        "summary" : "DELETE /api/ee/gsheets/connection",
        "description" : "Disconnect the google service account. There is only one (or zero) at the time of writing.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/gsheets" ]
      }
    },
    "/api/ee/gsheets/connection/sync" : {
      "post" : {
        "operationId" : "post-api-ee-gsheets-connection-sync",
        "summary" : "POST /api/ee/gsheets/connection/sync",
        "description" : "Force a sync of the connection now.\n\n  Returns the gsheets shape, with the attached datawarehouse db id at `:db_id`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/gsheets" ]
      }
    },
    "/api/ee/gsheets/service-account" : {
      "get" : {
        "operationId" : "get-api-ee-gsheets-service-account",
        "summary" : "GET /api/ee/gsheets/service-account",
        "description" : "Checks to see if service-account is setup or not, delegates to HM only if we haven't set it from a metabase cluster\n  before.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "email" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "email" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/gsheets" ]
      }
    },
    "/api/ee/library" : {
      "post" : {
        "operationId" : "post-api-ee-library",
        "summary" : "POST /api/ee/library",
        "description" : "Creates the Library if it doesn't exist. Returns the created collection.\n\n  Requires data analyst or superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/library" ]
      },
      "get" : {
        "operationId" : "get-api-ee-library",
        "summary" : "GET /api/ee/library",
        "description" : "Get the Library. If no library exists, it doesn't fail but returns an empty response",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "anyOf" : [ {
                    "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItem"
                  }, {
                    "type" : "object",
                    "properties" : {
                      "data" : {
                        "type" : "null"
                      }
                    },
                    "required" : [ "data" ]
                  } ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/library" ]
      }
    },
    "/api/ee/library/tree" : {
      "get" : {
        "operationId" : "get-api-ee-library-tree",
        "summary" : "GET /api/ee/library/tree",
        "description" : "This matches /api/collection/tree but only returns the library collection.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/library" ]
      }
    },
    "/api/ee/logs/query_execution/{yyyy-mm}" : {
      "get" : {
        "operationId" : "get-api-ee-logs-query_execution-yyyy-mm",
        "summary" : "GET /api/ee/logs/query_execution/{yyyy-mm}",
        "description" : "Fetch rows for the month specified by `:yyyy-mm` from the query_execution logs table.\n  Must be a superuser.",
        "parameters" : [ {
          "in" : "path",
          "name" : "yyyy-mm",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "\\d{4}-\\d{2}"
          },
          "description" : "Must be a string like 2020-04 or 2222-11."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/logs" ]
      }
    },
    "/api/ee/metabot/usage" : {
      "get" : {
        "operationId" : "get-api-ee-metabot-usage",
        "summary" : "GET /api/ee/metabot/usage",
        "description" : "Fetch current Metabot token usage for the current billing period.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "is_locked" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tokens" : {
                      "oneOf" : [ {
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "updated_at" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "is_locked", "tokens", "updated_at" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/metabot" ]
      }
    },
    "/api/ee/permission_debug" : {
      "get" : {
        "operationId" : "get-api-ee-permission_debug",
        "summary" : "GET /api/ee/permission_debug",
        "description" : "This endpoint expects a `user_id`, a `model_id` to debug permissions against, and `action_type`.\n  The type of model we are debugging against is inferred by the `action_type`.\n\n  It will return:\n  - `decision`: The overall permission decision (\"allow\", \"denied\", or \"limited\")\n  - `model-type`: The type of model being checked (e.g., \"question\")\n  - `model-id`: The ID of the model being checked\n  - `segment`: A set of segmentation types applied (e.g., \"sandboxed\", \"impersonated\", \"routed\")\n  - `message`: A sequence of strings explaining the decision\n  - `data`: A map containing details about permissions (table or collection names to group names)\n  - `suggestions`: A map of group IDs to group names that could provide access\n\n  Example requests:\n  - Check if user can read a card: `GET /api/ee/permission_debug?user_id=123&model_id=456&action_type=card/read`\n  - Check if user can query a card: `GET /api/ee/permission_debug?user_id=123&model_id=456&action_type=card/query`\n  - Check if user can download data: `GET /api/ee/permission_debug?user_id=123&model_id=456&action_type=card/download-data`\n\n  Example responses:\n  - Allowed access:\n    ```json\n    {\n      \"decision\": \"allow\",\n      \"model-type\": \"question\",\n      \"model-id\": \"456\",\n      \"segment\": [],\n      \"message\": [\"User has permission to read this card\"],\n      \"data\": {},\n      \"suggestions\": {}\n    }\n    ```\n  - Denied access with blocked table:\n    ```json\n    {\n      \"decision\": \"denied\",\n      \"model-type\": \"question\",\n      \"model-id\": \"456\",\n      \"segment\": [],\n      \"message\": [\"User does not have permission to query this card\"],\n      \"data\": {\"sample-db.PUBLIC.ORDERS\": [\"All Users\"]},\n      \"suggestions\": {}\n    }\n    ```\n  - Limited access:\n    ```json\n    {\n      \"decision\": \"limited\",\n      \"model-type\": \"question\",\n      \"model-id\": \"456\",\n      \"segment\": [],\n      \"message\": [\"User has permission to download some data from this card\"],\n      \"data\": {},\n      \"suggestions\": {}\n    }\n    ```",
        "parameters" : [ {
          "in" : "query",
          "name" : "user_id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        }, {
          "in" : "query",
          "name" : "model_id",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "action_type",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "card/read", "card/query", "card/download-data" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.permission-debug.impl.perm-debug-info"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/permission_debug" ]
      }
    },
    "/api/ee/remote-sync/branches" : {
      "get" : {
        "operationId" : "get-api-ee-remote-sync-branches",
        "summary" : "GET /api/ee/remote-sync/branches",
        "description" : "Get list of branches from the configured source.\n\n  Returns a JSON object with branch names under the :items key.\n\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "items" : {
                      "type" : "array",
                      "items" : {
                        "type" : "string"
                      }
                    }
                  },
                  "required" : [ "items" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/create-branch" : {
      "post" : {
        "operationId" : "post-api-ee-remote-sync-create-branch",
        "summary" : "POST /api/ee/remote-sync/create-branch",
        "description" : "Create a new branch from the current remote-sync branch and switches the current remote-sync branch to it.\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "status", "message" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/current-task" : {
      "get" : {
        "operationId" : "get-api-ee-remote-sync-current-task",
        "summary" : "GET /api/ee/remote-sync/current-task",
        "description" : "Get the current sync task",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "oneOf" : [ {
                    "type" : "object",
                    "properties" : {
                      "progress" : {
                        "oneOf" : [ {
                          "type" : "number",
                          "minimum" : 0.0,
                          "maximum" : 1.0
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "conflicts" : {
                        "oneOf" : [ {
                          "type" : "array",
                          "items" : {
                            "type" : "string"
                          }
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "last_progress_report_at" : {
                        "oneOf" : [ { }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "started_at" : { },
                      "ended_at" : {
                        "oneOf" : [ { }, {
                          "type" : "null"
                        } ]
                      },
                      "initiated_by" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "cancelled" : {
                        "oneOf" : [ {
                          "type" : "boolean"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "status" : {
                        "type" : "string",
                        "enum" : [ "running", "successful", "errored", "cancelled", "timed-out", "conflict" ]
                      },
                      "error_message" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "sync_task_type" : {
                        "type" : "string",
                        "enum" : [ "import", "export" ]
                      },
                      "version" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "sync_task_type", "progress", "started_at", "status" ]
                  }, {
                    "type" : "null"
                  } ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/current-task/cancel" : {
      "post" : {
        "operationId" : "post-api-ee-remote-sync-current-task-cancel",
        "summary" : "POST /api/ee/remote-sync/current-task/cancel",
        "description" : "Cancels the current task if one is running",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "progress" : {
                      "oneOf" : [ {
                        "type" : "number",
                        "minimum" : 0.0,
                        "maximum" : 1.0
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "conflicts" : {
                      "oneOf" : [ {
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_progress_report_at" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "started_at" : { },
                    "ended_at" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "initiated_by" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "cancelled" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "type" : "string",
                      "enum" : [ "running", "successful", "errored", "cancelled", "timed-out", "conflict" ]
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "sync_task_type" : {
                      "type" : "string",
                      "enum" : [ "import", "export" ]
                    },
                    "version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "sync_task_type", "progress", "started_at", "status" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/dirty" : {
      "get" : {
        "operationId" : "get-api-ee-remote-sync-dirty",
        "summary" : "GET /api/ee/remote-sync/dirty",
        "description" : "Return all models with changes that have not been pushed to the remote sync source in any\n  remote-synced collection.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "dirty" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "table_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "model" : {
                            "type" : "string"
                          },
                          "authority_level" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer"
                          },
                          "name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "updated_at" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "table_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "query_type" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "collection_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "created_at" : { },
                          "display" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "sync_status" : {
                            "type" : "string"
                          },
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "name", "model", "sync_status" ]
                      }
                    }
                  },
                  "required" : [ "dirty" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/export" : {
      "post" : {
        "operationId" : "post-api-ee-remote-sync-export",
        "summary" : "POST /api/ee/remote-sync/export",
        "description" : "Export the current state of the Remote Sync collection to a Source.\n\n  This endpoint will:\n  - Fetch the latest changes from the source\n  - Create a branch or subdirectory (depending on source support)\n    If no branch is supplied, use the configured export branch\n  - Export the Remote Sync collection via serialization to the branch or subdirectory\n  - Commit the changes if possible\n  - Sync to the source if possible\n\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "task_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "message", "task_id" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/has-remote-changes" : {
      "get" : {
        "operationId" : "get-api-ee-remote-sync-has-remote-changes",
        "summary" : "GET /api/ee/remote-sync/has-remote-changes",
        "description" : "Check if there are new changes on the remote branch that can be pulled.\n   Uses in-memory caching (configurable TTL via remote-sync-check-changes-cache-ttl-seconds setting).\n\n   Returns:\n   - has_changes: true if remote version differs from last imported version, or if never imported\n   - remote_version: current Git SHA on remote branch\n   - local_version: Git SHA of last successful import (nil if never imported)\n   - cached: true if result was served from cache",
        "parameters" : [ {
          "in" : "query",
          "name" : "force-refresh",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "cached" : {
                      "type" : "boolean"
                    },
                    "has_changes" : {
                      "type" : "boolean"
                    },
                    "local_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "remote_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "has_changes", "remote_version", "local_version", "cached" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/import" : {
      "post" : {
        "operationId" : "post-api-ee-remote-sync-import",
        "summary" : "POST /api/ee/remote-sync/import",
        "description" : "Import Metabase content from configured Remote Sync source.\n\n  This endpoint will:\n  - Fetch the latest changes from the configured source\n  - Load the updated content using the serialization/deserialization system\n\n  If `force=false` (default) and there are unsaved changes in the Remote Sync collection,\n  the import returns a 400 response.\n\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "const" : "success"
                    },
                    "task_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "status", "task_id" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "branch" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "force" : {
                    "type" : "boolean"
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/is-dirty" : {
      "get" : {
        "operationId" : "get-api-ee-remote-sync-is-dirty",
        "summary" : "GET /api/ee/remote-sync/is-dirty",
        "description" : "Check if any remote-synced collection or collection item has local changes that have not been pushed\n  to the remote sync source.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "is_dirty" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "is_dirty" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/settings" : {
      "put" : {
        "operationId" : "put-api-ee-remote-sync-settings",
        "summary" : "PUT /api/ee/remote-sync/settings",
        "description" : "Update Remote Sync related settings. You must be a superuser to do this.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "success" : {
                      "type" : "boolean"
                    },
                    "task_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "success" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collections" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : {
                        "type" : "boolean"
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-auto-import" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-branch" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-token" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-transforms" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-type" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "read-only", "read-write" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-url" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/stash" : {
      "post" : {
        "operationId" : "post-api-ee-remote-sync-stash",
        "summary" : "POST /api/ee/remote-sync/stash",
        "description" : "Stashes changes to a new branch, and changes the current branch to it.\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    },
                    "task_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "status", "message", "task_id" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "message" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "new_branch" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "new_branch", "message" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/replacement/check-replace-source" : {
      "post" : {
        "operationId" : "post-api-ee-replacement-check-replace-source",
        "summary" : "POST /api/ee/replacement/check-replace-source",
        "description" : "Check whether a source entity can be replaced by a target entity. Returns compatibility\n  errors describing column mismatches, type mismatches, primary key mismatches, and foreign\n  key mismatches.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.check-replace-source-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "source_entity_id" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
                  },
                  "source_entity_type" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
                  },
                  "target_entity_id" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
                  },
                  "target_entity_type" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
                  }
                },
                "required" : [ "source_entity_id", "source_entity_type", "target_entity_id", "target_entity_type" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/replacement/replace-model-with-transform" : {
      "post" : {
        "operationId" : "post-api-ee-replacement-replace-model-with-transform",
        "summary" : "POST /api/ee/replacement/replace-model-with-transform",
        "description" : "Create a transform from a model, execute it, and replace all usages of the model\n   with the output table. Un-persists the model and converts it to a saved question.\n   Returns 202 with a run_id for polling.\n\n   If there is an error during the transform execution, no replacement will be\n   performed and the model will remain unchanged.\n\n   If there is an error during the source swap, the transform and the output\n   table will be retained, and the model will remain unchanged. We cannot delete\n   the transform or the output table because they can be used by other queries at\n   this point.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "body" : {
                      "type" : "object",
                      "properties" : {
                        "run_id" : {
                          "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-id"
                        }
                      },
                      "required" : [ "run_id" ],
                      "additionalProperties" : false
                    },
                    "status" : {
                      "const" : 202
                    }
                  },
                  "required" : [ "status", "body" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "card_id" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
                  },
                  "target_collection_id" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "transform_name" : {
                    "type" : "string"
                  },
                  "transform_tag_ids" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "transform_target" : {
                    "type" : "object",
                    "properties" : { }
                  }
                },
                "required" : [ "card_id", "transform_name", "transform_target" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/replacement/replace-source" : {
      "post" : {
        "operationId" : "post-api-ee-replacement-replace-source",
        "summary" : "POST /api/ee/replacement/replace-source",
        "description" : "Replace all usages of a source entity with a target entity asynchronously.\n   Returns 202 with a run_id for polling. Returns 409 if a replacement is already running.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "body" : {
                      "type" : "object",
                      "properties" : {
                        "run_id" : {
                          "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-id"
                        }
                      },
                      "required" : [ "run_id" ],
                      "additionalProperties" : false
                    },
                    "status" : {
                      "const" : 202
                    }
                  },
                  "required" : [ "status", "body" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "source_entity_id" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
                  },
                  "source_entity_type" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
                  },
                  "target_entity_id" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-id"
                  },
                  "target_entity_type" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.source-entity-type"
                  }
                },
                "required" : [ "source_entity_id", "source_entity_type", "target_entity_id", "target_entity_type" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/replacement/runs" : {
      "get" : {
        "operationId" : "get-api-ee-replacement-runs",
        "summary" : "GET /api/ee/replacement/runs",
        "description" : "List replacement runs, optionally filtered by is-active.",
        "parameters" : [ {
          "in" : "query",
          "name" : "is-active",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/replacement/runs/{id}" : {
      "get" : {
        "operationId" : "get-api-ee-replacement-runs-id",
        "summary" : "GET /api/ee/replacement/runs/{id}",
        "description" : "Get the status of a source replacement run.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/replacement/runs/{id}/cancel" : {
      "post" : {
        "operationId" : "post-api-ee-replacement-runs-id-cancel",
        "summary" : "POST /api/ee/replacement/runs/{id}/cancel",
        "description" : "Cancel a running source replacement.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "success" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "success" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/scim/api_key" : {
      "get" : {
        "operationId" : "get-api-ee-scim-api_key",
        "summary" : "GET /api/ee/scim/api_key",
        "description" : "Fetch the SCIM API key if one exists. Does *not* return an unmasked key, since we don't have access\n  to that after it is created.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim" ]
      },
      "post" : {
        "operationId" : "post-api-ee-scim-api_key",
        "summary" : "POST /api/ee/scim/api_key",
        "description" : "Create a new SCIM API key, or refresh one that already exists. When called for the first time,\n  this is equivalent to enabling SCIM.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim" ]
      }
    },
    "/api/ee/scim/v2/Groups" : {
      "get" : {
        "operationId" : "get-api-ee-scim-v2-Groups",
        "summary" : "GET /api/ee/scim/v2/Groups",
        "description" : "Fetch a list of groups.",
        "parameters" : [ {
          "in" : "query",
          "name" : "startIndex",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "count",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "filter",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      },
      "post" : {
        "operationId" : "post-api-ee-scim-v2-Groups",
        "summary" : "POST /api/ee/scim/v2/Groups",
        "description" : "Create a single group, and populates it if necessary.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "displayName" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "id" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "members" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "$ref" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "value" ]
                    }
                  },
                  "schemas" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  }
                },
                "required" : [ "schemas", "displayName" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      }
    },
    "/api/ee/scim/v2/Groups/{id}" : {
      "get" : {
        "operationId" : "get-api-ee-scim-v2-Groups-id",
        "summary" : "GET /api/ee/scim/v2/Groups/{id}",
        "description" : "Fetch a single group.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      },
      "put" : {
        "operationId" : "put-api-ee-scim-v2-Groups-id",
        "summary" : "PUT /api/ee/scim/v2/Groups/{id}",
        "description" : "Update a group.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "displayName" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "id" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "members" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "$ref" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "value" ]
                    }
                  },
                  "schemas" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  }
                },
                "required" : [ "schemas", "displayName" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      },
      "delete" : {
        "operationId" : "delete-api-ee-scim-v2-Groups-id",
        "summary" : "DELETE /api/ee/scim/v2/Groups/{id}",
        "description" : "Delete a group.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      }
    },
    "/api/ee/scim/v2/Users" : {
      "get" : {
        "operationId" : "get-api-ee-scim-v2-Users",
        "summary" : "GET /api/ee/scim/v2/Users",
        "description" : "Fetch a list of users.",
        "parameters" : [ {
          "in" : "query",
          "name" : "startIndex",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "count",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "filter",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      },
      "post" : {
        "operationId" : "post-api-ee-scim-v2-Users",
        "summary" : "POST /api/ee/scim/v2/Users",
        "description" : "Create a single user.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "active" : {
                    "type" : "boolean"
                  },
                  "emails" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "primary" : {
                          "type" : "boolean"
                        },
                        "type" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "value" ]
                    }
                  },
                  "groups" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "$ref" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "display" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "value", "display" ]
                    }
                  },
                  "id" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "locale" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "object",
                    "properties" : {
                      "familyName" : {
                        "type" : "string"
                      },
                      "givenName" : {
                        "type" : "string"
                      }
                    },
                    "required" : [ "givenName", "familyName" ]
                  },
                  "schemas" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  },
                  "userName" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "schemas", "userName", "name", "emails" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      }
    },
    "/api/ee/scim/v2/Users/{id}" : {
      "get" : {
        "operationId" : "get-api-ee-scim-v2-Users-id",
        "summary" : "GET /api/ee/scim/v2/Users/{id}",
        "description" : "Fetch a single user.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      },
      "put" : {
        "operationId" : "put-api-ee-scim-v2-Users-id",
        "summary" : "PUT /api/ee/scim/v2/Users/{id}",
        "description" : "Update a user.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "active" : {
                    "type" : "boolean"
                  },
                  "emails" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "primary" : {
                          "type" : "boolean"
                        },
                        "type" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "value" ]
                    }
                  },
                  "groups" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "$ref" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "display" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "type" : "string",
                          "minLength" : 1
                        }
                      },
                      "required" : [ "value", "display" ]
                    }
                  },
                  "id" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "locale" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "object",
                    "properties" : {
                      "familyName" : {
                        "type" : "string"
                      },
                      "givenName" : {
                        "type" : "string"
                      }
                    },
                    "required" : [ "givenName", "familyName" ]
                  },
                  "schemas" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  },
                  "userName" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "schemas", "userName", "name", "emails" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      },
      "patch" : {
        "operationId" : "patch-api-ee-scim-v2-Users-id",
        "summary" : "PATCH /api/ee/scim/v2/Users/{id}",
        "description" : "Activate or deactivate a user. Supports specific replace operations, but not arbitrary patches.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "Operations" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "op" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "value" : {
                          "anyOf" : [ {
                            "type" : "object",
                            "additionalProperties" : {
                              "anyOf" : [ {
                                "type" : "string",
                                "minLength" : 1
                              }, {
                                "type" : "boolean"
                              } ]
                            }
                          }, {
                            "type" : "string",
                            "minLength" : 1
                          }, {
                            "type" : "boolean"
                          } ]
                        }
                      },
                      "required" : [ "op", "value" ]
                    }
                  },
                  "schemas" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  }
                },
                "required" : [ "schemas", "Operations" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/scim/v2" ]
      }
    },
    "/api/ee/security-center" : {
      "get" : {
        "operationId" : "get-api-ee-security-center",
        "summary" : "GET /api/ee/security-center",
        "description" : "List all security advisories with match status.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "advisories" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "published_at" : {
                            "type" : "string",
                            "format" : "date-time"
                          },
                          "advisory_url" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "minLength" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "last_evaluated_at" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "format" : "date-time"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "match_status" : {
                            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.match-status"
                          },
                          "acknowledged_by" : {
                            "oneOf" : [ {
                              "type" : "object",
                              "properties" : {
                                "common_name" : {
                                  "type" : "string",
                                  "minLength" : 1
                                },
                                "email" : {
                                  "description" : "value must be a valid email address.",
                                  "type" : "string"
                                },
                                "id" : {
                                  "description" : "value must be an integer greater than zero.",
                                  "type" : "integer",
                                  "minimum" : 1
                                }
                              },
                              "required" : [ "id", "common_name", "email" ]
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "title" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "affected_versions" : {
                            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.affected-versions"
                          },
                          "remediation" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "advisory_id" : {
                            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.advisory-id"
                          },
                          "severity" : {
                            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.severity"
                          },
                          "description" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "acknowledged_at" : {
                            "oneOf" : [ {
                              "type" : "string",
                              "format" : "date-time"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "advisory_id", "title", "severity", "description", "advisory_url", "remediation", "published_at", "match_status", "last_evaluated_at", "acknowledged_by", "acknowledged_at", "affected_versions" ]
                      }
                    },
                    "last_checked_at" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "format" : "date-time"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "last_checked_at", "advisories" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/security-center" ]
      }
    },
    "/api/ee/security-center/acknowledge" : {
      "post" : {
        "operationId" : "post-api-ee-security-center-acknowledge",
        "summary" : "POST /api/ee/security-center/acknowledge",
        "description" : "Acknowledge multiple security advisories. Skips already-acknowledged advisories.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "acknowledged_at" : {
                        "oneOf" : [ {
                          "type" : "string",
                          "format" : "date-time"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "acknowledged_by" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "common_name" : {
                              "type" : "string",
                              "minLength" : 1
                            },
                            "email" : {
                              "description" : "value must be a valid email address.",
                              "type" : "string"
                            },
                            "id" : {
                              "description" : "value must be an integer greater than zero.",
                              "type" : "integer",
                              "minimum" : 1
                            }
                          },
                          "required" : [ "id", "common_name", "email" ]
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "advisory_id" : {
                        "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.advisory-id"
                      },
                      "match_status" : {
                        "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.match-status"
                      }
                    },
                    "required" : [ "advisory_id", "match_status", "acknowledged_by", "acknowledged_at" ]
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "advisory_ids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  }
                },
                "required" : [ "advisory_ids" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/security-center" ]
      }
    },
    "/api/ee/security-center/sync" : {
      "post" : {
        "operationId" : "post-api-ee-security-center-sync",
        "summary" : "POST /api/ee/security-center/sync",
        "description" : "Trigger an async advisory sync + re-evaluation.\n   Returns immediately. If a sync is already running, the request is a no-op.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "status" : {
                      "type" : "string",
                      "minLength" : 1
                    }
                  },
                  "required" : [ "status" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/security-center" ]
      }
    },
    "/api/ee/security-center/test-notification" : {
      "post" : {
        "operationId" : "post-api-ee-security-center-test-notification",
        "summary" : "POST /api/ee/security-center/test-notification",
        "description" : "Send a test notification through the configured Security Center channels.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "success" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "success" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/security-center" ]
      }
    },
    "/api/ee/security-center/{advisory-id}/acknowledge" : {
      "post" : {
        "operationId" : "post-api-ee-security-center-advisory-id-acknowledge",
        "summary" : "POST /api/ee/security-center/{advisory-id}/acknowledge",
        "description" : "Acknowledge a security advisory. Stops repeat notifications.",
        "parameters" : [ {
          "in" : "path",
          "name" : "advisory-id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "acknowledged_at" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "format" : "date-time"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "acknowledged_by" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "common_name" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "email" : {
                            "description" : "value must be a valid email address.",
                            "type" : "string"
                          },
                          "id" : {
                            "description" : "value must be an integer greater than zero.",
                            "type" : "integer",
                            "minimum" : 1
                          }
                        },
                        "required" : [ "id", "common_name", "email" ]
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "advisory_id" : {
                      "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.advisory-id"
                    },
                    "match_status" : {
                      "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.match-status"
                    }
                  },
                  "required" : [ "advisory_id", "match_status", "acknowledged_by", "acknowledged_at" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/security-center" ]
      }
    },
    "/api/ee/semantic-search/status" : {
      "get" : {
        "operationId" : "get-api-ee-semantic-search-status",
        "summary" : "GET /api/ee/semantic-search/status",
        "description" : "Fetch the indexing status of the currently active semantic search index table.\n\n  Returns a map with keys:\n   :indexed_count <number of indexed items>\n   :total_est     <estimated total number of items to index>\n\n  If no index is active, returns an empty map.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/semantic-search" ]
      }
    },
    "/api/ee/serialization/export" : {
      "post" : {
        "operationId" : "post-api-ee-serialization-export",
        "summary" : "POST /api/ee/serialization/export",
        "description" : "Serialize and retrieve Metabase instance.\n\n  Outputs `.tar.gz` file with serialization results and an `export.log` file.\n  On error outputs serialization logs directly.",
        "parameters" : [ {
          "in" : "query",
          "name" : "dirname",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : "name of directory and archive file (default: `<instance-name>-<YYYY-MM-dd_HH-mm>`)"
        }, {
          "in" : "query",
          "name" : "collection",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "anyOf" : [ {
                  "description" : "value must be an integer greater than zero.",
                  "type" : "integer",
                  "minimum" : 1
                }, {
                  "type" : "string",
                  "pattern" : "^.{21}$"
                }, {
                  "type" : "string",
                  "pattern" : "^eid:.{21}$"
                } ]
              }
            }, {
              "type" : "null"
            } ]
          },
          "description" : "collections' db ids/entity-ids to serialize"
        }, {
          "in" : "query",
          "name" : "all_collections",
          "required" : true,
          "schema" : {
            "default" : true,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "settings",
          "required" : true,
          "schema" : {
            "default" : true,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "data_model",
          "required" : true,
          "schema" : {
            "default" : true,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "field_values",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "database_secrets",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "continue_on_error",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "full_stacktrace",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/serialization" ]
      }
    },
    "/api/ee/serialization/import" : {
      "post" : {
        "operationId" : "post-api-ee-serialization-import",
        "summary" : "POST /api/ee/serialization/import",
        "description" : "Deserialize Metabase instance from an archive generated by /export.\n\n  Parameters:\n  - `file`: archive encoded as `multipart/form-data` (required).\n\n  Returns logs of deserialization.",
        "parameters" : [ {
          "in" : "query",
          "name" : "continue_on_error",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "full_stacktrace",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "reindex",
          "required" : true,
          "schema" : {
            "default" : true,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "description" : ".tgz with serialization data",
                    "type" : "object",
                    "properties" : {
                      "content-type" : {
                        "type" : "string"
                      },
                      "filename" : {
                        "type" : "string"
                      },
                      "size" : {
                        "type" : "integer"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "content-type", "filename", "size", "tempfile" ],
                    "additionalProperties" : false
                  }
                },
                "required" : [ "file" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/serialization" ]
      }
    },
    "/api/ee/stale/{id}" : {
      "get" : {
        "operationId" : "get-api-ee-stale-id",
        "summary" : "GET /api/ee/stale/{id}",
        "description" : "A flexible endpoint that returns stale entities, in the same shape as collections/items, with the following options:\n  - `before_date` - only return entities that were last edited before this date (default: 6 months ago)\n  - `is_recursive` - if true, return entities from all children of the collection, not just the direct children (default: false)\n  - `sort_column` - the column to sort by (default: name)\n  - `sort_direction` - the direction to sort by (default: asc)",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "const" : "root"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "before_date",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "is_recursive",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : true,
          "schema" : {
            "default" : "name",
            "type" : "string",
            "enum" : [ "name", "last_used_at" ]
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : true,
          "schema" : {
            "default" : "asc",
            "type" : "string",
            "enum" : [ "asc", "desc" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/stale" ]
      }
    },
    "/api/ee/support-access-grant" : {
      "post" : {
        "operationId" : "post-api-ee-support-access-grant",
        "summary" : "POST /api/ee/support-access-grant",
        "description" : "Create a new support access grant.\n\n  Requires superuser permissions. Only one active grant can exist at a time.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.create-grant-request"
              }
            }
          }
        },
        "tags" : [ "/api/ee/support-access-grant" ]
      },
      "get" : {
        "operationId" : "get-api-ee-support-access-grant",
        "summary" : "GET /api/ee/support-access-grant",
        "description" : "List support access grants with optional filtering and pagination.\n\n  Requires superuser permissions.\n\n  Query parameters:\n  - ticket-number: Filter by ticket number\n  - user-id: Filter by user who created the grant\n  - include-revoked: Include revoked grants (default false)",
        "parameters" : [ {
          "in" : "query",
          "name" : "ticket-number",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "user-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include-revoked",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.list-grants-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/support-access-grant" ]
      }
    },
    "/api/ee/support-access-grant/current" : {
      "get" : {
        "operationId" : "get-api-ee-support-access-grant-current",
        "summary" : "GET /api/ee/support-access-grant/current",
        "description" : "Get the currently active support access grant, if one exists.\n\n  Requires superuser permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.current-grant-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/support-access-grant" ]
      }
    },
    "/api/ee/support-access-grant/{id}/revoke" : {
      "put" : {
        "operationId" : "put-api-ee-support-access-grant-id-revoke",
        "summary" : "PUT /api/ee/support-access-grant/{id}/revoke",
        "description" : "Revoke an existing support access grant.\n\n  Requires superuser permissions. Any admin can revoke any grant.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/support-access-grant" ]
      }
    },
    "/api/ee/tenant" : {
      "post" : {
        "operationId" : "post-api-ee-tenant",
        "summary" : "POST /api/ee/tenant",
        "description" : "Create a new Tenant",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attributes" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string"
                        }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "is_active" : {
                      "type" : "boolean"
                    },
                    "member_count" : {
                      "description" : "value must be an integer.",
                      "type" : "integer"
                    },
                    "name" : {
                      "type" : "string",
                      "minLength" : 1
                    },
                    "slug" : {
                      "description" : "invalid slug",
                      "type" : "string",
                      "pattern" : "^[-_a-z0-9]{1,255}$"
                    },
                    "tenant_collection_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "id", "name", "slug", "is_active", "member_count", "attributes", "tenant_collection_id" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "attributes" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "slug" : {
                    "description" : "invalid slug",
                    "type" : "string",
                    "pattern" : "^[-_a-z0-9]{1,255}$"
                  }
                },
                "required" : [ "name", "slug" ],
                "additionalProperties" : false
              }
            }
          }
        },
        "tags" : [ "/api/ee/tenant" ]
      },
      "get" : {
        "operationId" : "get-api-ee-tenant",
        "summary" : "GET /api/ee/tenant",
        "description" : "Get all tenants",
        "parameters" : [ {
          "in" : "query",
          "name" : "status",
          "required" : true,
          "schema" : {
            "default" : "all",
            "type" : "string",
            "enum" : [ "all", "deactivated", "active" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "attributes" : {
                            "oneOf" : [ {
                              "type" : "object",
                              "additionalProperties" : {
                                "type" : "string"
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "description" : "value must be an integer greater than zero.",
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "is_active" : {
                            "type" : "boolean"
                          },
                          "member_count" : {
                            "description" : "value must be an integer.",
                            "type" : "integer"
                          },
                          "name" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "slug" : {
                            "description" : "invalid slug",
                            "type" : "string",
                            "pattern" : "^[-_a-z0-9]{1,255}$"
                          },
                          "tenant_collection_id" : {
                            "description" : "value must be an integer greater than zero.",
                            "type" : "integer",
                            "minimum" : 1
                          }
                        },
                        "required" : [ "id", "name", "slug", "is_active", "member_count", "attributes", "tenant_collection_id" ],
                        "additionalProperties" : false
                      }
                    }
                  },
                  "required" : [ "data" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/tenant" ]
      }
    },
    "/api/ee/tenant/{id}" : {
      "put" : {
        "operationId" : "put-api-ee-tenant-id",
        "summary" : "PUT /api/ee/tenant/{id}",
        "description" : "Update a tenant, can set name, attributes, or whether this tenant is active.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attributes" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string"
                        }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "is_active" : {
                      "type" : "boolean"
                    },
                    "member_count" : {
                      "description" : "value must be an integer.",
                      "type" : "integer"
                    },
                    "name" : {
                      "type" : "string",
                      "minLength" : 1
                    },
                    "slug" : {
                      "description" : "invalid slug",
                      "type" : "string",
                      "pattern" : "^[-_a-z0-9]{1,255}$"
                    },
                    "tenant_collection_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "id", "name", "slug", "is_active", "member_count", "attributes", "tenant_collection_id" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "attributes" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_active" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "additionalProperties" : false
              }
            }
          }
        },
        "tags" : [ "/api/ee/tenant" ]
      },
      "get" : {
        "operationId" : "get-api-ee-tenant-id",
        "summary" : "GET /api/ee/tenant/{id}",
        "description" : "Get info about a tenant",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "attributes" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "additionalProperties" : {
                          "type" : "string"
                        }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "is_active" : {
                      "type" : "boolean"
                    },
                    "member_count" : {
                      "description" : "value must be an integer.",
                      "type" : "integer"
                    },
                    "name" : {
                      "type" : "string",
                      "minLength" : 1
                    },
                    "slug" : {
                      "description" : "invalid slug",
                      "type" : "string",
                      "pattern" : "^[-_a-z0-9]{1,255}$"
                    },
                    "tenant_collection_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "required" : [ "id", "name", "slug", "is_active", "member_count", "attributes", "tenant_collection_id" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/tenant" ]
      }
    },
    "/api/ee/transforms-python/library/{path}" : {
      "get" : {
        "operationId" : "get-api-ee-transforms-python-library-path",
        "summary" : "GET /api/ee/transforms-python/library/{path}",
        "description" : "Get the Python library for user modules.",
        "parameters" : [ {
          "in" : "path",
          "name" : "path",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/transforms-python" ]
      },
      "put" : {
        "operationId" : "put-api-ee-transforms-python-library-path",
        "summary" : "PUT /api/ee/transforms-python/library/{path}",
        "description" : "Update the Python library source code for user modules.",
        "parameters" : [ {
          "in" : "path",
          "name" : "path",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "source" : {
                    "type" : "string"
                  }
                },
                "required" : [ "source" ],
                "additionalProperties" : false
              }
            }
          }
        },
        "tags" : [ "/api/ee/transforms-python" ]
      }
    },
    "/api/ee/transforms-python/test-run" : {
      "post" : {
        "operationId" : "post-api-ee-transforms-python-test-run",
        "summary" : "POST /api/ee/transforms-python/test-run",
        "description" : "Evaluate an ad-hoc python transform on a sample of input data.\n  Intended for short runs for early feedback. Input/output/timeout limits apply.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "error" : {
                      "type" : "object",
                      "properties" : {
                        "message" : {
                          "anyOf" : [ { }, { } ]
                        }
                      },
                      "required" : [ "message" ]
                    },
                    "logs" : {
                      "type" : "string"
                    },
                    "output" : {
                      "type" : "object",
                      "properties" : {
                        "cols" : {
                          "type" : "array",
                          "items" : {
                            "type" : "object",
                            "properties" : {
                              "name" : {
                                "type" : "string"
                              }
                            },
                            "required" : [ "name" ]
                          }
                        },
                        "rows" : {
                          "type" : "array",
                          "items" : { }
                        }
                      },
                      "required" : [ "cols", "rows" ]
                    }
                  },
                  "required" : [ "logs" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "code" : {
                    "type" : "string"
                  },
                  "output_row_limit" : {
                    "allOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "number",
                      "exclusiveMinimum" : 1
                    }, {
                      "type" : "number",
                      "maximum" : 100
                    } ]
                  },
                  "per_input_row_limit" : {
                    "allOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "number",
                      "exclusiveMinimum" : 1
                    }, {
                      "type" : "number",
                      "maximum" : 100
                    } ]
                  },
                  "source_tables" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/metabase.transforms-base.util.source-table-entry"
                    },
                    "minItems" : 1
                  }
                },
                "required" : [ "code", "source_tables" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/transforms-python" ]
      }
    },
    "/api/ee/transforms/{id}/inspect" : {
      "get" : {
        "operationId" : "get-api-ee-transforms-id-inspect",
        "summary" : "GET /api/ee/transforms/{id}/inspect",
        "description" : "Phase 1: Discover available lenses for a transform.\n   Returns structural metadata and available lens types.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.discovery-response"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/transforms" ]
      }
    },
    "/api/ee/transforms/{id}/inspect/{lens-id}" : {
      "get" : {
        "operationId" : "get-api-ee-transforms-id-inspect-lens-id",
        "summary" : "GET /api/ee/transforms/{id}/inspect/{lens-id}",
        "description" : "Phase 2: Get full lens contents for a transform.\n   Returns sections, cards with dataset_query, and trigger definitions.\n   Accepts optional params for drill lenses as query params.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "lens-id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/transforms" ]
      }
    },
    "/api/ee/transforms/{id}/inspect/{lens-id}/query" : {
      "post" : {
        "operationId" : "post-api-ee-transforms-id-inspect-lens-id-query",
        "summary" : "POST /api/ee/transforms/{id}/inspect/{lens-id}/query",
        "description" : "Execute a query in the context of a transform inspector lens.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "lens-id",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "lens_params" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "query" : {
                    "type" : "object",
                    "properties" : {
                      "database" : {
                        "oneOf" : [ {
                          "type" : "integer"
                        }, {
                          "type" : "null"
                        } ]
                      }
                    }
                  }
                },
                "required" : [ "query" ]
              }
            }
          }
        },
        "tags" : [ "/api/ee/transforms" ]
      }
    },
    "/api/ee/upload-management/tables" : {
      "get" : {
        "operationId" : "get-api-ee-upload-management-tables",
        "summary" : "GET /api/ee/upload-management/tables",
        "description" : "Get all `Tables` visible to the current user which were created by uploading a file.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/upload-management" ]
      }
    },
    "/api/ee/upload-management/tables/{id}" : {
      "delete" : {
        "operationId" : "delete-api-ee-upload-management-tables-id",
        "summary" : "DELETE /api/ee/upload-management/tables/{id}",
        "description" : "Delete the uploaded table from the database, optionally archiving cards for which it is the primary source.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "archive-cards",
          "required" : false,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/ee/upload-management" ]
      }
    },
    "/api/eid-translation/translate" : {
      "post" : {
        "operationId" : "post-api-eid-translation-translate",
        "summary" : "POST /api/eid-translation/translate",
        "description" : "Translate entity IDs to model IDs.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "entity_ids" : {
                    "type" : "object",
                    "properties" : { }
                  }
                },
                "required" : [ "entity_ids" ]
              }
            }
          }
        },
        "tags" : [ "/api/eid-translation" ]
      }
    },
    "/api/email" : {
      "put" : {
        "operationId" : "put-api-email",
        "summary" : "PUT /api/email",
        "description" : "Update multiple email Settings. You must be a superuser or have `setting` permission to do this.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email-smtp-host" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-password" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-port" : {
                    "anyOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-security" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email-smtp-username" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/email" ]
      },
      "delete" : {
        "operationId" : "delete-api-email",
        "summary" : "DELETE /api/email",
        "description" : "Clear all email related settings. You must be a superuser or have `setting` permission to do this.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/email" ]
      }
    },
    "/api/email/test" : {
      "post" : {
        "operationId" : "post-api-email-test",
        "summary" : "POST /api/email/test",
        "description" : "Send a test email using the SMTP Settings. You must be a superuser or have `setting` permission to do this.\n  Returns `{:ok true}` if we were able to send the message successfully, otherwise a standard 400 error response.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/email" ]
      }
    },
    "/api/embed-theme" : {
      "get" : {
        "operationId" : "get-api-embed-theme",
        "summary" : "GET /api/embed-theme",
        "description" : "Fetch a list of all embedding themes.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.embedding-rest.api.theme.EmbeddingTheme"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed-theme" ]
      },
      "post" : {
        "operationId" : "post-api-embed-theme",
        "summary" : "POST /api/embed-theme",
        "description" : "Create a new embedding theme.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.embedding-rest.api.theme.EmbeddingTheme"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "settings" : {
                    "type" : "object",
                    "properties" : { }
                  }
                },
                "required" : [ "name", "settings" ]
              }
            }
          }
        },
        "tags" : [ "/api/embed-theme" ]
      }
    },
    "/api/embed-theme/seed-defaults" : {
      "post" : {
        "operationId" : "post-api-embed-theme-seed-defaults",
        "summary" : "POST /api/embed-theme/seed-defaults",
        "description" : "Seed default embedding themes on first call, using the payloads built by the frontend from the\n  `METABASE_LIGHT_THEME` / `METABASE_DARK_THEME` constants.\n\n  Idempotent: guarded by the `default-embedding-themes-seeded` setting. Once flipped, subsequent calls\n  are no-ops even if the admin has since deleted the seeded themes, so deletions are preserved.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "themes" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "name" : {
                          "type" : "string",
                          "minLength" : 1
                        },
                        "settings" : {
                          "type" : "object",
                          "properties" : { }
                        }
                      },
                      "required" : [ "name", "settings" ]
                    }
                  }
                },
                "required" : [ "themes" ]
              }
            }
          }
        },
        "tags" : [ "/api/embed-theme" ]
      }
    },
    "/api/embed-theme/{id}" : {
      "get" : {
        "operationId" : "get-api-embed-theme-id",
        "summary" : "GET /api/embed-theme/{id}",
        "description" : "Fetch a single embedding theme by ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.embedding-rest.api.theme.EmbeddingTheme"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed-theme" ]
      },
      "put" : {
        "operationId" : "put-api-embed-theme-id",
        "summary" : "PUT /api/embed-theme/{id}",
        "description" : "Update an embedding theme.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.embedding-rest.api.theme.EmbeddingTheme"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "settings" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/embed-theme" ]
      },
      "delete" : {
        "operationId" : "delete-api-embed-theme-id",
        "summary" : "DELETE /api/embed-theme/{id}",
        "description" : "Delete an embedding theme.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed-theme" ]
      }
    },
    "/api/embed-theme/{id}/copy" : {
      "post" : {
        "operationId" : "post-api-embed-theme-id-copy",
        "summary" : "POST /api/embed-theme/{id}/copy",
        "description" : "Copy an embedding theme.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.embedding-rest.api.theme.EmbeddingTheme"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed-theme" ]
      }
    },
    "/api/embed/card/{token}" : {
      "get" : {
        "operationId" : "get-api-embed-card-token",
        "summary" : "GET /api/embed/card/{token}",
        "description" : "Fetch a Card via a JSON Web Token signed with the `embedding-secret-key`.\n\n   Token should have the following format:\n\n     {:resource {:question <card-id>}}",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/card/{token}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-embed-card-token-params-param-key-remapping",
        "summary" : "GET /api/embed/card/{token}/params/{param-key}/remapping",
        "description" : "Embedded version of api.card filter values endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/card/{token}/params/{param-key}/search/{prefix}" : {
      "get" : {
        "operationId" : "get-api-embed-card-token-params-param-key-search-prefix",
        "summary" : "GET /api/embed/card/{token}/params/{param-key}/search/{prefix}",
        "description" : "Embedded version of chain filter search endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/card/{token}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-embed-card-token-params-param-key-values",
        "summary" : "GET /api/embed/card/{token}/params/{param-key}/values",
        "description" : "Embedded version of api.card filter values endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/card/{token}/query" : {
      "get" : {
        "operationId" : "get-api-embed-card-token-query",
        "summary" : "GET /api/embed/card/{token}/query",
        "description" : "Fetch the results of running a Card using a JSON Web Token signed with the `embedding-secret-key`.\n\n   Token should have the following format:\n\n     {:resource {:question <card-id>}\n      :params   <parameters>}",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/card/{token}/query/{export-format}" : {
      "get" : {
        "operationId" : "get-api-embed-card-token-query-export-format",
        "summary" : "GET /api/embed/card/{token}/query/{export-format}",
        "description" : "Like `GET /api/embed/card/query`, but returns the results as a file in the specified format.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        }, {
          "in" : "query",
          "name" : "format_rows",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "pivot_results",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/dashboard/{token}" : {
      "get" : {
        "operationId" : "get-api-embed-dashboard-token",
        "summary" : "GET /api/embed/dashboard/{token}",
        "description" : "Fetch a Dashboard via a JSON Web Token signed with the `embedding-secret-key`.\n\n   Token should have the following format:\n\n     {:resource {:dashboard <dashboard-id>}}",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-embed-dashboard-token-dashcard-dashcard-id-card-card-id",
        "summary" : "GET /api/embed/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}",
        "description" : "Fetch the results of running a Card belonging to a Dashboard using a JSON Web Token signed with the\n  `embedding-secret-key`",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}/{export-format}" : {
      "get" : {
        "operationId" : "get-api-embed-dashboard-token-dashcard-dashcard-id-card-card-id-export-format",
        "summary" : "GET /api/embed/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}/{export-format}",
        "description" : "Fetch the results of running a Card belonging to a Dashboard using a JSON Web Token signed with the\n  `embedding-secret-key` return the data in one of the export formats",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        }, {
          "in" : "query",
          "name" : "format_rows",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "pivot_results",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/dashboard/{token}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-embed-dashboard-token-params-param-key-remapping",
        "summary" : "GET /api/embed/dashboard/{token}/params/{param-key}/remapping",
        "description" : "Embedded version of the remapped dashboard param value endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/dashboard/{token}/params/{param-key}/search/{prefix}" : {
      "get" : {
        "operationId" : "get-api-embed-dashboard-token-params-param-key-search-prefix",
        "summary" : "GET /api/embed/dashboard/{token}/params/{param-key}/search/{prefix}",
        "description" : "Embedded version of chain filter search endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/dashboard/{token}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-embed-dashboard-token-params-param-key-values",
        "summary" : "GET /api/embed/dashboard/{token}/params/{param-key}/values",
        "description" : "Embedded version of chain filter values endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/pivot/card/{token}/query" : {
      "get" : {
        "operationId" : "get-api-embed-pivot-card-token-query",
        "summary" : "GET /api/embed/pivot/card/{token}/query",
        "description" : "Fetch the results of running a Card using a JSON Web Token signed with the `embedding-secret-key`.\n\n   Token should have the following format:\n\n     {:resource {:question <card-id>}\n      :params   <parameters>}",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/pivot/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-embed-pivot-dashboard-token-dashcard-dashcard-id-card-card-id",
        "summary" : "GET /api/embed/pivot/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}",
        "description" : "Fetch the results of running a Card belonging to a Dashboard using a JSON Web Token signed with the\n  `embedding-secret-key`",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/tiles/card/{token}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-embed-tiles-card-token-zoom-x-y",
        "summary" : "GET /api/embed/tiles/card/{token}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for an embedded Card using the map visualization.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/embed/tiles/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-embed-tiles-dashboard-token-dashcard-dashcard-id-card-card-id-zoom-x-y",
        "summary" : "GET /api/embed/tiles/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for a Card on an embedded Dashboard using the map visualization.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/embed" ]
      }
    },
    "/api/field/{id}" : {
      "get" : {
        "operationId" : "get-api-field-id",
        "summary" : "GET /api/field/{id}",
        "description" : "Get `Field` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      },
      "put" : {
        "operationId" : "put-api-field-id",
        "summary" : "PUT /api/field/{id}",
        "description" : "Update `Field` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "settings" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "visibility_type" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "retired", "sensitive", "normal", "hidden", "details-only" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "coercion_strategy" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid coercion strategy (keyword or string)."
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "json_unfolding" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "semantic_type" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid field semantic or relation type (keyword or string)."
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "has_field_values" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "display_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "nfc_path" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "type" : "string",
                        "minLength" : 1
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "fk_target_field_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/dimension" : {
      "post" : {
        "operationId" : "post-api-field-id-dimension",
        "summary" : "POST /api/field/{id}/dimension",
        "description" : "Sets the dimension for the given field at ID",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "human_readable_field_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "type" : {
                    "type" : "string",
                    "enum" : [ "internal", "external" ]
                  }
                },
                "required" : [ "type", "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/field" ]
      },
      "delete" : {
        "operationId" : "delete-api-field-id-dimension",
        "summary" : "DELETE /api/field/{id}/dimension",
        "description" : "Remove the dimension associated to field at ID",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/discard_values" : {
      "post" : {
        "operationId" : "post-api-field-id-discard_values",
        "summary" : "POST /api/field/{id}/discard_values",
        "description" : "Discard the FieldValues belonging to this Field. Only applies to fields that have FieldValues. If this Field's\n   Database is set up to automatically sync FieldValues, they will be recreated during the next cycle.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/related" : {
      "get" : {
        "operationId" : "get-api-field-id-related",
        "summary" : "GET /api/field/{id}/related",
        "description" : "Return related entities.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/remapping/{remapped-id}" : {
      "get" : {
        "operationId" : "get-api-field-id-remapping-remapped-id",
        "summary" : "GET /api/field/{id}/remapping/{remapped-id}",
        "description" : "Fetch remapped Field values.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "remapped-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/rescan_values" : {
      "post" : {
        "operationId" : "post-api-field-id-rescan_values",
        "summary" : "POST /api/field/{id}/rescan_values",
        "description" : "Manually trigger an update for the FieldValues for this Field. Only applies to Fields that are eligible for\n   FieldValues.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/search/{search-id}" : {
      "get" : {
        "operationId" : "get-api-field-id-search-search-id",
        "summary" : "GET /api/field/{id}/search/{search-id}",
        "description" : "Search for values of a Field with `search-id` that start with `value`. See docstring for\n  [[metabase.parameters.field/search-values]] for a more detailed explanation.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "search-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "value",
          "required" : false,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/summary" : {
      "get" : {
        "operationId" : "get-api-field-id-summary",
        "summary" : "GET /api/field/{id}/summary",
        "description" : "Get the count and distinct count of `Field` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/field/{id}/values" : {
      "get" : {
        "operationId" : "get-api-field-id-values",
        "summary" : "GET /api/field/{id}/values",
        "description" : "If a Field's value of `has_field_values` is `:list`, return a list of all the distinct values of the Field (or\n  remapped Field), and (if defined by a User) a map of human-readable remapped values. If `has_field_values` is not\n  `:list`, checks whether we should create FieldValues for this Field; if so, creates and returns them.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/field" ]
      },
      "post" : {
        "operationId" : "post-api-field-id-values",
        "summary" : "POST /api/field/{id}/values",
        "description" : "Update the fields values and human-readable values for a `Field` whose semantic type is\n  `category`/`city`/`state`/`country` or whose base type is `type/Boolean`. The human-readable values are optional.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "values" : {
                    "type" : "array",
                    "items" : {
                      "anyOf" : [ {
                        "type" : "array",
                        "prefixItems" : [ { } ]
                      }, {
                        "type" : "array",
                        "prefixItems" : [ { }, {
                          "type" : "string",
                          "minLength" : 1
                        } ]
                      } ]
                    }
                  }
                },
                "required" : [ "values" ]
              }
            }
          }
        },
        "tags" : [ "/api/field" ]
      }
    },
    "/api/frontend-errors" : {
      "post" : {
        "operationId" : "post-api-frontend-errors",
        "summary" : "POST /api/frontend-errors",
        "description" : "Endpoint for the frontend to report errors. Increments a Prometheus counter\n   with the given `type` label.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "type" : {
                    "$ref" : "#/components/schemas/metabase.frontend-errors.api.frontend-error-type"
                  }
                },
                "required" : [ "type" ]
              }
            }
          }
        },
        "tags" : [ "/api/frontend-errors" ]
      }
    },
    "/api/geojson" : {
      "get" : {
        "operationId" : "get-api-geojson",
        "summary" : "GET /api/geojson",
        "description" : "Load a custom GeoJSON file based on a URL or file path provided as a query parameter.\n  This behaves similarly to /api/geojson/:key but doesn't require the custom map to be saved to the DB first.",
        "parameters" : [ {
          "in" : "query",
          "name" : "url",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/geojson" ]
      }
    },
    "/api/geojson/{key}" : {
      "get" : {
        "operationId" : "get-api-geojson-key",
        "summary" : "GET /api/geojson/{key}",
        "description" : "Fetch a custom GeoJSON file as defined in the [[metabase.geojson.settings/custom-geojson]] setting. (This just acts\n  as a simple proxy for the file specified for `key`).",
        "parameters" : [ {
          "in" : "path",
          "name" : "key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/geojson" ]
      }
    },
    "/api/glossary" : {
      "get" : {
        "operationId" : "get-api-glossary",
        "summary" : "GET /api/glossary",
        "description" : "Fetch all glossary entries, optionally filtered by search term.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/glossary" ]
      },
      "post" : {
        "operationId" : "post-api-glossary",
        "summary" : "POST /api/glossary",
        "description" : "Create a new glossary entry.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "definition" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "term" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "term", "definition" ]
              }
            }
          }
        },
        "tags" : [ "/api/glossary" ]
      }
    },
    "/api/glossary/{id}" : {
      "put" : {
        "operationId" : "put-api-glossary-id",
        "summary" : "PUT /api/glossary/{id}",
        "description" : "Update an existing glossary entry.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "definition" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "term" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "term", "definition" ]
              }
            }
          }
        },
        "tags" : [ "/api/glossary" ]
      },
      "delete" : {
        "operationId" : "delete-api-glossary-id",
        "summary" : "DELETE /api/glossary/{id}",
        "description" : "Delete a glossary entry.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/glossary" ]
      }
    },
    "/api/google/settings" : {
      "put" : {
        "operationId" : "put-api-google-settings",
        "summary" : "PUT /api/google/settings",
        "description" : "Update Google Sign-In related settings. You must be a superuser to do this.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "google-auth-auto-create-accounts-domain" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "google-auth-client-id" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "google-auth-enabled" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/google" ]
      }
    },
    "/api/ldap/settings" : {
      "put" : {
        "operationId" : "put-api-ldap-settings",
        "summary" : "PUT /api/ldap/settings",
        "description" : "Update LDAP related settings. You must be a superuser to do this.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "ldap-enabled" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "ldap-host" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "ldap-password" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "ldap-port" : {
                    "oneOf" : [ {
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/ldap" ]
      }
    },
    "/api/llm/extract-tables" : {
      "post" : {
        "operationId" : "post-api-llm-extract-tables",
        "summary" : "POST /api/llm/extract-tables",
        "description" : "Parse SQL and return referenced tables with their columns.\n\n   Uses Macaw to parse the SQL, resolves table names to IDs,\n   and returns permission-filtered tables with column metadata.\n\n   This is a lightweight endpoint that does not trigger fingerprinting\n   or field value fetching.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "tables" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "columns" : {
                            "type" : "array",
                            "items" : {
                              "type" : "object",
                              "properties" : {
                                "database_type" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "description" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "fk_target" : {
                                  "type" : "object",
                                  "properties" : {
                                    "field_name" : {
                                      "type" : "string"
                                    },
                                    "table_name" : {
                                      "type" : "string"
                                    }
                                  },
                                  "required" : [ "table_name", "field_name" ]
                                },
                                "id" : {
                                  "type" : "integer",
                                  "minimum" : 1
                                },
                                "name" : {
                                  "type" : "string"
                                },
                                "semantic_type" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                }
                              },
                              "required" : [ "id", "name" ]
                            }
                          },
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "name" : {
                            "type" : "string"
                          },
                          "schema" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "name", "columns" ]
                      }
                    }
                  },
                  "required" : [ "tables" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "database_id" : {
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "sql" : {
                    "type" : "string"
                  }
                },
                "required" : [ "database_id", "sql" ]
              }
            }
          }
        },
        "tags" : [ "/api/llm" ]
      }
    },
    "/api/llm/generate-sql" : {
      "post" : {
        "operationId" : "post-api-llm-generate-sql",
        "summary" : "POST /api/llm/generate-sql",
        "description" : "Generate SQL from a natural language prompt.\n\n   Requires:\n   - LLM to be configured (Anthropic API key set in admin settings)\n   - At least one table reference (explicit @mention or implicit from source_sql)\n   - A database_id parameter\n\n   Returns generated SQL and the list of tables used for context.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "referenced_entities" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "columns" : {
                            "type" : "array",
                            "items" : {
                              "type" : "object",
                              "properties" : {
                                "database_type" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "description" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "fk_target" : {
                                  "type" : "object",
                                  "properties" : {
                                    "field_name" : {
                                      "type" : "string"
                                    },
                                    "table_name" : {
                                      "type" : "string"
                                    }
                                  },
                                  "required" : [ "table_name", "field_name" ]
                                },
                                "id" : {
                                  "type" : "integer",
                                  "minimum" : 1
                                },
                                "name" : {
                                  "type" : "string"
                                },
                                "semantic_type" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                }
                              },
                              "required" : [ "id", "name" ]
                            }
                          },
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "model" : {
                            "type" : "string"
                          },
                          "name" : {
                            "type" : "string"
                          },
                          "schema" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "model", "id", "name", "columns" ]
                      }
                    },
                    "sql" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "sql", "referenced_entities" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "database_id" : {
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "prompt" : {
                    "type" : "string"
                  },
                  "referenced_entities" : {
                    "type" : "array",
                    "items" : {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "model" : {
                          "type" : "string"
                        }
                      },
                      "required" : [ "model", "id" ]
                    }
                  },
                  "source_sql" : {
                    "type" : "string"
                  }
                },
                "required" : [ "prompt", "database_id" ]
              }
            }
          }
        },
        "tags" : [ "/api/llm" ]
      }
    },
    "/api/llm/list-models" : {
      "get" : {
        "operationId" : "get-api-llm-list-models",
        "summary" : "GET /api/llm/list-models",
        "description" : "List available LLM models from the configured provider.\n\n   Requires LLM to be configured for the selected provider in admin settings.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "models" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "display_name" : {
                            "type" : "string"
                          },
                          "id" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "id", "display_name" ]
                      }
                    }
                  },
                  "required" : [ "models" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/llm" ]
      }
    },
    "/api/logger/adjustment" : {
      "post" : {
        "operationId" : "post-api-logger-adjustment",
        "summary" : "POST /api/logger/adjustment",
        "description" : "Temporarily adjust the log levels.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "duration" : {
                    "type" : "integer"
                  },
                  "duration_unit" : {
                    "$ref" : "#/components/schemas/metabase.logger.api.time-unit"
                  },
                  "log_levels" : { }
                },
                "required" : [ "duration", "duration_unit", "log_levels" ]
              }
            }
          }
        },
        "tags" : [ "/api/logger" ]
      },
      "delete" : {
        "operationId" : "delete-api-logger-adjustment",
        "summary" : "DELETE /api/logger/adjustment",
        "description" : "Undo any log level adjustments.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/logger" ]
      }
    },
    "/api/logger/logs" : {
      "get" : {
        "operationId" : "get-api-logger-logs",
        "summary" : "GET /api/logger/logs",
        "description" : "Logs.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/logger" ]
      }
    },
    "/api/logger/presets" : {
      "get" : {
        "operationId" : "get-api-logger-presets",
        "summary" : "GET /api/logger/presets",
        "description" : "Get all known presets.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "display_name" : {
                        "type" : "string"
                      },
                      "id" : {
                        "type" : "string"
                      },
                      "loggers" : {
                        "type" : "array",
                        "items" : {
                          "type" : "object",
                          "properties" : {
                            "level" : {
                              "$ref" : "#/components/schemas/metabase.logger.api.log-level"
                            },
                            "name" : {
                              "type" : "string"
                            }
                          },
                          "required" : [ "name", "level" ]
                        }
                      }
                    },
                    "required" : [ "id", "display_name", "loggers" ]
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/logger" ]
      }
    },
    "/api/login-history/current" : {
      "get" : {
        "operationId" : "get-api-login-history-current",
        "summary" : "GET /api/login-history/current",
        "description" : "Fetch recent logins for the current user.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/login-history" ]
      }
    },
    "/api/measure" : {
      "post" : {
        "operationId" : "post-api-measure",
        "summary" : "POST /api/measure",
        "description" : "Create a new `Measure`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.measures.api.measure"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "definition" : {
                    "description" : "Value must be a map.",
                    "type" : "object",
                    "properties" : { }
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "table_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "name", "table_id", "definition" ]
              }
            }
          }
        },
        "tags" : [ "/api/measure" ]
      },
      "get" : {
        "operationId" : "get-api-measure",
        "summary" : "GET /api/measure",
        "description" : "Fetch *all* `Measures`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.measures.api.measure"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/measure" ]
      }
    },
    "/api/measure/{id}" : {
      "get" : {
        "operationId" : "get-api-measure-id",
        "summary" : "GET /api/measure/{id}",
        "description" : "Fetch `Measure` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.measures.api.measure"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/measure" ]
      },
      "put" : {
        "operationId" : "put-api-measure-id",
        "summary" : "PUT /api/measure/{id}",
        "description" : "Update a `Measure` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.measures.api.measure"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "definition" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "revision_message" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "revision_message" ]
              }
            }
          }
        },
        "tags" : [ "/api/measure" ]
      }
    },
    "/api/measure/{id}/dimension/{dimension-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-measure-id-dimension-dimension-key-remapping",
        "summary" : "GET /api/measure/{id}/dimension/{dimension-key}/remapping",
        "description" : "Fetch remapped value for a specific dimension value.\n\n   Returns a pair [value, display-name] if remapping exists, or [value] otherwise.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dimension-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.measures.api.RemappedValueResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/measure" ]
      }
    },
    "/api/measure/{id}/dimension/{dimension-key}/search" : {
      "get" : {
        "operationId" : "get-api-measure-id-dimension-dimension-key-search",
        "summary" : "GET /api/measure/{id}/dimension/{dimension-key}/search",
        "description" : "Search for values of a dimension that contain the query string.\n\n   Returns field values matching the search query in the same format as the field values API.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dimension-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "query",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/measure" ]
      }
    },
    "/api/measure/{id}/dimension/{dimension-key}/values" : {
      "get" : {
        "operationId" : "get-api-measure-id-dimension-dimension-key-values",
        "summary" : "GET /api/measure/{id}/dimension/{dimension-key}/values",
        "description" : "Fetch values for a dimension of a measure.\n\n   Returns field values in the same format as the field values API:\n   - values: list of [value] or [value, display-name] tuples\n   - field_id: the underlying field ID\n   - has_more_values: boolean indicating if there are more values",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dimension-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "has_more_values" : {
                      "type" : "boolean"
                    },
                    "values" : {
                      "type" : "array",
                      "items" : {
                        "anyOf" : [ {
                          "type" : "array",
                          "prefixItems" : [ { }, {
                            "type" : "string"
                          } ]
                        }, {
                          "type" : "array",
                          "prefixItems" : [ { } ]
                        } ]
                      }
                    }
                  },
                  "required" : [ "has_more_values", "values" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/measure" ]
      }
    },
    "/api/metabot/agent-streaming" : {
      "post" : {
        "operationId" : "post-api-metabot-agent-streaming",
        "summary" : "POST /api/metabot/agent-streaming",
        "description" : "Send a chat message to the LLM via the AI Proxy.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "context" : {
                    "$ref" : "#/components/schemas/metabase.metabot.context.context"
                  },
                  "conversation_id" : {
                    "description" : "value must be a valid UUID.",
                    "type" : "string",
                    "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
                  },
                  "debug" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "history" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.metabot.schema.messages"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "message" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "metabot_id" : {
                    "type" : "string"
                  },
                  "profile_id" : {
                    "type" : "string"
                  },
                  "state" : {
                    "type" : "object",
                    "properties" : {
                      "chart-configs" : {
                        "type" : "object",
                        "additionalProperties" : { }
                      },
                      "charts" : {
                        "type" : "object",
                        "additionalProperties" : { }
                      },
                      "queries" : {
                        "type" : "object",
                        "additionalProperties" : { }
                      }
                    }
                  }
                },
                "required" : [ "message", "context", "conversation_id", "history", "state" ]
              }
            }
          }
        },
        "tags" : [ "/api/metabot" ]
      }
    },
    "/api/metabot/document/generate-content" : {
      "post" : {
        "operationId" : "post-api-metabot-document-generate-content",
        "summary" : "POST /api/metabot/document/generate-content",
        "description" : "Create a new piece of content to insert into the document. Kept for backwards compatibility; now uses the native Clojure agent.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "description" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "minLength" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "draft_card" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "database_id" : {
                            "description" : "value must be an integer greater than zero.",
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "dataset_query" : {
                            "description" : "Value must be a map.",
                            "type" : "object",
                            "properties" : { }
                          },
                          "name" : {
                            "type" : "string",
                            "minLength" : 1
                          },
                          "parameters" : {
                            "oneOf" : [ {
                              "type" : "array",
                              "items" : {
                                "description" : "Value must be a map.",
                                "type" : "object",
                                "properties" : { }
                              }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "visualization_settings" : {
                            "description" : "Value must be a map.",
                            "type" : "object",
                            "properties" : { }
                          }
                        },
                        "required" : [ "name", "dataset_query", "database_id", "parameters", "visualization_settings" ]
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "error" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "minLength" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "draft_card", "error", "description" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "instructions" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "references" : {
                    "description" : "Value must be a map.",
                    "type" : "object",
                    "properties" : { }
                  }
                },
                "required" : [ "instructions" ]
              }
            }
          }
        },
        "tags" : [ "/api/metabot/document" ]
      }
    },
    "/api/metabot/feedback" : {
      "post" : {
        "operationId" : "post-api-metabot-feedback",
        "summary" : "POST /api/metabot/feedback",
        "description" : "Proxy Metabot feedback to Harbormaster, adding the premium embedding token.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : { }
              }
            }
          }
        },
        "tags" : [ "/api/metabot" ]
      }
    },
    "/api/metabot/metabot" : {
      "get" : {
        "operationId" : "get-api-metabot-metabot",
        "summary" : "GET /api/metabot/metabot",
        "description" : "List configured metabot instances",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      }
    },
    "/api/metabot/metabot/{id}" : {
      "get" : {
        "operationId" : "get-api-metabot-metabot-id",
        "summary" : "GET /api/metabot/metabot/{id}",
        "description" : "Retrieve one metabot instance",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      },
      "put" : {
        "operationId" : "put-api-metabot-metabot-id",
        "summary" : "PUT /api/metabot/metabot/{id}",
        "description" : "Update a metabot instance",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "use_verified_content" : {
                    "type" : "boolean"
                  }
                },
                "additionalProperties" : false
              }
            }
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      }
    },
    "/api/metabot/metabot/{id}/prompt-suggestions" : {
      "get" : {
        "operationId" : "get-api-metabot-metabot-id-prompt-suggestions",
        "summary" : "GET /api/metabot/metabot/{id}/prompt-suggestions",
        "description" : "Return the prompt suggestions for the metabot instance with `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        }, {
          "in" : "query",
          "name" : "sample",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "model",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "metric", "model" ]
          }
        }, {
          "in" : "query",
          "name" : "model_id",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      },
      "delete" : {
        "operationId" : "delete-api-metabot-metabot-id-prompt-suggestions",
        "summary" : "DELETE /api/metabot/metabot/{id}/prompt-suggestions",
        "description" : "Delete all prompt suggestions for the metabot instance with `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      }
    },
    "/api/metabot/metabot/{id}/prompt-suggestions/regenerate" : {
      "post" : {
        "operationId" : "post-api-metabot-metabot-id-prompt-suggestions-regenerate",
        "summary" : "POST /api/metabot/metabot/{id}/prompt-suggestions/regenerate",
        "description" : "Remove any existing prompt suggestions for the Metabot instance with `id` and generate new ones.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      }
    },
    "/api/metabot/metabot/{id}/prompt-suggestions/{prompt-id}" : {
      "delete" : {
        "operationId" : "delete-api-metabot-metabot-id-prompt-suggestions-prompt-id",
        "summary" : "DELETE /api/metabot/metabot/{id}/prompt-suggestions/{prompt-id}",
        "description" : "Delete the prompt suggestion with ID `prompt-id` for the metabot instance with `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        }, {
          "in" : "path",
          "name" : "prompt-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/metabot" ]
      }
    },
    "/api/metabot/permissions/user-permissions" : {
      "get" : {
        "operationId" : "get-api-metabot-permissions-user-permissions",
        "summary" : "GET /api/metabot/permissions/user-permissions",
        "description" : "Return the current user's resolved metabot permissions, taking the most\n  permissive value across all their groups.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "permissions" : {
                      "type" : "object",
                      "properties" : {
                        "metabot" : {
                          "type" : "string",
                          "enum" : [ "yes", "no" ]
                        },
                        "metabot-nlq" : {
                          "type" : "string",
                          "enum" : [ "yes", "no" ]
                        },
                        "metabot-other-tools" : {
                          "type" : "string",
                          "enum" : [ "yes", "no" ]
                        },
                        "metabot-sql-generation" : {
                          "type" : "string",
                          "enum" : [ "yes", "no" ]
                        }
                      },
                      "required" : [ "metabot", "metabot-sql-generation", "metabot-nlq", "metabot-other-tools" ]
                    }
                  },
                  "required" : [ "permissions" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/permissions" ]
      }
    },
    "/api/metabot/settings" : {
      "get" : {
        "operationId" : "get-api-metabot-settings",
        "summary" : "GET /api/metabot/settings",
        "description" : "Return available models for a provider using its configured API key.",
        "parameters" : [ {
          "in" : "query",
          "name" : "provider",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "anthropic", "openai", "metabase", "openrouter" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "api-key-error" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "models" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "display_name" : {
                            "type" : "string"
                          },
                          "group" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "id", "display_name" ]
                      }
                    },
                    "value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "value", "models" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot" ]
      },
      "put" : {
        "operationId" : "put-api-metabot-settings",
        "summary" : "PUT /api/metabot/settings",
        "description" : "Update the Metabot provider API key and/or model setting and return the refreshed settings payload.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "api-key-error" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "models" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "display_name" : {
                            "type" : "string"
                          },
                          "group" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "id", "display_name" ]
                      }
                    },
                    "value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "value", "models" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "api-key" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "model" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "provider" : {
                    "type" : "string",
                    "enum" : [ "anthropic", "openai", "metabase", "openrouter" ]
                  }
                },
                "required" : [ "provider" ]
              }
            }
          }
        },
        "tags" : [ "/api/metabot" ]
      }
    },
    "/api/metabot/slack/events" : {
      "post" : {
        "operationId" : "post-api-metabot-slack-events",
        "summary" : "POST /api/metabot/slack/events",
        "description" : "Respond to activities in Slack",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "body" : {
                      "type" : "string"
                    },
                    "headers" : {
                      "type" : "object",
                      "properties" : {
                        "Content-Type" : {
                          "const" : "text/plain"
                        }
                      },
                      "required" : [ "Content-Type" ]
                    },
                    "status" : {
                      "const" : 200
                    }
                  },
                  "required" : [ "status", "headers", "body" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "challenge" : {
                      "type" : "string"
                    },
                    "type" : {
                      "const" : "url_verification"
                    }
                  },
                  "required" : [ "type", "challenge" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "event" : {
                      "type" : "object",
                      "properties" : {
                        "event_ts" : {
                          "type" : "string"
                        },
                        "type" : {
                          "type" : "string"
                        }
                      },
                      "required" : [ "type", "event_ts" ]
                    },
                    "type" : {
                      "const" : "event_callback"
                    }
                  },
                  "required" : [ "type", "event" ]
                }, {
                  "type" : "object",
                  "properties" : {
                    "type" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "type" ]
                } ]
              }
            }
          }
        },
        "tags" : [ "/api/metabot/slack" ]
      }
    },
    "/api/metabot/slack/interactive" : {
      "post" : {
        "operationId" : "post-api-metabot-slack-interactive",
        "summary" : "POST /api/metabot/slack/interactive",
        "description" : "Handle interactive payloads from Slack (button clicks, modal submissions).",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metabot/slack" ]
      }
    },
    "/api/metabot/slack/settings" : {
      "put" : {
        "operationId" : "put-api-metabot-slack-settings",
        "summary" : "PUT /api/metabot/slack/settings",
        "description" : "Update Metabot Slack settings atomically.\n   All credential fields must be provided together.\n   Setting values requires the metabot-v3 feature, but clearing values is always allowed.\n   slack-connect-enabled is automatically set to true when credentials are provided, nil when cleared.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "ok" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "ok" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "metabot-slack-signing-secret" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "slack-connect-client-id" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "slack-connect-client-secret" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "slack-connect-client-id", "slack-connect-client-secret", "metabot-slack-signing-secret" ]
              }
            }
          }
        },
        "tags" : [ "/api/metabot/slack" ]
      }
    },
    "/api/metric" : {
      "get" : {
        "operationId" : "get-api-metric",
        "summary" : "GET /api/metric",
        "description" : "Get a list of metrics.\n\n  Returns metrics (Cards with type='metric') that the current user has read access to,\n  filtered by collection visibility permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.metrics.api.Metric"
                      }
                    },
                    "limit" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "offset" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "type" : "integer",
                      "minimum" : 0
                    },
                    "total" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "type" : "integer",
                      "minimum" : 0
                    }
                  },
                  "required" : [ "total", "limit", "offset", "data" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/metric/breakout-values" : {
      "post" : {
        "operationId" : "post-api-metric-breakout-values",
        "summary" : "POST /api/metric/breakout-values",
        "description" : "Fetch distinct breakout dimension values for a metric or measure definition.\n   Accepts the same definition format as POST /dataset.\n   Returns extracted values and column metadata for the breakout dimension.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.metrics.api.BreakoutValuesResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.metrics.api.DatasetRequest"
              }
            }
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/metric/dataset" : {
      "post" : {
        "operationId" : "post-api-metric-dataset",
        "summary" : "POST /api/metric/dataset",
        "description" : "Execute a metric or measure-based query and stream the results.\n\n   Request body requires a `definition` object containing:\n   - expression: A metric math expression tree (leaf reference or arithmetic)\n     Examples: [:metric {:lib/uuid \"a\"} 42], [:- {} [:metric {:lib/uuid \"a\"} 1] [:metric {:lib/uuid \"b\"} 2]]\n   - filters (optional): Per-instance filters keyed by :lib/uuid from the expression\n   - projections (optional): Typed projections keyed by source type and ID",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.metrics.api.DatasetResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.metrics.api.DatasetRequest"
              }
            }
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/metric/{id}" : {
      "get" : {
        "operationId" : "get-api-metric-id",
        "summary" : "GET /api/metric/{id}",
        "description" : "Fetch a `Metric` with ID.\n\n  Returns the metric with hydrated dimensions and dimension mappings.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.metrics.api.MetricWithDimensions"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/metric/{id}/dimension/{dimension-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-metric-id-dimension-dimension-key-remapping",
        "summary" : "GET /api/metric/{id}/dimension/{dimension-key}/remapping",
        "description" : "Fetch remapped value for a specific dimension value.\n\n   Returns a pair [value, display-name] if remapping exists, or [value] otherwise.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dimension-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.metrics.api.RemappedValueResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/metric/{id}/dimension/{dimension-key}/search" : {
      "get" : {
        "operationId" : "get-api-metric-id-dimension-dimension-key-search",
        "summary" : "GET /api/metric/{id}/dimension/{dimension-key}/search",
        "description" : "Search for values of a dimension that contain the query string.\n\n   Returns field values matching the search query in the same format as the field values API.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dimension-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "query",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/metric/{id}/dimension/{dimension-key}/values" : {
      "get" : {
        "operationId" : "get-api-metric-id-dimension-dimension-key-values",
        "summary" : "GET /api/metric/{id}/dimension/{dimension-key}/values",
        "description" : "Fetch values for a dimension of a metric.\n\n   Returns field values in the same format as the field values API:\n   - values: list of [value] or [value, display-name] tuples\n   - field_id: the underlying field ID\n   - has_more_values: boolean indicating if there are more values",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dimension-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "has_more_values" : {
                      "type" : "boolean"
                    },
                    "values" : {
                      "type" : "array",
                      "items" : {
                        "anyOf" : [ {
                          "type" : "array",
                          "prefixItems" : [ { }, {
                            "type" : "string"
                          } ]
                        }, {
                          "type" : "array",
                          "prefixItems" : [ { } ]
                        } ]
                      }
                    }
                  },
                  "required" : [ "has_more_values", "values" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/metric" ]
      }
    },
    "/api/model-index" : {
      "post" : {
        "operationId" : "post-api-model-index",
        "summary" : "POST /api/model-index",
        "description" : "Create ModelIndex.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "model_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "pk_ref" : { },
                  "value_ref" : { }
                },
                "required" : [ "model_id", "pk_ref", "value_ref" ]
              }
            }
          }
        },
        "tags" : [ "/api/model-index" ]
      },
      "get" : {
        "operationId" : "get-api-model-index",
        "summary" : "GET /api/model-index",
        "description" : "Retrieve list of ModelIndex.",
        "parameters" : [ {
          "in" : "query",
          "name" : "model_id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/model-index" ]
      }
    },
    "/api/model-index/{id}" : {
      "get" : {
        "operationId" : "get-api-model-index-id",
        "summary" : "GET /api/model-index/{id}",
        "description" : "Retrieve ModelIndex.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/model-index" ]
      },
      "delete" : {
        "operationId" : "delete-api-model-index-id",
        "summary" : "DELETE /api/model-index/{id}",
        "description" : "Delete ModelIndex.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/model-index" ]
      }
    },
    "/api/moderation-review" : {
      "post" : {
        "operationId" : "post-api-moderation-review",
        "summary" : "POST /api/moderation-review",
        "description" : "Create a new `ModerationReview`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "moderated_item_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "moderated_item_type" : {
                    "enum" : [ "card", "card", "dashboard", "dashboard" ]
                  },
                  "status" : {
                    "oneOf" : [ {
                      "oneOf" : [ {
                        "type" : "string",
                        "enum" : [ "verified" ]
                      }, {
                        "type" : "null"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "text" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "moderated_item_id", "moderated_item_type" ]
              }
            }
          }
        },
        "tags" : [ "/api/moderation-review" ]
      }
    },
    "/api/mt/gtap" : {
      "get" : {
        "operationId" : "get-api-mt-gtap",
        "summary" : "GET /api/mt/gtap",
        "description" : "Fetch a list of all GTAPs currently in use, or a single GTAP if both `group_id` and `table_id` are provided.",
        "parameters" : [ {
          "in" : "query",
          "name" : "group_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "table_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/mt/gtap" ]
      },
      "post" : {
        "operationId" : "post-api-mt-gtap",
        "summary" : "POST /api/mt/gtap",
        "description" : "Create a new GTAP.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "attribute_remappings" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.sandbox.schema.attribute-remappings"
                  },
                  "card_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "group_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "table_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "table_id", "group_id" ]
              }
            }
          }
        },
        "tags" : [ "/api/mt/gtap" ]
      }
    },
    "/api/mt/gtap/validate" : {
      "post" : {
        "operationId" : "post-api-mt-gtap-validate",
        "summary" : "POST /api/mt/gtap/validate",
        "description" : "Validate a sandbox which may not have yet been saved. This runs the same validation that is performed when the\n  sandbox is saved, but doesn't actually save the sandbox.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "card_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "table_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "table_id" ]
              }
            }
          }
        },
        "tags" : [ "/api/mt/gtap" ]
      }
    },
    "/api/mt/gtap/{id}" : {
      "get" : {
        "operationId" : "get-api-mt-gtap-id",
        "summary" : "GET /api/mt/gtap/{id}",
        "description" : "Fetch GTAP by `id`",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/mt/gtap" ]
      },
      "put" : {
        "operationId" : "put-api-mt-gtap-id",
        "summary" : "PUT /api/mt/gtap/{id}",
        "description" : "Update a GTAP entry. The only things you're allowed to update for a GTAP are the Card being used (`card_id`) or the\n  parameter mappings; changing `table_id` or `group_id` would effectively be deleting this entry and creating a new\n  one. If that's what you want to do, do so explicitly with appropriate calls to the `DELETE` and `POST` endpoints.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "attribute_remappings" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.sandbox.schema.attribute-remappings"
                  },
                  "card_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/mt/gtap" ]
      },
      "delete" : {
        "operationId" : "delete-api-mt-gtap-id",
        "summary" : "DELETE /api/mt/gtap/{id}",
        "description" : "Delete a GTAP entry.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/mt/gtap" ]
      }
    },
    "/api/mt/user/attributes" : {
      "get" : {
        "operationId" : "get-api-mt-user-attributes",
        "summary" : "GET /api/mt/user/attributes",
        "description" : "Fetch a list of possible keys for User `login_attributes`. This includes keys from tenant model\n  attributes and keys that have already been set for existing Users.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/mt/user" ]
      }
    },
    "/api/mt/user/{id}/attributes" : {
      "put" : {
        "operationId" : "put-api-mt-user-id-attributes",
        "summary" : "PUT /api/mt/user/{id}/attributes",
        "description" : "Update the `login_attributes` for a User.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "login_attributes" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid user attributes map (name -> value)",
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/mt/user" ]
      }
    },
    "/api/native-query-snippet" : {
      "get" : {
        "operationId" : "get-api-native-query-snippet",
        "summary" : "GET /api/native-query-snippet",
        "description" : "Fetch all snippets",
        "parameters" : [ {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/native-query-snippet" ]
      },
      "post" : {
        "operationId" : "post-api-native-query-snippet",
        "summary" : "POST /api/native-query-snippet",
        "description" : "Create a new `NativeQuerySnippet`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "content" : {
                    "type" : "string"
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "description" : "snippet names cannot include '}' or start with spaces"
                  }
                },
                "required" : [ "content", "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/native-query-snippet" ]
      }
    },
    "/api/native-query-snippet/{id}" : {
      "get" : {
        "operationId" : "get-api-native-query-snippet-id",
        "summary" : "GET /api/native-query-snippet/{id}",
        "description" : "Fetch native query snippet with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/native-query-snippet" ]
      },
      "put" : {
        "operationId" : "put-api-native-query-snippet-id",
        "summary" : "PUT /api/native-query-snippet/{id}",
        "description" : "Update an existing `NativeQuerySnippet`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "content" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "description" : "snippet names cannot include '}' or start with spaces"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/native-query-snippet" ]
      }
    },
    "/api/notification" : {
      "get" : {
        "operationId" : "get-api-notification",
        "summary" : "GET /api/notification",
        "description" : "List notifications.\n  - `creator_id`: if provided returns only notifications created by this user\n  - `recipient_id`: if provided returns only notification that has recipient_id as a recipient\n  - `creator_or_recipient_id`: if provided returns only notification that has user_id as creator or recipient\n  - `card_id`: if provided returns only notification that has card_id as payload",
        "parameters" : [ {
          "in" : "query",
          "name" : "creator_id",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "recipient_id",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "creator_or_recipient_id",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "card_id",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_inactive",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "payload_type",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/notification" ]
      },
      "post" : {
        "operationId" : "post-api-notification",
        "summary" : "POST /api/notification",
        "description" : "Create a new notification, return the created notification.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.FullyHydratedNotification"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.notification.api.notification.NotificationApiInput"
              }
            }
          }
        },
        "tags" : [ "/api/notification" ]
      }
    },
    "/api/notification/send" : {
      "post" : {
        "operationId" : "post-api-notification-send",
        "summary" : "POST /api/notification/send",
        "description" : "Send an unsaved notification.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.notification.api.notification.NotificationApiInput"
              }
            }
          }
        },
        "tags" : [ "/api/notification" ]
      }
    },
    "/api/notification/unsubscribe" : {
      "post" : {
        "operationId" : "post-api-notification-unsubscribe",
        "summary" : "POST /api/notification/unsubscribe",
        "description" : "Allow non-users to unsubscribe from notifications, with the hash given through email.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email" : {
                    "type" : "string"
                  },
                  "hash" : {
                    "type" : "string"
                  },
                  "notification-handler-id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "notification-handler-id", "email", "hash" ]
              }
            }
          }
        },
        "tags" : [ "/api/notification/unsubscribe" ]
      }
    },
    "/api/notification/unsubscribe/undo" : {
      "post" : {
        "operationId" : "post-api-notification-unsubscribe-undo",
        "summary" : "POST /api/notification/unsubscribe/undo",
        "description" : "Allow non-users to undo an unsubscribe from notifications, with the hash given through email.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email" : {
                    "type" : "string"
                  },
                  "hash" : {
                    "type" : "string"
                  },
                  "notification-handler-id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "notification-handler-id", "email", "hash" ]
              }
            }
          }
        },
        "tags" : [ "/api/notification/unsubscribe" ]
      }
    },
    "/api/notification/{id}" : {
      "get" : {
        "operationId" : "get-api-notification-id",
        "summary" : "GET /api/notification/{id}",
        "description" : "Get a notification by id.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/notification" ]
      },
      "put" : {
        "operationId" : "put-api-notification-id",
        "summary" : "PUT /api/notification/{id}",
        "description" : "Update a notification, can also update its subscriptions, handlers.\n  Return the updated notification.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.notification.api.notification.NotificationApiInput"
              }
            }
          }
        },
        "tags" : [ "/api/notification" ]
      }
    },
    "/api/notification/{id}/send" : {
      "post" : {
        "operationId" : "post-api-notification-id-send",
        "summary" : "POST /api/notification/{id}/send",
        "description" : "Send a notification by id.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "handler_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/notification" ]
      }
    },
    "/api/notification/{id}/unsubscribe" : {
      "post" : {
        "operationId" : "post-api-notification-id-unsubscribe",
        "summary" : "POST /api/notification/{id}/unsubscribe",
        "description" : "Unsubscribe current user from a notification.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/notification" ]
      }
    },
    "/api/notify/db/attached_datawarehouse" : {
      "post" : {
        "operationId" : "post-api-notify-db-attached_datawarehouse",
        "summary" : "POST /api/notify/db/attached_datawarehouse",
        "description" : "Sync the attached datawarehouse. Can provide in the body:\n  - table_name and schema_name: both strings. Will look for an existing table and sync it, otherwise will try to find a\n  new table with that name and sync it. If it cannot find a table it will throw an error. If table_name is empty or\n  blank, will sync the entire database.\n  - synchronous?: is a boolean value to indicate if this should block on the result.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "schema_name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "synchronous?" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "table_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "synchronous?" ]
              }
            }
          }
        },
        "tags" : [ "/api/notify" ]
      }
    },
    "/api/notify/db/{id}" : {
      "post" : {
        "operationId" : "post-api-notify-db-id",
        "summary" : "POST /api/notify/db/{id}",
        "description" : "Notification about a potential schema change to one of our `Databases`.\n  Caller can optionally specify a `:table_id` or `:table_name` in the body to limit updates to a single\n  `Table`. Optional Parameter `:scan` can be `\"full\"` or `\"schema\"` for a full sync or a schema sync, available\n  regardless if a `:table_id` or `:table_name` is passed.\n  This endpoint is secured by an API key that needs to be passed as a `X-METABASE-APIKEY` header which needs to be defined in\n  the `MB_API_KEY` [environment variable](https://www.metabase.com/docs/latest/configuring-metabase/environment-variables.html#mb_api_key)",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "scan" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "full", "schema" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "table_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "table_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/notify" ]
      }
    },
    "/api/notify/db/{id}/new-table" : {
      "post" : {
        "operationId" : "post-api-notify-db-id-new-table",
        "summary" : "POST /api/notify/db/{id}/new-table",
        "description" : "Sync a new table without running a full database sync. Requires `schema_name` and `table_name`. Will throw an error\n  if the table already exists in Metabase or cannot be found.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "schema_name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "table_name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "schema_name", "table_name" ]
              }
            }
          }
        },
        "tags" : [ "/api/notify" ]
      }
    },
    "/api/permissions/graph" : {
      "get" : {
        "operationId" : "get-api-permissions-graph",
        "summary" : "GET /api/permissions/graph",
        "description" : "Fetch a graph of all Permissions.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      },
      "put" : {
        "operationId" : "put-api-permissions-graph",
        "summary" : "PUT /api/permissions/graph",
        "description" : "Do a batch update of Permissions by passing in a modified graph. This should return the same graph, in the same\n  format, that you got from `GET /api/permissions/graph`, with any changes made in the wherever necessary. This\n  modified graph must correspond to the `PermissionsGraph` schema. If successful, this endpoint returns the updated\n  permissions graph; use this as a base for any further modifications.\n\n  Revisions to the permissions graph are tracked. If you fetch the permissions graph and some other third-party\n  modifies it before you can submit you revisions, the endpoint will instead make no changes and return a\n  409 (Conflict) response. In this case, you should fetch the updated graph and make desired changes to that.\n\n  The optional `sandboxes` key contains a list of sandboxes that should be created or modified in conjunction with\n  this permissions graph update. Since data sandboxing is an Enterprise Edition-only feature, a 402 (Payment Required)\n  response will be returned if this key is present and the server is not running the Enterprise Edition, and/or the\n  `:sandboxes` feature flag is not present.\n\n  If the skip-graph query param is truthy, then the graph will not be returned.",
        "parameters" : [ {
          "in" : "query",
          "name" : "skip-graph",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "force",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : { }
              }
            }
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/graph/db/{db-id}" : {
      "get" : {
        "operationId" : "get-api-permissions-graph-db-db-id",
        "summary" : "GET /api/permissions/graph/db/{db-id}",
        "description" : "Fetch a graph of all Permissions for db-id `db-id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "db-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/graph/group/{group-id}" : {
      "get" : {
        "operationId" : "get-api-permissions-graph-group-group-id",
        "summary" : "GET /api/permissions/graph/group/{group-id}",
        "description" : "Fetch a graph of all Permissions for group-id `group-id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/group" : {
      "get" : {
        "operationId" : "get-api-permissions-group",
        "summary" : "GET /api/permissions/group",
        "description" : "Fetch all `PermissionsGroups`, including a count of the number of `:members` in that group.\n  This API requires superuser or group manager of more than one group.\n  Group manager is only available if `advanced-permissions` is enabled and returns only groups that user\n  is manager of.\n\n  Optional query parameter `tenancy` can be used to filter groups:\n  - `tenancy=external`: Returns only tenant groups (where `is_tenant_group = true`)\n  - `tenancy=internal`: Returns only non-tenant groups (where `is_tenant_group = false`)\n  - No `tenancy` parameter: Returns all groups (default behavior)",
        "parameters" : [ {
          "in" : "query",
          "name" : "tenancy",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "external", "internal" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      },
      "post" : {
        "operationId" : "post-api-permissions-group",
        "summary" : "POST /api/permissions/group",
        "description" : "Create a new `PermissionsGroup`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "is_tenant_group" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/group/{group-id}" : {
      "put" : {
        "operationId" : "put-api-permissions-group-group-id",
        "summary" : "PUT /api/permissions/group/{group-id}",
        "description" : "Update the name of a `PermissionsGroup`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/permissions" ]
      },
      "delete" : {
        "operationId" : "delete-api-permissions-group-group-id",
        "summary" : "DELETE /api/permissions/group/{group-id}",
        "description" : "Delete a specific `PermissionsGroup`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/group/{id}" : {
      "get" : {
        "operationId" : "get-api-permissions-group-id",
        "summary" : "GET /api/permissions/group/{id}",
        "description" : "Fetch the details for a certain permissions group.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/membership" : {
      "get" : {
        "operationId" : "get-api-permissions-membership",
        "summary" : "GET /api/permissions/membership",
        "description" : "Fetch a map describing the group memberships of various users.\n   This map's format is:\n\n    {<user-id> [{:membership_id    <id>\n                 :group_id         <id>\n                 :is_group_manager boolean}]}",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      },
      "post" : {
        "operationId" : "post-api-permissions-membership",
        "summary" : "POST /api/permissions/membership",
        "description" : "Add a `User` to a `PermissionsGroup`. Returns updated list of members belonging to the group.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "group_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "is_group_manager" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "user_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "group_id", "user_id", "is_group_manager" ]
              }
            }
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/membership/{group-id}/clear" : {
      "put" : {
        "operationId" : "put-api-permissions-membership-group-id-clear",
        "summary" : "PUT /api/permissions/membership/{group-id}/clear",
        "description" : "Remove all members from a `PermissionsGroup`. Returns a 400 (Bad Request) if the group ID is for the admin group.",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/permissions/membership/{id}" : {
      "put" : {
        "operationId" : "put-api-permissions-membership-id",
        "summary" : "PUT /api/permissions/membership/{id}",
        "description" : "Update a Permission Group membership. Returns the updated record.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "is_group_manager" : {
                    "type" : "boolean"
                  }
                },
                "required" : [ "is_group_manager" ]
              }
            }
          }
        },
        "tags" : [ "/api/permissions" ]
      },
      "delete" : {
        "operationId" : "delete-api-permissions-membership-id",
        "summary" : "DELETE /api/permissions/membership/{id}",
        "description" : "Remove a User from a PermissionsGroup (delete their membership).",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/permissions" ]
      }
    },
    "/api/persist" : {
      "get" : {
        "operationId" : "get-api-persist",
        "summary" : "GET /api/persist",
        "description" : "List the entries of [[PersistedInfo]] in order to show a status page.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-persist-card-card-id",
        "summary" : "GET /api/persist/card/{card-id}",
        "description" : "Fetch a particular [[PersistedInfo]] by card-id.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/card/{card-id}/persist" : {
      "post" : {
        "operationId" : "post-api-persist-card-card-id-persist",
        "summary" : "POST /api/persist/card/{card-id}/persist",
        "description" : "Mark the model (card) as persisted. Runs the query and saves it to the database backing the card and hot swaps this\n  query in place of the model's query.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/card/{card-id}/refresh" : {
      "post" : {
        "operationId" : "post-api-persist-card-card-id-refresh",
        "summary" : "POST /api/persist/card/{card-id}/refresh",
        "description" : "Refresh the persisted model caching `card-id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/card/{card-id}/unpersist" : {
      "post" : {
        "operationId" : "post-api-persist-card-card-id-unpersist",
        "summary" : "POST /api/persist/card/{card-id}/unpersist",
        "description" : "Unpersist this model. Deletes the persisted table backing the model and all queries after this will use the card's\n  query rather than the saved version of the query.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/database/{id}/persist" : {
      "post" : {
        "operationId" : "post-api-persist-database-id-persist",
        "summary" : "POST /api/persist/database/{id}/persist",
        "description" : "Attempt to enable model persistence for a database. If already enabled returns a generic 204.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/database/{id}/unpersist" : {
      "post" : {
        "operationId" : "post-api-persist-database-id-unpersist",
        "summary" : "POST /api/persist/database/{id}/unpersist",
        "description" : "Attempt to disable model persistence for a database. If already not enabled, just returns a generic 204.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/disable" : {
      "post" : {
        "operationId" : "post-api-persist-disable",
        "summary" : "POST /api/persist/disable",
        "description" : "Disable global setting to allow databases to persist models. This will remove all tasks to refresh tables, remove\n  that option from databases which might have it enabled, and delete all cached tables.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/enable" : {
      "post" : {
        "operationId" : "post-api-persist-enable",
        "summary" : "POST /api/persist/enable",
        "description" : "Enable global setting to allow databases to persist models.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/set-refresh-schedule" : {
      "post" : {
        "operationId" : "post-api-persist-set-refresh-schedule",
        "summary" : "POST /api/persist/set-refresh-schedule",
        "description" : "Set the cron schedule to refresh persisted models.\n   Shape should be JSON like {cron: \"0 30 1/8 * * ? *\"}.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cron" : {
                    "description" : "Value must be a string representing a cron schedule of format <seconds> <minutes> <hours> <day of month> <month> <day of week> <year>",
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "cron" ]
              }
            }
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/persist/{persisted-info-id}" : {
      "get" : {
        "operationId" : "get-api-persist-persisted-info-id",
        "summary" : "GET /api/persist/{persisted-info-id}",
        "description" : "Fetch a particular [[PersistedInfo]] by id.",
        "parameters" : [ {
          "in" : "path",
          "name" : "persisted-info-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/persist" ]
      }
    },
    "/api/premium-features/token/refresh" : {
      "post" : {
        "operationId" : "post-api-premium-features-token-refresh",
        "summary" : "POST /api/premium-features/token/refresh",
        "description" : "Clear all token caches and re-check the premium features token against the MetaStore.\n  Returns the fresh token status. Useful for the frontend after a purchase so that new features\n  are recognized without waiting for the cache TTL.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/premium-features" ]
      }
    },
    "/api/premium-features/token/status" : {
      "get" : {
        "operationId" : "get-api-premium-features-token-status",
        "summary" : "GET /api/premium-features/token/status",
        "description" : "Fetch info about the current Premium-Features premium features token including whether it is `valid`, a `trial` token, its\n  `features`, when it is `valid-thru`, and the `status` of the account.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/premium-features" ]
      }
    },
    "/api/preview_embed/card/{token}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-card-token",
        "summary" : "GET /api/preview_embed/card/{token}",
        "description" : "Fetch a Card you're considering embedding by passing a JWT `token`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/card/{token}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-preview_embed-card-token-params-param-key-remapping",
        "summary" : "GET /api/preview_embed/card/{token}/params/{param-key}/remapping",
        "description" : "Embedded version of api.card filter values endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/card/{token}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-preview_embed-card-token-params-param-key-values",
        "summary" : "GET /api/preview_embed/card/{token}/params/{param-key}/values",
        "description" : "Embedded version of api.card filter values endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "has_more_values" : {
                      "type" : "boolean"
                    },
                    "values" : {
                      "type" : "array",
                      "items" : {
                        "anyOf" : [ {
                          "type" : "array",
                          "prefixItems" : [ { }, {
                            "type" : "string"
                          } ]
                        }, {
                          "type" : "array",
                          "prefixItems" : [ { } ]
                        } ]
                      }
                    }
                  },
                  "required" : [ "has_more_values", "values" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/card/{token}/query" : {
      "get" : {
        "operationId" : "get-api-preview_embed-card-token-query",
        "summary" : "GET /api/preview_embed/card/{token}/query",
        "description" : "Fetch the query results for a Card you're considering embedding by passing a JWT `token`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/dashboard/{token}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-dashboard-token",
        "summary" : "GET /api/preview_embed/dashboard/{token}",
        "description" : "Fetch a Dashboard you're considering embedding by passing a JWT `token`. ",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-dashboard-token-dashcard-dashcard-id-card-card-id",
        "summary" : "GET /api/preview_embed/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}",
        "description" : "Fetch the results of running a Card belonging to a Dashboard you're considering embedding with JWT `token`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/dashboard/{token}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-preview_embed-dashboard-token-params-param-key-remapping",
        "summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/remapping",
        "description" : "Embedded version of the remapped dashboard param value endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/dashboard/{token}/params/{param-key}/search/{prefix}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-dashboard-token-params-param-key-search-prefix",
        "summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/search/{prefix}",
        "description" : "Embedded version of chain filter search endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "prefix",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/dashboard/{token}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-preview_embed-dashboard-token-params-param-key-values",
        "summary" : "GET /api/preview_embed/dashboard/{token}/params/{param-key}/values",
        "description" : "Embedded version of chain filter values endpoint.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/pivot/card/{token}/query" : {
      "get" : {
        "operationId" : "get-api-preview_embed-pivot-card-token-query",
        "summary" : "GET /api/preview_embed/pivot/card/{token}/query",
        "description" : "Fetch the query results for a Card you're considering embedding by passing a JWT `token`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/pivot/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-pivot-dashboard-token-dashcard-dashcard-id-card-card-id",
        "summary" : "GET /api/preview_embed/pivot/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}",
        "description" : "Fetch the results of running a Card belonging to a Dashboard you're considering embedding with JWT `token`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/tiles/card/{token}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-tiles-card-token-zoom-x-y",
        "summary" : "GET /api/preview_embed/tiles/card/{token}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for an embedded Card using the map visualization.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/preview_embed/tiles/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-preview_embed-tiles-dashboard-token-dashcard-dashcard-id-card-card-id-zoom-x-y",
        "summary" : "GET /api/preview_embed/tiles/dashboard/{token}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for a Card on an embedded Dashboard using the map visualization.",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/preview_embed" ]
      }
    },
    "/api/product-feedback" : {
      "post" : {
        "operationId" : "post-api-product-feedback",
        "summary" : "POST /api/product-feedback",
        "description" : "Endpoint to provide feedback from the product",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "comments" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "source" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "source" ]
              }
            }
          }
        },
        "tags" : [ "/api/product-feedback" ]
      }
    },
    "/api/public/action/{uuid}" : {
      "get" : {
        "operationId" : "get-api-public-action-uuid",
        "summary" : "GET /api/public/action/{uuid}",
        "description" : "Fetch a publicly-accessible Action. Does not require auth credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/action/{uuid}/execute" : {
      "post" : {
        "operationId" : "post-api-public-action-uuid-execute",
        "summary" : "POST /api/public/action/{uuid}/execute",
        "description" : "Execute the Action.\n\n   `parameters` should be the mapped dashboard parameters with values.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/card/{uuid}" : {
      "get" : {
        "operationId" : "get-api-public-card-uuid",
        "summary" : "GET /api/public/card/{uuid}",
        "description" : "Fetch a publicly-accessible Card an return query results as well as `:card` information. Does not require auth\n   credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/card/{uuid}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-public-card-uuid-params-param-key-remapping",
        "summary" : "GET /api/public/card/{uuid}/params/{param-key}/remapping",
        "description" : "Fetch the remapped value for the given `value` of parameter with ID `:param-key` of card with UUID `uuid`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : { }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/card/{uuid}/params/{param-key}/search/{query}" : {
      "get" : {
        "operationId" : "get-api-public-card-uuid-params-param-key-search-query",
        "summary" : "GET /api/public/card/{uuid}/params/{param-key}/search/{query}",
        "description" : "Fetch values for a parameter on a public card containing `query`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/card/{uuid}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-public-card-uuid-params-param-key-values",
        "summary" : "GET /api/public/card/{uuid}/params/{param-key}/values",
        "description" : "Fetch values for a parameter on a public card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/card/{uuid}/query" : {
      "get" : {
        "operationId" : "get-api-public-card-uuid-query",
        "summary" : "GET /api/public/card/{uuid}/query",
        "description" : "Fetch a publicly-accessible Card an return query results as well as `:card` information. Does not require auth\n   credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be a valid JSON string.",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/card/{uuid}/query/{export-format}" : {
      "get" : {
        "operationId" : "get-api-public-card-uuid-query-export-format",
        "summary" : "GET /api/public/card/{uuid}/query/{export-format}",
        "description" : "Fetch a publicly-accessible Card and return query results in the specified format. Does not require auth\n  credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        }, {
          "in" : "query",
          "name" : "format_rows",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "pivot_results",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be a valid JSON string.",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}" : {
      "get" : {
        "operationId" : "get-api-public-dashboard-uuid",
        "summary" : "GET /api/public/dashboard/{uuid}",
        "description" : "Fetch a publicly-accessible Dashboard. Does not require auth credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-public-dashboard-uuid-dashcard-dashcard-id-card-card-id",
        "summary" : "GET /api/public/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}",
        "description" : "Fetch the results for a Card in a publicly-accessible Dashboard. Does not require auth credentials. Public\n   sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be a valid JSON string.",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}/{export-format}" : {
      "post" : {
        "operationId" : "post-api-public-dashboard-uuid-dashcard-dashcard-id-card-card-id-export-format",
        "summary" : "POST /api/public/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}/{export-format}",
        "description" : "Fetch the results of running a publicly-accessible Card belonging to a Dashboard and return the data in one of the\n  export formats. Does not require auth credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : { }
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ]
              }
            }
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}/dashcard/{dashcard-id}/execute" : {
      "get" : {
        "operationId" : "get-api-public-dashboard-uuid-dashcard-dashcard-id-execute",
        "summary" : "GET /api/public/dashboard/{uuid}/dashcard/{dashcard-id}/execute",
        "description" : "Fetches the values for filling in execution parameters. Pass PK parameters and values to select.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : true,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      },
      "post" : {
        "operationId" : "post-api-public-dashboard-uuid-dashcard-dashcard-id-execute",
        "summary" : "POST /api/public/dashboard/{uuid}/dashcard/{dashcard-id}/execute",
        "description" : "Execute the associated Action in the context of a `Dashboard` and `DashboardCard` that includes it.\n\n   `parameters` should be the mapped dashboard parameters with values.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}/params/{param-key}/remapping" : {
      "get" : {
        "operationId" : "get-api-public-dashboard-uuid-params-param-key-remapping",
        "summary" : "GET /api/public/dashboard/{uuid}/params/{param-key}/remapping",
        "description" : "Fetch the remapped value for the given `value` of parameter with ID `:param-key` of dashboard with UUID `uuid`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : { }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}/params/{param-key}/search/{query}" : {
      "get" : {
        "operationId" : "get-api-public-dashboard-uuid-params-param-key-search-query",
        "summary" : "GET /api/public/dashboard/{uuid}/params/{param-key}/search/{query}",
        "description" : "Fetch filter values for dashboard parameter `param-key`, containing specified `query`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/dashboard/{uuid}/params/{param-key}/values" : {
      "get" : {
        "operationId" : "get-api-public-dashboard-uuid-params-param-key-values",
        "summary" : "GET /api/public/dashboard/{uuid}/params/{param-key}/values",
        "description" : "Fetch filter values for dashboard parameter `param-key`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/document/{uuid}" : {
      "get" : {
        "operationId" : "get-api-public-document-uuid",
        "summary" : "GET /api/public/document/{uuid}",
        "description" : "Fetch a publicly-accessible Document. Does not require auth credentials. Public sharing must be enabled.\n\n  Returns a Document with sensitive fields removed (excludes collection_id, permissions, creator details, etc.).\n  Includes all embedded Cards with their metadata hydrated so the frontend doesn't need to make separate\n  requests for each card — just like public Dashboards do.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/document/{uuid}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-public-document-uuid-card-card-id",
        "summary" : "GET /api/public/document/{uuid}/card/{card-id}",
        "description" : "Run a query for a Card that's embedded in a public Document. Doesn't require auth credentials. Public sharing must\n  be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be a valid JSON string.",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/document/{uuid}/card/{card-id}/{export-format}" : {
      "post" : {
        "operationId" : "post-api-public-document-uuid-card-card-id-export-format",
        "summary" : "POST /api/public/document/{uuid}/card/{card-id}/{export-format}",
        "description" : "Fetch a Card embedded in a public Document and return query results in the specified format.\n  Does not require auth credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "type" : "array",
                        "items" : {
                          "description" : "Value must be a map.",
                          "type" : "object",
                          "properties" : { }
                        }
                      }, {
                        "description" : "value must be a valid JSON string.",
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ]
              }
            }
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/oembed" : {
      "get" : {
        "operationId" : "get-api-public-oembed",
        "summary" : "GET /api/public/oembed",
        "description" : "oEmbed endpoint used to retrieve embed code and metadata for a (public) Metabase URL.",
        "parameters" : [ {
          "in" : "query",
          "name" : "url",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "query",
          "name" : "format",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "json" ]
            }, {
              "type" : "null"
            } ]
          },
          "description" : "The format param is not used by the API, but is required as part of the oEmbed spec: http://oembed.com/#section2 just return an error if `format` is specified and it's anything other than `json`."
        }, {
          "in" : "query",
          "name" : "maxheight",
          "required" : true,
          "schema" : {
            "default" : 800,
            "type" : "integer",
            "minimum" : 1
          }
        }, {
          "in" : "query",
          "name" : "maxwidth",
          "required" : true,
          "schema" : {
            "default" : 1024,
            "type" : "integer",
            "minimum" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/pivot/card/{uuid}/query" : {
      "get" : {
        "operationId" : "get-api-public-pivot-card-uuid-query",
        "summary" : "GET /api/public/pivot/card/{uuid}/query",
        "description" : "Fetch a publicly-accessible Card an return query results as well as `:card` information. Does not require auth\n   credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be a valid JSON string.",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/pivot/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}" : {
      "get" : {
        "operationId" : "get-api-public-pivot-dashboard-uuid-dashcard-dashcard-id-card-card-id",
        "summary" : "GET /api/public/pivot/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}",
        "description" : "Fetch the results for a Card in a publicly-accessible Dashboard. Does not require auth credentials. Public\n  sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be a valid JSON string.",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/tiles/card/{uuid}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-public-tiles-card-uuid-zoom-x-y",
        "summary" : "GET /api/public/tiles/card/{uuid}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for a publicly-accessible Card using the map visualization. Does not require auth\n  credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/public/tiles/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-public-tiles-dashboard-uuid-dashcard-dashcard-id-card-card-id-zoom-x-y",
        "summary" : "GET /api/public/tiles/dashboard/{uuid}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for a Card using the map visualization in a publicly-accessible Dashboard. Does not\n  require auth credentials. Public sharing must be enabled.",
        "parameters" : [ {
          "in" : "path",
          "name" : "uuid",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
          },
          "description" : "value must be a valid UUID."
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid JSON string."
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/public" ]
      }
    },
    "/api/pulse" : {
      "get" : {
        "operationId" : "get-api-pulse",
        "summary" : "GET /api/pulse",
        "description" : "Fetch all dashboard subscriptions. By default, returns only subscriptions for which the current user has write\n  permissions. For admins, this is all subscriptions; for non-admins, it is only subscriptions that they created.\n\n  If `dashboard_id` is specified, restricts results to subscriptions for that dashboard.\n\n  If `created_or_receive` is `true`, it specifically returns all subscriptions for which the current user\n  created *or* is a known recipient of. Note that this is a superset of the default items returned for non-admins,\n  and a subset of the default items returned for admins. This is used to power the /account/notifications page.\n  This may include subscriptions which the current user does not have collection permissions for, in which case\n  some sensitive metadata (the list of cards and recipients) is stripped out.",
        "parameters" : [ {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "dashboard_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "creator_or_recipient",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/pulse" ]
      },
      "post" : {
        "operationId" : "post-api-pulse",
        "summary" : "POST /api/pulse",
        "description" : "Create a new `Pulse`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cards" : { },
                  "channels" : { },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : { }
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "skip_if_empty" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name", "cards", "channels", "skip_if_empty" ]
              }
            }
          }
        },
        "tags" : [ "/api/pulse" ]
      }
    },
    "/api/pulse/form_input" : {
      "get" : {
        "operationId" : "get-api-pulse-form_input",
        "summary" : "GET /api/pulse/form_input",
        "description" : "Provides relevant configuration information and user choices for creating/updating Pulses.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/pulse" ]
      }
    },
    "/api/pulse/test" : {
      "post" : {
        "operationId" : "post-api-pulse-test",
        "summary" : "POST /api/pulse/test",
        "description" : "Test send an unsaved pulse.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "cards" : { },
                  "channels" : { },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "disable_links" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "skip_if_empty" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name", "cards", "channels", "skip_if_empty", "disable_links" ]
              }
            }
          }
        },
        "tags" : [ "/api/pulse" ]
      }
    },
    "/api/pulse/unsubscribe" : {
      "post" : {
        "operationId" : "post-api-pulse-unsubscribe",
        "summary" : "POST /api/pulse/unsubscribe",
        "description" : "Allow non-users to unsubscribe from pulses/subscriptions, with the hash given through email.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email" : {
                    "type" : "string"
                  },
                  "hash" : {
                    "type" : "string"
                  },
                  "pulse-id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "pulse-id", "email", "hash" ]
              }
            }
          }
        },
        "tags" : [ "/api/pulse/unsubscribe" ]
      }
    },
    "/api/pulse/unsubscribe/undo" : {
      "post" : {
        "operationId" : "post-api-pulse-unsubscribe-undo",
        "summary" : "POST /api/pulse/unsubscribe/undo",
        "description" : "Allow non-users to undo an unsubscribe from pulses/subscriptions, with the hash given through email.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email" : {
                    "type" : "string"
                  },
                  "hash" : {
                    "type" : "string"
                  },
                  "pulse-id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "pulse-id", "email", "hash" ]
              }
            }
          }
        },
        "tags" : [ "/api/pulse/unsubscribe" ]
      }
    },
    "/api/pulse/{id}" : {
      "get" : {
        "operationId" : "get-api-pulse-id",
        "summary" : "GET /api/pulse/{id}",
        "description" : "Fetch `Pulse` with ID. If the user is a recipient of the Pulse but does not have read permissions for its collection,\n  we still return it but with some sensitive metadata removed.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/pulse" ]
      },
      "put" : {
        "operationId" : "put-api-pulse-id",
        "summary" : "PUT /api/pulse/{id}",
        "description" : "Update a Pulse with `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cards" : {
                    "oneOf" : [ { }, {
                      "type" : "null"
                    } ]
                  },
                  "channels" : {
                    "oneOf" : [ { }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "description" : "Value must be a map.",
                        "type" : "object",
                        "properties" : { }
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "skip_if_empty" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "skip_if_empty", "archived" ]
              }
            }
          }
        },
        "tags" : [ "/api/pulse" ]
      }
    },
    "/api/pulse/{id}/subscription" : {
      "delete" : {
        "operationId" : "delete-api-pulse-id-subscription",
        "summary" : "DELETE /api/pulse/{id}/subscription",
        "description" : "For users to unsubscribe themselves from a pulse subscription.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/pulse" ]
      }
    },
    "/api/revision" : {
      "get" : {
        "operationId" : "get-api-revision",
        "summary" : "GET /api/revision",
        "description" : "Get revisions of an object.",
        "parameters" : [ {
          "in" : "query",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "card", "dashboard", "document", "measure", "segment", "transform" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/revision" ]
      }
    },
    "/api/revision/revert" : {
      "post" : {
        "operationId" : "post-api-revision-revert",
        "summary" : "POST /api/revision/revert",
        "description" : "Revert an object to a prior revision.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "entity" : {
                    "type" : "string",
                    "enum" : [ "card", "dashboard", "document", "measure", "segment", "transform" ]
                  },
                  "id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "revision_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "id", "entity", "revision_id" ]
              }
            }
          }
        },
        "tags" : [ "/api/revision" ]
      }
    },
    "/api/revision/{entity}/{id}" : {
      "get" : {
        "operationId" : "get-api-revision-entity-id",
        "summary" : "GET /api/revision/{entity}/{id}",
        "description" : "Fetch `Revisions` for an object with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "card", "dashboard", "document", "measure", "segment", "transform" ]
          }
        }, {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/revision" ]
      }
    },
    "/api/search" : {
      "get" : {
        "operationId" : "get-api-search",
        "summary" : "GET /api/search",
        "description" : "Search for items in Metabase.\n  For the list of supported models, check [[metabase.search.config/all-models]].\n\n  Filters:\n  - `archived`: set to true to search archived items only, default is false\n  - `table_db_id`: search for tables, cards, and models of a certain DB\n  - `models`: only search for items of specific models. If not provided, search for all models\n  - `filters_items_in_personal_collection`: only search for items in personal collections\n  - `created_at`: search for items created at a specific timestamp\n  - `created_by`: search for items created by a specific user\n  - `last_edited_at`: search for items last edited at a specific timestamp\n  - `last_edited_by`: search for items last edited by a specific user\n  - `search_native_query`: set to true to search the content of native queries\n  - `verified`: set to true to search for verified items only (requires Content Management or Official Collections premium feature)\n  - `ids`: search for items with those ids, works iff single value passed to `models`\n  - `display_type`: search for cards/models with specific display types\n  - `non_temporal_dim_ids`: search for cards/metrics/datasets with this exact set of non temporal dimension field IDs (requires appdb engine)\n  - `has_temporal_dim`: set to true for cards/metrics/datasets with 1 or more temporal dimensions (requires appdb engine)\n\n  Note that not all item types support all filters, and the results will include only models that support the provided\n  filters. For example:\n\n  - The `created-by` filter supports dashboards, models, actions, and cards.\n  - The `verified` filter supports models and cards.\n\n  A search query that has both filters applied will only return models and cards.",
        "parameters" : [ {
          "in" : "query",
          "name" : "q",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "context",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "collection",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "table_db_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "models",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "dashboard", "table", "dataset", "segment", "collection", "measure", "transform", "document", "database", "action", "indexed-entity", "metric", "card" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "filter_items_in_personal_collection",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "all", "only", "only-mine", "exclude", "exclude-others" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "created_at",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "created_by",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater than zero.",
                "type" : "integer",
                "minimum" : 1
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "display_type",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "minLength" : 1
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "last_edited_at",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "last_edited_by",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater than zero.",
                "type" : "integer",
                "minimum" : 1
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "model_ancestors",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "search_engine",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "search_native_query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "verified",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater than zero.",
                "type" : "integer",
                "minimum" : 1
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "calculate_available_models",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_dashboard_questions",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_metadata",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "non_temporal_dim_ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "has_temporal_dim",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/search" ]
      }
    },
    "/api/search/force-reindex" : {
      "post" : {
        "operationId" : "post-api-search-force-reindex",
        "summary" : "POST /api/search/force-reindex",
        "description" : "This will trigger an immediate reindexing, if we are using search index.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/search" ]
      }
    },
    "/api/search/re-init" : {
      "post" : {
        "operationId" : "post-api-search-re-init",
        "summary" : "POST /api/search/re-init",
        "description" : "This will blow away any search indexes, re-create, and re-populate them.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/search" ]
      }
    },
    "/api/search/weights" : {
      "get" : {
        "operationId" : "get-api-search-weights",
        "summary" : "GET /api/search/weights",
        "description" : "Return the current weights being used to rank the search results",
        "parameters" : [ {
          "in" : "query",
          "name" : "context",
          "required" : true,
          "schema" : {
            "default" : "default",
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/search" ]
      },
      "put" : {
        "operationId" : "put-api-search-weights",
        "summary" : "PUT /api/search/weights",
        "description" : "Update the current weights being used to rank the search results",
        "parameters" : [ {
          "in" : "query",
          "name" : "context",
          "required" : true,
          "schema" : {
            "default" : "default",
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "search_engine",
          "required" : false,
          "schema" : { }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/search" ]
      }
    },
    "/api/segment" : {
      "post" : {
        "operationId" : "post-api-segment",
        "summary" : "POST /api/segment",
        "description" : "Create a new `Segment`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "definition" : {
                    "description" : "Value must be a map.",
                    "type" : "object",
                    "properties" : { }
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "table_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  }
                },
                "required" : [ "name", "table_id", "definition" ]
              }
            }
          }
        },
        "tags" : [ "/api/segment" ]
      },
      "get" : {
        "operationId" : "get-api-segment",
        "summary" : "GET /api/segment",
        "description" : "Fetch *all* `Segments`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/segment" ]
      }
    },
    "/api/segment/{id}" : {
      "get" : {
        "operationId" : "get-api-segment-id",
        "summary" : "GET /api/segment/{id}",
        "description" : "Fetch `Segment` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/segment" ]
      },
      "put" : {
        "operationId" : "put-api-segment-id",
        "summary" : "PUT /api/segment/{id}",
        "description" : "Update a `Segment` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "definition" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "properties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "revision_message" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "show_in_getting_started" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "revision_message" ]
              }
            }
          }
        },
        "tags" : [ "/api/segment" ]
      },
      "delete" : {
        "operationId" : "delete-api-segment-id",
        "summary" : "DELETE /api/segment/{id}",
        "description" : "Archive a Segment. (DEPRECATED -- Just pass updated value of `:archived` to the `PUT` endpoint instead.)",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "revision_message",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/segment" ]
      }
    },
    "/api/segment/{id}/related" : {
      "get" : {
        "operationId" : "get-api-segment-id-related",
        "summary" : "GET /api/segment/{id}/related",
        "description" : "Return related entities.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/segment" ]
      }
    },
    "/api/session" : {
      "post" : {
        "operationId" : "post-api-session",
        "summary" : "POST /api/session",
        "description" : "Login.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "password" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "username" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "username", "password" ]
              }
            }
          }
        },
        "tags" : [ "/api/session" ]
      },
      "delete" : {
        "operationId" : "delete-api-session",
        "summary" : "DELETE /api/session",
        "description" : "Logout.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/session/forgot_password" : {
      "post" : {
        "operationId" : "post-api-session-forgot_password",
        "summary" : "POST /api/session/forgot_password",
        "description" : "Send a reset email when user has forgotten their password.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email" : {
                    "description" : "value must be a valid email address.",
                    "type" : "string"
                  }
                },
                "required" : [ "email" ]
              }
            }
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/session/google_auth" : {
      "post" : {
        "operationId" : "post-api-session-google_auth",
        "summary" : "POST /api/session/google_auth",
        "description" : "Login with Google Auth.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "token" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "token" ]
              }
            }
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/session/password-check" : {
      "post" : {
        "operationId" : "post-api-session-password-check",
        "summary" : "POST /api/session/password-check",
        "description" : "Endpoint that checks if the supplied password meets the currently configured password complexity rules.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "password" : {
                    "description" : "password is too common.",
                    "type" : "string"
                  }
                },
                "required" : [ "password" ]
              }
            }
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/session/password_reset_token_valid" : {
      "get" : {
        "operationId" : "get-api-session-password_reset_token_valid",
        "summary" : "GET /api/session/password_reset_token_valid",
        "description" : "Check if a password reset token is valid and isn't expired.",
        "parameters" : [ {
          "in" : "query",
          "name" : "token",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/session/properties" : {
      "get" : {
        "operationId" : "get-api-session-properties",
        "summary" : "GET /api/session/properties",
        "description" : "Get all properties and their values. These are the specific `Settings` that are readable by the current user, or are\n  public if no user is logged in.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/session/reset_password" : {
      "post" : {
        "operationId" : "post-api-session-reset_password",
        "summary" : "POST /api/session/reset_password",
        "description" : "Reset password with a reset token.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "password" : {
                    "description" : "password is too common.",
                    "type" : "string"
                  },
                  "token" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "token", "password" ]
              }
            }
          }
        },
        "tags" : [ "/api/session" ]
      }
    },
    "/api/setting" : {
      "get" : {
        "operationId" : "get-api-setting",
        "summary" : "GET /api/setting",
        "description" : "Get all `Settings` and their values. You must be a superuser or have `setting` permission to do this.\n  For non-superusers, a list of visible settings and values can be retrieved using the /api/session/properties endpoint.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/setting" ]
      },
      "put" : {
        "operationId" : "put-api-setting",
        "summary" : "PUT /api/setting",
        "description" : "Update multiple `Settings` values. If called by a non-superuser, only user-local settings can be updated.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : { }
              }
            }
          }
        },
        "tags" : [ "/api/setting" ]
      }
    },
    "/api/setting/{key}" : {
      "get" : {
        "operationId" : "get-api-setting-key",
        "summary" : "GET /api/setting/{key}",
        "description" : "Fetch a single `Setting`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "key",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/setting" ]
      },
      "put" : {
        "operationId" : "put-api-setting-key",
        "summary" : "PUT /api/setting/{key}",
        "description" : "Create/update a `Setting`. If called by a non-admin, only user-local settings can be updated.\n   This endpoint can also be used to delete Settings by passing `nil` for `:value`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "key",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "value" : { }
                },
                "required" : [ "value" ]
              }
            }
          }
        },
        "tags" : [ "/api/setting" ]
      }
    },
    "/api/setup" : {
      "post" : {
        "operationId" : "post-api-setup",
        "summary" : "POST /api/setup",
        "description" : "Special endpoint for creating the first user during setup. This endpoint both creates the user AND logs them in and\n  returns a session ID. This endpoint can also be used to set specific settings from the setup flow.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "prefs" : {
                    "type" : "object",
                    "properties" : {
                      "site_locale" : {
                        "oneOf" : [ {
                          "description" : "String must be a valid two-letter ISO language or language-country code e.g. 'en' or 'en_US'.",
                          "type" : "string",
                          "minLength" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "site_name" : {
                        "type" : "string",
                        "minLength" : 1
                      }
                    },
                    "required" : [ "site_name" ]
                  },
                  "token" : {
                    "description" : "Token does not match the setup token.",
                    "type" : "string",
                    "minLength" : 1
                  },
                  "user" : {
                    "type" : "object",
                    "properties" : {
                      "email" : {
                        "description" : "value must be a valid email address.",
                        "type" : "string"
                      },
                      "first_name" : {
                        "oneOf" : [ {
                          "type" : "string",
                          "minLength" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "last_name" : {
                        "oneOf" : [ {
                          "type" : "string",
                          "minLength" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "password" : {
                        "description" : "password is too common.",
                        "type" : "string"
                      }
                    },
                    "required" : [ "email", "password" ]
                  }
                },
                "required" : [ "token", "user", "prefs" ]
              }
            }
          }
        },
        "tags" : [ "/api/setup" ]
      }
    },
    "/api/slack/app-info" : {
      "get" : {
        "operationId" : "get-api-slack-app-info",
        "summary" : "GET /api/slack/app-info",
        "description" : "Returns the Slack app_id and team_id. Used by the frontend to construct\n   direct links to the Slack app settings page.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "app_id" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "minLength" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "scopes" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "actual" : {
                            "type" : "array",
                            "items" : {
                              "type" : "string"
                            }
                          },
                          "extra" : {
                            "type" : "array",
                            "items" : {
                              "type" : "string"
                            }
                          },
                          "missing" : {
                            "type" : "array",
                            "items" : {
                              "type" : "string"
                            }
                          },
                          "required" : {
                            "type" : "array",
                            "items" : {
                              "type" : "string"
                            }
                          }
                        },
                        "required" : [ "actual", "required", "missing", "extra" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "team_id" : {
                      "oneOf" : [ {
                        "type" : "string",
                        "minLength" : 1
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "app_id", "team_id", "scopes" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/slack" ]
      }
    },
    "/api/slack/bug-report" : {
      "post" : {
        "operationId" : "post-api-slack-bug-report",
        "summary" : "POST /api/slack/bug-report",
        "description" : "Send diagnostic information to the configured Slack channels.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "diagnosticInfo" : {
                    "type" : "object"
                  }
                },
                "required" : [ "diagnosticInfo" ]
              }
            }
          }
        },
        "tags" : [ "/api/slack" ]
      }
    },
    "/api/slack/manifest" : {
      "get" : {
        "operationId" : "get-api-slack-manifest",
        "summary" : "GET /api/slack/manifest",
        "description" : "Returns the JSON manifest file that should be used to bootstrap new Slack apps",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "display_information" : {
                      "type" : "object",
                      "properties" : {
                        "background_color" : {
                          "type" : "string"
                        },
                        "description" : {
                          "type" : "string"
                        },
                        "name" : {
                          "type" : "string"
                        }
                      },
                      "required" : [ "name", "description", "background_color" ]
                    },
                    "features" : {
                      "type" : "object",
                      "properties" : {
                        "app_home" : {
                          "type" : "object",
                          "properties" : {
                            "home_tab_enabled" : {
                              "type" : "boolean"
                            },
                            "messages_tab_enabled" : {
                              "type" : "boolean"
                            },
                            "messages_tab_read_only_enabled" : {
                              "type" : "boolean"
                            }
                          },
                          "required" : [ "home_tab_enabled", "messages_tab_enabled", "messages_tab_read_only_enabled" ]
                        },
                        "assistant_view" : {
                          "type" : "object",
                          "properties" : {
                            "assistant_description" : {
                              "type" : "string"
                            }
                          },
                          "required" : [ "assistant_description" ]
                        },
                        "bot_user" : {
                          "type" : "object",
                          "properties" : {
                            "always_online" : {
                              "type" : "boolean"
                            },
                            "display_name" : {
                              "type" : "string"
                            }
                          },
                          "required" : [ "display_name" ]
                        },
                        "slash_commands" : {
                          "type" : "array",
                          "items" : {
                            "type" : "object",
                            "properties" : {
                              "command" : {
                                "type" : "string"
                              },
                              "description" : {
                                "type" : "string"
                              },
                              "should_escape" : {
                                "type" : "boolean"
                              },
                              "url" : {
                                "description" : "value must be a valid URL."
                              }
                            },
                            "required" : [ "command", "url", "description", "should_escape" ]
                          }
                        }
                      },
                      "required" : [ "bot_user" ]
                    },
                    "oauth_config" : {
                      "type" : "object",
                      "properties" : {
                        "redirect_urls" : {
                          "type" : "array",
                          "items" : {
                            "description" : "value must be a valid URL."
                          }
                        },
                        "scopes" : {
                          "type" : "object",
                          "properties" : {
                            "bot" : {
                              "type" : "array",
                              "items" : {
                                "type" : "string"
                              }
                            }
                          },
                          "required" : [ "bot" ]
                        }
                      },
                      "required" : [ "scopes" ]
                    },
                    "settings" : {
                      "type" : "object",
                      "properties" : {
                        "event_subscriptions" : {
                          "type" : "object",
                          "properties" : {
                            "bot_events" : {
                              "type" : "array",
                              "items" : {
                                "type" : "string"
                              }
                            },
                            "request_url" : {
                              "description" : "value must be a valid URL."
                            }
                          },
                          "required" : [ "request_url", "bot_events" ]
                        },
                        "interactivity" : {
                          "type" : "object",
                          "properties" : {
                            "is_enabled" : {
                              "type" : "boolean"
                            },
                            "request_url" : {
                              "description" : "value must be a valid URL."
                            }
                          },
                          "required" : [ "is_enabled", "request_url" ]
                        },
                        "org_deploy_enabled" : {
                          "type" : "boolean"
                        },
                        "socket_mode_enabled" : {
                          "type" : "boolean"
                        },
                        "token_rotation_enabled" : {
                          "type" : "boolean"
                        }
                      },
                      "required" : [ "event_subscriptions", "interactivity", "org_deploy_enabled", "socket_mode_enabled", "token_rotation_enabled" ]
                    }
                  },
                  "required" : [ "display_information", "features", "oauth_config" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/slack" ]
      }
    },
    "/api/slack/settings" : {
      "put" : {
        "operationId" : "put-api-slack-settings",
        "summary" : "PUT /api/slack/settings",
        "description" : "Update Slack related settings. You must be a superuser to do this. Also updates the slack-cache.\n  There are 3 cases where we alter the slack channel/user cache:\n  1. falsy token           -> clear\n  2. invalid token         -> clear\n  3. truthy, valid token   -> refresh ",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "slack-app-token" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "slack-bug-report-channel" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/slack" ]
      }
    },
    "/api/table" : {
      "get" : {
        "operationId" : "get-api-table",
        "summary" : "GET /api/table",
        "description" : "Get all `Tables`.\n\n  Optional filters:\n  - `can-query=true` - filter to only tables the user can execute queries against\n  - `can-write=true` - filter to only tables the user can edit metadata for",
        "parameters" : [ {
          "in" : "query",
          "name" : "term",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "visibility-type",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "data-layer",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.warehouse-schema-rest.api.table.data-layers"
          }
        }, {
          "in" : "query",
          "name" : "data-source",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.warehouse-schema-rest.api.table.data-sources"
          }
        }, {
          "in" : "query",
          "name" : "owner-user-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "owner-email",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "orphan-only",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "unused-only",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can-write",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include-transform-targets",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      },
      "put" : {
        "operationId" : "put-api-table",
        "summary" : "PUT /api/table",
        "description" : "Update all `Table` in `ids`.\n\n  Deprecated, should use PUT /table/edit from now on.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "visibility_type" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "technical", "hidden", "cruft" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_authority" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.warehouse-schema-rest.api.table.data-authority-write"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_layer" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "show_in_getting_started" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_email" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_user_id" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "display_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_source" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "entity_type" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid entity type (keyword or string)."
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "ids" ]
              }
            }
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/card__:id/fks" : {
      "get" : {
        "operationId" : "get-api-table-card__:id-fks",
        "summary" : "GET /api/table/card__:id/fks",
        "description" : "Return FK info for the 'virtual' table for a Card. This is always empty, so this endpoint\n   serves mainly as a placeholder to avoid having to change anything on the frontend.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/card__:id/query_metadata" : {
      "get" : {
        "operationId" : "get-api-table-card__:id-query_metadata",
        "summary" : "GET /api/table/card__:id/query_metadata",
        "description" : "Return metadata for the 'virtual' table for a Card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}" : {
      "get" : {
        "operationId" : "get-api-table-id",
        "summary" : "GET /api/table/{id}",
        "description" : "Get `Table` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      },
      "put" : {
        "operationId" : "put-api-table-id",
        "summary" : "PUT /api/table/{id}",
        "description" : "Update `Table` with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "visibility_type" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "technical", "hidden", "cruft" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_authority" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.warehouse-schema-rest.api.table.data-authority-write"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_layer" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "show_in_getting_started" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_email" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_user_id" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "display_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "data_source" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "entity_type" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid entity type (keyword or string)."
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "field_order" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "alphabetical", "custom", "database", "smart" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/append-csv" : {
      "post" : {
        "operationId" : "post-api-table-id-append-csv",
        "summary" : "POST /api/table/{id}/append-csv",
        "description" : "Inserts the rows of an uploaded CSV file into the table identified by `:id`. The table must have been created by\n  uploading a CSV file.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "object",
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ]
                  }
                },
                "required" : [ "file" ]
              }
            }
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/discard_values" : {
      "post" : {
        "operationId" : "post-api-table-id-discard_values",
        "summary" : "POST /api/table/{id}/discard_values",
        "description" : "Discard the FieldValues belonging to the Fields in this Table. Only applies to fields that have FieldValues. If\n   this Table's Database is set up to automatically sync FieldValues, they will be recreated during the next cycle.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/fields/order" : {
      "put" : {
        "operationId" : "put-api-table-id-fields-order",
        "summary" : "PUT /api/table/{id}/fields/order",
        "description" : "Reorder fields",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "success" : {
                      "const" : true
                    }
                  },
                  "required" : [ "success" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "description" : "value must be an integer greater than zero.",
                  "type" : "integer",
                  "minimum" : 1
                }
              }
            }
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/fks" : {
      "get" : {
        "operationId" : "get-api-table-id-fks",
        "summary" : "GET /api/table/{id}/fks",
        "description" : "Get all foreign keys whose destination is a `Field` that belongs to this `Table`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/query_metadata" : {
      "get" : {
        "operationId" : "get-api-table-id-query_metadata",
        "summary" : "GET /api/table/{id}/query_metadata",
        "description" : "Get metadata about a `Table` useful for running queries.\n   Returns DB, fields, field FKs, and field values.\n\n   Passing `include_hidden_fields=true` will include any hidden `Fields` in the response. Defaults to `false`\n   Passing `include_sensitive_fields=true` will include any sensitive `Fields` in the response. Defaults to `false`.\n\n   Passing `include_editable_data_model=true` will check that the current user has write permissions for the table's\n   data model, while `false` checks that they have data access perms for the table. Defaults to `false`.\n\n   These options are provided for use in the Admin Edit Metadata page.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include_sensitive_fields",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_hidden_fields",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_editable_data_model",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/related" : {
      "get" : {
        "operationId" : "get-api-table-id-related",
        "summary" : "GET /api/table/{id}/related",
        "description" : "Return related entities.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/replace-csv" : {
      "post" : {
        "operationId" : "post-api-table-id-replace-csv",
        "summary" : "POST /api/table/{id}/replace-csv",
        "description" : "Replaces the contents of the table identified by `:id` with the rows of an uploaded CSV file. The table must have\n  been created by uploading a CSV file.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "object",
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ]
                  }
                },
                "required" : [ "file" ]
              }
            }
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/rescan_values" : {
      "post" : {
        "operationId" : "post-api-table-id-rescan_values",
        "summary" : "POST /api/table/{id}/rescan_values",
        "description" : "Manually trigger an update for the FieldValues for the Fields belonging to this Table. Only applies to Fields that\n   are eligible for FieldValues.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{id}/sync_schema" : {
      "post" : {
        "operationId" : "post-api-table-id-sync_schema",
        "summary" : "POST /api/table/{id}/sync_schema",
        "description" : "Trigger a manual update of the schema metadata for this `Table`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/table/{table-id}/data" : {
      "get" : {
        "operationId" : "get-api-table-table-id-data",
        "summary" : "GET /api/table/{table-id}/data",
        "description" : "Get the data for the given table",
        "parameters" : [ {
          "in" : "path",
          "name" : "table-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/table" ]
      }
    },
    "/api/task" : {
      "get" : {
        "operationId" : "get-api-task",
        "summary" : "GET /api/task",
        "description" : "Fetch a list of recent tasks stored as Task History",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/task/info" : {
      "get" : {
        "operationId" : "get-api-task-info",
        "summary" : "GET /api/task/info",
        "description" : "Return raw data about all scheduled tasks (i.e., Quartz Jobs and Triggers).",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/task/runs" : {
      "get" : {
        "operationId" : "get-api-task-runs",
        "summary" : "GET /api/task/runs",
        "description" : "List task runs with optional filters. Returns runs with hydrated entity names and task counts.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.task-history.api.TaskRunsResponse"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/task/runs/entities" : {
      "get" : {
        "operationId" : "get-api-task-runs-entities",
        "summary" : "GET /api/task/runs/entities",
        "description" : "Get distinct entities that have task runs for a given run type. Used for populating entity filter picker.",
        "parameters" : [ {
          "in" : "query",
          "name" : "run-type",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ]
          }
        }, {
          "in" : "query",
          "name" : "started-at",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.task-history.api.RunEntity"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/task/runs/{id}" : {
      "get" : {
        "operationId" : "get-api-task-runs-id",
        "summary" : "GET /api/task/runs/{id}",
        "description" : "Get a single task run with all its child tasks.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.task-history.api.TaskRunWithTasks"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/task/unique-tasks" : {
      "get" : {
        "operationId" : "get-api-task-unique-tasks",
        "summary" : "GET /api/task/unique-tasks",
        "description" : "Returns possibly empty vector of unique task names in alphabetical order. It is expected that number of unique\n  tasks is small, hence no need for pagination. If that changes this endpoint and function that powers it should\n  reflect that.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/task/{id}" : {
      "get" : {
        "operationId" : "get-api-task-id",
        "summary" : "GET /api/task/{id}",
        "description" : "Get `TaskHistory` entry with ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/task" ]
      }
    },
    "/api/tiles/{card-id}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-tiles-card-id-zoom-x-y",
        "summary" : "GET /api/tiles/{card-id}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for a saved Card.",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
          }
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.parameters"
          }
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.legacy-ref"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.legacy-ref"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/tiles" ]
      }
    },
    "/api/tiles/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-tiles-dashboard-id-dashcard-dashcard-id-card-card-id-zoom-x-y",
        "summary" : "GET /api/tiles/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for a dashcard.",
        "parameters" : [ {
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
          }
        }, {
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.dashcard"
          }
        }, {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
          }
        }, {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.parameters"
          }
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.legacy-ref"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.legacy-ref"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/tiles" ]
      }
    },
    "/api/tiles/{zoom}/{x}/{y}" : {
      "get" : {
        "operationId" : "get-api-tiles-zoom-x-y",
        "summary" : "GET /api/tiles/{zoom}/{x}/{y}",
        "description" : "Generates a single tile image for an ad-hoc query.",
        "parameters" : [ {
          "in" : "path",
          "name" : "zoom",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "x",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "path",
          "name" : "y",
          "required" : true,
          "schema" : {
            "type" : "integer"
          },
          "description" : "value must be an integer."
        }, {
          "in" : "query",
          "name" : "query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.query"
          }
        }, {
          "in" : "query",
          "name" : "latField",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.legacy-ref"
          }
        }, {
          "in" : "query",
          "name" : "lonField",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.tiles.api.legacy-ref"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/tiles" ]
      }
    },
    "/api/timeline" : {
      "post" : {
        "operationId" : "post-api-timeline",
        "summary" : "POST /api/timeline",
        "description" : "Create a new [[Timeline]].",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.timeline.api.timeline.Timeline"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "default" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "icon" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "star", "cake", "mail", "warning", "bell", "cloud" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/timeline" ]
      },
      "get" : {
        "operationId" : "get-api-timeline",
        "summary" : "GET /api/timeline",
        "description" : "Fetch a list of `Timeline`s. Can include `archived=true` to return archived timelines.",
        "parameters" : [ {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.timeline.api.timeline.include"
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.timeline.api.timeline.Timeline"
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline" ]
      }
    },
    "/api/timeline-event" : {
      "post" : {
        "operationId" : "post-api-timeline-event",
        "summary" : "POST /api/timeline-event",
        "description" : "Create a new [[TimelineEvent]].",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "question_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timezone" : {
                    "type" : "string"
                  },
                  "timestamp" : {
                    "description" : "value must be a valid date string",
                    "type" : "string"
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timeline_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "type" : "integer",
                    "minimum" : 1
                  },
                  "source" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "collections", "question" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "time_matters" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "icon" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "star", "cake", "mail", "warning", "bell", "cloud" ]
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name", "timestamp", "timezone", "timeline_id" ]
              }
            }
          }
        },
        "tags" : [ "/api/timeline-event" ]
      }
    },
    "/api/timeline-event/{id}" : {
      "get" : {
        "operationId" : "get-api-timeline-event-id",
        "summary" : "GET /api/timeline-event/{id}",
        "description" : "Fetch the [[TimelineEvent]] with `id`.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline-event" ]
      },
      "put" : {
        "operationId" : "put-api-timeline-event-id",
        "summary" : "PUT /api/timeline-event/{id}",
        "description" : "Update a [[TimelineEvent]].",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "icon" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "star", "cake", "mail", "warning", "bell", "cloud" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "time_matters" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timeline_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timestamp" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid date string",
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timezone" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/timeline-event" ]
      },
      "delete" : {
        "operationId" : "delete-api-timeline-event-id",
        "summary" : "DELETE /api/timeline-event/{id}",
        "description" : "Delete a [[TimelineEvent]].",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline-event" ]
      }
    },
    "/api/timeline/collection/root" : {
      "get" : {
        "operationId" : "get-api-timeline-collection-root",
        "summary" : "GET /api/timeline/collection/root",
        "description" : "Fetch the root Collection's timelines.",
        "parameters" : [ {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "const" : "events"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline" ]
      }
    },
    "/api/timeline/collection/{id}" : {
      "get" : {
        "operationId" : "get-api-timeline-collection-id",
        "summary" : "GET /api/timeline/collection/{id}",
        "description" : "Fetch a specific Collection's timelines.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "const" : "events"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline" ]
      }
    },
    "/api/timeline/{id}" : {
      "get" : {
        "operationId" : "get-api-timeline-id",
        "summary" : "GET /api/timeline/{id}",
        "description" : "Fetch the `Timeline` with `id`. Include `include=events` to unarchived events included on the timeline. Add\n  `archived=true` to return all events on the timeline, both archived and unarchived.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.timeline.api.timeline.include"
          }
        }, {
          "in" : "query",
          "name" : "archived",
          "required" : true,
          "schema" : {
            "default" : "false",
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "start",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid date string"
        }, {
          "in" : "query",
          "name" : "end",
          "required" : false,
          "schema" : {
            "type" : "string"
          },
          "description" : "value must be a valid date string"
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.timeline.api.timeline.Timeline"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline" ]
      },
      "put" : {
        "operationId" : "put-api-timeline-id",
        "summary" : "PUT /api/timeline/{id}",
        "description" : "Update the [[Timeline]] with `id`. Returns the timeline without events. Archiving a timeline will archive all of the\n  events in that timeline.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "default" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "icon" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "enum" : [ "star", "cake", "mail", "warning", "bell", "cloud" ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/timeline" ]
      },
      "delete" : {
        "operationId" : "delete-api-timeline-id",
        "summary" : "DELETE /api/timeline/{id}",
        "description" : "Delete a [[Timeline]]. Will cascade delete its events as well.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/timeline" ]
      }
    },
    "/api/transform" : {
      "get" : {
        "operationId" : "get-api-transform",
        "summary" : "GET /api/transform",
        "description" : "Get a list of transforms.",
        "parameters" : [ {
          "in" : "query",
          "name" : "last-run-start-time",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "last-run-statuses",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "started", "succeeded", "failed", "timeout" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "tag-ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "database-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "table" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : { }
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "owner" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "common_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "email" : {
                              "type" : "string"
                            },
                            "first_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "last_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            }
                          },
                          "required" : [ "email" ],
                          "additionalProperties" : false
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source_type" : {
                        "type" : "string"
                      },
                      "entity_id" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "last_run" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "message" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "user_id" : {
                              "oneOf" : [ {
                                "type" : "integer",
                                "minimum" : 1
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "checkpoint_hi_value" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "is_active" : {
                              "oneOf" : [ {
                                "type" : "boolean"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "transform_id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "run_method" : {
                              "type" : "string"
                            },
                            "checkpoint_lo_value" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "status" : {
                              "type" : "string",
                              "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                            },
                            "transform_entity_id" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "checkpoint_filter_field_id" : {
                              "oneOf" : [ {
                                "type" : "integer",
                                "minimum" : 1
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "end_time" : {
                              "oneOf" : [ { }, {
                                "type" : "null"
                              } ]
                            },
                            "metered_as" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "transform_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "start_time" : { }
                          },
                          "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                          "additionalProperties" : false
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source_database_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "owner_email" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "target_db_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "creator" : {
                        "type" : "object",
                        "properties" : {
                          "is_qbnewb" : {
                            "type" : "boolean"
                          },
                          "last_login" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "email" : {
                            "type" : "string"
                          },
                          "is_data_analyst" : {
                            "type" : "boolean"
                          },
                          "is_superuser" : {
                            "type" : "boolean"
                          },
                          "tenant_id" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "date_joined" : { },
                          "common_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "email", "first_name", "last_name" ],
                        "additionalProperties" : false
                      },
                      "owner_user_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "updated_at" : { },
                      "source_readable" : {
                        "oneOf" : [ {
                          "type" : "boolean"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "tag_ids" : {
                        "type" : "array",
                        "items" : {
                          "type" : "integer",
                          "minimum" : 1
                        }
                      },
                      "collection_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source" : { },
                      "last_checkpoint_value" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "target" : { },
                      "created_at" : { },
                      "creator_id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "run_trigger" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "target_table_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "description" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "name", "description", "source", "target", "source_type", "entity_id", "created_at", "updated_at", "creator_id", "collection_id", "creator" ],
                    "additionalProperties" : false
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      },
      "post" : {
        "operationId" : "post-api-transform",
        "summary" : "POST /api/transform",
        "description" : "Create a new transform.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "table" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : { }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "owner" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "common_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "email" : {
                            "type" : "string"
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "email" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source_type" : {
                      "type" : "string"
                    },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_hi_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "checkpoint_lo_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                          },
                          "transform_entity_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_filter_field_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "metered_as" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "start_time" : { }
                        },
                        "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source_database_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "owner_email" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target_db_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "creator" : {
                      "type" : "object",
                      "properties" : {
                        "is_qbnewb" : {
                          "type" : "boolean"
                        },
                        "last_login" : {
                          "oneOf" : [ { }, {
                            "type" : "null"
                          } ]
                        },
                        "id" : {
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "email" : {
                          "type" : "string"
                        },
                        "is_data_analyst" : {
                          "type" : "boolean"
                        },
                        "is_superuser" : {
                          "type" : "boolean"
                        },
                        "tenant_id" : {
                          "oneOf" : [ { }, {
                            "type" : "null"
                          } ]
                        },
                        "last_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "first_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "date_joined" : { },
                        "common_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "id", "email", "first_name", "last_name" ],
                      "additionalProperties" : false
                    },
                    "owner_user_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "updated_at" : { },
                    "source_readable" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tag_ids" : {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "collection_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source" : { },
                    "last_checkpoint_value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target" : { },
                    "created_at" : { },
                    "creator_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "run_trigger" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target_table_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "description" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "name", "description", "source", "target", "source_type", "entity_id", "created_at", "updated_at", "creator_id", "collection_id", "creator" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "owner_email" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_user_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string"
                  },
                  "tag_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "source" : {
                    "$ref" : "#/components/schemas/metabase.transforms.schema.transform-source"
                  },
                  "target" : {
                    "$ref" : "#/components/schemas/metabase.transforms.schema.transform-target"
                  },
                  "run_trigger" : {
                    "$ref" : "#/components/schemas/metabase.transforms-rest.api.transform.run-trigger"
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name", "source", "target" ]
              }
            }
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform-job" : {
      "post" : {
        "operationId" : "post-api-transform-job",
        "summary" : "POST /api/transform-job",
        "description" : "Create a new transform job.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "built_in_type" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "updated_at" : { },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout" ]
                          },
                          "job_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "created_at" : { },
                          "start_time" : { }
                        },
                        "required" : [ "id", "job_id", "run_method", "status", "is_active", "start_time", "message", "created_at", "updated_at" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "ui_display_type" : {
                      "type" : "string",
                      "enum" : [ "cron/raw", "cron/builder" ]
                    },
                    "next_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "start_time" : { }
                        },
                        "required" : [ "start_time" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "name" : {
                      "anyOf" : [ {
                        "type" : "string"
                      }, {
                        "anyOf" : [ { }, { } ]
                      } ]
                    },
                    "schedule" : {
                      "type" : "string"
                    },
                    "updated_at" : { },
                    "tag_ids" : {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "created_at" : { },
                    "description" : {
                      "oneOf" : [ {
                        "anyOf" : [ {
                          "type" : "string"
                        }, {
                          "anyOf" : [ { }, { } ]
                        } ]
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "name", "description", "schedule", "ui_display_type", "entity_id", "created_at", "updated_at" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "schedule" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "tag_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "ui_display_type" : {
                    "default" : "cron/raw",
                    "type" : "string",
                    "enum" : [ "cron/raw", "cron/builder" ]
                  }
                },
                "required" : [ "name", "schedule", "ui_display_type" ]
              }
            }
          }
        },
        "tags" : [ "/api/transform-job" ]
      },
      "get" : {
        "operationId" : "get-api-transform-job",
        "summary" : "GET /api/transform-job",
        "description" : "Get all transform jobs.",
        "parameters" : [ {
          "in" : "query",
          "name" : "last-run-start-time",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "next-run-start-time",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "last-run-statuses",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "started", "succeeded", "failed", "timeout" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "tag-ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "built_in_type" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "entity_id" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "last_run" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "message" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "is_active" : {
                              "oneOf" : [ {
                                "type" : "boolean"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "run_method" : {
                              "type" : "string"
                            },
                            "updated_at" : { },
                            "status" : {
                              "type" : "string",
                              "enum" : [ "started", "succeeded", "failed", "timeout" ]
                            },
                            "job_id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "end_time" : {
                              "oneOf" : [ { }, {
                                "type" : "null"
                              } ]
                            },
                            "created_at" : { },
                            "start_time" : { }
                          },
                          "required" : [ "id", "job_id", "run_method", "status", "is_active", "start_time", "message", "created_at", "updated_at" ],
                          "additionalProperties" : false
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "ui_display_type" : {
                        "type" : "string",
                        "enum" : [ "cron/raw", "cron/builder" ]
                      },
                      "next_run" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "start_time" : { }
                          },
                          "required" : [ "start_time" ],
                          "additionalProperties" : false
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "name" : {
                        "anyOf" : [ {
                          "type" : "string"
                        }, {
                          "anyOf" : [ { }, { } ]
                        } ]
                      },
                      "schedule" : {
                        "type" : "string"
                      },
                      "updated_at" : { },
                      "tag_ids" : {
                        "type" : "array",
                        "items" : {
                          "type" : "integer",
                          "minimum" : 1
                        }
                      },
                      "created_at" : { },
                      "description" : {
                        "oneOf" : [ {
                          "anyOf" : [ {
                            "type" : "string"
                          }, {
                            "anyOf" : [ { }, { } ]
                          } ]
                        }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "name", "description", "schedule", "ui_display_type", "entity_id", "created_at", "updated_at" ],
                    "additionalProperties" : false
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-job" ]
      }
    },
    "/api/transform-job/{job-id}" : {
      "put" : {
        "operationId" : "put-api-transform-job-job-id",
        "summary" : "PUT /api/transform-job/{job-id}",
        "description" : "Update a transform job.",
        "parameters" : [ {
          "in" : "path",
          "name" : "job-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "built_in_type" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "updated_at" : { },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout" ]
                          },
                          "job_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "created_at" : { },
                          "start_time" : { }
                        },
                        "required" : [ "id", "job_id", "run_method", "status", "is_active", "start_time", "message", "created_at", "updated_at" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "ui_display_type" : {
                      "type" : "string",
                      "enum" : [ "cron/raw", "cron/builder" ]
                    },
                    "next_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "start_time" : { }
                        },
                        "required" : [ "start_time" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "name" : {
                      "anyOf" : [ {
                        "type" : "string"
                      }, {
                        "anyOf" : [ { }, { } ]
                      } ]
                    },
                    "schedule" : {
                      "type" : "string"
                    },
                    "updated_at" : { },
                    "tag_ids" : {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "created_at" : { },
                    "description" : {
                      "oneOf" : [ {
                        "anyOf" : [ {
                          "type" : "string"
                        }, {
                          "anyOf" : [ { }, { } ]
                        } ]
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "name", "description", "schedule", "ui_display_type", "entity_id", "created_at", "updated_at" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "schedule" : {
                    "type" : "string",
                    "minLength" : 1
                  },
                  "tag_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "ui_display_type" : {
                    "type" : "string",
                    "enum" : [ "cron/raw", "cron/builder" ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/transform-job" ]
      },
      "delete" : {
        "operationId" : "delete-api-transform-job-job-id",
        "summary" : "DELETE /api/transform-job/{job-id}",
        "description" : "Delete a transform job.",
        "parameters" : [ {
          "in" : "path",
          "name" : "job-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-job" ]
      },
      "get" : {
        "operationId" : "get-api-transform-job-job-id",
        "summary" : "GET /api/transform-job/{job-id}",
        "description" : "Get a transform job by ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "job-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "built_in_type" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "updated_at" : { },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout" ]
                          },
                          "job_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "created_at" : { },
                          "start_time" : { }
                        },
                        "required" : [ "id", "job_id", "run_method", "status", "is_active", "start_time", "message", "created_at", "updated_at" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "ui_display_type" : {
                      "type" : "string",
                      "enum" : [ "cron/raw", "cron/builder" ]
                    },
                    "next_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "start_time" : { }
                        },
                        "required" : [ "start_time" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "name" : {
                      "anyOf" : [ {
                        "type" : "string"
                      }, {
                        "anyOf" : [ { }, { } ]
                      } ]
                    },
                    "schedule" : {
                      "type" : "string"
                    },
                    "updated_at" : { },
                    "tag_ids" : {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "created_at" : { },
                    "description" : {
                      "oneOf" : [ {
                        "anyOf" : [ {
                          "type" : "string"
                        }, {
                          "anyOf" : [ { }, { } ]
                        } ]
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "name", "description", "schedule", "ui_display_type", "entity_id", "created_at", "updated_at" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-job" ]
      }
    },
    "/api/transform-job/{job-id}/run" : {
      "post" : {
        "operationId" : "post-api-transform-job-job-id-run",
        "summary" : "POST /api/transform-job/{job-id}/run",
        "description" : "Run a transform job manually.",
        "parameters" : [ {
          "in" : "path",
          "name" : "job-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "job_run_id" : {
                      "type" : "string"
                    },
                    "message" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "message", "job_run_id" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-job" ]
      }
    },
    "/api/transform-job/{job-id}/transforms" : {
      "get" : {
        "operationId" : "get-api-transform-job-job-id-transforms",
        "summary" : "GET /api/transform-job/{job-id}/transforms",
        "description" : "Get the transforms of job specified by the job's ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "job-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "source_type" : {
                        "type" : "string"
                      },
                      "entity_id" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "creator" : {
                        "type" : "object",
                        "properties" : {
                          "is_qbnewb" : {
                            "type" : "boolean"
                          },
                          "last_login" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "email" : {
                            "type" : "string"
                          },
                          "is_data_analyst" : {
                            "type" : "boolean"
                          },
                          "is_superuser" : {
                            "type" : "boolean"
                          },
                          "tenant_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "date_joined" : { },
                          "common_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "email", "first_name", "last_name" ],
                        "additionalProperties" : false
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "updated_at" : { },
                      "collection_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source" : { },
                      "target" : { },
                      "created_at" : { },
                      "creator_id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "run_trigger" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "description" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "name", "description", "source", "target", "source_type", "entity_id", "created_at", "updated_at", "creator_id", "collection_id", "creator" ]
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-job" ]
      }
    },
    "/api/transform-tag" : {
      "post" : {
        "operationId" : "post-api-transform-tag",
        "summary" : "POST /api/transform-tag",
        "description" : "Create a new transform tag.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "built_in_type" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "can_run" : {
                      "type" : "boolean"
                    },
                    "created_at" : { },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "name" : {
                      "anyOf" : [ {
                        "type" : "string"
                      }, {
                        "anyOf" : [ { }, { } ]
                      } ]
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "name", "entity_id", "created_at", "updated_at" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/transform-tag" ]
      },
      "get" : {
        "operationId" : "get-api-transform-tag",
        "summary" : "GET /api/transform-tag",
        "description" : "Get a list of all transform tags.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "built_in_type" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "can_run" : {
                        "type" : "boolean"
                      },
                      "created_at" : { },
                      "entity_id" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "name" : {
                        "anyOf" : [ {
                          "type" : "string"
                        }, {
                          "anyOf" : [ { }, { } ]
                        } ]
                      },
                      "updated_at" : { }
                    },
                    "required" : [ "id", "name", "entity_id", "created_at", "updated_at" ],
                    "additionalProperties" : false
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-tag" ]
      }
    },
    "/api/transform-tag/{tag-id}" : {
      "put" : {
        "operationId" : "put-api-transform-tag-tag-id",
        "summary" : "PUT /api/transform-tag/{tag-id}",
        "description" : "Update a transform tag.",
        "parameters" : [ {
          "in" : "path",
          "name" : "tag-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "built_in_type" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "can_run" : {
                      "type" : "boolean"
                    },
                    "created_at" : { },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "name" : {
                      "anyOf" : [ {
                        "type" : "string"
                      }, {
                        "anyOf" : [ { }, { } ]
                      } ]
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "name", "entity_id", "created_at", "updated_at" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "minLength" : 1
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "tags" : [ "/api/transform-tag" ]
      },
      "delete" : {
        "operationId" : "delete-api-transform-tag-tag-id",
        "summary" : "DELETE /api/transform-tag/{tag-id}",
        "description" : "Delete a transform tag. Removes it from all transforms and jobs.",
        "parameters" : [ {
          "in" : "path",
          "name" : "tag-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform-tag" ]
      }
    },
    "/api/transform/run" : {
      "get" : {
        "operationId" : "get-api-transform-run",
        "summary" : "GET /api/transform/run",
        "description" : "Get transform runs based on a set of filter params.",
        "parameters" : [ {
          "in" : "query",
          "name" : "sort-column",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "transform-name", "start-time", "end-time", "status", "run-method", "transform-tags" ]
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "type" : "string",
            "enum" : [ "asc", "desc" ]
          }
        }, {
          "in" : "query",
          "name" : "transform-ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "statuses",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "started", "succeeded", "failed", "timeout" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "transform-tag-ids",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "type" : "integer",
                "minimum" : 0
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "start-time",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "end-time",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "minLength" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "run-methods",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "string",
                "enum" : [ "manual", "cron" ]
              }
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "user-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "data" : {
                      "type" : "array",
                      "items" : {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_hi_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "transform" : {
                            "oneOf" : [ {
                              "type" : "object",
                              "properties" : {
                                "collection" : {
                                  "oneOf" : [ {
                                    "type" : "object",
                                    "properties" : { }
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "collection_id" : {
                                  "oneOf" : [ {
                                    "type" : "integer",
                                    "minimum" : 1
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "deleted" : {
                                  "type" : "boolean"
                                },
                                "id" : {
                                  "type" : "integer",
                                  "minimum" : 1
                                },
                                "name" : {
                                  "type" : "string"
                                },
                                "tag_ids" : {
                                  "type" : "array",
                                  "items" : {
                                    "type" : "integer",
                                    "minimum" : 1
                                  }
                                }
                              },
                              "additionalProperties" : false
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "checkpoint_lo_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                          },
                          "transform_entity_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_filter_field_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "metered_as" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "start_time" : { }
                        },
                        "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                        "additionalProperties" : false
                      }
                    },
                    "limit" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "offset" : {
                      "type" : "integer"
                    },
                    "total" : {
                      "type" : "integer"
                    }
                  },
                  "required" : [ "data", "limit", "offset", "total" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/run/{run-id}" : {
      "get" : {
        "operationId" : "get-api-transform-run-run-id",
        "summary" : "GET /api/transform/run/{run-id}",
        "description" : "Get a transform run by ID.",
        "parameters" : [ {
          "in" : "path",
          "name" : "run-id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "user_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "checkpoint_hi_value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "is_active" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "transform_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "transform" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "collection" : {
                            "oneOf" : [ {
                              "type" : "object",
                              "properties" : { }
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "collection_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "deleted" : {
                            "type" : "boolean"
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "name" : {
                            "type" : "string"
                          },
                          "tag_ids" : {
                            "type" : "array",
                            "items" : {
                              "type" : "integer",
                              "minimum" : 1
                            }
                          }
                        },
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "run_method" : {
                      "type" : "string"
                    },
                    "checkpoint_lo_value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "type" : "string",
                      "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                    },
                    "transform_entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "checkpoint_filter_field_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "end_time" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "metered_as" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "transform_name" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "start_time" : { }
                  },
                  "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/{id}" : {
      "get" : {
        "operationId" : "get-api-transform-id",
        "summary" : "GET /api/transform/{id}",
        "description" : "Get a specific transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "table" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : { }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "owner" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "common_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "email" : {
                            "type" : "string"
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "email" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source_type" : {
                      "type" : "string"
                    },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_hi_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "checkpoint_lo_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                          },
                          "transform_entity_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_filter_field_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "metered_as" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "start_time" : { }
                        },
                        "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source_database_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "owner_email" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target_db_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "creator" : {
                      "type" : "object",
                      "properties" : {
                        "is_qbnewb" : {
                          "type" : "boolean"
                        },
                        "last_login" : {
                          "oneOf" : [ { }, {
                            "type" : "null"
                          } ]
                        },
                        "id" : {
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "email" : {
                          "type" : "string"
                        },
                        "is_data_analyst" : {
                          "type" : "boolean"
                        },
                        "is_superuser" : {
                          "type" : "boolean"
                        },
                        "tenant_id" : {
                          "oneOf" : [ { }, {
                            "type" : "null"
                          } ]
                        },
                        "last_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "first_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "date_joined" : { },
                        "common_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "id", "email", "first_name", "last_name" ],
                      "additionalProperties" : false
                    },
                    "owner_user_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "updated_at" : { },
                    "source_readable" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tag_ids" : {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "collection_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source" : { },
                    "last_checkpoint_value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target" : { },
                    "created_at" : { },
                    "creator_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "run_trigger" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target_table_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "description" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "name", "description", "source", "target", "source_type", "entity_id", "created_at", "updated_at", "creator_id", "collection_id", "creator" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      },
      "put" : {
        "operationId" : "put-api-transform-id",
        "summary" : "PUT /api/transform/{id}",
        "description" : "Update a transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "table" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : { }
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "owner" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "common_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "email" : {
                            "type" : "string"
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "email" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source_type" : {
                      "type" : "string"
                    },
                    "entity_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_run" : {
                      "oneOf" : [ {
                        "type" : "object",
                        "properties" : {
                          "message" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_hi_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "is_active" : {
                            "oneOf" : [ {
                              "type" : "boolean"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "run_method" : {
                            "type" : "string"
                          },
                          "checkpoint_lo_value" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "status" : {
                            "type" : "string",
                            "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                          },
                          "transform_entity_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "checkpoint_filter_field_id" : {
                            "oneOf" : [ {
                              "type" : "integer",
                              "minimum" : 1
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "end_time" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "metered_as" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "transform_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "start_time" : { }
                        },
                        "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                        "additionalProperties" : false
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source_database_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "owner_email" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target_db_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "creator" : {
                      "type" : "object",
                      "properties" : {
                        "is_qbnewb" : {
                          "type" : "boolean"
                        },
                        "last_login" : {
                          "oneOf" : [ { }, {
                            "type" : "null"
                          } ]
                        },
                        "id" : {
                          "type" : "integer",
                          "minimum" : 1
                        },
                        "email" : {
                          "type" : "string"
                        },
                        "is_data_analyst" : {
                          "type" : "boolean"
                        },
                        "is_superuser" : {
                          "type" : "boolean"
                        },
                        "tenant_id" : {
                          "oneOf" : [ { }, {
                            "type" : "null"
                          } ]
                        },
                        "last_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "first_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "date_joined" : { },
                        "common_name" : {
                          "oneOf" : [ {
                            "type" : "string"
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "id", "email", "first_name", "last_name" ],
                      "additionalProperties" : false
                    },
                    "owner_user_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "name" : {
                      "type" : "string"
                    },
                    "updated_at" : { },
                    "source_readable" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tag_ids" : {
                      "type" : "array",
                      "items" : {
                        "type" : "integer",
                        "minimum" : 1
                      }
                    },
                    "collection_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "source" : { },
                    "last_checkpoint_value" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target" : { },
                    "created_at" : { },
                    "creator_id" : {
                      "type" : "integer",
                      "minimum" : 1
                    },
                    "run_trigger" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "target_table_id" : {
                      "oneOf" : [ {
                        "type" : "integer",
                        "minimum" : 1
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "description" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "name", "description", "source", "target", "source_type", "entity_id", "created_at", "updated_at", "creator_id", "collection_id", "creator" ],
                  "additionalProperties" : false
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "owner_email" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_user_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "type" : "string"
                  },
                  "tag_ids" : {
                    "type" : "array",
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "source" : {
                    "$ref" : "#/components/schemas/metabase.transforms.schema.transform-source"
                  },
                  "target" : {
                    "$ref" : "#/components/schemas/metabase.transforms.schema.transform-target"
                  },
                  "run_trigger" : {
                    "$ref" : "#/components/schemas/metabase.transforms-rest.api.transform.run-trigger"
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/transform" ]
      },
      "delete" : {
        "operationId" : "delete-api-transform-id",
        "summary" : "DELETE /api/transform/{id}",
        "description" : "Delete a transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/{id}/cancel" : {
      "post" : {
        "operationId" : "post-api-transform-id-cancel",
        "summary" : "POST /api/transform/{id}/cancel",
        "description" : "Cancel the current run for a given transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/{id}/dependencies" : {
      "get" : {
        "operationId" : "get-api-transform-id-dependencies",
        "summary" : "GET /api/transform/{id}/dependencies",
        "description" : "Get the dependencies of a specific transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "table" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : { }
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "owner" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "common_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "email" : {
                              "type" : "string"
                            },
                            "first_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "last_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            }
                          },
                          "required" : [ "email" ],
                          "additionalProperties" : false
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source_type" : {
                        "type" : "string"
                      },
                      "entity_id" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "last_run" : {
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "message" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "user_id" : {
                              "oneOf" : [ {
                                "type" : "integer",
                                "minimum" : 1
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "checkpoint_hi_value" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "is_active" : {
                              "oneOf" : [ {
                                "type" : "boolean"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "transform_id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "id" : {
                              "type" : "integer",
                              "minimum" : 1
                            },
                            "run_method" : {
                              "type" : "string"
                            },
                            "checkpoint_lo_value" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "status" : {
                              "type" : "string",
                              "enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
                            },
                            "transform_entity_id" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "checkpoint_filter_field_id" : {
                              "oneOf" : [ {
                                "type" : "integer",
                                "minimum" : 1
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "end_time" : {
                              "oneOf" : [ { }, {
                                "type" : "null"
                              } ]
                            },
                            "metered_as" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "transform_name" : {
                              "oneOf" : [ {
                                "type" : "string"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "start_time" : { }
                          },
                          "required" : [ "id", "transform_id", "run_method", "status", "is_active", "start_time", "message", "user_id" ],
                          "additionalProperties" : false
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source_database_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "owner_email" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "target_db_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "creator" : {
                        "type" : "object",
                        "properties" : {
                          "is_qbnewb" : {
                            "type" : "boolean"
                          },
                          "last_login" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer",
                            "minimum" : 1
                          },
                          "email" : {
                            "type" : "string"
                          },
                          "is_data_analyst" : {
                            "type" : "boolean"
                          },
                          "is_superuser" : {
                            "type" : "boolean"
                          },
                          "tenant_id" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "date_joined" : { },
                          "common_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "email", "first_name", "last_name" ],
                        "additionalProperties" : false
                      },
                      "owner_user_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "updated_at" : { },
                      "source_readable" : {
                        "oneOf" : [ {
                          "type" : "boolean"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "tag_ids" : {
                        "type" : "array",
                        "items" : {
                          "type" : "integer",
                          "minimum" : 1
                        }
                      },
                      "collection_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "source" : { },
                      "last_checkpoint_value" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "target" : { },
                      "created_at" : { },
                      "creator_id" : {
                        "type" : "integer",
                        "minimum" : 1
                      },
                      "run_trigger" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "target_table_id" : {
                        "oneOf" : [ {
                          "type" : "integer",
                          "minimum" : 1
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "description" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "name", "description", "source", "target", "source_type", "entity_id", "created_at", "updated_at", "creator_id", "collection_id", "creator" ],
                    "additionalProperties" : false
                  }
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/{id}/reset-checkpoint" : {
      "post" : {
        "operationId" : "post-api-transform-id-reset-checkpoint",
        "summary" : "POST /api/transform/{id}/reset-checkpoint",
        "description" : "Reset the stored checkpoint for an incremental transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/{id}/run" : {
      "post" : {
        "operationId" : "post-api-transform-id-run",
        "summary" : "POST /api/transform/{id}/run",
        "description" : "Run a transform.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "body" : {
                      "type" : "object",
                      "properties" : {
                        "message" : { },
                        "run_id" : {
                          "oneOf" : [ {
                            "type" : "integer",
                            "minimum" : 1
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "message", "run_id" ],
                      "additionalProperties" : false
                    },
                    "status" : {
                      "const" : 202
                    }
                  },
                  "required" : [ "status", "body" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/transform/{id}/table" : {
      "delete" : {
        "operationId" : "delete-api-transform-id-table",
        "summary" : "DELETE /api/transform/{id}/table",
        "description" : "Delete a transform's output table.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/transform" ]
      }
    },
    "/api/upload/csv" : {
      "post" : {
        "operationId" : "post-api-upload-csv",
        "summary" : "POST /api/upload/csv",
        "description" : "Create a table and model populated with the values from the attached CSV. Returns the model ID if successful.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "file" : {
                    "type" : "object",
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ]
                  }
                },
                "required" : [ "collection_id", "file" ]
              }
            }
          }
        },
        "tags" : [ "/api/upload" ]
      }
    },
    "/api/user" : {
      "get" : {
        "operationId" : "get-api-user",
        "summary" : "GET /api/user",
        "description" : "Fetch a list of `Users` for admins or group managers.\n  By default returns only active users for admins/data-analysts and only active users within groups that the group manager is\n  managing for group managers.\n\n   - If `status` is `deactivated`, include deactivated users only.\n\n   - If `status` is `all`, include all users (active and inactive).\n\n   - Also supports `include_deactivated`, which if true, is equivalent to `status=all`; If is false, is equivalent to\n     `status=active`. `status` and `include_deactivated` requires superuser permissions.\n\n   - `include_deactivated` is a legacy alias for `status` and will be removed in a future release, users are advised\n     to use `status` for better support and flexibility.\n\n   If both params are passed, `status` takes precedence.\n  - if a `tenant_id` is passed, only users with that tenant_id will be returned.\n\n  For users with segmented permissions, return only themselves.\n\n  Takes `limit`, `offset` for pagination.\n\n  Takes `query` for filtering on first name, last name, email.\n\n  Also takes `group_id`, which filters on group id.\n\n  If the user is a sandboxed user, only return themselves regardless of the query parameters.",
        "parameters" : [ {
          "in" : "query",
          "name" : "status",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "group_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_deactivated",
          "required" : true,
          "schema" : {
            "default" : false,
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "is_data_analyst",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "can_access_data_studio",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "tenancy",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "all", "internal", "external" ]
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "tenant_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "type" : "integer",
              "minimum" : 1
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      },
      "post" : {
        "operationId" : "post-api-user",
        "summary" : "POST /api/user",
        "description" : "Create a new `User`, return a 400 if the email address is already taken",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "email" : {
                    "description" : "value must be a valid email address.",
                    "type" : "string"
                  },
                  "first_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "last_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "login_attributes" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "source" : {
                    "default" : "admin",
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "tenant_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "user_group_memberships" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.users.schema.user-group-membership"
                      }
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "email" ]
              }
            }
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user-key-value/namespace/{namespace}" : {
      "get" : {
        "operationId" : "get-api-user-key-value-namespace-namespace",
        "summary" : "GET /api/user-key-value/namespace/{namespace}",
        "description" : "Returns all KV pairs in a given namespace for the current user",
        "parameters" : [ {
          "in" : "path",
          "name" : "namespace",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user-key-value" ]
      }
    },
    "/api/user-key-value/namespace/{namespace}/key/{key}" : {
      "put" : {
        "operationId" : "put-api-user-key-value-namespace-namespace-key-key",
        "summary" : "PUT /api/user-key-value/namespace/{namespace}/key/{key}",
        "description" : "Upsert a KV-pair for the user",
        "parameters" : [ {
          "in" : "path",
          "name" : "key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "namespace",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "expires_at" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.datetime"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "value" : { }
                }
              }
            }
          }
        },
        "tags" : [ "/api/user-key-value" ]
      },
      "get" : {
        "operationId" : "get-api-user-key-value-namespace-namespace-key-key",
        "summary" : "GET /api/user-key-value/namespace/{namespace}/key/{key}",
        "description" : "Get a value for the user",
        "parameters" : [ {
          "in" : "path",
          "name" : "key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "namespace",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user-key-value" ]
      },
      "delete" : {
        "operationId" : "delete-api-user-key-value-namespace-namespace-key-key",
        "summary" : "DELETE /api/user-key-value/namespace/{namespace}/key/{key}",
        "description" : "Deletes a KV-pair for the user",
        "parameters" : [ {
          "in" : "path",
          "name" : "key",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        }, {
          "in" : "path",
          "name" : "namespace",
          "required" : true,
          "schema" : {
            "type" : "string",
            "minLength" : 1
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user-key-value" ]
      }
    },
    "/api/user/current" : {
      "get" : {
        "operationId" : "get-api-user-current",
        "summary" : "GET /api/user/current",
        "description" : "Fetch the current `User`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user/recipients" : {
      "get" : {
        "operationId" : "get-api-user-recipients",
        "summary" : "GET /api/user/recipients",
        "description" : "Fetch a list of `Users`. Returns only active users. Meant for non-admins unlike GET /api/user.\n\n   - If user-visibility is :all or the user is an admin, include all users.\n   - If user-visibility is :group, include only users in the same group (excluding the all users group).\n   - If user-visibility is :none or the user is sandboxed, include only themselves.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user/{id}" : {
      "get" : {
        "operationId" : "get-api-user-id",
        "summary" : "GET /api/user/{id}",
        "description" : "Fetch a `User`. You must be fetching yourself *or* be a superuser *or* a Group Manager.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      },
      "put" : {
        "operationId" : "put-api-user-id",
        "summary" : "PUT /api/user/{id}",
        "description" : "Update an existing, active `User`.\n  Self or superusers can update user info and groups.\n  Group Managers can only add/remove users from groups they are manager of.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "login_attributes" : {
                    "oneOf" : [ {
                      "type" : "object",
                      "additionalProperties" : { }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "user_group_memberships" : {
                    "oneOf" : [ {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.users.schema.user-group-membership"
                      }
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "email" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid email address.",
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_data_analyst" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "locale" : {
                    "oneOf" : [ {
                      "description" : "String must be a valid two-letter ISO language or language-country code e.g. 'en' or 'en_US'.",
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_group_manager" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_superuser" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "tenant_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "type" : "integer",
                      "minimum" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "last_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "first_name" : {
                    "oneOf" : [ {
                      "type" : "string",
                      "minLength" : 1
                    }, {
                      "type" : "null"
                    } ]
                  }
                }
              }
            }
          }
        },
        "tags" : [ "/api/user" ]
      },
      "delete" : {
        "operationId" : "delete-api-user-id",
        "summary" : "DELETE /api/user/{id}",
        "description" : "Disable a `User`.  This does not remove the `User` from the DB, but instead disables their account.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user/{id}/modal/{modal}" : {
      "put" : {
        "operationId" : "put-api-user-id-modal-modal",
        "summary" : "PUT /api/user/{id}/modal/{modal}",
        "description" : "Indicate that a user has been informed about the vast intricacies of 'the' Query Builder.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        }, {
          "in" : "path",
          "name" : "modal",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "qbnewb", "datasetnewb" ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user/{id}/password" : {
      "put" : {
        "operationId" : "put-api-user-id-password",
        "summary" : "PUT /api/user/{id}/password",
        "description" : "Update a user's password.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "password" : {
                    "description" : "password is too common.",
                    "type" : "string"
                  }
                },
                "required" : [ "password" ]
              }
            }
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user/{id}/password-reset-url" : {
      "post" : {
        "operationId" : "post-api-user-id-password-reset-url",
        "summary" : "POST /api/user/{id}/password-reset-url",
        "description" : "Generate a password reset URL for a user. Admins can share this URL directly with the user.\n  The link expires in 48 hours.",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "password_reset_url" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "password_reset_url" ]
                }
              }
            }
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/user/{id}/reactivate" : {
      "put" : {
        "operationId" : "put-api-user-id-reactivate",
        "summary" : "PUT /api/user/{id}/reactivate",
        "description" : "Reactivate user at `:id`",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "minimum" : 1
          },
          "description" : "value must be an integer greater than zero."
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/user" ]
      }
    },
    "/api/util/random_token" : {
      "get" : {
        "operationId" : "get-api-util-random_token",
        "summary" : "GET /api/util/random_token",
        "description" : "Return a cryptographically secure random 32-byte token, encoded as a hexadecimal string.\n   Intended for use when creating a value for `embedding-secret-key`.",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "tags" : [ "/api/util" ]
      }
    }
  },
  "security" : [ {
    "ApiKeyAuth" : [ ]
  } ],
  "servers" : [ {
    "url" : "http://localhost:3000",
    "description" : "Localhost"
  } ]
}