Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

1.6 MB
Raw Blame
{
  "components" : {
    "schemas" : {
      "gsheets.response" : {
        "anyOf" : [ {
          "properties" : {
            "error" : {
              "type" : "boolean"
            },
            "message" : {
              "minLength" : 1,
              "type" : "string"
            }
          },
          "required" : [ "error", "message" ],
          "type" : "object"
        }, {
          "oneOf" : [ {
            "properties" : { },
            "type" : "object"
          }, {
            "properties" : {
              "created_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "created_by_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "db_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "sync_started_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "url" : {
                "minLength" : 1,
                "type" : "string"
              }
            },
            "required" : [ "url", "created_at", "sync_started_at", "created_by_id", "db_id" ],
            "type" : "object"
          }, {
            "properties" : {
              "created_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "created_by_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "db_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "sync_started_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "url" : {
                "minLength" : 1,
                "type" : "string"
              }
            },
            "required" : [ "url", "created_at", "sync_started_at", "created_by_id", "db_id" ],
            "type" : "object"
          }, {
            "properties" : {
              "created_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "created_by_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "db_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "last_sync_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "next_sync_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "url" : {
                "minLength" : 1,
                "type" : "string"
              }
            },
            "required" : [ "url", "created_at", "last_sync_at", "next_sync_at", "created_by_id", "db_id" ],
            "type" : "object"
          }, {
            "properties" : {
              "created_at" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "created_by_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "db_id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "error_message" : {
                "minLength" : 1,
                "type" : "string"
              },
              "url" : {
                "minLength" : 1,
                "type" : "string"
              }
            },
            "required" : [ "url", "created_at", "error_message", "created_by_id", "db_id" ],
            "type" : "object"
          } ]
        } ]
      },
      "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_" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause._GT__EQ_" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause._LT_" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause._LT__EQ_" : {
        "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"
        } ],
        "type" : "array"
      },
      "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" : {
        "prefixItems" : [ {
          "const" : "abs"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.absolute-datetime" : { },
      "mbql.clause.aggregation" : {
        "prefixItems" : [ {
          "const" : "aggregation"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref.aggregation-options"
        }, {
          "type" : "string"
        } ],
        "type" : "array"
      },
      "mbql.clause.and" : { },
      "mbql.clause.asc" : {
        "prefixItems" : [ {
          "const" : "asc"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ],
        "type" : "array"
      },
      "mbql.clause.avg" : {
        "prefixItems" : [ {
          "const" : "avg"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.between" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.case" : { },
      "mbql.clause.ceil" : {
        "prefixItems" : [ {
          "const" : "ceil"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.coalesce" : { },
      "mbql.clause.collate" : {
        "prefixItems" : [ {
          "const" : "collate"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "type" : "string"
        } ],
        "type" : "array"
      },
      "mbql.clause.concat" : { },
      "mbql.clause.contains" : { },
      "mbql.clause.convert-timezone" : { },
      "mbql.clause.count" : { },
      "mbql.clause.count-where" : {
        "prefixItems" : [ {
          "const" : "count-where"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ],
        "type" : "array"
      },
      "mbql.clause.cum-count" : { },
      "mbql.clause.cum-sum" : {
        "prefixItems" : [ {
          "const" : "cum-sum"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.date" : {
        "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"
          } ]
        } ],
        "type" : "array"
      },
      "mbql.clause.datetime" : { },
      "mbql.clause.datetime-add" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.datetime-diff" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.datetime-subtract" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.day-name" : {
        "prefixItems" : [ {
          "const" : "day-name"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
        } ],
        "type" : "array"
      },
      "mbql.clause.desc" : {
        "prefixItems" : [ {
          "const" : "desc"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ],
        "type" : "array"
      },
      "mbql.clause.distinct" : {
        "prefixItems" : [ {
          "const" : "distinct"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.aggregation..distinct.arg"
        } ],
        "type" : "array"
      },
      "mbql.clause.distinct-where" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.does-not-contain" : { },
      "mbql.clause.domain" : {
        "prefixItems" : [ {
          "const" : "domain"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.during" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.ends-with" : { },
      "mbql.clause.exp" : {
        "prefixItems" : [ {
          "const" : "exp"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.expression" : {
        "prefixItems" : [ {
          "const" : "expression"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref..expression.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
        } ],
        "type" : "array"
      },
      "mbql.clause.field" : {
        "allOf" : [ {
          "prefixItems" : [ {
            "const" : "field"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.options"
          }, {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "type" : "string"
            } ]
          } ],
          "type" : "array"
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.id"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.literal"
          } ]
        } ]
      },
      "mbql.clause.float" : {
        "prefixItems" : [ {
          "const" : "float"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.floor" : {
        "prefixItems" : [ {
          "const" : "floor"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-day" : {
        "prefixItems" : [ {
          "const" : "get-day"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-day-of-week" : { },
      "mbql.clause.get-hour" : {
        "prefixItems" : [ {
          "const" : "get-hour"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-minute" : {
        "prefixItems" : [ {
          "const" : "get-minute"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-month" : {
        "prefixItems" : [ {
          "const" : "get-month"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-quarter" : {
        "prefixItems" : [ {
          "const" : "get-quarter"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-second" : {
        "prefixItems" : [ {
          "const" : "get-second"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.get-week" : { },
      "mbql.clause.get-year" : {
        "prefixItems" : [ {
          "const" : "get-year"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        } ],
        "type" : "array"
      },
      "mbql.clause.host" : {
        "prefixItems" : [ {
          "const" : "host"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.if" : { },
      "mbql.clause.in" : { },
      "mbql.clause.inside" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.integer" : {
        "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"
          } ]
        } ],
        "type" : "array"
      },
      "mbql.clause.interval" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.is-empty" : {
        "prefixItems" : [ {
          "const" : "is-empty"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ],
        "type" : "array"
      },
      "mbql.clause.is-null" : {
        "prefixItems" : [ {
          "const" : "is-null"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ],
        "type" : "array"
      },
      "mbql.clause.length" : {
        "prefixItems" : [ {
          "const" : "length"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.log" : {
        "prefixItems" : [ {
          "const" : "log"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.lower" : {
        "prefixItems" : [ {
          "const" : "lower"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.ltrim" : {
        "prefixItems" : [ {
          "const" : "ltrim"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.max" : {
        "prefixItems" : [ {
          "const" : "max"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ],
        "type" : "array"
      },
      "mbql.clause.measure" : {
        "prefixItems" : [ {
          "const" : "measure"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.measure"
        } ],
        "type" : "array"
      },
      "mbql.clause.median" : {
        "prefixItems" : [ {
          "const" : "median"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.metric" : {
        "prefixItems" : [ {
          "const" : "metric"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
        } ],
        "type" : "array"
      },
      "mbql.clause.min" : {
        "prefixItems" : [ {
          "const" : "min"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.orderable"
        } ],
        "type" : "array"
      },
      "mbql.clause.month-name" : {
        "prefixItems" : [ {
          "const" : "month-name"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
        } ],
        "type" : "array"
      },
      "mbql.clause.not" : {
        "prefixItems" : [ {
          "const" : "not"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ],
        "type" : "array"
      },
      "mbql.clause.not-empty" : {
        "prefixItems" : [ {
          "const" : "not-empty"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ],
        "type" : "array"
      },
      "mbql.clause.not-in" : { },
      "mbql.clause.not-null" : {
        "prefixItems" : [ {
          "const" : "not-null"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ],
        "type" : "array"
      },
      "mbql.clause.now" : {
        "prefixItems" : [ {
          "const" : "now"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        } ],
        "type" : "array"
      },
      "mbql.clause.offset" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.or" : { },
      "mbql.clause.path" : {
        "prefixItems" : [ {
          "const" : "path"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.percentile" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.power" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.quarter-name" : {
        "prefixItems" : [ {
          "const" : "quarter-name"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
        } ],
        "type" : "array"
      },
      "mbql.clause.regex-match-first" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.relative-datetime" : { },
      "mbql.clause.relative-time-interval" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.replace" : {
        "prefixItems" : [ {
          "const" : "replace"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "type" : "string"
        }, {
          "type" : "string"
        } ],
        "type" : "array"
      },
      "mbql.clause.round" : {
        "prefixItems" : [ {
          "const" : "round"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.rtrim" : {
        "prefixItems" : [ {
          "const" : "rtrim"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.segment" : {
        "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"
          } ]
        } ],
        "type" : "array"
      },
      "mbql.clause.share" : {
        "prefixItems" : [ {
          "const" : "share"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        } ],
        "type" : "array"
      },
      "mbql.clause.split-part" : {
        "prefixItems" : [ {
          "const" : "split-part"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        }, {
          "minLength" : 1,
          "type" : "string"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.positive-integer-or-numeric-expression"
        } ],
        "type" : "array"
      },
      "mbql.clause.sqrt" : {
        "prefixItems" : [ {
          "const" : "sqrt"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.starts-with" : { },
      "mbql.clause.stddev" : {
        "prefixItems" : [ {
          "const" : "stddev"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.subdomain" : {
        "prefixItems" : [ {
          "const" : "subdomain"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.substring" : { },
      "mbql.clause.sum" : {
        "prefixItems" : [ {
          "const" : "sum"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "mbql.clause.sum-where" : {
        "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"
        } ],
        "type" : "array"
      },
      "mbql.clause.temporal-extract" : { },
      "mbql.clause.text" : {
        "prefixItems" : [ {
          "const" : "text"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.expression"
        } ],
        "type" : "array"
      },
      "mbql.clause.time" : {
        "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"
          } ]
        } ],
        "type" : "array"
      },
      "mbql.clause.time-interval" : {
        "prefixItems" : [ {
          "const" : "time-interval"
        }, {
          "allOf" : [ {
            "description" : "Options for `:time-interval` operator. Note that `:relative-time-interval` does not support these options.",
            "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"
                } ]
              },
              "include-current" : {
                "type" : "boolean"
              },
              "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"
                } ]
              },
              "lib/uuid" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
              }
            },
            "required" : [ "lib/uuid" ],
            "type" : "object"
          }, { } ],
          "default" : { }
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal"
        }, {
          "oneOf" : [ {
            "enum" : [ "current", "last", "next" ],
            "type" : "string"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.integer"
          } ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing..unit.date-time.interval"
        } ],
        "type" : "array"
      },
      "mbql.clause.today" : {
        "prefixItems" : [ {
          "const" : "today"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        } ],
        "type" : "array"
      },
      "mbql.clause.trim" : {
        "prefixItems" : [ {
          "const" : "trim"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.upper" : {
        "prefixItems" : [ {
          "const" : "upper"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.string"
        } ],
        "type" : "array"
      },
      "mbql.clause.value" : {
        "prefixItems" : [ {
          "const" : "value"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal..value.options"
        }, { } ],
        "type" : "array"
      },
      "mbql.clause.var" : {
        "prefixItems" : [ {
          "const" : "var"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.number"
        } ],
        "type" : "array"
      },
      "metabase-enterprise.action-v2.api.api-action-expression" : {
        "description" : "A more relaxed version of ::action-expression that can still have opaque identifiers inside inside.",
        "properties" : { },
        "type" : "object"
      },
      "metabase-enterprise.action-v2.api.api-action-id" : {
        "anyOf" : [ {
          "description" : "value must be an integer greater than zero.",
          "minimum" : 1,
          "type" : "integer"
        }, {
          "type" : "string"
        } ],
        "description" : "Primitive actions, saved actions, and packed encodings from the picker."
      },
      "metabase-enterprise.action-v2.api.api-action-id-or-expression" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-id"
        }, {
          "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-expression"
        } ],
        "description" : "All the various ways of referring to an action with the v2 APIs."
      },
      "metabase-enterprise.data-studio.api.table.publish-table-selectors" : {
        "properties" : {
          "collection_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "database_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          },
          "schema_ids" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "table_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          }
        },
        "required" : [ "collection_id" ],
        "type" : "object"
      },
      "metabase-enterprise.data-studio.api.table.publish-tables-response" : {
        "description" : "Schema for /publish-tables endpoint response. Matches frontend PublishTablesResponse type.",
        "properties" : {
          "target_collection" : {
            "oneOf" : [ {
              "description" : "value must be an instance of :model/Collection"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "target_collection" ],
        "type" : "object"
      },
      "metabase-enterprise.data-studio.api.table.table-selectors" : {
        "properties" : {
          "database_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          },
          "schema_ids" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "table_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.base-entity" : {
        "properties" : {
          "data" : {
            "properties" : { },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.broken-cards-response" : {
        "properties" : {
          "bad_cards" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.queries.schema.card"
            },
            "type" : "array"
          },
          "bad_transforms" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.transforms.schema.transform"
            },
            "type" : "array"
          },
          "success" : {
            "type" : "boolean"
          }
        },
        "required" : [ "success" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.broken-dependent-entity" : {
        "description" : "Entity returned by /graph/broken endpoint - includes errors but no dependents_count.",
        "properties" : {
          "data" : {
            "properties" : { },
            "type" : "object"
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "type", "data" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.card-body" : {
        "description" : "Schema for an instance of a `:model/Card` (everything is optional to support updates).",
        "properties" : {
          "collection_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
            }, {
              "type" : "null"
            } ]
          },
          "dashboard_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
            }, {
              "type" : "null"
            } ]
          },
          "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"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "document_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "parameter_mappings" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
            }, {
              "type" : "null"
            } ]
          },
          "parameters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
            }, {
              "type" : "null"
            } ]
          },
          "result_metadata" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.card-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "dashboard" : { },
              "dashboard_id" : { },
              "database_id" : { },
              "description" : { },
              "display" : { },
              "document" : { },
              "document_id" : { },
              "last-edit-info" : { },
              "name" : { },
              "query_type" : { },
              "result_metadata" : { },
              "type" : { },
              "view_count" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "card"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.dashboard-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "description" : { },
              "last-edit-info" : { },
              "moderation_reviews" : { },
              "name" : { },
              "view_count" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "dashboard"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.document-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "description" : { },
              "name" : { },
              "view_count" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "document"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "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" : {
        "properties" : {
          "edges" : {
            "items" : {
              "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" ],
              "type" : "object"
            },
            "type" : "array"
          },
          "nodes" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
            },
            "type" : "array"
          }
        },
        "required" : [ "nodes", "edges" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.measure-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "description" : { },
              "name" : { },
              "table" : { },
              "table_id" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "measure"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.sandbox-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "table" : { },
              "table_id" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "sandbox"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.segment-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "dashboard" : { },
              "dashboard_id" : { },
              "database_id" : { },
              "description" : { },
              "display" : { },
              "document" : { },
              "document_id" : { },
              "last-edit-info" : { },
              "name" : { },
              "query_type" : { },
              "result_metadata" : { },
              "type" : { },
              "view_count" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "segment"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.snippet-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "collection" : { },
              "collection_id" : { },
              "created_at" : { },
              "creator" : { },
              "creator_id" : { },
              "description" : { },
              "name" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "snippet"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.table-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "db" : { },
              "db_id" : { },
              "description" : { },
              "display_name" : { },
              "fields" : { },
              "name" : { },
              "owner" : { },
              "owner_email" : { },
              "owner_user_id" : { },
              "schema" : { },
              "transform" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.transform-body" : {
        "properties" : {
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
          },
          "name" : {
            "type" : "string"
          },
          "source" : {
            "oneOf" : [ {
              "properties" : {
                "query" : {
                  "$ref" : "#/components/schemas/metabase.queries.schema.query"
                },
                "type" : {
                  "type" : "string"
                }
              },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "target" : {
            "oneOf" : [ {
              "description" : "Value must be a map.",
              "properties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.transform-entity" : {
        "properties" : {
          "data" : {
            "properties" : {
              "creator" : { },
              "description" : { },
              "last_run" : { },
              "name" : { },
              "owner" : { },
              "owner_email" : { },
              "owner_user_id" : { },
              "table" : { }
            },
            "type" : "object"
          },
          "dependents_count" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.usages"
            }, {
              "type" : "null"
            } ]
          },
          "dependents_errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "transform"
          }
        },
        "required" : [ "id", "type", "data", "dependents_count" ],
        "type" : "object"
      },
      "metabase-enterprise.dependencies.api.usages" : {
        "additionalProperties" : {
          "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.entity-id"
        },
        "type" : "object"
      },
      "metabase-enterprise.dependencies.dependency-types.dependency-types" : {
        "enum" : [ "transform", "table", "snippet", "dashboard", "sandbox", "measure", "card", "document", "segment" ],
        "type" : "string"
      },
      "metabase-enterprise.dependencies.dependency-types.entity-id" : {
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase-enterprise.dependencies.models.analysis-finding-error.analysis-finding-error" : {
        "description" : "Schema for an AnalysisFindingError record.",
        "properties" : {
          "analyzed_entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "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.",
            "minimum" : 1,
            "type" : "integer"
          },
          "source_entity_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "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" ],
        "type" : "object"
      },
      "metabase-enterprise.permission-debug.impl.group-id" : {
        "type" : "integer"
      },
      "metabase-enterprise.permission-debug.impl.perm-debug-info" : {
        "properties" : {
          "data" : {
            "properties" : { },
            "type" : "object"
          },
          "decision" : {
            "enum" : [ "allow", "denied", "limited" ],
            "type" : "string"
          },
          "message" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "model-id" : {
            "type" : "string"
          },
          "model-type" : {
            "enum" : [ "card", "invalid" ],
            "type" : "string"
          },
          "segment" : {
            "items" : {
              "enum" : [ "sandboxed", "impersonated", "routed" ],
              "type" : "string"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "suggestions" : {
            "additionalProperties" : {
              "type" : "string"
            },
            "type" : "object"
          }
        },
        "required" : [ "model-type", "model-id", "decision", "segment", "message", "data", "suggestions" ],
        "type" : "object"
      },
      "metabase-enterprise.replacement.schema.check-replace-source-response" : {
        "properties" : {
          "column_mappings" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.column-mapping"
            },
            "type" : "array"
          },
          "errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.error-type"
            },
            "type" : "array"
          },
          "success" : {
            "type" : "boolean"
          }
        },
        "required" : [ "success" ],
        "type" : "object"
      },
      "metabase-enterprise.replacement.schema.column" : {
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.replacement.schema.column-mapping" : {
        "properties" : {
          "errors" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.source-swap.schema.column-error"
            },
            "type" : "array"
          },
          "source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.column"
            }, {
              "type" : "null"
            } ]
          },
          "target" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.column"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.replacement.schema.error-type" : {
        "enum" : [ "cycle-detected", "database-mismatch", "incompatible-implicit-joins", "affects-gtap-policies" ],
        "type" : "string"
      },
      "metabase-enterprise.replacement.schema.run" : {
        "properties" : {
          "end_time" : {
            "oneOf" : [ {
              "format" : "date-time",
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-id"
          },
          "is_active" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "message" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "progress" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "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"
          },
          "start_time" : {
            "format" : "date-time",
            "type" : "string"
          },
          "status" : {
            "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.run-status"
          },
          "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"
          },
          "user_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
            }, {
              "type" : "null"
            } ]
          }
        },
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.replacement.schema.run-id" : {
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase-enterprise.replacement.schema.run-status" : {
        "enum" : [ "pending", "started", "succeeded", "failed", "canceled", "timeout" ],
        "type" : "string"
      },
      "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" : {
        "enum" : [ "card", "table", "transform" ],
        "type" : "string"
      },
      "metabase-enterprise.sandbox.schema.attribute-remappings" : {
        "description" : "value must be a valid attribute remappings map (attribute name -> remapped name)",
        "oneOf" : [ {
          "additionalProperties" : {
            "anyOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
            } ]
          },
          "type" : "object"
        }, {
          "type" : "null"
        } ]
      },
      "metabase-enterprise.security-center.schema.advisory-id" : {
        "minLength" : 1,
        "type" : "string"
      },
      "metabase-enterprise.security-center.schema.affected-versions" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.version-range"
        },
        "type" : "array"
      },
      "metabase-enterprise.security-center.schema.match-status" : {
        "enum" : [ "unknown", "active", "resolved", "not_affected", "error" ],
        "type" : "string"
      },
      "metabase-enterprise.security-center.schema.semver" : {
        "pattern" : "^\\d+\\.\\d+\\.\\d+$",
        "type" : "string"
      },
      "metabase-enterprise.security-center.schema.severity" : {
        "enum" : [ "critical", "high", "medium", "low" ],
        "type" : "string"
      },
      "metabase-enterprise.security-center.schema.version-range" : {
        "description" : "A single affected version range with inclusive min and exclusive fixed.",
        "properties" : {
          "fixed" : {
            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.semver"
          },
          "min" : {
            "$ref" : "#/components/schemas/metabase-enterprise.security-center.schema.semver"
          }
        },
        "required" : [ "min", "fixed" ],
        "type" : "object"
      },
      "metabase-enterprise.serialization.schema.export-metadata-response" : {
        "properties" : {
          "databases" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.serialization.schema.exported-database"
            },
            "type" : "array"
          },
          "fields" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.serialization.schema.exported-field"
            },
            "type" : "array"
          },
          "tables" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.serialization.schema.exported-table"
            },
            "type" : "array"
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.serialization.schema.exported-database" : {
        "properties" : {
          "engine" : {
            "type" : "string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name", "engine" ],
        "type" : "object"
      },
      "metabase-enterprise.serialization.schema.exported-field" : {
        "properties" : {
          "base_type" : {
            "type" : "string"
          },
          "coercion_strategy" : {
            "type" : "string"
          },
          "database_type" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "effective_type" : {
            "type" : "string"
          },
          "fk_target_field_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "name" : {
            "type" : "string"
          },
          "nfc_path" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "parent_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "semantic_type" : {
            "type" : "string"
          },
          "table_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
          }
        },
        "required" : [ "id", "table_id", "name", "base_type" ],
        "type" : "object"
      },
      "metabase-enterprise.serialization.schema.exported-table" : {
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.support-access-grants.schema.create-grant-request" : {
        "description" : "Schema for POST /api/ee/support-access-grants request body.",
        "properties" : {
          "grant_duration_minutes" : {
            "maximum" : 10080,
            "minimum" : 1,
            "type" : "integer"
          },
          "notes" : {
            "oneOf" : [ {
              "maxLength" : 255,
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "ticket_number" : {
            "oneOf" : [ {
              "maxLength" : 100,
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "grant_duration_minutes" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "created_at" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "grant_end_timestamp" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "grant_start_timestamp" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "notes" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "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.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "ticket_number" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "token" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "updated_at" : {
            "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.timestamp"
          },
          "user_email" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "user_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "user_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.support-access-grants.schema.list-grants-response" : {
        "description" : "Schema for GET /api/ee/support-access-grants response (paginated list).",
        "properties" : {
          "data" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.support-access-grants.schema.grant-response"
            },
            "type" : "array"
          },
          "limit" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "offset" : {
            "minimum" : 0,
            "type" : "integer"
          },
          "total" : {
            "minimum" : 0,
            "type" : "integer"
          }
        },
        "required" : [ "data", "total", "limit", "offset" ],
        "type" : "object"
      },
      "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.",
        "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" : {
            "enum" : [ "info", "warning", "error" ],
            "type" : "string"
          }
        },
        "required" : [ "id", "condition", "severity", "message" ],
        "type" : "object"
      },
      "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. ",
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.card-metadata" : {
        "description" : "Common metadata for join-related cards and triggers.",
        "properties" : {
          "card_type" : {
            "type" : "string"
          },
          "dedup_key" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.dedup-key"
          },
          "depends_on_cards" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "group_id" : {
            "type" : "string"
          },
          "group_order" : {
            "type" : "integer"
          },
          "group_role" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.group-role"
          },
          "join_alias" : {
            "type" : "string"
          },
          "join_step" : {
            "type" : "integer"
          },
          "join_strategy" : {
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.complexity" : {
        "description" : "Complexity estimate for a lens.",
        "properties" : {
          "level" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.complexity-level"
          },
          "score" : {
            "minimum" : 1,
            "type" : "integer"
          }
        },
        "required" : [ "level" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.complexity-level" : {
        "description" : "Estimated complexity/cost of generating a lens.",
        "enum" : [ "fast", "slow", "very-slow" ],
        "type" : "string"
      },
      "metabase-enterprise.transforms-inspector.schema.dedup-key" : {
        "description" : "Key for deduplicating identical queries across lenses.\n   Typically a vector like [:table_count table-id].",
        "items" : { },
        "type" : "array"
      },
      "metabase-enterprise.transforms-inspector.schema.discovery-response" : {
        "description" : "Response from lens discovery.",
        "properties" : {
          "available_lenses" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens-metadata"
            },
            "type" : "array"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "sources" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.table"
            },
            "type" : "array"
          },
          "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" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.display-type" : {
        "description" : "Valid display types for cards.",
        "enum" : [ "bar", "row", "line", "area", "pie", "scalar", "gauge", "progress", "table", "hidden" ],
        "type" : "string"
      },
      "metabase-enterprise.transforms-inspector.schema.drill-lens" : {
        "description" : "A drill-down lens available from the current lens.",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "id" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "display_name" ],
        "type" : "object"
      },
      "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.",
        "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" : {
            "additionalProperties" : { },
            "type" : "object"
          },
          "reason" : {
            "type" : "string"
          }
        },
        "required" : [ "lens_id", "condition" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.field" : {
        "description" : "Field metadata for inspector.",
        "properties" : {
          "base_type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "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" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.field-stats" : {
        "description" : "Statistics for a field from fingerprints.",
        "properties" : {
          "avg" : {
            "type" : "number"
          },
          "distinct_count" : {
            "type" : "integer"
          },
          "earliest" : {
            "type" : "string"
          },
          "latest" : {
            "type" : "string"
          },
          "max" : {
            "type" : "number"
          },
          "min" : {
            "type" : "number"
          },
          "nil_percent" : {
            "type" : "number"
          },
          "q1" : {
            "type" : "number"
          },
          "q3" : {
            "type" : "number"
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.group-role" : {
        "description" : "Role of a card within a comparison group.",
        "enum" : [ "input", "output" ],
        "type" : "string"
      },
      "metabase-enterprise.transforms-inspector.schema.inspector-status" : {
        "description" : "Status of the inspector result.",
        "enum" : [ "not-run", "ready" ],
        "type" : "string"
      },
      "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",
        "enum" : [ "flat", "comparison" ],
        "type" : "string"
      },
      "metabase-enterprise.transforms-inspector.schema.lens" : {
        "description" : "Full lens contents and drill lens/alert triggers.",
        "properties" : {
          "alert_triggers" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.alert-trigger"
            },
            "type" : "array"
          },
          "cards" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.card"
            },
            "type" : "array"
          },
          "complexity" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.complexity"
          },
          "display_name" : {
            "type" : "string"
          },
          "drill_lens_triggers" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.drill-lens-trigger"
            },
            "type" : "array"
          },
          "drill_lenses" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.drill-lens"
            },
            "type" : "array"
          },
          "id" : {
            "type" : "string"
          },
          "sections" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.section"
            },
            "type" : "array"
          },
          "summary" : {
            "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.lens-summary"
          }
        },
        "required" : [ "id", "display_name", "sections", "cards" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.lens-metadata" : {
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.lens-summary" : {
        "description" : "Summary section of a lens.",
        "properties" : {
          "alerts" : {
            "items" : {
              "properties" : { },
              "type" : "object"
            },
            "type" : "array"
          },
          "highlights" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.summary-highlight"
            },
            "type" : "array"
          },
          "text" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.section" : {
        "description" : "A section grouping cards in a lens.",
        "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" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.summary-highlight" : {
        "description" : "A highlight in the lens summary.",
        "properties" : {
          "card_id" : {
            "type" : "string"
          },
          "label" : {
            "type" : "string"
          },
          "value" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "label" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.table" : {
        "description" : "Table metadata.",
        "properties" : {
          "column_count" : {
            "type" : "integer"
          },
          "db_id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "fields" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase-enterprise.transforms-inspector.schema.field"
            },
            "type" : "array"
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "table_id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "table_name" : {
            "type" : "string"
          }
        },
        "required" : [ "table_id", "table_name", "db_id", "column_count", "fields" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "name" ],
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.trigger-metadata" : {
        "description" : "Common metadata for join-related cards and triggers.",
        "properties" : {
          "join_alias" : {
            "type" : "string"
          },
          "join_step" : {
            "type" : "integer"
          },
          "join_strategy" : {
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "metabase-enterprise.transforms-inspector.schema.visited-fields" : {
        "description" : "Field IDs used in semantically important query clauses.\n   Used for interestingness scoring and preselection.",
        "properties" : {
          "all" : {
            "items" : {
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array",
            "uniqueItems" : true
          }
        },
        "type" : "object"
      },
      "metabase.actions.schema..action.for-insert" : {
        "allOf" : [ {
          "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" ],
          "type" : "object"
        }, {
          "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"
          }, {
            "properties" : { },
            "type" : "object"
          } ]
        } ],
        "description" : "Schema for inserting a new Action (REST API or internally)."
      },
      "metabase.actions.schema..action.for-update" : {
        "allOf" : [ {
          "properties" : {
            "archived" : {
              "type" : "boolean"
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.id"
            },
            "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"
              } ]
            }
          },
          "type" : "object"
        }, {
          "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"
          }, {
            "properties" : { },
            "type" : "object"
          } ]
        } ],
        "description" : "Schema for updating an Action (REST API or internally)."
      },
      "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" : {
        "additionalProperties" : false,
        "properties" : {
          "body" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "headers" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "method" : {
            "enum" : [ "GET", "POST", "PUT", "DELETE", "PATCH" ],
            "type" : "string"
          },
          "parameters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
            }, {
              "type" : "null"
            } ]
          },
          "url" : {
            "type" : "string"
          }
        },
        "required" : [ "method", "url" ],
        "type" : "object"
      },
      "metabase.actions.schema..implicit-action.kind" : {
        "description" : "Unsupported implicit action kind",
        "enum" : [ "row/create", "row/update", "row/delete", "bulk/create", "bulk/update", "bulk/delete" ],
        "type" : "string"
      },
      "metabase.actions.schema.action" : {
        "allOf" : [ {
          "properties" : {
            "archived" : {
              "type" : "boolean"
            },
            "created_at" : { },
            "creator_id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
              }, {
                "type" : "null"
              } ]
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "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"
              } ]
            },
            "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"
              } ]
            },
            "public_uuid" : {
              "oneOf" : [ {
                "description" : "value must be a valid UUID.",
                "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}",
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "type" : {
              "$ref" : "#/components/schemas/metabase.actions.schema.type"
            },
            "updated_at" : { },
            "visualization_settings" : {
              "oneOf" : [ {
                "type" : "object"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "id" ],
          "type" : "object"
        }, {
          "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"
          }, {
            "properties" : { },
            "type" : "object"
          } ]
        } ],
        "description" : "An Action as it should appear when we `SELECT` it from the app DB."
      },
      "metabase.actions.schema.http-action" : {
        "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"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.actions.schema.id" : {
        "description" : "Valid Action ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.actions.schema.implicit-action" : {
        "properties" : {
          "kind" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.actions.schema..implicit-action.kind"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.actions.schema.query-action" : {
        "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"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.actions.schema.type" : {
        "description" : "Unsupported action type",
        "enum" : [ "http", "implicit", "query" ],
        "type" : "string"
      },
      "metabase.actions.types..scope.raw" : {
        "anyOf" : [ {
          "properties" : {
            "dashboard-id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "dashboard-id" ],
          "type" : "object"
        }, {
          "properties" : {
            "dashcard-id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "dashcard-id" ],
          "type" : "object"
        }, {
          "properties" : {
            "card-id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "card-id" ],
          "type" : "object"
        }, {
          "properties" : {
            "model-id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "model-id" ],
          "type" : "object"
        }, {
          "properties" : {
            "table-id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "table-id" ],
          "type" : "object"
        }, {
          "properties" : {
            "webhook-id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "webhook-id" ],
          "type" : "object"
        }, {
          "properties" : {
            "unknown" : {
              "enum" : [ "model-action" ],
              "type" : "string"
            }
          },
          "required" : [ "unknown" ],
          "type" : "object"
        } ]
      },
      "metabase.agent-api.api.column-metadata" : {
        "description" : "Metadata for a single result column.",
        "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" ],
        "type" : "object"
      },
      "metabase.agent-api.api.construct-query-request" : {
        "additionalProperties" : false,
        "description" : "Request body for /v2/construct-query and the fresh-query branch of /v2/query.\n  A single `:query` key whose value is a JSON object matching\n  [[metabase.lib.schema/external-query]] — the canonical portable MBQL 5 wire format. The\n  query is fully self-describing: the database is derived from the first stage's\n  `source-table:` or `source-card:`, all field references are portable FKs\n  (`[<db-name>, <schema>, <table-name>, <column-name>]`), and there is no auxiliary\n  `source_entity` / `referenced_entities` envelope. See\n  `resources/metabot/prompts/tools/construct_notebook_query.md` for the full format reference\n  (including operators, joins, expressions, multi-stage queries, and FK conventions).\n\n  Closed map: any extra top-level keys (notably the legacy `source_entity` /\n  `referenced_entities` envelope from before the repr migration) are rejected with a 400 so\n  callers don't silently send fields the server ignores.",
        "properties" : {
          "query" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.external-query"
          }
        },
        "required" : [ "query" ],
        "type" : "object"
      },
      "metabase.agent-api.api.construct-query-response" : {
        "description" : "Response containing a base64-encoded MBQL query for use with /v1/execute.",
        "properties" : {
          "query" : {
            "minLength" : 1,
            "type" : "string"
          }
        },
        "required" : [ "query" ],
        "type" : "object"
      },
      "metabase.agent-api.api.create-dashboard-request" : {
        "properties" : {
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "question_ids" : {
            "oneOf" : [ {
              "items" : {
                "description" : "value must be an integer greater than zero.",
                "minimum" : 1,
                "type" : "integer"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "name" ],
        "type" : "object"
      },
      "metabase.agent-api.api.create-dashboard-response" : {
        "properties" : {
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "dashcard_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          }
        },
        "required" : [ "id", "name", "collection_id", "description", "dashcard_ids" ],
        "type" : "object"
      },
      "metabase.agent-api.api.create-question-request" : {
        "properties" : {
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "query" : {
            "minLength" : 1,
            "type" : "string"
          },
          "visualization_settings" : {
            "oneOf" : [ {
              "properties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "name", "query" ],
        "type" : "object"
      },
      "metabase.agent-api.api.create-question-response" : {
        "properties" : {
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display" : {
            "type" : "string"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          }
        },
        "required" : [ "id", "name", "display", "collection_id", "description" ],
        "type" : "object"
      },
      "metabase.agent-api.api.entity-type" : {
        "description" : "The type of queryable entity.",
        "enum" : [ "table", "metric" ],
        "type" : "string"
      },
      "metabase.agent-api.api.execute-query-request" : {
        "description" : "Request schema for /v1/execute. Accepts a base64-encoded MBQL query.",
        "properties" : {
          "query" : {
            "minLength" : 1,
            "type" : "string"
          }
        },
        "required" : [ "query" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "data" : {
            "properties" : {
              "cols" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.column-metadata"
                },
                "type" : "array"
              },
              "rows" : {
                "items" : {
                  "items" : { },
                  "type" : "array"
                },
                "type" : "array"
              }
            },
            "required" : [ "cols", "rows" ],
            "type" : "object"
          },
          "error" : {
            "type" : "string"
          },
          "row_count" : {
            "type" : "integer"
          },
          "running_time" : {
            "type" : "integer"
          },
          "status" : {
            "enum" : [ "completed", "failed" ],
            "type" : "string"
          }
        },
        "required" : [ "status" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "base_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "coercion_strategy" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "database_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "effective_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "field_id" : {
            "$ref" : "#/components/schemas/metabase.agent-api.api.field-id"
          },
          "field_values" : {
            "oneOf" : [ {
              "items" : { },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "semantic_type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "field_id", "name", "display_name" ],
        "type" : "object"
      },
      "metabase.agent-api.api.field-id" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
        }, {
          "type" : "string"
        } ],
        "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."
      },
      "metabase.agent-api.api.field-type" : {
        "description" : "A data type for a field derived from Metabase's type hierarchy.",
        "enum" : [ "boolean", "date", "datetime", "time", "number", "string" ],
        "type" : "string"
      },
      "metabase.agent-api.api.field-values" : {
        "description" : "Statistics and sample values for a specific field.",
        "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" : [ {
              "items" : { },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.agent-api.api.measure" : {
        "description" : "A reusable aggregation expression associated with a table. Reference via measure_id in the aggregations array.",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name" ],
        "type" : "object"
      },
      "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.",
        "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" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.field"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "segments" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.segment"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "metric"
          },
          "verified" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type", "name" ],
        "type" : "object"
      },
      "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.",
        "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" ],
        "type" : "object"
      },
      "metabase.agent-api.api.query-request" : {
        "description" : "Request body for /v2/query. Accepts either a fresh-query payload (`{:query <external-query>}`,\n  same shape as /v2/construct-query) or a `:continuation_token` from a prior response.\n\n  Both branches are closed maps: extra top-level keys (e.g. the legacy\n  `source_entity` / `referenced_entities` envelope, or sending `:query` and\n  `:continuation_token` simultaneously) are rejected with a 400.",
        "oneOf" : [ {
          "additionalProperties" : false,
          "properties" : {
            "continuation_token" : {
              "minLength" : 1,
              "type" : "string"
            }
          },
          "required" : [ "continuation_token" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.agent-api.api.construct-query-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.",
        "properties" : {
          "continuation_token" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "data" : {
            "properties" : {
              "cols" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.column-metadata"
                },
                "type" : "array"
              },
              "rows" : {
                "items" : {
                  "items" : { },
                  "type" : "array"
                },
                "type" : "array"
              }
            },
            "required" : [ "cols", "rows" ],
            "type" : "object"
          },
          "error" : {
            "type" : "string"
          },
          "row_count" : {
            "type" : "integer"
          },
          "running_time" : {
            "type" : "integer"
          },
          "status" : {
            "enum" : [ "completed", "failed" ],
            "type" : "string"
          }
        },
        "required" : [ "status" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "database_engine" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "database_schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "fields" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.field"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "related_by" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "id", "type", "name" ],
        "type" : "object"
      },
      "metabase.agent-api.api.search-response" : {
        "description" : "Search results containing tables and metrics matching the query.",
        "properties" : {
          "data" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.agent-api.api.search-result-item"
            },
            "type" : "array"
          },
          "total_count" : {
            "type" : "integer"
          }
        },
        "required" : [ "data", "total_count" ],
        "type" : "object"
      },
      "metabase.agent-api.api.search-result-item" : {
        "description" : "A table or metric returned from search.",
        "properties" : {
          "created_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "database_schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "type" : {
            "enum" : [ "table", "metric" ],
            "type" : "string"
          },
          "updated_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "verified" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type", "name" ],
        "type" : "object"
      },
      "metabase.agent-api.api.segment" : {
        "description" : "A predefined filter condition that can be applied to queries via the segment_id in filters.",
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "average_length" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "avg" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "distinct_count" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "earliest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "latest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "max" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "min" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_email" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_json" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_null" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_state" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "percent_url" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "q1" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "q3" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "sd" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.agent-api.api.table" : {
        "description" : "Full details of a table including its fields, related tables, metrics, and segments.",
        "properties" : {
          "database_engine" : {
            "type" : "string"
          },
          "database_id" : {
            "type" : "integer"
          },
          "database_schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display_name" : {
            "type" : "string"
          },
          "fields" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.agent-api.api.field"
            },
            "type" : "array"
          },
          "id" : {
            "type" : "integer"
          },
          "measures" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.measure"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "metrics" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.metric-summary"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "related_tables" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.related-table"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "segments" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.segment"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.agent-api.api.entity-type"
          }
        },
        "required" : [ "id", "type", "name", "display_name", "database_id", "database_engine", "fields" ],
        "type" : "object"
      },
      "metabase.analyze.query-results.ResultsMetadata" : {
        "description" : "value must be an array of valid results column metadata maps.",
        "oneOf" : [ {
          "items" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema..result-metadata.column"
          },
          "type" : "array"
        }, {
          "type" : "null"
        } ]
      },
      "metabase.api-keys.schema..key.masked" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/metabase.api-keys.schema..key.raw"
        }, {
          "pattern" : "^mb_.*{4}\\*+$",
          "type" : "string"
        } ],
        "description" : "Masked string like 'mb_1234**********'."
      },
      "metabase.api-keys.schema..key.raw" : {
        "description" : "Unhashed string of the form 'mb_<base-64-bytes>'.",
        "maxLength" : 254,
        "minLength" : 12,
        "type" : "string"
      },
      "metabase.api-keys.schema.id" : {
        "description" : "value must be an integer greater than zero.",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.api-keys.schema.name" : {
        "maxLength" : 254,
        "minLength" : 1,
        "type" : "string"
      },
      "metabase.api-keys.schema.prefix" : {
        "description" : "Prefix string of an API Key, suitable for passing around unmasked. This must be unique.",
        "maxLength" : 7,
        "minLength" : 7,
        "type" : "string"
      },
      "metabase.cache.api..cache-strategy.base.ee" : {
        "properties" : {
          "type" : {
            "enum" : [ "nocache", "ttl", "duration", "schedule" ],
            "type" : "string"
          }
        },
        "required" : [ "type" ],
        "type" : "object"
      },
      "metabase.cache.api..cache-strategy.base.oss" : {
        "properties" : {
          "type" : {
            "enum" : [ "nocache", "ttl" ],
            "type" : "string"
          }
        },
        "required" : [ "type" ],
        "type" : "object"
      },
      "metabase.cache.api..cache-strategy.ee" : {
        "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"
          } ]
        } ],
        "description" : "Schema for a caching strategy in EE when we have an premium token with `:cache-granular-controls`."
      },
      "metabase.cache.api..cache-strategy.ee.duration" : {
        "additionalProperties" : false,
        "properties" : {
          "duration" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "refresh_automatically" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "duration"
          },
          "unit" : {
            "enum" : [ "hours", "minutes", "seconds", "days" ],
            "type" : "string"
          }
        },
        "required" : [ "type", "duration", "unit" ],
        "type" : "object"
      },
      "metabase.cache.api..cache-strategy.ee.schedule" : {
        "additionalProperties" : false,
        "properties" : {
          "refresh_automatically" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "schedule" : {
            "$ref" : "#/components/schemas/metabase.util.cron.CronScheduleString"
          },
          "type" : {
            "const" : "schedule"
          }
        },
        "required" : [ "type", "schedule" ],
        "type" : "object"
      },
      "metabase.cache.api..cache-strategy.nocache" : {
        "properties" : {
          "type" : {
            "const" : "nocache"
          }
        },
        "required" : [ "type" ],
        "type" : "object"
      },
      "metabase.cache.api..cache-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"
          } ]
        } ],
        "description" : "Schema for a caching strategy (OSS)"
      },
      "metabase.cache.api..cache-strategy.ttl" : {
        "additionalProperties" : false,
        "properties" : {
          "min_duration_ms" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "minimum" : 0,
            "type" : "integer"
          },
          "multiplier" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "type" : {
            "const" : "ttl"
          }
        },
        "required" : [ "type", "multiplier", "min_duration_ms" ],
        "type" : "object"
      },
      "metabase.cache.api.cache-config-item" : {
        "properties" : {
          "collection" : {
            "oneOf" : [ {
              "properties" : {
                "authority_level" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                },
                "id" : {
                  "description" : "value must be an integer greater than zero.",
                  "minimum" : 1,
                  "type" : "integer"
                },
                "name" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                },
                "type" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                }
              },
              "required" : [ "id", "name" ],
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "model" : {
            "enum" : [ "root", "database", "dashboard", "question" ],
            "type" : "string"
          },
          "model_id" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "minimum" : 0,
            "type" : "integer"
          },
          "name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "strategy" : {
            "properties" : {
              "type" : {
                "type" : "string"
              }
            },
            "required" : [ "type" ],
            "type" : "object"
          }
        },
        "required" : [ "model", "model_id", "strategy" ],
        "type" : "object"
      },
      "metabase.cache.api.cache-config-list-response" : {
        "properties" : {
          "data" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.cache.api.cache-config-item"
            },
            "type" : "array"
          },
          "limit" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "offset" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater or equal to than zero.",
              "minimum" : 0,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "total" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "minimum" : 0,
            "type" : "integer"
          }
        },
        "required" : [ "data" ],
        "type" : "object"
      },
      "metabase.cache.api.cache-config-store-response" : {
        "properties" : {
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          }
        },
        "required" : [ "id" ],
        "type" : "object"
      },
      "metabase.cache.api.cache-invalidate-response" : {
        "properties" : {
          "body" : {
            "properties" : {
              "count" : {
                "type" : "integer"
              },
              "message" : {
                "type" : "string"
              }
            },
            "required" : [ "count", "message" ],
            "type" : "object"
          },
          "status" : {
            "enum" : [ 200, 404 ],
            "type" : "integer"
          }
        },
        "required" : [ "status", "body" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "active" : {
            "type" : "boolean"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "details" : {
            "properties" : { },
            "type" : "object"
          },
          "name" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "name", "type", "details" ],
        "type" : "object"
      },
      "metabase.channel.models.channel.ChannelTemplate" : {
        "description" : "Channel Template schema.",
        "oneOf" : [ {
          "properties" : {
            "channel_type" : { },
            "details" : {
              "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateEmailDetails"
            }
          },
          "required" : [ "channel_type", "details" ],
          "type" : "object"
        }, { } ]
      },
      "metabase.channel.models.channel.ChannelTemplateEmailDetails" : {
        "oneOf" : [ {
          "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" ],
          "type" : "object"
        } ]
      },
      "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.",
        "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" ],
        "type" : "object"
      },
      "metabase.channel.models.channel.ChannelTemplateUserProvided" : {
        "description" : "Channel Template schema for API-provided templates. Does not allow handlebars-resource.",
        "oneOf" : [ {
          "properties" : {
            "channel_type" : { },
            "details" : {
              "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateEmailDetailsUserProvided"
            }
          },
          "required" : [ "channel_type", "details" ],
          "type" : "object"
        }, { } ]
      },
      "metabase.collections-rest.api.DashboardQuestionCandidate" : {
        "properties" : {
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "sole_dashboard_info" : {
            "properties" : {
              "description" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "id" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "name" : {
                "type" : "string"
              }
            },
            "required" : [ "id", "name", "description" ],
            "type" : "object"
          }
        },
        "required" : [ "id", "name", "description", "sole_dashboard_info" ],
        "type" : "object"
      },
      "metabase.collections-rest.api.DashboardQuestionCandidatesResponse" : {
        "properties" : {
          "data" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections-rest.api.DashboardQuestionCandidate"
            },
            "type" : "array"
          },
          "total" : {
            "type" : "integer"
          }
        },
        "required" : [ "data", "total" ],
        "type" : "object"
      },
      "metabase.collections-rest.api.MoveDashboardQuestionCandidatesResponse" : {
        "properties" : {
          "moved" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          }
        },
        "required" : [ "moved" ],
        "type" : "object"
      },
      "metabase.collections.schema.CardType" : {
        "enum" : [ "model", "question", "metric" ],
        "type" : "string"
      },
      "metabase.collections.schema.Collection" : {
        "properties" : {
          "archived" : {
            "type" : "boolean"
          },
          "authority_level" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "below" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            },
            "type" : "array"
          },
          "can_delete" : {
            "type" : "boolean"
          },
          "can_restore" : {
            "type" : "boolean"
          },
          "can_write" : {
            "type" : "boolean"
          },
          "children" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.Collection"
            },
            "type" : "array"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "effective_ancestors" : {
            "properties" : { },
            "type" : "object"
          },
          "effective_location" : {
            "type" : "string"
          },
          "entity_id" : {
            "type" : "string"
          },
          "git_sync_enabled" : {
            "type" : "boolean"
          },
          "here" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "anyOf" : [ {
              "type" : "string"
            }, {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            } ]
          },
          "is_personal" : {
            "type" : "boolean"
          },
          "is_remote_synced" : {
            "type" : "boolean"
          },
          "is_sample" : {
            "type" : "boolean"
          },
          "location" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "parent_id" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "type" : "string"
              }, {
                "description" : "value must be an integer greater than zero.",
                "minimum" : 1,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "personal_owner_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "slug" : {
            "type" : "string"
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.collections.schema.CollectionType"
          }
        },
        "required" : [ "id", "name", "description", "can_write", "can_restore", "can_delete", "archived", "location" ],
        "type" : "object"
      },
      "metabase.collections.schema.CollectionItem" : {
        "properties" : {
          "archived" : {
            "type" : "boolean"
          },
          "authority_level" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "based_on_upload" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "description" : "value must be an integer greater than zero.",
                "minimum" : 1,
                "type" : "integer"
              }, {
                "type" : "string"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "below" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            },
            "type" : "array"
          },
          "can_delete" : {
            "type" : "boolean"
          },
          "can_restore" : {
            "type" : "boolean"
          },
          "can_write" : {
            "type" : "boolean"
          },
          "collection" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.collections.schema.Collection"
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "description" : "value must be an integer greater than zero.",
                "minimum" : 1,
                "type" : "integer"
              }, {
                "type" : "string"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "collection_position" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "collection_preview" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "copy" : {
            "type" : "boolean"
          },
          "dashboard_count" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "display" : {
            "type" : "string"
          },
          "effective_location" : {
            "type" : "string"
          },
          "entity_id" : {
            "type" : "string"
          },
          "fully_parameterized" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "here" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
            },
            "type" : "array",
            "uniqueItems" : true
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "last-edit-info" : {
            "$ref" : "#/components/schemas/metabase.collections.schema.LastEditInfo"
          },
          "location" : {
            "type" : "string"
          },
          "model" : {
            "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItemModel"
          },
          "moderated_status" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "personal_owner_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase.collections.schema.CollectionType"
            }, {
              "$ref" : "#/components/schemas/metabase.collections.schema.CardType"
            } ]
          }
        },
        "required" : [ "id", "name", "description", "archived" ],
        "type" : "object"
      },
      "metabase.collections.schema.CollectionItemModel" : {
        "enum" : [ "card", "dataset", "metric", "dashboard", "snippet", "collection", "indexed-entity", "indexed-entity", "document", "table" ],
        "type" : "string"
      },
      "metabase.collections.schema.CollectionType" : {
        "enum" : [ "instance-analytics", "trash", "remote-synced", "library", "library-models", "library-metrics" ],
        "type" : "string"
      },
      "metabase.collections.schema.LastEditInfo" : {
        "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.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "last_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "timestamp" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "email", "first_name", "last_name", "timestamp" ],
        "type" : "object"
      },
      "metabase.data-studio.api.table.bulk-table-info" : {
        "description" : "Schema for table info in bulk operations. Matches frontend BulkTableInfo type.",
        "properties" : {
          "db_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "display_name" : {
            "type" : "string"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "is_published" : {
            "type" : "boolean"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "db_id", "name", "display_name", "schema", "is_published" ],
        "type" : "object"
      },
      "metabase.data-studio.api.table.bulk-table-selection-info" : {
        "description" : "Schema for /selection endpoint response. Matches frontend BulkTableSelectionInfo type.",
        "properties" : {
          "published_downstream_tables" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-info"
            },
            "type" : "array"
          },
          "selected_table" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-info"
            }, {
              "type" : "null"
            } ]
          },
          "unpublished_upstream_tables" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-info"
            },
            "type" : "array"
          }
        },
        "required" : [ "selected_table", "published_downstream_tables", "unpublished_upstream_tables" ],
        "type" : "object"
      },
      "metabase.data-studio.api.table.data-authorities" : {
        "enum" : [ "computed", "authoritative", "unconfigured", "ingested" ],
        "type" : "string"
      },
      "metabase.data-studio.api.table.data-layers" : {
        "enum" : [ "final", "internal", "hidden" ],
        "type" : "string"
      },
      "metabase.data-studio.api.table.data-sources" : {
        "enum" : [ "source-data", "transform", "unknown", "ingested", "metabase-transform", "upload" ],
        "type" : "string"
      },
      "metabase.data-studio.api.table.table-selectors" : {
        "properties" : {
          "database_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          },
          "schema_ids" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "table_ids" : {
            "items" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : "array"
          }
        },
        "type" : "object"
      },
      "metabase.documents.schema..document.id" : {
        "description" : "Valid Document ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.documents.schema.document" : {
        "description" : "Schema for an instance of a `:model/Document`.",
        "properties" : {
          "id" : {
            "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
          }
        },
        "required" : [ "id" ],
        "type" : "object"
      },
      "metabase.driver.connection.connection-type" : {
        "enum" : [ "default", "write-data" ],
        "type" : "string"
      },
      "metabase.embedding-rest.api.theme.EmbeddingTheme" : {
        "properties" : {
          "created_at" : { },
          "entity_id" : {
            "minLength" : 1,
            "type" : "string"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "settings" : {
            "properties" : { },
            "type" : "object"
          },
          "updated_at" : { }
        },
        "required" : [ "id", "entity_id", "name", "settings", "created_at", "updated_at" ],
        "type" : "object"
      },
      "metabase.frontend-errors.api.frontend-error-type" : {
        "enum" : [ "component-crash", "chart-render-error" ],
        "type" : "string"
      },
      "metabase.legacy-mbql.schema.-" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :- clause"
      },
      "metabase.legacy-mbql.schema..NativeQuery.Common" : {
        "allOf" : [ {
          "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"
            }
          },
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema..TemplateTag.Common" : {
        "description" : "Things required by all template tag types.",
        "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" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.FieldFilter" : {
        "description" : "Things required by all template tag types.",
        "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"
          },
          "options" : {
            "description" : "optional map to be appended to filter clause",
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.FieldFilter.Options"
            }, {
              "type" : "null"
            } ]
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "const" : "dimension"
          },
          "widget-type" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.WidgetType",
            "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."
          }
        },
        "required" : [ "type", "name", "display-name", "dimension", "widget-type" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.FieldFilter.Options" : {
        "additionalProperties" : { },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.RawValue" : {
        "description" : "Things required by all template tag types.",
        "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" : {
            "enum" : [ "date", "number", "boolean", "text" ],
            "type" : "string"
          }
        },
        "required" : [ "type", "name", "display-name" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.Snippet" : {
        "description" : "Things required by all template tag types.",
        "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" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.SourceFilter" : {
        "description" : "Schema for a single source-filter applied to a table template tag.",
        "properties" : {
          "field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "op" : {
            "enum" : [ "<=", ">", ">=", "!=", "=", "<" ],
            "type" : "string"
          },
          "value" : { }
        },
        "required" : [ "field-id", "op", "value" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.SourceQuery" : {
        "description" : "Things required by all template tag types.",
        "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" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.SourceTable" : {
        "description" : "Things required by all template tag types.",
        "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" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.SourceFilter"
            },
            "type" : "array"
          },
          "table-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "type", "name", "display-name", "table-id" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.TemporalUnit" : {
        "description" : "Things required by all template tag types.",
        "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" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..TemplateTag.Value.Common" : {
        "description" : "Things required by all template tag types.",
        "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" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..legacy-column-metadata.binning-info" : {
        "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" ],
        "type" : "object"
      },
      "metabase.legacy-mbql.schema..legacy-column-metadata.qualified-keys" : {
        "properties" : {
          "lib/binning" : {
            "oneOf" : [ {
              "allOf" : [ {
                "properties" : {
                  "strategy" : {
                    "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                  }
                },
                "required" : [ "strategy" ],
                "type" : "object"
              }, {
                "oneOf" : [ {
                  "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" : "object"
                } ]
              } ],
              "description" : "Schema for `:binning` options passed to a `:field` clause."
            }, {
              "type" : "null"
            } ]
          },
          "lib/breakout?" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/card-id" : {
            "oneOf" : [ {
              "description" : "Valid Card ID",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "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/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"
            } ]
          },
          "lib/expression-name" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/external-remap" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
            }, {
              "type" : "null"
            } ]
          },
          "lib/from-model?" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/internal-remap" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
            }, {
              "type" : "null"
            } ]
          },
          "lib/join-alias" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-binning" : {
            "oneOf" : [ {
              "allOf" : [ {
                "properties" : {
                  "strategy" : {
                    "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                  }
                },
                "required" : [ "strategy" ],
                "type" : "object"
              }, {
                "oneOf" : [ {
                  "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" : "object"
                } ]
              } ],
              "description" : "Schema for `:binning` options passed to a `:field` clause."
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-effective-type" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-expression-name" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/original-join-alias" : {
            "oneOf" : [ {
              "minLength" : 1,
              "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/ref-display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/ref-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/simple-display-name" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
            }, {
              "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/source-uuid" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
            }, {
              "type" : "null"
            } ]
          },
          "lib/temporal-unit" : {
            "oneOf" : [ {
              "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" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "lib/transformation-added-base-type" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "lib/type" : {
            "const" : "metadata/column",
            "default" : "metadata/column"
          },
          "metabase.lib.metadata.result-metadata/field-ref" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
            }, {
              "type" : "null"
            } ]
          },
          "metabase.lib.metadata.result-metadata/source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
            }, {
              "type" : "null"
            } ]
          },
          "qp/implicit-field?" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "qp/native-sandbox-column.force-coercion-strategy" : {
            "type" : "string"
          },
          "qp/native-sandbox-column.propagate-coercion?" : {
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "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" : {
        "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"
        } ],
        "description" : "Schema for anything that is a valid `:aggregation` clause."
      },
      "metabase.legacy-mbql.schema.AggregationOptionsOptions" : {
        "description" : "Additional options for any aggregation clause when wrapping it in `:aggregation-options`.",
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.AggregationRefOptions" : {
        "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"
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.Aggregations" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregation"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "metabase.legacy-mbql.schema.AnyMBQLClause" : {
        "description" : "Schema for ANY valid MBQL clause"
      },
      "metabase.legacy-mbql.schema.ArithmeticDateTimeUnit" : {
        "enum" : [ "millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", "year" ],
        "type" : "string"
      },
      "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" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "metabase.legacy-mbql.schema.CaseOptions" : {
        "properties" : {
          "default" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ExpressionArg"
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.CaseSubclause" : {
        "prefixItems" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.ExpressionArg"
        } ],
        "type" : "array"
      },
      "metabase.legacy-mbql.schema.CaseSubclauses" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.CaseSubclause"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "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" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
        } ],
        "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.)"
      },
      "metabase.legacy-mbql.schema.DateOrDatetimeLiteral" : {
        "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"
        } ],
        "description" : "Schema for a valid date or datetime literal."
      },
      "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.",
        "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" ],
        "type" : "string"
      },
      "metabase.legacy-mbql.schema.DateUnit" : {
        "description" : "Valid unit for date bucketing.",
        "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" ],
        "type" : "string"
      },
      "metabase.legacy-mbql.schema.DatetimeDiffUnit" : {
        "description" : "Valid units for a datetime-diff clause.",
        "enum" : [ "second", "minute", "hour", "day", "week", "month", "quarter", "year" ],
        "type" : "string"
      },
      "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" : {
        "properties" : {
          "mode" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatetimeOptionsMode"
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.DatetimeOptionsMode" : {
        "enum" : [ "simple-bytes", "unix-nanoseconds", "simple", "iso", "iso-bytes", "unix-seconds", "unix-milliseconds", "unix-microseconds" ],
        "type" : "string"
      },
      "metabase.legacy-mbql.schema.Emptyable" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.StringExpressionArg"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
        } ],
        "description" : "Schema for a valid is-empty or not-empty argument."
      },
      "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" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.EqualityComparable",
        "description" : "Schema for the first arg to `=`, `!=`, and friends."
      },
      "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" : {
        "default" : { },
        "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.",
        "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",
            "maxLength" : 36,
            "minLength" : 36,
            "type" : "string"
          },
          "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"
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.Expressions" : {
        "additionalProperties" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionDef"
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.ExtractWeekMode" : {
        "description" : "Valid modes to extract weeks.",
        "enum" : [ "iso", "us", "instance" ],
        "type" : "string"
      },
      "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" : { },
            "properties" : {
              "base-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "binning" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              },
              "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"
                } ]
              },
              "inherited-temporal-unit" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              },
              "join-alias" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              },
              "lib/original-binning" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              },
              "lib/original-effective-type" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              },
              "lib/uuid" : {
                "maxLength" : 36,
                "minLength" : 36,
                "type" : "string"
              },
              "name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "original-temporal-unit" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              },
              "semantic-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
                }, {
                  "type" : "null"
                } ]
              },
              "source-field" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              },
              "source-field-join-alias" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              },
              "source-field-name" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              },
              "temporal-unit" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }
            },
            "type" : "object"
          }, {
            "allOf" : [ ]
          } ]
        }, {
          "type" : "null"
        } ]
      },
      "metabase.legacy-mbql.schema.Fields" : {
        "allOf" : [ {
          "items" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.FieldOrExpressionRef"
          },
          "minItems" : 1,
          "type" : "array"
        }, {
          "$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" : [ {
          "minimum" : 1,
          "type" : "integer"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NumericExpression"
        } ]
      },
      "metabase.legacy-mbql.schema.Join" : {
        "allOf" : [ {
          "properties" : {
            "alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.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."
            },
            "condition" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter",
              "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>}]]"
            },
            "fields" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.JoinFields",
              "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."
            },
            "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" : [ {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
                },
                "type" : "array"
              }, {
                "type" : "null"
              } ]
            },
            "source-query" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceQuery"
            },
            "source-table" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceTable",
              "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!"
            },
            "strategy" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.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."
            }
          },
          "required" : [ "condition" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ],
        "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\"}]"
      },
      "metabase.legacy-mbql.schema.JoinFields" : {
        "anyOf" : [ {
          "enum" : [ "all", "none" ],
          "type" : "string"
        }, {
          "$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.",
        "items" : {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Join"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "metabase.legacy-mbql.schema.MBQLQuery" : {
        "allOf" : [ {
          "properties" : {
            "aggregation" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Aggregations"
            },
            "breakout" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Breakouts"
            },
            "expressions" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Expressions"
            },
            "fields" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Fields"
            },
            "filter" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
            },
            "joins" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Joins"
            },
            "limit" : {
              "minimum" : 0,
              "type" : "integer"
            },
            "order-by" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.OrderBys"
            },
            "page" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.page"
            },
            "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" : [ {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
                },
                "type" : "array"
              }, {
                "type" : "null"
              } ]
            },
            "source-query" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceQuery"
            },
            "source-table" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.SourceTable"
            }
          },
          "type" : "object"
        }, {
          "properties" : { },
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.RemoveFieldRefsFromFieldsAlreadyInBreakout"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.legacy-mbql.schema.NativeQuery" : {
        "allOf" : [ {
          "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" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ],
        "description" : "Schema for a valid, normalized native [inner] query."
      },
      "metabase.legacy-mbql.schema.NativeSourceQuery" : {
        "allOf" : [ {
          "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" ],
          "type" : "object"
        }, {
          "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" : [ {
          "items" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.OrderBy"
          },
          "minItems" : 1,
          "type" : "array"
        }, {
          "$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" : [ {
          "properties" : { },
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.CheckQueryDoesNotHaveSourceMetadata"
        }, {
          "properties" : {
            "constraints" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
              }, {
                "type" : "null"
              } ]
            },
            "create-row" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              }, {
                "type" : "null"
              } ]
            },
            "database" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DatabaseID"
            },
            "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"
              } ]
            },
            "native" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.NativeQuery"
            },
            "parameters" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
              }, {
                "type" : "null"
              } ]
            },
            "query" : {
              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.MBQLQuery"
            },
            "settings" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
              }, {
                "type" : "null"
              } ]
            },
            "type" : {
              "description" : "Type of query. `:query` = MBQL; `:native` = native.",
              "enum" : [ "query", "native" ],
              "type" : "string"
            },
            "update-row" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "type" ],
          "type" : "object"
        }, {
          "$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" : {
        "enum" : [ "default", "minute", "hour", "day", "week", "month", "quarter", "year" ],
        "type" : "string"
      },
      "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" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
        }, {
          "description" : "`card__<id>` string Table ID",
          "pattern" : "^card__[1-9]\\d*$",
          "type" : "string"
        } ],
        "description" : "Schema for a valid value for the `:source-table` clause of an MBQL query."
      },
      "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" : {
        "properties" : {
          "case-sensitive" : {
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "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" : {
        "allOf" : [ {
          "additionalProperties" : {
            "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TemplateTag"
          },
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..template-tag-map.validate-names"
        } ],
        "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"
      },
      "metabase.legacy-mbql.schema.TemplateTagType" : {
        "description" : "Schema for valid values of template tag `:type`.",
        "enum" : [ "snippet", "card", "dimension", "number", "text", "date", "table" ],
        "type" : "string"
      },
      "metabase.legacy-mbql.schema.TemporalExtractUnit" : {
        "description" : "Valid units to extract from a temporal.",
        "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" ],
        "type" : "string"
      },
      "metabase.legacy-mbql.schema.TemporalLiteral" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.DateOrDatetimeLiteral"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.TimeLiteral"
        } ],
        "description" : "Schema for valid temporal literals."
      },
      "metabase.legacy-mbql.schema.TimeIntervalOptions" : {
        "properties" : {
          "include-current" : {
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.TimeLiteral" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.time"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal.time"
        } ],
        "description" : "Schema for valid time literals."
      },
      "metabase.legacy-mbql.schema.TimeUnit" : {
        "description" : "Valid unit for time bucketing.",
        "enum" : [ "hour", "second", "default", "hour-of-day", "millisecond", "minute-of-hour", "minute" ],
        "type" : "string"
      },
      "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.",
        "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"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.legacy-mbql.schema.WidgetType" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.parameter.widget-type",
        "description" : "Schema for valid values of `:widget-type` for a `::TemplateTag.FieldFilter`."
      },
      "metabase.legacy-mbql.schema._BANG__EQ_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :!= clause"
      },
      "metabase.legacy-mbql.schema._EQ_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 := clause"
      },
      "metabase.legacy-mbql.schema._GT_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :> clause"
      },
      "metabase.legacy-mbql.schema._GT__EQ_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :>= clause"
      },
      "metabase.legacy-mbql.schema._LT_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :< clause"
      },
      "metabase.legacy-mbql.schema._LT__EQ_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :<= clause"
      },
      "metabase.legacy-mbql.schema._PLUS_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :+ clause"
      },
      "metabase.legacy-mbql.schema._SLASH_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :/ clause"
      },
      "metabase.legacy-mbql.schema._STAR_" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :* clause"
      },
      "metabase.legacy-mbql.schema.abs" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :abs clause"
      },
      "metabase.legacy-mbql.schema.absolute-datetime" : {
        "description" : "Schema for a valid MBQL 4 :absolute-datetime clause.",
        "oneOf" : [ { }, {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :absolute-datetime clause"
        }, {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :absolute-datetime clause"
        } ]
      },
      "metabase.legacy-mbql.schema.aggregation" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :aggregation clause"
      },
      "metabase.legacy-mbql.schema.aggregation-options" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :aggregation-options clause"
      },
      "metabase.legacy-mbql.schema.and" : {
        "description" : "Schema for a valid MBQL 4 :and clause.",
        "oneOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :and clause"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
        } ]
      },
      "metabase.legacy-mbql.schema.asc" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :asc clause"
      },
      "metabase.legacy-mbql.schema.between" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :between clause"
      },
      "metabase.legacy-mbql.schema.case" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :case clause"
      },
      "metabase.legacy-mbql.schema.ceil" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :ceil clause"
      },
      "metabase.legacy-mbql.schema.coalesce" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :coalesce clause"
      },
      "metabase.legacy-mbql.schema.collate" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :collate clause"
      },
      "metabase.legacy-mbql.schema.concat" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :concat clause"
      },
      "metabase.legacy-mbql.schema.contains" : {
        "anyOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :contains clause"
        }, {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :contains clause"
        } ],
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/contains clause."
      },
      "metabase.legacy-mbql.schema.convert-timezone" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :convert-timezone clause"
      },
      "metabase.legacy-mbql.schema.date" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :date clause"
      },
      "metabase.legacy-mbql.schema.datetime" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :datetime clause"
      },
      "metabase.legacy-mbql.schema.datetime-add" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :datetime-add clause"
      },
      "metabase.legacy-mbql.schema.datetime-diff" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :datetime-diff clause"
      },
      "metabase.legacy-mbql.schema.datetime-subtract" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :datetime-subtract clause"
      },
      "metabase.legacy-mbql.schema.day-name" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :day-name clause"
      },
      "metabase.legacy-mbql.schema.desc" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :desc clause"
      },
      "metabase.legacy-mbql.schema.does-not-contain" : {
        "anyOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :does-not-contain clause"
        }, {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :does-not-contain clause"
        } ],
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/does-not-contain clause."
      },
      "metabase.legacy-mbql.schema.domain" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :domain clause"
      },
      "metabase.legacy-mbql.schema.during" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :during clause"
      },
      "metabase.legacy-mbql.schema.ends-with" : {
        "anyOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :ends-with clause"
        }, {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :ends-with clause"
        } ],
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/ends-with clause."
      },
      "metabase.legacy-mbql.schema.exp" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :exp clause"
      },
      "metabase.legacy-mbql.schema.expression" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :expression clause"
      },
      "metabase.legacy-mbql.schema.field" : {
        "allOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :field clause"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.require-base-type-for-field-name"
        } ],
        "description" : "Schema for a valid MBQL 4 :field clause."
      },
      "metabase.legacy-mbql.schema.float" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :float clause"
      },
      "metabase.legacy-mbql.schema.floor" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :floor clause"
      },
      "metabase.legacy-mbql.schema.get-day" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-day clause"
      },
      "metabase.legacy-mbql.schema.get-day-of-week" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-day-of-week clause"
      },
      "metabase.legacy-mbql.schema.get-hour" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-hour clause"
      },
      "metabase.legacy-mbql.schema.get-minute" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-minute clause"
      },
      "metabase.legacy-mbql.schema.get-month" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-month clause"
      },
      "metabase.legacy-mbql.schema.get-quarter" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-quarter clause"
      },
      "metabase.legacy-mbql.schema.get-second" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-second clause"
      },
      "metabase.legacy-mbql.schema.get-week" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-week clause"
      },
      "metabase.legacy-mbql.schema.get-year" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :get-year clause"
      },
      "metabase.legacy-mbql.schema.helpers.distinct" : {
        "description" : "values must be distinct"
      },
      "metabase.legacy-mbql.schema.host" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :host clause"
      },
      "metabase.legacy-mbql.schema.if" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :if clause"
      },
      "metabase.legacy-mbql.schema.in" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :in clause"
      },
      "metabase.legacy-mbql.schema.inside" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :inside clause"
      },
      "metabase.legacy-mbql.schema.integer" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :integer clause"
      },
      "metabase.legacy-mbql.schema.interval" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :interval clause"
      },
      "metabase.legacy-mbql.schema.is-empty" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :is-empty clause"
      },
      "metabase.legacy-mbql.schema.is-null" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :is-null clause"
      },
      "metabase.legacy-mbql.schema.legacy-column-metadata" : {
        "allOf" : [ {
          "properties" : {
            "base_type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type",
              "default" : "type/*"
            },
            "binning_info" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..legacy-column-metadata.binning-info"
              }, {
                "type" : "null"
              } ]
            },
            "converted_timezone" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal.timezone-id"
              }, {
                "type" : "null"
              } ]
            },
            "description" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "display_name" : {
              "type" : "string"
            },
            "effective_type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "field_ref" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
              }, {
                "type" : "null"
              } ]
            },
            "fingerprint" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.fingerprint"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "lib/binning" : {
              "oneOf" : [ {
                "allOf" : [ {
                  "properties" : {
                    "strategy" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                    }
                  },
                  "required" : [ "strategy" ],
                  "type" : "object"
                }, {
                  "oneOf" : [ {
                    "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" : "object"
                  } ]
                } ],
                "description" : "Schema for `:binning` options passed to a `:field` clause."
              }, {
                "type" : "null"
              } ]
            },
            "lib/breakout?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/card-id" : {
              "oneOf" : [ {
                "description" : "Valid Card ID",
                "minimum" : 1,
                "type" : "integer"
              }, {
                "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/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"
              } ]
            },
            "lib/expression-name" : {
              "oneOf" : [ {
                "minLength" : 1,
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/external-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
              }, {
                "type" : "null"
              } ]
            },
            "lib/from-model?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/internal-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
              }, {
                "type" : "null"
              } ]
            },
            "lib/join-alias" : {
              "oneOf" : [ {
                "minLength" : 1,
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-binning" : {
              "oneOf" : [ {
                "allOf" : [ {
                  "properties" : {
                    "strategy" : {
                      "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
                    }
                  },
                  "required" : [ "strategy" ],
                  "type" : "object"
                }, {
                  "oneOf" : [ {
                    "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" : "object"
                  } ]
                } ],
                "description" : "Schema for `:binning` options passed to a `:field` clause."
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-effective-type" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-expression-name" : {
              "oneOf" : [ {
                "minLength" : 1,
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-join-alias" : {
              "oneOf" : [ {
                "minLength" : 1,
                "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/ref-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/ref-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/simple-display-name" : {
              "oneOf" : [ {
                "minLength" : 1,
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
              }, {
                "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/source-uuid" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
              }, {
                "type" : "null"
              } ]
            },
            "lib/temporal-unit" : {
              "oneOf" : [ {
                "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" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/transformation-added-base-type" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/type" : {
              "const" : "metadata/column",
              "default" : "metadata/column"
            },
            "metabase.lib.metadata.result-metadata/field-ref" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
              }, {
                "type" : "null"
              } ]
            },
            "metabase.lib.metadata.result-metadata/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
              }, {
                "type" : "null"
              } ]
            },
            "name" : {
              "type" : "string"
            },
            "qp/implicit-field?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "qp/native-sandbox-column.force-coercion-strategy" : {
              "type" : "string"
            },
            "qp/native-sandbox-column.propagate-coercion?" : {
              "type" : "boolean"
            },
            "semantic_type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
              }, {
                "type" : "null"
              } ]
            },
            "unit" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }, {
                "type" : "null"
              } ]
            },
            "visibility_type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "base_type", "display_name", "name" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ],
        "description" : "Schema for a single legacy metadata column. This is the pre-Lib equivalent of\n  `:metabase.lib.schema.metadata/column`."
      },
      "metabase.legacy-mbql.schema.length" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :length clause"
      },
      "metabase.legacy-mbql.schema.log" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :log clause"
      },
      "metabase.legacy-mbql.schema.lower" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :lower clause"
      },
      "metabase.legacy-mbql.schema.ltrim" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :ltrim clause"
      },
      "metabase.legacy-mbql.schema.month-name" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :month-name clause"
      },
      "metabase.legacy-mbql.schema.not" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :not clause"
      },
      "metabase.legacy-mbql.schema.not-empty" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :not-empty clause"
      },
      "metabase.legacy-mbql.schema.not-in" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :not-in clause"
      },
      "metabase.legacy-mbql.schema.not-null" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :not-null clause"
      },
      "metabase.legacy-mbql.schema.now" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :now clause"
      },
      "metabase.legacy-mbql.schema.offset" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :offset clause"
      },
      "metabase.legacy-mbql.schema.or" : {
        "description" : "Schema for a valid MBQL 4 :or clause.",
        "oneOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :or clause"
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Filter"
        } ]
      },
      "metabase.legacy-mbql.schema.path" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :path clause"
      },
      "metabase.legacy-mbql.schema.power" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :power clause"
      },
      "metabase.legacy-mbql.schema.quarter-name" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :quarter-name clause"
      },
      "metabase.legacy-mbql.schema.regex-match-first" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :regex-match-first clause"
      },
      "metabase.legacy-mbql.schema.relative-datetime" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :relative-datetime clause"
      },
      "metabase.legacy-mbql.schema.relative-time-interval" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :relative-time-interval clause"
      },
      "metabase.legacy-mbql.schema.replace" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :replace clause"
      },
      "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" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :round clause"
      },
      "metabase.legacy-mbql.schema.rtrim" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :rtrim clause"
      },
      "metabase.legacy-mbql.schema.segment" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :segment clause"
      },
      "metabase.legacy-mbql.schema.split-part" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :split-part clause"
      },
      "metabase.legacy-mbql.schema.sqrt" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :sqrt clause"
      },
      "metabase.legacy-mbql.schema.starts-with" : {
        "anyOf" : [ {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :starts-with clause"
        }, {
          "allOf" : [ ],
          "description" : "schema for a valid MBQL 4 :starts-with clause"
        } ],
        "description" : "Schema for a valid MBQL 4 :metabase.legacy-mbql.schema/starts-with clause."
      },
      "metabase.legacy-mbql.schema.subdomain" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :subdomain clause"
      },
      "metabase.legacy-mbql.schema.substring" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :substring clause"
      },
      "metabase.legacy-mbql.schema.temporal-extract" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :temporal-extract clause"
      },
      "metabase.legacy-mbql.schema.text" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :text clause"
      },
      "metabase.legacy-mbql.schema.time" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :time clause"
      },
      "metabase.legacy-mbql.schema.time-interval" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :time-interval clause"
      },
      "metabase.legacy-mbql.schema.today" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :today clause"
      },
      "metabase.legacy-mbql.schema.trim" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :trim clause"
      },
      "metabase.legacy-mbql.schema.upper" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :upper clause"
      },
      "metabase.legacy-mbql.schema.value" : {
        "allOf" : [ ],
        "description" : "schema for a valid MBQL 4 :value clause"
      },
      "metabase.lib-metric.schema..dimension-reference.options" : {
        "description" : "Options map for dimension references.",
        "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"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib-metric.schema.binning" : {
        "allOf" : [ {
          "properties" : {
            "strategy" : {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.binning-strategy"
            }
          },
          "required" : [ "strategy" ],
          "type" : "object"
        }, {
          "oneOf" : [ {
            "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" : {
                "minimum" : 1,
                "type" : "integer"
              },
              "strategy" : {
                "const" : "num-bins"
              }
            },
            "required" : [ "strategy", "num-bins" ],
            "type" : "object"
          } ]
        } ],
        "description" : "Schema for `:binning` options passed to a `:dimension` clause."
      },
      "metabase.lib-metric.schema.binning-strategy" : {
        "enum" : [ "bin-width", "default", "num-bins" ],
        "type" : "string"
      },
      "metabase.lib-metric.schema.dimension-id" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid",
        "description" : "UUID string identifying a dimension."
      },
      "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.",
        "prefixItems" : [ {
          "const" : "dimension"
        }, {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema..dimension-reference.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-id"
        } ],
        "type" : "array"
      },
      "metabase.lib-metric.schema.expression-leaf" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.metric-expression-ref"
        }, {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.measure-expression-ref"
        } ],
        "description" : "A leaf node in a metric math expression: either a metric or measure reference."
      },
      "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.",
        "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" ],
        "type" : "object"
      },
      "metabase.lib-metric.schema.instance-filters" : {
        "description" : "A sequence of per-instance filters.",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.instance-filter"
        },
        "type" : "array"
      },
      "metabase.lib-metric.schema.measure-expression-ref" : {
        "description" : "A measure reference in an expression: [:measure {:lib/uuid uuid} measure-id].",
        "prefixItems" : [ {
          "const" : "measure"
        }, {
          "properties" : {
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }
          },
          "required" : [ "lib/uuid" ],
          "type" : "object"
        }, {
          "minimum" : 1,
          "type" : "integer"
        } ],
        "type" : "array"
      },
      "metabase.lib-metric.schema.metric-expression-ref" : {
        "description" : "A metric reference in an expression: [:metric {:lib/uuid uuid} card-id].",
        "prefixItems" : [ {
          "const" : "metric"
        }, {
          "properties" : {
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }
          },
          "required" : [ "lib/uuid" ],
          "type" : "object"
        }, {
          "minimum" : 1,
          "type" : "integer"
        } ],
        "type" : "array"
      },
      "metabase.lib-metric.schema.metric-math-expression" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.expression-leaf"
        }, {
          "type" : "number"
        }, {
          "type" : "array"
        } ],
        "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."
      },
      "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.",
        "properties" : {
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "lib/uuid" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "projection" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib-metric.schema.dimension-reference"
            },
            "type" : "array"
          },
          "type" : {
            "enum" : [ "metric", "measure" ],
            "type" : "string"
          }
        },
        "required" : [ "type", "id", "lib/uuid", "projection" ],
        "type" : "object"
      },
      "metabase.lib-metric.schema.typed-projections" : {
        "description" : "A sequence of typed projections.",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib-metric.schema.typed-projection"
        },
        "type" : "array"
      },
      "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" : {
        "properties" : {
          "lib/stage-metadata" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
          },
          "parameters" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema..stage.initial" : {
        "oneOf" : [ {
          "properties" : { },
          "type" : "object"
        }, { } ]
      },
      "metabase.lib.schema..stage.mbql" : {
        "allOf" : [ {
          "properties" : {
            "aggregation" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregations"
            },
            "breakout" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.breakouts"
            },
            "expressions" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.expression.expressions"
            },
            "fields" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.fields"
            },
            "filters" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.filters"
            },
            "joins" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.joins"
            },
            "lib/stage-metadata" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.stage"
            },
            "lib/type" : {
              "const" : "mbql.stage/mbql"
            },
            "limit" : {
              "minimum" : 0,
              "type" : "integer"
            },
            "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"
            },
            "source-card" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            },
            "source-table" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
            }
          },
          "required" : [ "lib/type" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema..stage.valid-refs"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema..stage.page-and-limit-are-mutually-exclusive"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema..stage.native" : {
        "allOf" : [ {
          "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" : [ {
                "items" : {
                  "anyOf" : [ {
                    "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
                  }, { } ]
                },
                "type" : "array"
              }, {
                "type" : "null"
              } ]
            },
            "query-permissions/referenced-card-ids" : {
              "oneOf" : [ {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
                },
                "type" : "array",
                "uniqueItems" : true
              }, {
                "type" : "null"
              } ]
            },
            "template-tags" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag-map"
            }
          },
          "required" : [ "lib/type" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema..stage.page-and-limit-are-mutually-exclusive" : {
        "description" : "If an MBQL query stage specifies `:page`, it should not also specify `:limit`"
      },
      "metabase.lib.schema..stage.type" : {
        "enum" : [ "mbql.stage/native", "mbql.stage/mbql" ],
        "type" : "string"
      },
      "metabase.lib.schema..stage.valid-refs" : { },
      "metabase.lib.schema..stages.valid-refs" : { },
      "metabase.lib.schema.actions.row" : {
        "additionalProperties" : { },
        "type" : "object"
      },
      "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" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.aggregation.aggregation"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "metabase.lib.schema.binning.bin-width" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.positive-number",
        "description" : "Bin width (size of each bin)."
      },
      "metabase.lib.schema.binning.binning" : {
        "allOf" : [ {
          "properties" : {
            "strategy" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.strategy"
            }
          },
          "required" : [ "strategy" ],
          "type" : "object"
        }, {
          "oneOf" : [ {
            "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" : "object"
          } ]
        } ],
        "description" : "Schema for `:binning` options passed to a `:field` clause."
      },
      "metabase.lib.schema.binning.num-bins" : {
        "description" : "Number of bins to use.",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.binning.strategy" : {
        "enum" : [ "bin-width", "default", "num-bins" ],
        "type" : "string"
      },
      "metabase.lib.schema.breakout" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.ref.ref"
      },
      "metabase.lib.schema.breakouts" : {
        "allOf" : [ {
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.breakout"
          },
          "minItems" : 1,
          "type" : "array"
        }, {
          "$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" : {
        "minLength" : 1,
        "type" : "string"
      },
      "metabase.lib.schema.common.options" : {
        "default" : { },
        "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" ],
        "type" : "object"
      },
      "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" : {
        "maxLength" : 36,
        "minLength" : 36,
        "type" : "string"
      },
      "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.",
        "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",
            "minimum" : 0,
            "type" : "integer"
          },
          "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`.",
            "minimum" : 0,
            "type" : "integer"
          }
        },
        "type" : "object"
      },
      "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.",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression..expression.definition"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "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" : { },
        "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" ],
        "type" : "object"
      },
      "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" : {
        "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" ],
        "type" : "string"
      },
      "metabase.lib.schema.expression.temporal.datetime-diff-unit" : {
        "enum" : [ "day", "week", "month", "quarter", "year", "second", "minute", "hour" ],
        "type" : "string"
      },
      "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" : {
        "enum" : [ "iso", "us", "instance" ],
        "type" : "string"
      },
      "metabase.lib.schema.expression.window..offset.n" : {
        "type" : "integer"
      },
      "metabase.lib.schema.external-query" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.query",
        "description" : "Schema for \"External MBQL\" 5 query."
      },
      "metabase.lib.schema.fields" : {
        "allOf" : [ {
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.ref.ref"
          },
          "minItems" : 1,
          "type" : "array"
        }, {
          "$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.",
        "properties" : {
          "case-sensitive" : {
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.filter.time-interval-options" : {
        "description" : "Options for `:time-interval` operator. Note that `:relative-time-interval` does not support these options.",
        "properties" : {
          "include-current" : {
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.filters" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "metabase.lib.schema.id.action" : {
        "description" : "Valid Action ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.card" : {
        "description" : "Valid Card ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.collection" : {
        "description" : "Valid Collection ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.dashboard" : {
        "description" : "Valid Dashboard ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.dashcard" : {
        "description" : "Valid DashboardCard ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.database" : {
        "description" : "Valid Database ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.dimension" : {
        "description" : "Valid Dimension ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.field" : {
        "description" : "Valid Field ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.measure" : {
        "description" : "Valid Measure ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.pulse" : {
        "description" : "Valid Pulse ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.sandbox" : {
        "description" : "Valid Sandbox ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.saved-questions-virtual-database" : {
        "const" : -1337,
        "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."
      },
      "metabase.lib.schema.id.schema" : {
        "anyOf" : [ {
          "type" : "null"
        }, {
          "type" : "string"
        } ]
      },
      "metabase.lib.schema.id.segment" : {
        "description" : "Valid legacy Segment ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.snippet" : {
        "description" : "Valid Snippet ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.table" : {
        "description" : "Valid Table ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.transform" : {
        "description" : "Valid Transform ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.id.user" : {
        "description" : "Valid User ID",
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.lib.schema.info.context" : {
        "description" : "Schema for `info.context`; used for informational purposes to record how a query was executed.",
        "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" ],
        "type" : "string"
      },
      "metabase.lib.schema.info.hash" : {
        "format" : "byte",
        "type" : "string"
      },
      "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",
        "properties" : {
          "action-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.action"
            }, {
              "type" : "null"
            } ]
          },
          "card-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "card-name" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "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"
            } ]
          },
          "executed-by" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.user"
            }, {
              "type" : "null"
            } ]
          },
          "lens-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }, {
              "type" : "null"
            } ]
          },
          "lens-params" : {
            "oneOf" : [ {
              "additionalProperties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "metadata/model-metadata" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.lib-or-legacy-column"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "pivot/original-query" : {
            "oneOf" : [ {
              "additionalProperties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "pivot/result-metadata" : {
            "oneOf" : [ {
              "oneOf" : [ {
                "const" : "none"
              }, {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
                },
                "type" : "array"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "pulse-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.pulse"
            }, {
              "type" : "null"
            } ]
          },
          "query-hash" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.info.hash"
            }, {
              "type" : "null"
            } ]
          },
          "transform-id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.transform"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.join.alias" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string",
        "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."
      },
      "metabase.lib.schema.join.condition" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.expression.boolean"
      },
      "metabase.lib.schema.join.conditions" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.join.condition"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "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" : [ {
          "enum" : [ "all", "none" ],
          "type" : "string"
        }, {
          "allOf" : [ {
            "items" : {
              "$ref" : "#/components/schemas/mbql.clause.field"
            },
            "minItems" : 1,
            "type" : "array"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
          } ]
        } ]
      },
      "metabase.lib.schema.join.join" : {
        "allOf" : [ {
          "default" : { },
          "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" : {
              "const" : "mbql/join",
              "default" : "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" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.join.validate-field-aliases-match-join-alias"
        } ]
      },
      "metabase.lib.schema.join.joins" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.join.join"
        },
        "minItems" : 1,
        "type" : "array"
      },
      "metabase.lib.schema.join.strategy" : {
        "default" : "left-join",
        "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.",
        "enum" : [ "left-join", "right-join", "inner-join", "full-join" ],
        "type" : "string"
      },
      "metabase.lib.schema.join.validate-field-aliases-match-join-alias" : { },
      "metabase.lib.schema.literal..string.date" : {
        "pattern" : "^\\d{4}-\\d{2}-\\d{2}$",
        "type" : "string"
      },
      "metabase.lib.schema.literal..string.datetime" : {
        "anyOf" : [ {
          "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})?)?))$",
          "type" : "string"
        } ]
      },
      "metabase.lib.schema.literal..string.time" : {
        "anyOf" : [ {
          "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})?)?))$",
          "type" : "string"
        } ]
      },
      "metabase.lib.schema.literal..string.year" : {
        "pattern" : "^\\d{4}$",
        "type" : "string"
      },
      "metabase.lib.schema.literal..string.year-month" : {
        "pattern" : "^\\d{4}-\\d{2}$",
        "type" : "string"
      },
      "metabase.lib.schema.literal..string.zone-offset" : {
        "pattern" : "(?:Z|(?:[+-]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,6})?)?))",
        "type" : "string"
      },
      "metabase.lib.schema.literal..value.options" : {
        "default" : { },
        "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" ],
        "type" : "object"
      },
      "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" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.literal..string.time"
        }, { }, { } ],
        "description" : "time literal"
      },
      "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.",
        "enum" : [ "question", "metric", "model" ],
        "type" : "string"
      },
      "metabase.lib.schema.metadata..column.has-field-values" : {
        "enum" : [ "auto-list", "list", "none", "search" ],
        "type" : "string"
      },
      "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.",
        "enum" : [ "aggregation", "fields", "breakout", "native" ],
        "type" : "string"
      },
      "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.",
        "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" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "human-readable-values" : {
            "items" : { },
            "type" : "array"
          },
          "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" : {
            "items" : { },
            "type" : "array"
          }
        },
        "required" : [ "lib/type", "id", "name", "values", "human-readable-values" ],
        "type" : "object"
      },
      "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?]]).",
        "enum" : [ "source/card", "source/native", "source/previous-stage", "source/table-defaults", "source/aggregations", "source/joins", "source/expressions", "source/implicitly-joinable" ],
        "type" : "string"
      },
      "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" : {
        "enum" : [ "retired", "sensitive", "normal", "hidden", "details-only" ],
        "type" : "string"
      },
      "metabase.lib.schema.metadata.column" : {
        "allOf" : [ {
          "properties" : {
            "active" : {
              "type" : "boolean"
            },
            "base-type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type",
              "default" : "type/*"
            },
            "database-type" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "effective-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "fingerprint" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.fingerprint"
              }, {
                "type" : "null"
              } ]
            },
            "fk-field-id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "fk-field-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "fk-join-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              }, {
                "type" : "null"
              } ]
            },
            "fk-target-field-id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "has-field-values" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
              }, {
                "type" : "null"
              } ]
            },
            "id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              }, {
                "type" : "null"
              } ]
            },
            "inherited-temporal-unit" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }, {
                "type" : "null"
              } ]
            },
            "lib/binning" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              }, {
                "type" : "null"
              } ]
            },
            "lib/breakout?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/card-id" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
              }, {
                "type" : "null"
              } ]
            },
            "lib/deduplicated-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.deduplicated-name"
            },
            "lib/desired-column-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
              }, {
                "type" : "null"
              } ]
            },
            "lib/expression-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/external-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
              }, {
                "type" : "null"
              } ]
            },
            "lib/from-model?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/internal-remap" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
              }, {
                "type" : "null"
              } ]
            },
            "lib/join-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-binning" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-effective-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-expression-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-join-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
              }, {
                "type" : "null"
              } ]
            },
            "lib/original-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"
            },
            "lib/ref-display-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/ref-name" : {
              "oneOf" : [ {
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/simple-display-name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source-column-alias" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.source-column-alias"
              }, {
                "type" : "null"
              } ]
            },
            "lib/source-uuid" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
              }, {
                "type" : "null"
              } ]
            },
            "lib/temporal-unit" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              }, {
                "type" : "null"
              } ]
            },
            "lib/transformation-added-base-type" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "lib/type" : {
              "const" : "metadata/column",
              "default" : "metadata/column"
            },
            "metabase.lib.metadata.result-metadata/field-ref" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
              }, {
                "type" : "null"
              } ]
            },
            "metabase.lib.metadata.result-metadata/source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
              }, {
                "type" : "null"
              } ]
            },
            "name" : {
              "type" : "string"
            },
            "nfc-path" : {
              "oneOf" : [ {
                "items" : {
                  "type" : "string"
                },
                "type" : "array"
              }, {
                "type" : "null"
              } ]
            },
            "qp/implicit-field?" : {
              "oneOf" : [ {
                "type" : "boolean"
              }, {
                "type" : "null"
              } ]
            },
            "qp/native-sandbox-column.force-coercion-strategy" : {
              "type" : "string"
            },
            "qp/native-sandbox-column.propagate-coercion?" : {
              "type" : "boolean"
            },
            "selected?" : {
              "type" : "boolean"
            },
            "semantic-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "settings" : {
              "oneOf" : [ {
                "additionalProperties" : { },
                "type" : "object"
              }, {
                "type" : "null"
              } ]
            },
            "visibility-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "lib/type", "name", "base-type" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"
        }, {
          "allOf" : [ ]
        } ],
        "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."
      },
      "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.",
        "properties" : {
          "distinct-count" : {
            "type" : "integer"
          },
          "nil%" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.number" : {
        "description" : "Schema for fingerprint information for Fields deriving from `:type/Number`.",
        "properties" : {
          "avg" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "excess-kurtosis" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "max" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "min" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "mode-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "q1" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "q3" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "sd" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "skewness" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "top-3-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "zero-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.temporal" : {
        "description" : "Schema for fingerprint information for Fields deriving from `:type/Temporal`.",
        "properties" : {
          "earliest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "hour-distribution" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "latest" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "mode-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "skewness" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "top-3-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "weekday-distribution" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.text" : {
        "description" : "Schema for fingerprint information for Fields deriving from `:type/Text`.",
        "properties" : {
          "average-length" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "max-length" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "min-length" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "mode-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          },
          "percent-blank" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "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"
            } ]
          },
          "top-3-fraction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.percent"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.metadata.fingerprint..fingerprint.type-specific" : {
        "allOf" : [ {
          "additionalProperties" : {
            "properties" : { },
            "type" : "object"
          },
          "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"
            }
          },
          "type" : "object"
        } ],
        "description" : "Schema for type-specific fingerprint information."
      },
      "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.",
        "properties" : {
          "experimental" : {
            "additionalProperties" : { },
            "type" : "object"
          },
          "global" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.global"
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint..fingerprint.type-specific"
          }
        },
        "type" : "object"
      },
      "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" : [ {
          "allOf" : [ {
            "properties" : {
              "active" : {
                "type" : "boolean"
              },
              "base-type" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type",
                "default" : "type/*"
              },
              "database-type" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "display-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "effective-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "fingerprint" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.fingerprint.fingerprint"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-field-id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-field-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-join-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
                }, {
                  "type" : "null"
                } ]
              },
              "fk-target-field-id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                }, {
                  "type" : "null"
                } ]
              },
              "has-field-values" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.has-field-values"
                }, {
                  "type" : "null"
                } ]
              },
              "id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                }, {
                  "type" : "null"
                } ]
              },
              "inherited-temporal-unit" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/binning" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/breakout?" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/card-id" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/deduplicated-name" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.deduplicated-name"
              },
              "lib/desired-column-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.desired-column-alias"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/expression-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/external-remap" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/from-model?" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/internal-remap" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.internal"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/join-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-binning" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-display-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-effective-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-expression-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-join-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/original-name" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"
              },
              "lib/ref-display-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/ref-name" : {
                "oneOf" : [ {
                  "type" : "string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/simple-display-name" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/source" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.source"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/source-column-alias" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata.source-column-alias"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/source-uuid" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/temporal-unit" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/transformation-added-base-type" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "lib/type" : {
                "const" : "metadata/column",
                "default" : "metadata/column"
              },
              "metabase.lib.metadata.result-metadata/field-ref" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Reference"
                }, {
                  "type" : "null"
                } ]
              },
              "metabase.lib.metadata.result-metadata/source" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.legacy-source"
                }, {
                  "type" : "null"
                } ]
              },
              "name" : {
                "type" : "string"
              },
              "nfc-path" : {
                "oneOf" : [ {
                  "items" : {
                    "type" : "string"
                  },
                  "type" : "array"
                }, {
                  "type" : "null"
                } ]
              },
              "qp/implicit-field?" : {
                "oneOf" : [ {
                  "type" : "boolean"
                }, {
                  "type" : "null"
                } ]
              },
              "qp/native-sandbox-column.force-coercion-strategy" : {
                "type" : "string"
              },
              "qp/native-sandbox-column.propagate-coercion?" : {
                "type" : "boolean"
              },
              "selected?" : {
                "type" : "boolean"
              },
              "semantic-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
                }, {
                  "type" : "null"
                } ]
              },
              "settings" : {
                "oneOf" : [ {
                  "additionalProperties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "visibility-type" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"
                }, {
                  "type" : "null"
                } ]
              }
            },
            "required" : [ "lib/type", "name", "base-type" ],
            "type" : "object"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"
          }, {
            "allOf" : [ ]
          } ],
          "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."
        }, {
          "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
        } ]
      },
      "metabase.lib.schema.metadata.metadata-provider" : {
        "$ref" : "#/components/schemas/metabase.lib.metadata.protocols.metadata-provider",
        "description" : "Schema for something that satisfies the [[metabase.lib.metadata.protocols/MetadataProvider]] protocol."
      },
      "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.",
        "properties" : {
          "columns" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.column"
            },
            "type" : "array"
          },
          "lib/type" : {
            "const" : "metadata/results",
            "default" : "metadata/results"
          }
        },
        "required" : [ "lib/type", "columns" ],
        "type" : "object"
      },
      "metabase.lib.schema.middleware-options.middleware-options" : {
        "description" : "Additional options that can be used to toggle middleware on or off.",
        "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"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.order-by.direction" : {
        "enum" : [ "asc", "desc" ],
        "type" : "string"
      },
      "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" : [ {
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.order-by.order-by"
          },
          "minItems" : 1,
          "type" : "array"
        }, {
          "$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",
        "properties" : {
          "items" : {
            "minimum" : 1,
            "type" : "integer"
          },
          "page" : {
            "minimum" : 1,
            "type" : "integer"
          }
        },
        "required" : [ "page", "items" ],
        "type" : "object"
      },
      "metabase.lib.schema.parameter..dimension.options" : {
        "properties" : {
          "stage-number" : {
            "type" : "integer"
          }
        },
        "type" : "object"
      },
      "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" : [ {
          "properties" : {
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            }
          },
          "required" : [ "id" ],
          "type" : "object"
        }, {
          "$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" : {
        "allOf" : [ {
          "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" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.common.kebab-cased-map"
        } ],
        "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`."
      },
      "metabase.lib.schema.parameter.parameters" : {
        "description" : "Schema for a list of `:parameters` as passed in to a query.",
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameter"
        },
        "type" : "array"
      },
      "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]].",
        "prefixItems" : [ {
          "const" : "template-tag"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..template-tag.tag-name"
        } ],
        "type" : "array"
      },
      "metabase.lib.schema.parameter.text-tag" : {
        "description" : "A :text-tag parameter :target applies to parameterized text cards in viz settings",
        "prefixItems" : [ {
          "const" : "text-tag"
        }, {
          "type" : "string"
        } ],
        "type" : "array"
      },
      "metabase.lib.schema.parameter.type" : {
        "default" : "text",
        "description" : "Valid parameter :type",
        "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/=" ],
        "type" : "string"
      },
      "metabase.lib.schema.parameter.variable" : {
        "prefixItems" : [ {
          "const" : "variable"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.parameter..variable.target"
        } ],
        "type" : "array"
      },
      "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.",
        "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/=" ],
        "type" : "string"
      },
      "metabase.lib.schema.query" : {
        "allOf" : [ {
          "description" : "Valid MBQL 5 query.",
          "properties" : {
            "constraints" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
            },
            "create-row" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
            },
            "database" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
              } ]
            },
            "info" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.info.info"
            },
            "lib/metadata" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata.metadata-provider"
            },
            "lib/type" : {
              "const" : "mbql/query",
              "default" : "mbql/query"
            },
            "middleware" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
            },
            "parameters" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
            },
            "settings" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
            },
            "stages" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.stages"
            },
            "update-row" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
            }
          },
          "required" : [ "lib/type", "stages" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.util.unique-uuids"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.ref..expression.options" : {
        "default" : { },
        "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" ],
        "type" : "object"
      },
      "metabase.lib.schema.ref..field.id" : {
        "prefixItems" : [ {
          "const" : "field"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.options"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
        } ],
        "type" : "array"
      },
      "metabase.lib.schema.ref..field.literal" : {
        "prefixItems" : [ {
          "const" : "field"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.ref..field.literal.options"
        }, {
          "type" : "string"
        } ],
        "type" : "array"
      },
      "metabase.lib.schema.ref..field.literal.options" : {
        "allOf" : [ {
          "default" : { },
          "properties" : {
            "base-type" : {
              "type" : "string"
            },
            "binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "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"
              } ]
            },
            "inherited-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
            },
            "lib/original-binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "lib/original-effective-type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
            },
            "name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "original-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "semantic-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "source-field" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            },
            "source-field-join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "source-field-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }
          },
          "required" : [ "lib/uuid", "base-type" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.ref..field.options" : {
        "allOf" : [ {
          "default" : { },
          "properties" : {
            "base-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
              }, {
                "type" : "null"
              } ]
            },
            "binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "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"
              } ]
            },
            "inherited-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"
            },
            "lib/original-binning" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.binning.binning"
            },
            "lib/original-effective-type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.base-type"
            },
            "lib/uuid" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.uuid"
            },
            "name" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
              }, {
                "type" : "null"
              } ]
            },
            "original-temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            },
            "semantic-type" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
              }, {
                "type" : "null"
              } ]
            },
            "source-field" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            },
            "source-field-join-alias" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "source-field-name" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
            },
            "temporal-unit" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }
          },
          "required" : [ "lib/uuid" ],
          "type" : "object"
        }, {
          "allOf" : [ ]
        } ]
      },
      "metabase.lib.schema.ref.aggregation-options" : {
        "default" : { },
        "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" : {
            "minLength" : 1,
            "type" : "string"
          },
          "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" : {
            "minLength" : 1,
            "type" : "string"
          },
          "semantic-type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "lib/uuid" ],
        "type" : "object"
      },
      "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.",
        "properties" : {
          "include-sensitive-fields" : {
            "description" : "Whether to include fields with visibility_type :sensitive when fetching query metadata.",
            "type" : "boolean"
          },
          "report-timezone" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.expression.temporal.timezone-id",
            "description" : "The timezone the query should be ran in, overriding the default report timezone for the instance."
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.stage" : {
        "allOf" : [ {
          "properties" : {
            "lib/type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema..stage.type"
            }
          },
          "required" : [ "lib/type" ],
          "type" : "object"
        }, {
          "oneOf" : [ {
            "$ref" : "#/components/schemas/metabase.lib.schema..stage.native"
          }, {
            "$ref" : "#/components/schemas/metabase.lib.schema..stage.mbql"
          } ]
        }, {
          "allOf" : [ ]
        } ],
        "default" : {
          "lib/type" : "mbql.stage/mbql"
        }
      },
      "metabase.lib.schema.stages" : {
        "allOf" : [ {
          "default" : [ ],
          "items" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.stage"
          },
          "minItems" : 1,
          "type" : "array"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema..stages.valid-refs"
        } ]
      },
      "metabase.lib.schema.template-tag..field-filter.options" : {
        "properties" : { },
        "type" : "object"
      },
      "metabase.lib.schema.template-tag..raw-value.type" : {
        "enum" : [ "date", "number", "boolean", "text" ],
        "type" : "string"
      },
      "metabase.lib.schema.template-tag..template-tag-map.validate-names" : { },
      "metabase.lib.schema.template-tag..value.common" : {
        "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" ],
        "type" : "object"
      },
      "metabase.lib.schema.template-tag.common" : {
        "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" ],
        "type" : "object"
      },
      "metabase.lib.schema.template-tag.disallow-dimension" : { },
      "metabase.lib.schema.template-tag.field-filter" : {
        "properties" : {
          "alias" : {
            "type" : "string"
          },
          "default" : { },
          "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"
          },
          "options" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..field-filter.options"
            }, {
              "type" : "null"
            } ]
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "const" : "dimension"
          },
          "widget-type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.widget-type"
          }
        },
        "required" : [ "name", "display-name", "type", "widget-type" ],
        "type" : "object"
      },
      "metabase.lib.schema.template-tag.id" : {
        "oneOf" : [ {
          "format" : "uuid",
          "type" : "string"
        }, {
          "$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" : [ {
          "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" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.snippet" : {
        "allOf" : [ {
          "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" ],
          "type" : "object"
        }, {
          "$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.",
        "properties" : {
          "field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "op" : {
            "enum" : [ "<=", ">", ">=", "!=", "=", "<" ],
            "type" : "string"
          },
          "value" : { }
        },
        "required" : [ "field-id", "op", "value" ],
        "type" : "object"
      },
      "metabase.lib.schema.template-tag.source-query" : {
        "allOf" : [ {
          "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" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.source-table" : {
        "allOf" : [ {
          "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" : {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.source-filter"
              },
              "type" : "array"
            },
            "table-id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
            },
            "type" : {
              "const" : "table"
            }
          },
          "required" : [ "name", "display-name", "type", "table-id" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.template-tag.template-tag" : {
        "allOf" : [ {
          "properties" : {
            "type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.type"
            }
          },
          "required" : [ "type" ],
          "type" : "object"
        }, {
          "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" : [ {
          "additionalProperties" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.template-tag"
          },
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..template-tag-map.validate-names"
        } ]
      },
      "metabase.lib.schema.template-tag.temporal-unit" : {
        "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" ],
        "type" : "object"
      },
      "metabase.lib.schema.template-tag.type" : {
        "description" : "Schema for valid values of template tag `:type`.",
        "enum" : [ "snippet", "card", "dimension", "number", "text", "date", "boolean", "temporal-unit", "table" ],
        "type" : "string"
      },
      "metabase.lib.schema.template-tag.widget-type" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.parameter.widget-type",
        "description" : "Schema for valid values of `:widget-type` for a `:metabase.lib.schema.template-tag/field-filter` template tag."
      },
      "metabase.lib.schema.temporal-bucketing..unit.date" : {
        "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" ],
        "type" : "string"
      },
      "metabase.lib.schema.temporal-bucketing..unit.date-time" : {
        "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" ],
        "type" : "string"
      },
      "metabase.lib.schema.temporal-bucketing..unit.date-time.interval" : {
        "enum" : [ "day", "hour", "millisecond", "minute", "month", "quarter", "second", "week", "year" ],
        "type" : "string"
      },
      "metabase.lib.schema.temporal-bucketing..unit.time.interval" : {
        "enum" : [ "hour", "millisecond", "minute", "second" ],
        "type" : "string"
      },
      "metabase.lib.schema.temporal-bucketing.unit" : {
        "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" : "string"
      },
      "metabase.lib.schema.test-spec.test-aggregation-spec" : {
        "anyOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-expression-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-named-expression-spec"
        } ]
      },
      "metabase.lib.schema.test-spec.test-auto-bin-spec" : {
        "const" : "auto"
      },
      "metabase.lib.schema.test-spec.test-bin-count-bucket-spec" : {
        "properties" : {
          "bins" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-auto-bin-spec"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-bin-width-bucket-spec" : {
        "properties" : {
          "bin-width" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-auto-bin-spec"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-breakout-spec" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-column-with-binning-spec"
      },
      "metabase.lib.schema.test-spec.test-card-source-spec" : {
        "properties" : {
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
          },
          "type" : {
            "const" : "card"
          }
        },
        "required" : [ "type", "id" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-column-spec" : {
        "properties" : {
          "display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "index" : {
            "oneOf" : [ {
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "source-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "column"
          }
        },
        "required" : [ "type", "name" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-column-with-binning-spec" : {
        "properties" : {
          "bin-width" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-auto-bin-spec"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "bins" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-auto-bin-spec"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "index" : {
            "oneOf" : [ {
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "source-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "column"
          },
          "unit" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "type", "name" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-common-spec" : {
        "properties" : {
          "display-name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "name" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-expression-spec" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-column-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-literal-expression-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-operator-expression-spec"
        } ]
      },
      "metabase.lib.schema.test-spec.test-field-filter-spec" : {
        "properties" : {
          "alias" : {
            "type" : "string"
          },
          "default" : { },
          "dimension" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "type" : "string"
            } ]
          },
          "display-name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "options" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..field-filter.options"
            }, {
              "type" : "null"
            } ]
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "const" : "dimension"
          },
          "widget-type" : {
            "default" : "text",
            "description" : "The type of widget to display in the FE UI for the user to use to pick values for this parameter.",
            "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/=" ],
            "type" : "string"
          }
        },
        "required" : [ "type", "dimension", "widget-type" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-join-condition-spec" : {
        "properties" : {
          "left" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-join-source-spec"
          },
          "operator" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-operator-spec"
          },
          "right" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-join-source-spec"
          }
        },
        "required" : [ "operator", "left", "right" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-join-source-spec" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-column-with-binning-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-literal-expression-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-operator-expression-spec"
        } ]
      },
      "metabase.lib.schema.test-spec.test-join-spec" : {
        "properties" : {
          "conditions" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-join-condition-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "source" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-source-spec"
          },
          "strategy" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.join.strategy"
          }
        },
        "required" : [ "source", "strategy" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-literal-expression-spec" : {
        "properties" : {
          "type" : {
            "const" : "literal"
          },
          "value" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.literal.literal"
          }
        },
        "required" : [ "type", "value" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-named-expression-spec" : {
        "properties" : {
          "name" : {
            "type" : "string"
          },
          "value" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-expression-spec"
          }
        },
        "required" : [ "name", "value" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-native-query-spec" : {
        "properties" : {
          "query" : {
            "type" : "string"
          },
          "template-tags" : {
            "default" : { },
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-template-tags-spec"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "query" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-operator-expression-spec" : {
        "properties" : {
          "args" : {
            "default" : [ ],
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-expression-spec"
            },
            "type" : "array"
          },
          "operator" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-operator-spec"
          },
          "type" : {
            "const" : "operator"
          }
        },
        "required" : [ "type", "operator", "args" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-operator-spec" : {
        "type" : "string"
      },
      "metabase.lib.schema.test-spec.test-order-by-spec" : {
        "properties" : {
          "bin-width" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.bin-width"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-auto-bin-spec"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "bins" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "$ref" : "#/components/schemas/metabase.lib.schema.binning.num-bins"
              }, {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-auto-bin-spec"
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "direction" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.order-by.direction"
            }, {
              "type" : "null"
            } ]
          },
          "display-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "index" : {
            "oneOf" : [ {
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "source-name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "column"
          },
          "unit" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "type", "name" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-query-spec" : {
        "properties" : {
          "stages" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-stage-spec"
            },
            "type" : "array"
          }
        },
        "required" : [ "stages" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-raw-value-spec" : {
        "allOf" : [ {
          "properties" : {
            "default" : { },
            "display-name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "required" : {
              "type" : "boolean"
            },
            "type" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag..raw-value.type"
            }
          },
          "required" : [ "type" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.test-spec.test-snippet-spec" : {
        "allOf" : [ {
          "properties" : {
            "database" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
            },
            "display-name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "snippet-id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"
            },
            "snippet-name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "type" : {
              "const" : "snippet"
            }
          },
          "required" : [ "type" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.test-spec.test-source-query-spec" : {
        "allOf" : [ {
          "properties" : {
            "card-id" : {
              "minimum" : 1,
              "type" : "integer"
            },
            "display-name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "id" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
            },
            "name" : {
              "minLength" : 1,
              "type" : "string"
            },
            "type" : {
              "const" : "card"
            }
          },
          "required" : [ "type" ],
          "type" : "object"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
        } ]
      },
      "metabase.lib.schema.test-spec.test-source-spec" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-table-source-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-card-source-spec"
        } ]
      },
      "metabase.lib.schema.test-spec.test-stage-spec" : {
        "properties" : {
          "aggregations" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-aggregation-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "breakouts" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-breakout-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "expressions" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-named-expression-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "fields" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-column-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "filters" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-expression-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "joins" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-join-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "limit" : {
            "oneOf" : [ {
              "type" : "number"
            }, {
              "type" : "null"
            } ]
          },
          "order-bys" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-order-by-spec"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "source" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-source-spec"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-table-source-spec" : {
        "properties" : {
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.table"
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "type", "id" ],
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-template-tag-spec" : {
        "description" : "[:map [:type :metabase.lib.schema.template-tag/type]]",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-temporal-unit-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-field-filter-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-snippet-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-source-query-spec"
        }, {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-raw-value-spec"
        } ]
      },
      "metabase.lib.schema.test-spec.test-template-tags-spec" : {
        "additionalProperties" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.test-spec.test-template-tag-spec"
        },
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-temporal-bucket-spec" : {
        "properties" : {
          "unit" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.lib.schema.test-spec.test-temporal-unit-spec" : {
        "properties" : {
          "alias" : {
            "type" : "string"
          },
          "dimension" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            }, {
              "type" : "string"
            } ]
          },
          "display-name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "type" : {
            "const" : "temporal-unit"
          }
        },
        "required" : [ "type", "dimension" ],
        "type" : "object"
      },
      "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.",
        "enum" : [ "table", "card" ],
        "type" : "string"
      },
      "metabase.lib.schema.validate.validate-error-type" : {
        "enum" : [ "missing-column", "missing-table-alias", "duplicate-column", "syntax-error", "validation-exception-error" ],
        "type" : "string"
      },
      "metabase.logger.api.log-level" : {
        "enum" : [ "off", "fatal", "error", "warn", "info", "debug", "trace" ],
        "type" : "string"
      },
      "metabase.logger.api.time-unit" : {
        "enum" : [ "days", "hours", "minutes", "seconds", "milliseconds", "microseconds", "nanoseconds" ],
        "type" : "string"
      },
      "metabase.measures.api.RemappedValueResponse" : {
        "anyOf" : [ {
          "prefixItems" : [ { } ],
          "type" : "array"
        }, {
          "prefixItems" : [ { }, {
            "type" : "string"
          } ],
          "type" : "array"
        } ],
        "description" : "Response schema for dimension remapping endpoint.\n   Returns [value] if no remapping, or [value, display-name] if remapped."
      },
      "metabase.measures.api.measure" : {
        "description" : "Schema for a Measure entity as returned from the API.",
        "properties" : {
          "archived" : {
            "type" : "boolean"
          },
          "created_at" : { },
          "creator" : {
            "oneOf" : [ {
              "properties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "creator_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "definition" : {
            "properties" : { },
            "type" : "object"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "dimension_mappings" : {
            "oneOf" : [ {
              "items" : {
                "properties" : { },
                "type" : "object"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "dimensions" : {
            "oneOf" : [ {
              "items" : {
                "properties" : { },
                "type" : "object"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "entity_id" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "minLength" : 1,
            "type" : "string"
          },
          "result_column_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "table_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "updated_at" : { }
        },
        "required" : [ "id", "name", "table_id", "definition", "archived", "creator_id", "created_at", "updated_at" ],
        "type" : "object"
      },
      "metabase.metabot.context.context" : {
        "allOf" : [ {
          "additionalProperties" : { },
          "type" : "object"
        }, {
          "properties" : {
            "user_is_viewing" : {
              "items" : {
                "anyOf" : [ {
                  "properties" : {
                    "chart_configs" : {
                      "items" : {
                        "properties" : {
                          "query" : {
                            "anyOf" : [ {
                              "$ref" : "#/components/schemas/metabase.lib.schema.query"
                            }, {
                              "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Query"
                            } ]
                          }
                        },
                        "type" : "object"
                      },
                      "type" : "array"
                    },
                    "query" : {
                      "anyOf" : [ {
                        "$ref" : "#/components/schemas/metabase.lib.schema.query"
                      }, {
                        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Query"
                      } ]
                    },
                    "type" : {
                      "enum" : [ "model", "question", "metric", "adhoc" ],
                      "type" : "string"
                    }
                  },
                  "required" : [ "type" ],
                  "type" : "object"
                }, {
                  "properties" : {
                    "query" : {
                      "anyOf" : [ {
                        "$ref" : "#/components/schemas/metabase.lib.schema.query"
                      }, {
                        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.Query"
                      } ]
                    },
                    "type" : {
                      "enum" : [ "dashboard", "model", "transform", "code_editor", "document", "question", "metric", "adhoc" ],
                      "type" : "string"
                    }
                  },
                  "required" : [ "type" ],
                  "type" : "object"
                } ]
              },
              "type" : "array"
            }
          },
          "type" : "object"
        } ]
      },
      "metabase.metabot.schema.message" : {
        "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" : [ {
              "items" : {
                "properties" : {
                  "arguments" : {
                    "type" : "string"
                  },
                  "id" : {
                    "type" : "string"
                  },
                  "name" : {
                    "type" : "string"
                  }
                },
                "required" : [ "id", "name", "arguments" ],
                "type" : "object"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "role" ],
        "type" : "object"
      },
      "metabase.metabot.schema.messages" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.metabot.schema.message"
        },
        "type" : "array"
      },
      "metabase.metabot.schema.role" : {
        "enum" : [ "system", "user", "assistant", "tool" ],
        "type" : "string"
      },
      "metabase.metrics.api.BreakoutValuesResponse" : {
        "properties" : {
          "col" : {
            "properties" : { },
            "type" : "object"
          },
          "values" : {
            "items" : { },
            "type" : "array"
          }
        },
        "required" : [ "values", "col" ],
        "type" : "object"
      },
      "metabase.metrics.api.DatasetRequest" : {
        "description" : "Schema for POST /dataset request body.",
        "properties" : {
          "definition" : {
            "$ref" : "#/components/schemas/metabase.metrics.api.Definition"
          }
        },
        "required" : [ "definition" ],
        "type" : "object"
      },
      "metabase.metrics.api.DatasetResponse" : {
        "description" : "Schema for POST /dataset response.",
        "properties" : {
          "data" : {
            "properties" : {
              "cols" : {
                "items" : { },
                "type" : "array"
              },
              "rows" : {
                "items" : { },
                "type" : "array"
              }
            },
            "required" : [ "cols", "rows" ],
            "type" : "object"
          },
          "row_count" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "minimum" : 0,
            "type" : "integer"
          },
          "status" : {
            "enum" : [ "completed", "completed" ]
          }
        },
        "required" : [ "status", "data", "row_count" ],
        "type" : "object"
      },
      "metabase.metrics.api.Definition" : {
        "description" : "Schema for the definition object within a dataset request.\n   Uses expression-based contract for metric math support.",
        "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" ],
        "type" : "object"
      },
      "metabase.metrics.api.Metric" : {
        "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
        "properties" : {
          "collection" : {
            "oneOf" : [ {
              "properties" : {
                "id" : {
                  "oneOf" : [ {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  }, {
                    "type" : "null"
                  } ]
                },
                "name" : {
                  "type" : "string"
                }
              },
              "required" : [ "id", "name" ],
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "id", "name", "description", "collection_id" ],
        "type" : "object"
      },
      "metabase.metrics.api.MetricWithDimensions" : {
        "description" : "Schema for a Metric in list responses (without hydrated dimensions).",
        "properties" : {
          "collection" : {
            "oneOf" : [ {
              "properties" : {
                "id" : {
                  "oneOf" : [ {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  }, {
                    "type" : "null"
                  } ]
                },
                "name" : {
                  "type" : "string"
                }
              },
              "required" : [ "id", "name" ],
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "collection_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "database_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "dataset_query" : {
            "properties" : { },
            "type" : "object"
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "dimension_mappings" : {
            "oneOf" : [ {
              "items" : {
                "properties" : { },
                "type" : "object"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "dimensions" : {
            "oneOf" : [ {
              "items" : {
                "properties" : { },
                "type" : "object"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "result_column_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "name", "description", "collection_id" ],
        "type" : "object"
      },
      "metabase.metrics.api.RemappedValueResponse" : {
        "anyOf" : [ {
          "prefixItems" : [ { } ],
          "type" : "array"
        }, {
          "prefixItems" : [ { }, {
            "type" : "string"
          } ],
          "type" : "array"
        } ],
        "description" : "Response schema for dimension remapping endpoint.\n   Returns [value] if no remapping, or [value, display-name] if remapped."
      },
      "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" : [ {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type", "payload" ],
            "type" : "object"
          }, {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type" ],
            "type" : "object"
          } ]
        }, {
          "oneOf" : [ {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type", "payload" ],
            "type" : "object"
          }, {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type" ],
            "type" : "object"
          } ]
        }, {
          "oneOf" : [ {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload" ],
            "type" : "object"
          }, {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplateUserProvided"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "type" : "object"
          } ]
        } ]
      },
      "metabase.notification.models.FullyHydratedNotification" : {
        "description" : "Fully hydrated notification.",
        "oneOf" : [ {
          "oneOf" : [ {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type", "payload" ],
            "type" : "object"
          }, {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload_id" : {
                "type" : "null"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type" ],
            "type" : "object"
          } ]
        }, {
          "oneOf" : [ {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type", "payload" ],
            "type" : "object"
          }, {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "creator_id" : {
                "type" : "integer"
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload_id" : {
                "type" : "integer"
              },
              "payload_type" : {
                "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
                "type" : "string"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload_type" ],
            "type" : "object"
          } ]
        }, {
          "oneOf" : [ {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "payload" : {
                "$ref" : "#/components/schemas/metabase.notification.models.NotificationCard"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "required" : [ "payload" ],
            "type" : "object"
          }, {
            "properties" : {
              "creator" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              },
              "handlers" : {
                "items" : {
                  "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.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "channel_type" : { },
                    "notification_id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "recipients" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.notification.models.NotificationRecipient"
                      },
                      "type" : "array"
                    },
                    "template" : {
                      "oneOf" : [ {
                        "$ref" : "#/components/schemas/metabase.channel.models.channel.ChannelTemplate"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "template_id" : {
                      "oneOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "channel_type" ],
                  "type" : "object"
                },
                "type" : "array"
              },
              "subscriptions" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.notification.models.NotificationSubscription"
                },
                "type" : "array"
              }
            },
            "type" : "object"
          } ]
        } ]
      },
      "metabase.notification.models.Notification" : {
        "oneOf" : [ {
          "properties" : {
            "payload_id" : {
              "type" : "null"
            },
            "payload_type" : {
              "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
              "type" : "string"
            }
          },
          "required" : [ "payload_type" ],
          "type" : "object"
        }, {
          "properties" : {
            "creator_id" : {
              "type" : "integer"
            },
            "payload_id" : {
              "type" : "integer"
            },
            "payload_type" : {
              "enum" : [ "notification/dashboard", "notification/system-event", "notification/testing", "notification/card" ],
              "type" : "string"
            }
          },
          "required" : [ "payload_type" ],
          "type" : "object"
        }, { } ]
      },
      "metabase.notification.models.NotificationCard" : {
        "description" : "Schema for :model/NotificationCard.",
        "properties" : {
          "card" : {
            "oneOf" : [ {
              "properties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          },
          "card_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "send_condition" : {
            "enum" : [ "goal_below", "has_result", "goal_above" ],
            "type" : "string"
          },
          "send_once" : {
            "type" : "boolean"
          }
        },
        "required" : [ "card_id" ],
        "type" : "object"
      },
      "metabase.notification.models.NotificationHandler" : {
        "properties" : {
          "active" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          },
          "channel_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "channel_type" : { },
          "notification_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "template_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "channel_type" ],
        "type" : "object"
      },
      "metabase.notification.models.NotificationRecipient" : {
        "description" : "Schema for :model/NotificationRecipient.",
        "oneOf" : [ {
          "properties" : {
            "details" : { },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "permissions_group_id" : { },
            "type" : {
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ],
              "type" : "string"
            },
            "user_id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }
          },
          "required" : [ "type", "user_id" ],
          "type" : "object"
        }, {
          "properties" : {
            "details" : { },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "permissions_group_id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "type" : {
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ],
              "type" : "string"
            },
            "user_id" : { }
          },
          "required" : [ "type", "permissions_group_id" ],
          "type" : "object"
        }, {
          "properties" : {
            "details" : {
              "additionalProperties" : false,
              "properties" : {
                "channel_id" : {
                  "oneOf" : [ {
                    "type" : "string"
                  }, {
                    "type" : "null"
                  } ]
                },
                "value" : { }
              },
              "required" : [ "value" ],
              "type" : "object"
            },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "permissions_group_id" : { },
            "type" : {
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ],
              "type" : "string"
            },
            "user_id" : { }
          },
          "required" : [ "type", "details" ],
          "type" : "object"
        }, {
          "properties" : {
            "details" : {
              "additionalProperties" : false,
              "properties" : {
                "is_optional" : {
                  "type" : "boolean"
                },
                "pattern" : {
                  "type" : "string"
                }
              },
              "required" : [ "pattern" ],
              "type" : "object"
            },
            "notification_handler_id" : {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            },
            "permissions_group_id" : { },
            "type" : {
              "enum" : [ "notification-recipient/raw-value", "notification-recipient/user", "notification-recipient/template", "notification-recipient/group" ],
              "type" : "string"
            },
            "user_id" : { }
          },
          "required" : [ "type", "details" ],
          "type" : "object"
        } ]
      },
      "metabase.notification.models.NotificationSubscription" : {
        "description" : "Schema for :model/NotificationSubscription.",
        "oneOf" : [ {
          "properties" : {
            "cron_schedule" : {
              "type" : "null"
            },
            "event_name" : {
              "anyOf" : [ {
                "type" : "string"
              }, {
                "type" : "string"
              } ]
            },
            "type" : {
              "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ],
              "type" : "string"
            }
          },
          "required" : [ "type", "event_name" ],
          "type" : "object"
        }, {
          "properties" : {
            "cron_schedule" : {
              "type" : "string"
            },
            "event_name" : {
              "type" : "null"
            },
            "type" : {
              "enum" : [ "notification-subscription/cron", "notification-subscription/system-event" ],
              "type" : "string"
            },
            "ui_display_type" : {
              "oneOf" : [ {
                "enum" : [ "cron/raw", "cron/builder" ],
                "type" : "string"
              }, {
                "type" : "null"
              } ]
            }
          },
          "required" : [ "type", "cron_schedule" ],
          "type" : "object"
        } ]
      },
      "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",
        "properties" : {
          "default" : { },
          "filteringParameters" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          },
          "mappings" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
                },
                "type" : "array"
              }, {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
                },
                "type" : "array",
                "uniqueItems" : true
              } ]
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "type" : "string"
          },
          "sectionId" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
          },
          "slug" : {
            "type" : "string"
          },
          "target" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
          },
          "temporal_units" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.temporal-bucketing.unit"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.type"
          },
          "values_query_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.values-query-type"
            }, {
              "type" : "null"
            } ]
          },
          "values_source_config" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-config"
            }, {
              "type" : "null"
            } ]
          },
          "values_source_type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.values-source-type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "type" ],
        "type" : "object"
      },
      "metabase.parameters.schema.parameter-mapping" : {
        "description" : "parameter_mapping must be a map with :parameter_id and :target keys",
        "properties" : {
          "card_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "dashcard" : {
            "properties" : { },
            "type" : "object"
          },
          "parameter_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          },
          "target" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.target"
          }
        },
        "required" : [ "parameter_id", "target" ],
        "type" : "object"
      },
      "metabase.parameters.schema.parameter-mappings" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mapping"
        },
        "type" : "array"
      },
      "metabase.parameters.schema.parameters" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
        },
        "type" : "array"
      },
      "metabase.parameters.schema.values-query-type" : {
        "enum" : [ "none", "list", "search" ],
        "type" : "string"
      },
      "metabase.parameters.schema.values-source-config" : {
        "description" : "Schema for valid source_options within a Parameter",
        "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" : { }
        },
        "type" : "object"
      },
      "metabase.parameters.schema.values-source-type" : {
        "enum" : [ "static-list", "card" ],
        "type" : "string"
      },
      "metabase.queries.schema..card.result-metadata" : {
        "items" : {
          "$ref" : "#/components/schemas/metabase.lib.schema.metadata.lib-or-legacy-column"
        },
        "type" : "array"
      },
      "metabase.queries.schema.card" : {
        "description" : "Schema for an instance of a `:model/Card` (everything is optional to support updates).",
        "properties" : {
          "collection_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.collection"
            }, {
              "type" : "null"
            } ]
          },
          "dashboard_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.dashboard"
            }, {
              "type" : "null"
            } ]
          },
          "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"
            } ]
          },
          "description" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "document_id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.documents.schema..document.id"
            }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          },
          "name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "parameter_mappings" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
            }, {
              "type" : "null"
            } ]
          },
          "parameters" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
            }, {
              "type" : "null"
            } ]
          },
          "result_metadata" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.queries.schema..card.result-metadata"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
            }, {
              "type" : "null"
            } ]
          }
        },
        "type" : "object"
      },
      "metabase.queries.schema.card-type" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.metadata..card.type"
      },
      "metabase.queries.schema.empty-map" : {
        "const" : { },
        "description" : "An empty map, allowed for Card.dataset_query for historic purposes."
      },
      "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.",
            "properties" : {
              "constraints" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.constraints.constraints"
              },
              "create-row" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              },
              "database" : {
                "oneOf" : [ {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
                }, {
                  "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
                } ]
              },
              "info" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.info.info"
              },
              "lib/metadata" : {
                "description" : "Schema for something that satisfies the [[metabase.lib.metadata.protocols/MetadataProvider]] protocol."
              },
              "lib/type" : {
                "const" : "mbql/query",
                "default" : "mbql/query"
              },
              "middleware" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.middleware-options.middleware-options"
              },
              "parameters" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.parameter.parameters"
              },
              "settings" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.settings.settings"
              },
              "stages" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.stages"
              },
              "update-row" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.actions.row"
              }
            },
            "required" : [ "lib/type", "lib/metadata", "stages" ],
            "type" : "object"
          }, {
            "$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.",
        "properties" : {
          "cols" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.query-processor.schema..result-metadata.column"
            },
            "type" : "array"
          },
          "download_perms" : {
            "type" : "string"
          },
          "format-rows?" : {
            "type" : "boolean"
          },
          "insights" : {
            "items" : {
              "properties" : { },
              "type" : "object"
            },
            "type" : "array"
          },
          "is_sandboxed" : {
            "type" : "boolean"
          },
          "native_form" : {
            "properties" : { },
            "type" : "object"
          },
          "results_metadata" : {
            "properties" : {
              "columns" : {
                "items" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema..result-metadata.column"
                },
                "type" : "array"
              }
            },
            "required" : [ "columns" ],
            "type" : "object"
          },
          "results_timezone" : {
            "type" : "string"
          },
          "rows" : {
            "items" : {
              "items" : { },
              "type" : "array"
            },
            "type" : "array"
          }
        },
        "required" : [ "cols", "rows" ],
        "type" : "object"
      },
      "metabase.query-processor.schema..result-metadata.column" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata",
        "description" : "A single result metadata column as returned by the Query Processor."
      },
      "metabase.query-processor.schema.export-format" : {
        "description" : "Schema for valid export formats for downloading query results.",
        "enum" : [ "csv", "api", "xlsx", "json" ],
        "type" : "string"
      },
      "metabase.query-processor.schema.query-result" : {
        "description" : "Schema for query execution results returned by the Query Processor.",
        "properties" : {
          "average_execution_time" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "cached" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "context" : { },
          "data" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema..query-result.data"
          },
          "database_id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
          },
          "error" : {
            "type" : "string"
          },
          "error_type" : {
            "type" : "string"
          },
          "json_query" : {
            "properties" : { },
            "type" : "object"
          },
          "row_count" : {
            "type" : "integer"
          },
          "running_time" : {
            "type" : "integer"
          },
          "started_at" : {
            "type" : "string"
          },
          "status" : {
            "enum" : [ "completed", "failed" ],
            "type" : "string"
          }
        },
        "required" : [ "status", "row_count" ],
        "type" : "object"
      },
      "metabase.source-swap.schema.column-error" : {
        "enum" : [ "column-type-mismatch", "missing-primary-key", "missing-foreign-key", "foreign-key-mismatch" ],
        "type" : "string"
      },
      "metabase.sync.schedules.ExpandedSchedulesMap" : {
        "description" : "value must be a valid map of schedule maps for a DB.",
        "properties" : {
          "cache_field_values" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.util.cron.ScheduleMap"
            }, {
              "type" : "null"
            } ]
          },
          "metadata_sync" : {
            "$ref" : "#/components/schemas/metabase.util.cron.ScheduleMap"
          }
        },
        "type" : "object"
      },
      "metabase.task-history.api.RunEntity" : {
        "properties" : {
          "entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "entity_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "entity_type" : {
            "enum" : [ "dashboard", "card", "database" ],
            "type" : "string"
          }
        },
        "required" : [ "entity_type", "entity_id" ],
        "type" : "object"
      },
      "metabase.task-history.api.RunFilterParams" : {
        "properties" : {
          "entity-id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "entity-type" : {
            "enum" : [ "dashboard", "card", "database" ],
            "type" : "string"
          },
          "run-type" : {
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ],
            "type" : "string"
          },
          "started-at" : {
            "minLength" : 1,
            "type" : "string"
          },
          "status" : {
            "enum" : [ "started", "success", "failed", "abandoned" ],
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "metabase.task-history.api.TaskHistory" : {
        "properties" : {
          "duration" : {
            "oneOf" : [ {
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "ended_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "logs" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "run_id" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "started_at" : { },
          "status" : {
            "enum" : [ "started", "success", "failed", "unknown" ],
            "type" : "string"
          },
          "task" : {
            "type" : "string"
          },
          "task_details" : {
            "oneOf" : [ {
              "properties" : { },
              "type" : "object"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "id", "task", "started_at", "ended_at", "duration", "status" ],
        "type" : "object"
      },
      "metabase.task-history.api.TaskRun" : {
        "properties" : {
          "ended_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "entity_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "entity_type" : {
            "enum" : [ "dashboard", "card", "database" ],
            "type" : "string"
          },
          "failed_count" : {
            "type" : "integer"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "run_type" : {
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ],
            "type" : "string"
          },
          "started_at" : { },
          "status" : {
            "enum" : [ "started", "success", "failed", "abandoned" ],
            "type" : "string"
          },
          "success_count" : {
            "type" : "integer"
          },
          "task_count" : {
            "type" : "integer"
          }
        },
        "required" : [ "id", "run_type", "entity_type", "entity_id", "started_at", "ended_at", "status" ],
        "type" : "object"
      },
      "metabase.task-history.api.TaskRunWithTasks" : {
        "properties" : {
          "ended_at" : {
            "oneOf" : [ { }, {
              "type" : "null"
            } ]
          },
          "entity_id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "entity_name" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "entity_type" : {
            "enum" : [ "dashboard", "card", "database" ],
            "type" : "string"
          },
          "failed_count" : {
            "type" : "integer"
          },
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "run_type" : {
            "enum" : [ "alert", "sync", "fingerprint", "subscription" ],
            "type" : "string"
          },
          "started_at" : { },
          "status" : {
            "enum" : [ "started", "success", "failed", "abandoned" ],
            "type" : "string"
          },
          "success_count" : {
            "type" : "integer"
          },
          "task_count" : {
            "type" : "integer"
          },
          "tasks" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.task-history.api.TaskHistory"
            },
            "type" : "array"
          }
        },
        "required" : [ "id", "run_type", "entity_type", "entity_id", "started_at", "ended_at", "status", "tasks" ],
        "type" : "object"
      },
      "metabase.task-history.api.TaskRunsResponse" : {
        "properties" : {
          "data" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.task-history.api.TaskRun"
            },
            "type" : "array"
          },
          "limit" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "offset" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater or equal to than zero.",
              "minimum" : 0,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          },
          "total" : {
            "description" : "value must be an integer greater or equal to than zero.",
            "minimum" : 0,
            "type" : "integer"
          }
        },
        "required" : [ "total", "limit", "offset", "data" ],
        "type" : "object"
      },
      "metabase.tiles.api.legacy-ref" : {
        "$ref" : "#/components/schemas/metabase.legacy-mbql.schema.field",
        "description" : "Form-encoded JSON-encoded legacy MBQL :field ref."
      },
      "metabase.tiles.api.parameters" : {
        "$ref" : "#/components/schemas/metabase.parameters.schema.parameters",
        "description" : "Form-encoded JSON-encoded array of parameter maps."
      },
      "metabase.tiles.api.query" : {
        "$ref" : "#/components/schemas/metabase.lib.schema.query",
        "description" : "Form-encoded JSON-encoded MBQL query."
      },
      "metabase.timeline.api.timeline.Timeline" : {
        "properties" : {
          "id" : {
            "minimum" : 1,
            "type" : "integer"
          }
        },
        "required" : [ "id" ],
        "type" : "object"
      },
      "metabase.timeline.api.timeline.include" : {
        "enum" : [ "events" ],
        "type" : "string"
      },
      "metabase.transforms-base.util.source-table-entry" : {
        "description" : "A source table entry in the array format. Combines alias with table reference.",
        "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" ],
        "type" : "object"
      },
      "metabase.transforms-rest.api.transform.run-trigger" : {
        "enum" : [ "none", "global-schedule" ],
        "type" : "string"
      },
      "metabase.transforms.schema.append-config" : {
        "properties" : {
          "type" : {
            "const" : "append"
          }
        },
        "required" : [ "type" ],
        "type" : "object"
      },
      "metabase.transforms.schema.checkpoint-strategy" : {
        "properties" : {
          "checkpoint-filter-field-id" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
          },
          "type" : {
            "const" : "checkpoint"
          }
        },
        "required" : [ "type" ],
        "type" : "object"
      },
      "metabase.transforms.schema.id" : {
        "minimum" : 1,
        "type" : "integer"
      },
      "metabase.transforms.schema.source-incremental-strategy" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.transforms.schema.checkpoint-strategy"
        } ]
      },
      "metabase.transforms.schema.table-incremental-target" : {
        "properties" : {
          "database" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "target-incremental-strategy" : {
            "$ref" : "#/components/schemas/metabase.transforms.schema.target-incremental-strategy"
          },
          "type" : {
            "const" : "table-incremental"
          }
        },
        "required" : [ "type", "name", "target-incremental-strategy" ],
        "type" : "object"
      },
      "metabase.transforms.schema.table-target" : {
        "properties" : {
          "database" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "type" : {
            "const" : "table"
          }
        },
        "required" : [ "type", "name" ],
        "type" : "object"
      },
      "metabase.transforms.schema.target-incremental-strategy" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/metabase.transforms.schema.append-config"
        } ]
      },
      "metabase.transforms.schema.transform" : {
        "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" ],
        "type" : "object"
      },
      "metabase.transforms.schema.transform-source" : {
        "oneOf" : [ {
          "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" : {
              "items" : {
                "$ref" : "#/components/schemas/metabase.transforms-base.util.source-table-entry"
              },
              "type" : "array"
            },
            "type" : {
              "const" : "python"
            }
          },
          "required" : [ "source-tables", "type", "body" ],
          "type" : "object"
        } ]
      },
      "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.",
        "properties" : {
          "id" : {
            "description" : "value must be an integer greater than zero.",
            "minimum" : 1,
            "type" : "integer"
          },
          "is_group_manager" : {
            "description" : "Only relevant if `advanced-permissions` is enabled. If it is, you should always include this key.",
            "type" : "boolean"
          }
        },
        "required" : [ "id" ],
        "type" : "object"
      },
      "metabase.util.cron.CronHour" : {
        "maximum" : 23,
        "minimum" : 0,
        "type" : "integer"
      },
      "metabase.util.cron.CronMinute" : {
        "maximum" : 59,
        "minimum" : 0,
        "type" : "integer"
      },
      "metabase.util.cron.CronScheduleString" : {
        "description" : "value must be a valid Quartz cron schedule string.",
        "minLength" : 1,
        "type" : "string"
      },
      "metabase.util.cron.ScheduleMap" : {
        "description" : "value must be a valid schedule map. See schema in metabase.util.cron for details.",
        "properties" : {
          "schedule_day" : {
            "oneOf" : [ {
              "enum" : [ "sun", "mon", "tue", "wed", "thu", "fri", "sat" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          },
          "schedule_frame" : {
            "oneOf" : [ {
              "enum" : [ "first", "mid", "last" ],
              "type" : "string"
            }, {
              "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" : {
            "enum" : [ "hourly", "daily", "weekly", "monthly" ],
            "type" : "string"
          }
        },
        "required" : [ "schedule_type" ],
        "type" : "object"
      },
      "metabase.warehouse-schema-rest.api.table.data-authority-write" : {
        "description" : "Schema for writing a valid table data authority.",
        "enum" : [ "computed", "authoritative", "unconfigured", "ingested" ],
        "type" : "string"
      },
      "metabase.warehouse-schema-rest.api.table.data-layers" : {
        "enum" : [ "final", "internal", "hidden" ],
        "type" : "string"
      },
      "metabase.warehouse-schema-rest.api.table.data-sources" : {
        "enum" : [ "source-data", "transform", "unknown", "ingested", "metabase-transform", "upload" ],
        "type" : "string"
      },
      "metabase.warehouses-rest.api.available-settings" : {
        "additionalProperties" : {
          "properties" : {
            "enabled" : {
              "type" : "boolean"
            },
            "reasons" : {
              "items" : {
                "properties" : {
                  "key" : {
                    "type" : "string"
                  },
                  "message" : {
                    "anyOf" : [ {
                      "type" : "string"
                    }, { } ]
                  },
                  "type" : {
                    "enum" : [ "error", "warning" ],
                    "type" : "string"
                  }
                },
                "required" : [ "key", "type", "message" ],
                "type" : "object"
              },
              "type" : "array"
            }
          },
          "required" : [ "enabled" ],
          "type" : "object"
        },
        "type" : "object"
      },
      "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.)",
        "minLength" : 1,
        "type" : "string"
      }
    },
    "securitySchemes" : {
      "ApiKeyAuth" : {
        "description" : "API key for authentication",
        "in" : "header",
        "name" : "X-API-Key",
        "type" : "apiKey"
      }
    }
  },
  "info" : {
    "license" : {
      "name" : "AGPL-3.0",
      "url" : "https://www.gnu.org/licenses/agpl-3.0.html"
    },
    "title" : "Metabase API",
    "version" : "vLOCAL_DEV"
  },
  "openapi" : "3.1.0",
  "paths" : {
    "/api/action" : {
      "get" : {
        "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.",
        "operationId" : "get-api-action",
        "parameters" : [ {
          "in" : "query",
          "name" : "model-id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.card"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.actions.schema.action"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/action",
        "tags" : [ "/api/action" ]
      },
      "post" : {
        "description" : "Create a new action.",
        "operationId" : "post-api-action",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.actions.schema..action.for-insert"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.actions.schema.action"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/action",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/public" : {
      "get" : {
        "description" : "Fetch a list of Actions with public UUIDs. These actions are publicly-accessible *if* public sharing is enabled.",
        "operationId" : "get-api-action-public",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/metabase.actions.schema.action"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/action/public",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{action-id}" : {
      "delete" : {
        "description" : "Delete an Action.",
        "operationId" : "delete-api-action-action-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "action-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/action/{action-id}",
        "tags" : [ "/api/action" ]
      },
      "get" : {
        "description" : "Fetch an Action.",
        "operationId" : "get-api-action-action-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "action-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.actions.schema.action"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/action/{action-id}",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{action-id}/execute" : {
      "get" : {
        "description" : "Fetches the values for filling in execution parameters. Pass PK parameters and values to select.",
        "operationId" : "get-api-action-action-id-execute",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "action-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be a valid JSON string.",
          "in" : "query",
          "name" : "parameters",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/action/{action-id}/execute",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{id}" : {
      "put" : {
        "description" : "Update an Action.",
        "operationId" : "put-api-action-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.actions.schema.id"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.actions.schema..action.for-update"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/action/{id}",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{id}/execute" : {
      "post" : {
        "description" : "Execute the Action.\n\n   `parameters` should be the mapped dashboard parameters with values.",
        "operationId" : "post-api-action-id-execute",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.actions.schema.id"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "properties" : {
                    "parameters" : {
                      "oneOf" : [ {
                        "additionalProperties" : { },
                        "type" : "object"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/action/{id}/execute",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/action/{id}/public_link" : {
      "delete" : {
        "description" : "Delete the publicly-accessible link to this Dashboard.",
        "operationId" : "delete-api-action-id-public_link",
        "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"
          }
        },
        "summary" : "DELETE /api/action/{id}/public_link",
        "tags" : [ "/api/action" ]
      },
      "post" : {
        "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.",
        "operationId" : "post-api-action-id-public_link",
        "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"
          }
        },
        "summary" : "POST /api/action/{id}/public_link",
        "tags" : [ "/api/action" ]
      }
    },
    "/api/activity/most_recently_viewed_dashboard" : {
      "get" : {
        "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.",
        "operationId" : "get-api-activity-most_recently_viewed_dashboard",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/activity/most_recently_viewed_dashboard",
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/activity/popular_items" : {
      "get" : {
        "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. ",
        "operationId" : "get-api-activity-popular_items",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/activity/popular_items",
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/activity/recent_views" : {
      "get" : {
        "deprecated" : true,
        "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.",
        "operationId" : "get-api-activity-recent_views",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/activity/recent_views",
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/activity/recents" : {
      "get" : {
        "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",
        "operationId" : "get-api-activity-recents",
        "parameters" : [ {
          "in" : "query",
          "name" : "context",
          "required" : true,
          "schema" : {
            "items" : {
              "enum" : [ "selections", "views" ],
              "type" : "string"
            },
            "type" : "array"
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/activity/recents",
        "tags" : [ "/api/activity" ]
      },
      "post" : {
        "description" : "Adds a model to the list of recently selected items.",
        "operationId" : "post-api-activity-recents",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "context" : {
                    "enum" : [ "selection" ],
                    "type" : "string"
                  },
                  "model" : {
                    "enum" : [ "card", "dataset", "metric", "dashboard", "table", "collection", "document" ],
                    "type" : "string"
                  },
                  "model_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  }
                },
                "required" : [ "model", "model_id", "context" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/activity/recents",
        "tags" : [ "/api/activity" ]
      }
    },
    "/api/agent/v1/dashboard" : {
      "post" : {
        "description" : "Create a new dashboard, optionally populated with saved questions.\n\n  Pass `question_ids` to add existing saved questions as cards on the dashboard.\n  Cards are automatically positioned on the grid based on their display type.",
        "operationId" : "post-api-agent-v1-dashboard",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.create-dashboard-request"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.create-dashboard-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/agent/v1/dashboard",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/execute" : {
      "post" : {
        "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).",
        "operationId" : "post-api-agent-v1-execute",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.execute-query-request"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.execute-query-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/agent/v1/execute",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/metric/{id}" : {
      "get" : {
        "description" : "Get details for a metric by ID.",
        "operationId" : "get-api-agent-v1-metric-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.metric"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/agent/v1/metric/{id}",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/metric/{id}/field/{field-id}/values" : {
      "get" : {
        "description" : "Get statistics and sample values for a metric field.",
        "operationId" : "get-api-agent-v1-metric-id-field-field-id-values",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "field-id",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.field-values"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/agent/v1/metric/{id}/field/{field-id}/values",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/ping" : {
      "get" : {
        "description" : "Health check endpoint for the Agent API.",
        "operationId" : "get-api-agent-v1-ping",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "message" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/agent/v1/ping",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/question" : {
      "post" : {
        "description" : "Save a previously constructed query as a named question (card).\n\n  The `query` parameter should be a base64-encoded string returned by construct_query.\n  Optionally specify display type, description, collection, and visualization settings.",
        "operationId" : "post-api-agent-v1-question",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.create-question-request"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.create-question-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/agent/v1/question",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/search" : {
      "post" : {
        "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.",
        "operationId" : "post-api-agent-v1-search",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "semantic_queries" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "items" : {
                          "minLength" : 1,
                          "type" : "string"
                        },
                        "type" : "array"
                      }, {
                        "minLength" : 1,
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "term_queries" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "items" : {
                          "minLength" : 1,
                          "type" : "string"
                        },
                        "type" : "array"
                      }, {
                        "minLength" : 1,
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.search-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/agent/v1/search",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/table/{id}" : {
      "get" : {
        "description" : "Get details for a table by ID.",
        "operationId" : "get-api-agent-v1-table-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.table"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/agent/v1/table/{id}",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v1/table/{id}/field/{field-id}/values" : {
      "get" : {
        "description" : "Get statistics and sample values for a table field.",
        "operationId" : "get-api-agent-v1-table-id-field-field-id-values",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "field-id",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.field-values"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/agent/v1/table/{id}/field/{field-id}/values",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v2/construct-query" : {
      "post" : {
        "description" : "Construct an MBQL query from a portable MBQL 5 representations JSON payload.\n\n  The body is `{\"query\": <external-query>}` where `<external-query>` is a JSON object\n  matching `::lib.schema/external-query` — see the `construct_notebook_query` tool\n  documentation for the format reference. Returns a base64-encoded MBQL query that can be\n  executed via /v1/execute or paginated via /v2/query.",
        "operationId" : "post-api-agent-v2-construct-query",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.construct-query-request"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.construct-query-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/agent/v2/construct-query",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/agent/v2/query" : {
      "post" : {
        "description" : "Execute a portable MBQL 5 representations JSON query and stream the results, with\n  continuation-token pagination.\n\n  Accepts either a JSON body (same shape as /v2/construct-query) or a `continuation_token`\n  from a previous response. Returns results with column metadata and an optional\n  `continuation_token` for fetching the next page.",
        "operationId" : "post-api-agent-v2-query",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.agent-api.api.query-request"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.agent-api.api.query-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/agent/v2/query",
        "tags" : [ "/api/agent" ]
      }
    },
    "/api/ai-entity-analysis/analyze-chart" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ai-entity-analysis-analyze-chart",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "image_base64" : {
                    "type" : "string"
                  },
                  "name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "timeline_events" : {
                    "oneOf" : [ {
                      "items" : {
                        "properties" : {
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "name" : {
                            "type" : "string"
                          },
                          "timestamp" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "name", "timestamp" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "image_base64" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ai-entity-analysis/analyze-chart",
        "tags" : [ "/api/ai-entity-analysis" ]
      }
    },
    "/api/alert" : {
      "get" : {
        "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.",
        "operationId" : "get-api-alert",
        "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.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/alert",
        "tags" : [ "/api/alert" ]
      }
    },
    "/api/alert/{id}" : {
      "get" : {
        "description" : "Fetch an alert by ID",
        "operationId" : "get-api-alert-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/alert/{id}",
        "tags" : [ "/api/alert" ]
      }
    },
    "/api/alert/{id}/subscription" : {
      "delete" : {
        "description" : "For users to unsubscribe themselves from the given alert.",
        "operationId" : "delete-api-alert-id-subscription",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/alert/{id}/subscription",
        "tags" : [ "/api/alert" ]
      }
    },
    "/api/analytics/anonymous-stats" : {
      "get" : {
        "description" : "Anonymous usage stats. Endpoint for testing, and eventually exposing this to instance admins to let them see\n  what is being phoned home.",
        "operationId" : "get-api-analytics-anonymous-stats",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/analytics/anonymous-stats",
        "tags" : [ "/api/analytics" ]
      }
    },
    "/api/analytics/internal" : {
      "post" : {
        "description" : "Receive a batch of internal analytics events from the frontend and record them as Prometheus metrics.",
        "operationId" : "post-api-analytics-internal",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "events" : {
                    "items" : {
                      "properties" : {
                        "amount" : {
                          "oneOf" : [ {
                            "type" : "number"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "labels" : {
                          "oneOf" : [ {
                            "additionalProperties" : {
                              "type" : "string"
                            },
                            "type" : "object"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "metric" : {
                          "type" : "string"
                        },
                        "op" : {
                          "enum" : [ "inc", "dec", "set", "observe", "clear" ],
                          "type" : "string"
                        }
                      },
                      "required" : [ "op", "metric" ],
                      "type" : "object"
                    },
                    "type" : "array"
                  }
                },
                "required" : [ "events" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/analytics/internal",
        "tags" : [ "/api/analytics" ]
      }
    },
    "/api/api-key" : {
      "get" : {
        "description" : "Get a list of API keys with the default scope. Non-paginated.",
        "operationId" : "get-api-api-key",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/api-key",
        "tags" : [ "/api/api-key" ]
      },
      "post" : {
        "description" : "Create a new API key (and an associated `User`) with the provided name and group ID.",
        "operationId" : "post-api-api-key",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "group_id" : {
                    "$ref" : "#/components/schemas/metabase.api-keys.schema.id"
                  },
                  "name" : {
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "required" : [ "group_id", "name" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/api-key",
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/api-key/count" : {
      "get" : {
        "description" : "Get the count of API keys in the DB with the default scope.",
        "operationId" : "get-api-api-key-count",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/api-key/count",
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/api-key/{id}" : {
      "delete" : {
        "description" : "Delete an ApiKey",
        "operationId" : "delete-api-api-key-id",
        "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"
          }
        },
        "summary" : "DELETE /api/api-key/{id}",
        "tags" : [ "/api/api-key" ]
      },
      "put" : {
        "description" : "Update an API key by changing its group and/or its name",
        "operationId" : "put-api-api-key-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "group_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.api-keys.schema.name"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/api-key/{id}",
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/api-key/{id}/regenerate" : {
      "put" : {
        "description" : "Regenerate an API Key",
        "operationId" : "put-api-api-key-id-regenerate",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.api-keys.schema.id"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "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" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/api-key/{id}/regenerate",
        "tags" : [ "/api/api-key" ]
      }
    },
    "/api/automagic-dashboards/database/{id}/candidates" : {
      "get" : {
        "description" : "Return a list of candidates for automagic dashboards ordered by interestingness.",
        "operationId" : "get-api-automagic-dashboards-database-id-candidates",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/database/{id}/candidates",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}" : {
      "get" : {
        "description" : "Return an automagic dashboard for an entity detail specified by `entity`\n  with id `id` and a primary key of `indexed-value`.",
        "operationId" : "get-api-automagic-dashboards-model_index-model-index-id-primary_key-pk-id",
        "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"
          }
        },
        "summary" : "GET /api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}" : {
      "get" : {
        "description" : "Return an automagic dashboard for entity `entity` with id `id`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}" : {
      "get" : {
        "description" : "Return an automagic dashboard analyzing cell in automagic dashboard for entity `entity` defined by query\n  `cell-query`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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"
          }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}" : {
      "get" : {
        "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.`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query-compare-comparison-entity-comparison-entity-id-or-query",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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"
          }
        }, {
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\"",
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "segment", "table" ],
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/rule/{prefix}/{dashboard-template}" : {
      "get" : {
        "description" : "Return an automagic dashboard analyzing cell in question with id `id` defined by query `cell-query` using\n  dashboard-template `dashboard-template`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-cell-cell-query-rule-prefix-dashboard-template",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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" : { }
        }, {
          "description" : "invalid value for dashboard template name",
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { }
        }, {
          "in" : "path",
          "name" : "cell-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.base-64-encoded-json"
          }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/cell/{cell-query}/rule/{prefix}/{dashboard-template}",
        "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" : {
        "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.`.",
        "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",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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" : { }
        }, {
          "description" : "invalid value for dashboard template name",
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { }
        }, {
          "in" : "path",
          "name" : "cell-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.base-64-encoded-json"
          }
        }, {
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\"",
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "segment", "table" ],
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "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}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}" : {
      "get" : {
        "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.`",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-compare-comparison-entity-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" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\"",
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "segment", "table" ],
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/query_metadata" : {
      "get" : {
        "description" : "Return all metadata for an automagic dashboard for entity `entity` with id `id`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-query_metadata",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/query_metadata",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}" : {
      "get" : {
        "description" : "Return an automagic dashboard for entity `entity` with id `id` using dashboard-template `dashboard-template`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-rule-prefix-dashboard-template",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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" : { }
        }, {
          "description" : "invalid value for dashboard template name",
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}",
        "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" : {
        "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.`.",
        "operationId" : "get-api-automagic-dashboards-entity-entity-id-or-query-rule-prefix-dashboard-template-compare-comparison-entity-comparison-entity-id-or-query",
        "parameters" : [ {
          "in" : "path",
          "name" : "entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "field", "model", "question", "segment", "table", "transform" ],
            "type" : "string"
          }
        }, {
          "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" : { }
        }, {
          "description" : "invalid value for dashboard template name",
          "in" : "path",
          "name" : "dashboard-template",
          "required" : true,
          "schema" : { }
        }, {
          "description" : "Invalid comparison entity type. Can only be one of \"table\", \"segment\", or \"adhoc\"",
          "in" : "path",
          "name" : "comparison-entity",
          "required" : true,
          "schema" : {
            "enum" : [ "adhoc", "segment", "table" ],
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "comparison-entity-id-or-query",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.xrays.api.automagic-dashboards.entity-id-or-query"
          }
        }, {
          "description" : "invalid show value",
          "in" : "query",
          "name" : "show",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "anyOf" : [ {
                "enum" : [ "all" ],
                "type" : "string"
              }, {
                "minimum" : 0,
                "type" : "integer"
              } ]
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/automagic-dashboards/{entity}/{entity-id-or-query}/rule/{prefix}/{dashboard-template}/compare/{comparison-entity}/{comparison-entity-id-or-query}",
        "tags" : [ "/api/automagic-dashboards" ]
      }
    },
    "/api/bookmark" : {
      "get" : {
        "description" : "Fetch all bookmarks for the user",
        "operationId" : "get-api-bookmark",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/bookmark",
        "tags" : [ "/api/bookmark" ]
      }
    },
    "/api/bookmark/ordering" : {
      "put" : {
        "description" : "Sets the order of bookmarks for user.",
        "operationId" : "put-api-bookmark-ordering",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "orderings" : {
                    "items" : {
                      "properties" : {
                        "item_id" : {
                          "description" : "value must be an integer greater than zero.",
                          "minimum" : 1,
                          "type" : "integer"
                        },
                        "type" : {
                          "enum" : [ "card", "dashboard", "collection", "document" ],
                          "type" : "string"
                        }
                      },
                      "required" : [ "type", "item_id" ],
                      "type" : "object"
                    },
                    "type" : "array"
                  }
                },
                "required" : [ "orderings" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/bookmark/ordering",
        "tags" : [ "/api/bookmark" ]
      }
    },
    "/api/bookmark/{model}/{id}" : {
      "delete" : {
        "description" : "Delete a bookmark. Will delete a bookmark assigned to the user making the request by model and id.",
        "operationId" : "delete-api-bookmark-model-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "model",
          "required" : true,
          "schema" : {
            "enum" : [ "card", "dashboard", "collection", "document" ],
            "type" : "string"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/bookmark/{model}/{id}",
        "tags" : [ "/api/bookmark" ]
      },
      "post" : {
        "description" : "Create a new bookmark for user.",
        "operationId" : "post-api-bookmark-model-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "model",
          "required" : true,
          "schema" : {
            "enum" : [ "card", "dashboard", "collection", "document" ],
            "type" : "string"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/bookmark/{model}/{id}",
        "tags" : [ "/api/bookmark" ]
      }
    },
    "/api/bug-reporting/connection-pool-details" : {
      "get" : {
        "description" : "Returns database connection pool info for the current Metabase instance.",
        "operationId" : "get-api-bug-reporting-connection-pool-details",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/bug-reporting/connection-pool-details",
        "tags" : [ "/api/bug-reporting" ]
      }
    },
    "/api/bug-reporting/details" : {
      "get" : {
        "description" : "Returns version and system information relevant to filing a bug report against Metabase.",
        "operationId" : "get-api-bug-reporting-details",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/bug-reporting/details",
        "tags" : [ "/api/bug-reporting" ]
      }
    },
    "/api/cache" : {
      "delete" : {
        "description" : "Delete cache configurations.",
        "operationId" : "delete-api-cache",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "model" : {
                    "enum" : [ "root", "database", "dashboard", "question" ],
                    "type" : "string"
                  },
                  "model_id" : {
                    "items" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "type" : "array"
                  }
                },
                "required" : [ "model", "model_id" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/cache",
        "tags" : [ "/api/cache" ]
      },
      "get" : {
        "description" : "Return cache configuration. Supports pagination via `limit` and `offset` query parameters,\n   and sorting via `sort_column` and `sort_direction`.",
        "operationId" : "get-api-cache",
        "parameters" : [ {
          "description" : "Type of model",
          "in" : "query",
          "name" : "model",
          "required" : true,
          "schema" : {
            "default" : [ "root" ],
            "items" : {
              "enum" : [ "root", "database", "dashboard", "question" ],
              "type" : "string"
            },
            "type" : "array"
          }
        }, {
          "description" : "Collection id to filter results. Returns everything if not supplied.",
          "in" : "query",
          "name" : "collection",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "description" : "Model id to get configuration for.",
          "in" : "query",
          "name" : "id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : true,
          "schema" : {
            "default" : "name",
            "enum" : [ "name", "policy", "collection" ],
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : true,
          "schema" : {
            "default" : "asc",
            "enum" : [ "asc", "desc" ],
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.cache.api.cache-config-list-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/cache",
        "tags" : [ "/api/cache" ]
      },
      "put" : {
        "description" : "Store cache configuration.",
        "operationId" : "put-api-cache",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "model" : {
                    "enum" : [ "root", "database", "dashboard", "question" ],
                    "type" : "string"
                  },
                  "model_id" : {
                    "description" : "value must be an integer greater or equal to than zero.",
                    "minimum" : 0,
                    "type" : "integer"
                  },
                  "strategy" : {
                    "$ref" : "#/components/schemas/metabase.cache.api.cache-strategy"
                  }
                },
                "required" : [ "model", "model_id", "strategy" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.cache.api.cache-config-store-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/cache",
        "tags" : [ "/api/cache" ]
      }
    },
    "/api/cache/invalidate" : {
      "post" : {
        "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.",
        "operationId" : "post-api-cache-invalidate",
        "parameters" : [ {
          "description" : "All cache configuration overrides should invalidate cache too",
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "const" : "overrides"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "description" : "A list of database ids",
          "in" : "query",
          "name" : "database",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "minimum" : 0,
                "type" : "integer"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "description" : "A list of dashboard ids",
          "in" : "query",
          "name" : "dashboard",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "minimum" : 0,
                "type" : "integer"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "description" : "A list of question ids",
          "in" : "query",
          "name" : "question",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "description" : "value must be an integer greater or equal to than zero.",
                "minimum" : 0,
                "type" : "integer"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.cache.api.cache-invalidate-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/cache/invalidate",
        "tags" : [ "/api/cache" ]
      }
    },
    "/api/card" : {
      "get" : {
        "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:",
        "operationId" : "get-api-card",
        "parameters" : [ {
          "in" : "query",
          "name" : "f",
          "required" : true,
          "schema" : {
            "default" : "all",
            "enum" : [ "archived", "table", "using_model", "bookmarked", "using_segment", "all", "mine", "database" ],
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "model_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/card",
        "tags" : [ "/api/card" ]
      },
      "post" : {
        "description" : "Create a new `Card`. Card `type` can be `question`, `metric`, or `model`.",
        "operationId" : "post-api-card",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "description" : "String must be a valid 21-character NanoID string.",
                        "pattern" : "^[A-Za-z0-9_\\-]{21}$",
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_tab_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dataset_query" : {
                    "description" : "Value must be a map.",
                    "properties" : { },
                    "type" : "object"
                  },
                  "description" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "display" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "entity_id" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "minLength" : 1,
                    "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"
                    } ]
                  },
                  "result_metadata" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "size" : {
                    "oneOf" : [ {
                      "properties" : {
                        "size_x" : {
                          "description" : "value must be an integer greater than zero.",
                          "minimum" : 1,
                          "type" : "integer"
                        },
                        "size_y" : {
                          "description" : "value must be an integer greater than zero.",
                          "minimum" : 1,
                          "type" : "integer"
                        }
                      },
                      "required" : [ "size_x", "size_y" ],
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.queries.schema.card-type"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "visualization_settings" : {
                    "description" : "Value must be a map.",
                    "properties" : { },
                    "type" : "object"
                  }
                },
                "required" : [ "name", "dataset_query", "display", "visualization_settings" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/collections" : {
      "post" : {
        "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`.",
        "operationId" : "post-api-card-collections",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "card_ids" : {
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "type" : "array"
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "card_ids" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card/collections",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/embeddable" : {
      "get" : {
        "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.",
        "operationId" : "get-api-card-embeddable",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/card/embeddable",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/pivot/{card-id}/query" : {
      "post" : {
        "description" : "Run the query associated with a Card.",
        "operationId" : "post-api-card-pivot-card-id-query",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "ignore_cache" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card/pivot/{card-id}/query",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/public" : {
      "get" : {
        "description" : "Fetch a list of Cards with public UUIDs. These cards are publicly-accessible *if* public sharing is enabled.",
        "operationId" : "get-api-card-public",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/card/public",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/params/{param-key}/search/{query}" : {
      "get" : {
        "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.",
        "operationId" : "get-api-card-card-id-params-param-key-search-query",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.lib.schema.parameter.id"
          }
        }, {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/card/{card-id}/params/{param-key}/search/{query}",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/params/{param-key}/values" : {
      "get" : {
        "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",
        "operationId" : "get-api-card-card-id-params-param-key-values",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/card/{card-id}/params/{param-key}/values",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/public_link" : {
      "delete" : {
        "description" : "Delete the publicly-accessible link to this Card.",
        "operationId" : "delete-api-card-card-id-public_link",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/card/{card-id}/public_link",
        "tags" : [ "/api/card" ]
      },
      "post" : {
        "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.",
        "operationId" : "post-api-card-card-id-public_link",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card/{card-id}/public_link",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/query" : {
      "post" : {
        "description" : "Run the query associated with a Card.",
        "operationId" : "post-api-card-card-id-query",
        "parameters" : [ {
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "collection_preview" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "ignore_cache" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "ignore_cache" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card/{card-id}/query",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{card-id}/query/{export-format}" : {
      "post" : {
        "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).",
        "operationId" : "post-api-card-card-id-query-export-format",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "items" : {
                        "additionalProperties" : { },
                        "type" : "object"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card/{card-id}/query/{export-format}",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}" : {
      "delete" : {
        "description" : "Hard delete a Card. To soft delete, use `PUT /api/queries/:id`",
        "operationId" : "delete-api-card-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/card/{id}",
        "tags" : [ "/api/card" ]
      },
      "get" : {
        "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`.",
        "operationId" : "get-api-card-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/card/{id}",
        "tags" : [ "/api/card" ]
      },
      "put" : {
        "description" : "Update a `Card`.",
        "operationId" : "put-api-card-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "delete_old_dashcards",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_preview" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_tab_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dataset_query" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "properties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "display" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_params" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid embedding params map.",
                      "oneOf" : [ {
                        "additionalProperties" : {
                          "enum" : [ "disabled", "enabled", "locked" ],
                          "type" : "string"
                        },
                        "type" : "object"
                      }, {
                        "type" : "null"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_type" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "enable_embedding" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter_mappings" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameter-mappings"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "result_metadata" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.analyze.query-results.ResultsMetadata"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.queries.schema.card-type"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "visualization_settings" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "properties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/card/{id}",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/copy" : {
      "post" : {
        "description" : "Copy a `Card`, with the new name 'Copy of _name_'",
        "operationId" : "post-api-card-id-copy",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/card/{id}/copy",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/dashboards" : {
      "get" : {
        "description" : "Get a list of `{:name ... :id ...}` pairs for all the dashboards this card appears in.",
        "operationId" : "get-api-card-id-dashboards",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/card/{id}/dashboards",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/params/{param-key}/remapping" : {
      "get" : {
        "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",
        "operationId" : "get-api-card-id-params-param-key-remapping",
        "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"
          }
        },
        "summary" : "GET /api/card/{id}/params/{param-key}/remapping",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/query_metadata" : {
      "get" : {
        "description" : "Get all of the required query metadata for a card.",
        "operationId" : "get-api-card-id-query_metadata",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/card/{id}/query_metadata",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/card/{id}/series" : {
      "get" : {
        "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",
        "operationId" : "get-api-card-id-series",
        "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.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "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"
          }
        },
        "summary" : "GET /api/card/{id}/series",
        "tags" : [ "/api/card" ]
      }
    },
    "/api/cards/dashboards" : {
      "post" : {
        "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.",
        "operationId" : "post-api-cards-dashboards",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "card_ids" : {
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "type" : "array"
                  }
                },
                "required" : [ "card_ids" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/cards/dashboards",
        "tags" : [ "/api/cards" ]
      }
    },
    "/api/cards/move" : {
      "post" : {
        "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.",
        "operationId" : "post-api-cards-move",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "card_ids" : {
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "type" : "array"
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashboard_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "card_ids" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/cards/move",
        "tags" : [ "/api/cards" ]
      }
    },
    "/api/channel" : {
      "get" : {
        "description" : "Get all channels",
        "operationId" : "get-api-channel",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "include_inactive" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/channel",
        "tags" : [ "/api/channel" ]
      },
      "post" : {
        "description" : "Create a channel",
        "operationId" : "post-api-channel",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "active" : {
                    "default" : true,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "properties" : { },
                    "type" : "object"
                  },
                  "name" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "type" : {
                    "description" : "Must be a namespaced channel. E.g: channel/http"
                  }
                },
                "required" : [ "name", "type", "details" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/channel",
        "tags" : [ "/api/channel" ]
      }
    },
    "/api/channel/test" : {
      "post" : {
        "description" : "Test a channel connection",
        "operationId" : "post-api-channel-test",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "details" : {
                    "properties" : { },
                    "type" : "object"
                  },
                  "type" : {
                    "description" : "Must be a namespaced channel. E.g: channel/http"
                  }
                },
                "required" : [ "type", "details" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/channel/test",
        "tags" : [ "/api/channel" ]
      }
    },
    "/api/channel/{id}" : {
      "get" : {
        "description" : "Get a channel",
        "operationId" : "get-api-channel-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/channel/{id}",
        "tags" : [ "/api/channel" ]
      },
      "put" : {
        "description" : "Update a channel",
        "operationId" : "put-api-channel-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "active" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "oneOf" : [ {
                      "properties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "description" : "Must be a namespaced channel. E.g: channel/http"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/channel/{id}",
        "tags" : [ "/api/channel" ]
      }
    },
    "/api/cloud-migration" : {
      "get" : {
        "description" : "Get the latest cloud migration, if any.",
        "operationId" : "get-api-cloud-migration",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/cloud-migration",
        "tags" : [ "/api/cloud-migration" ]
      },
      "post" : {
        "description" : "Initiate a new cloud migration.",
        "operationId" : "post-api-cloud-migration",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/cloud-migration",
        "tags" : [ "/api/cloud-migration" ]
      }
    },
    "/api/cloud-migration/cancel" : {
      "put" : {
        "description" : "Cancel any ongoing cloud migrations, if any.",
        "operationId" : "put-api-cloud-migration-cancel",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/cloud-migration/cancel",
        "tags" : [ "/api/cloud-migration" ]
      }
    },
    "/api/collection" : {
      "get" : {
        "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`.",
        "operationId" : "get-api-collection",
        "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" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "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"
          }
        },
        "summary" : "GET /api/collection",
        "tags" : [ "/api/collection" ]
      },
      "post" : {
        "description" : "Create a new Collection.",
        "operationId" : "post-api-collection",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "authority_level" : {
                    "oneOf" : [ {
                      "enum" : [ "official" ],
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "namespace" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parent_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/collection",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/graph" : {
      "get" : {
        "description" : "Fetch a graph of all Collection Permissions.",
        "operationId" : "get-api-collection-graph",
        "parameters" : [ {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/graph",
        "tags" : [ "/api/collection" ]
      },
      "put" : {
        "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.",
        "operationId" : "put-api-collection-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"
            } ]
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "groups" : {
                    "properties" : { },
                    "type" : "object"
                  },
                  "namespace" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "revision" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer.",
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "groups" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/collection/graph",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root" : {
      "get" : {
        "description" : "Return the 'Root' Collection object with standard details added",
        "operationId" : "get-api-collection-root",
        "parameters" : [ {
          "in" : "query",
          "name" : "namespace",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/root",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root/dashboard-question-candidates" : {
      "get" : {
        "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)",
        "operationId" : "get-api-collection-root-dashboard-question-candidates",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.DashboardQuestionCandidatesResponse"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/root/dashboard-question-candidates",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root/items" : {
      "get" : {
        "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.",
        "operationId" : "get-api-collection-root-items",
        "parameters" : [ {
          "in" : "query",
          "name" : "models",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "enum" : [ "dashboard", "table", "dataset", "no_models", "timeline", "snippet", "collection", "measure", "transform", "document", "pulse", "metric", "card" ],
                "type" : "string"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "collection_type",
          "required" : false,
          "schema" : {
            "enum" : [ "remote-synced" ],
            "type" : "string"
          }
        }, {
          "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" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "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" : [ {
              "enum" : [ "is_not_pinned", "is_pinned", "all" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "model", "name", "last_edited_by", "last_edited_at", "description" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "desc", "asc" ],
              "type" : "string"
            }, {
              "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"
          }
        },
        "summary" : "GET /api/collection/root/items",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/root/move-dashboard-question-candidates" : {
      "post" : {
        "description" : "Move candidate cards to the dashboards they appear in (for the root collection)",
        "operationId" : "post-api-collection-root-move-dashboard-question-candidates",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "properties" : {
                    "card_ids" : {
                      "items" : {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "type" : "array",
                      "uniqueItems" : true
                    }
                  },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.MoveDashboardQuestionCandidatesResponse"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/collection/root/move-dashboard-question-candidates",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/trash" : {
      "get" : {
        "description" : "Fetch the trash collection, as in `/api/collection/:trash-id`",
        "operationId" : "get-api-collection-trash",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/trash",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/tree" : {
      "get" : {
        "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`).",
        "operationId" : "get-api-collection-tree",
        "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" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "namespaces",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "type" : "string"
              },
              "type" : "array"
            }, {
              "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.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/tree",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}" : {
      "delete" : {
        "description" : "Deletes a collection permanently",
        "operationId" : "delete-api-collection-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/collection/{id}",
        "tags" : [ "/api/collection" ]
      },
      "get" : {
        "description" : "Fetch a specific Collection with standard details added",
        "operationId" : "get-api-collection-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/{id}",
        "tags" : [ "/api/collection" ]
      },
      "put" : {
        "description" : "Modify an existing Collection, including archiving or unarchiving it, or moving it.",
        "operationId" : "put-api-collection-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "archived" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "authority_level" : {
                    "oneOf" : [ {
                      "enum" : [ "official" ],
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parent_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "type" : {
                    "oneOf" : [ {
                      "enum" : [ "remote-synced" ],
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "archived" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/collection/{id}",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}/dashboard-question-candidates" : {
      "get" : {
        "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.",
        "operationId" : "get-api-collection-id-dashboard-question-candidates",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.DashboardQuestionCandidatesResponse"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/collection/{id}/dashboard-question-candidates",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}/items" : {
      "get" : {
        "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.",
        "operationId" : "get-api-collection-id-items",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "models",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "enum" : [ "dashboard", "table", "dataset", "no_models", "timeline", "snippet", "collection", "measure", "transform", "document", "pulse", "metric", "card" ],
                "type" : "string"
              },
              "type" : "array"
            }, {
              "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" : [ {
              "enum" : [ "is_not_pinned", "is_pinned", "all" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_column",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "model", "name", "last_edited_by", "last_edited_at", "description" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_direction",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "desc", "asc" ],
              "type" : "string"
            }, {
              "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"
          }
        },
        "summary" : "GET /api/collection/{id}/items",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/collection/{id}/move-dashboard-question-candidates" : {
      "post" : {
        "description" : "Move candidate cards to the dashboards they appear in.",
        "operationId" : "post-api-collection-id-move-dashboard-question-candidates",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "properties" : {
                    "card_ids" : {
                      "items" : {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "type" : "array",
                      "uniqueItems" : true
                    }
                  },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.collections-rest.api.MoveDashboardQuestionCandidatesResponse"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/collection/{id}/move-dashboard-question-candidates",
        "tags" : [ "/api/collection" ]
      }
    },
    "/api/comment" : {
      "get" : {
        "description" : "Get comments for an entity",
        "operationId" : "get-api-comment",
        "parameters" : [ {
          "in" : "query",
          "name" : "target_type",
          "required" : true,
          "schema" : {
            "enum" : [ "document" ],
            "type" : "string"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "query",
          "name" : "target_id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/comment",
        "tags" : [ "/api/comment" ]
      },
      "post" : {
        "description" : "Create a new comment",
        "operationId" : "post-api-comment",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "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.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "target_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  },
                  "target_type" : {
                    "enum" : [ "document" ],
                    "type" : "string"
                  }
                },
                "required" : [ "target_type", "target_id", "content" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/comment",
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/comment/mentions" : {
      "get" : {
        "description" : "Get a list of entities suitable for mentions. NOTE: only users for now.",
        "operationId" : "get-api-comment-mentions",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/comment/mentions",
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/comment/{comment-id}" : {
      "delete" : {
        "description" : "Soft delete a comment",
        "operationId" : "delete-api-comment-comment-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "comment-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/comment/{comment-id}",
        "tags" : [ "/api/comment" ]
      },
      "put" : {
        "description" : "Update a comment",
        "operationId" : "put-api-comment-comment-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "comment-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "content" : {
                    "type" : "object"
                  },
                  "is_resolved" : {
                    "type" : "boolean"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/comment/{comment-id}",
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/comment/{comment-id}/reaction" : {
      "post" : {
        "description" : "Toggle a reaction on a comment",
        "operationId" : "post-api-comment-comment-id-reaction",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "comment-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "emoji" : {
                    "maxLength" : 10,
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "required" : [ "emoji" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/comment/{comment-id}/reaction",
        "tags" : [ "/api/comment" ]
      }
    },
    "/api/dashboard" : {
      "get" : {
        "deprecated" : true,
        "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*.)",
        "operationId" : "get-api-dashboard",
        "parameters" : [ {
          "in" : "query",
          "name" : "f",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "all", "mine", "archived" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard",
        "tags" : [ "/api/dashboard" ]
      },
      "post" : {
        "description" : "Create a new Dashboard.",
        "operationId" : "post-api-dashboard",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "name" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/embeddable" : {
      "get" : {
        "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.",
        "operationId" : "get-api-dashboard-embeddable",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/embeddable",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/params/valid-filter-fields" : {
      "get" : {
        "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",
        "operationId" : "get-api-dashboard-params-valid-filter-fields",
        "parameters" : [ {
          "in" : "query",
          "name" : "filtered",
          "required" : true,
          "schema" : {
            "items" : {
              "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
            },
            "type" : "array"
          }
        }, {
          "in" : "query",
          "name" : "filtering",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "items" : {
                "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
              },
              "type" : "array"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/params/valid-filter-fields",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/pivot/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query" : {
      "post" : {
        "description" : "Run a pivot table query for a specific DashCard.",
        "operationId" : "post-api-dashboard-pivot-dashboard-id-dashcard-dashcard-id-card-card-id-query",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "parameters" : {
                    "oneOf" : [ {
                      "items" : {
                        "allOf" : [ {
                          "properties" : {
                            "id" : {
                              "minLength" : 1,
                              "type" : "string"
                            }
                          },
                          "required" : [ "id" ],
                          "type" : "object"
                        }, {
                          "additionalProperties" : { },
                          "type" : "object"
                        } ],
                        "description" : "value must be a parameter map with an 'id' key"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/pivot/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/public" : {
      "get" : {
        "description" : "Fetch a list of Dashboards with public UUIDs. These dashboards are publicly-accessible *if* public sharing is\n  enabled.",
        "operationId" : "get-api-dashboard-public",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/public",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/save" : {
      "post" : {
        "description" : "Save a denormalized description of dashboard.",
        "operationId" : "post-api-dashboard-save",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/save",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/save/collection/{parent-collection-id}" : {
      "post" : {
        "description" : "Save a denormalized description of dashboard into collection with ID `:parent-collection-id`.",
        "operationId" : "post-api-dashboard-save-collection-parent-collection-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "parent-collection-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/save/collection/{parent-collection-id}",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query" : {
      "post" : {
        "description" : "Run the query associated with a Saved Question (`Card`) in the context of a `Dashboard` that includes it.",
        "operationId" : "post-api-dashboard-dashboard-id-dashcard-dashcard-id-card-card-id-query",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "dashboard_load_id" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "items" : {
                        "allOf" : [ {
                          "properties" : {
                            "id" : {
                              "minLength" : 1,
                              "type" : "string"
                            }
                          },
                          "required" : [ "id" ],
                          "type" : "object"
                        }, {
                          "additionalProperties" : { },
                          "type" : "object"
                        } ],
                        "description" : "value must be a parameter map with an 'id' key"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query/{export-format}" : {
      "post" : {
        "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).",
        "operationId" : "post-api-dashboard-dashboard-id-dashcard-dashcard-id-card-card-id-query-export-format",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "items" : {
                          "allOf" : [ {
                            "properties" : {
                              "id" : {
                                "minLength" : 1,
                                "type" : "string"
                              }
                            },
                            "required" : [ "id" ],
                            "type" : "object"
                          }, {
                            "additionalProperties" : { },
                            "type" : "object"
                          } ],
                          "description" : "value must be a parameter map with an 'id' key"
                        },
                        "type" : "array"
                      }, {
                        "description" : "value must be a valid JSON string.",
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/card/{card-id}/query/{export-format}",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/execute" : {
      "get" : {
        "description" : "Fetches the values for filling in execution parameters. Pass PK parameters and values to select.",
        "operationId" : "get-api-dashboard-dashboard-id-dashcard-dashcard-id-execute",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be a valid JSON string.",
          "in" : "query",
          "name" : "parameters",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/execute",
        "tags" : [ "/api/dashboard" ]
      },
      "post" : {
        "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.",
        "operationId" : "post-api-dashboard-dashboard-id-dashcard-dashcard-id-execute",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashcard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "parameters" : {
                    "oneOf" : [ {
                      "additionalProperties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/{dashboard-id}/dashcard/{dashcard-id}/execute",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{dashboard-id}/public_link" : {
      "delete" : {
        "description" : "Delete the publicly-accessible link to this Dashboard.",
        "operationId" : "delete-api-dashboard-dashboard-id-public_link",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/dashboard/{dashboard-id}/public_link",
        "tags" : [ "/api/dashboard" ]
      },
      "post" : {
        "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.",
        "operationId" : "post-api-dashboard-dashboard-id-public_link",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/{dashboard-id}/public_link",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{from-dashboard-id}/copy" : {
      "post" : {
        "description" : "Copy a Dashboard.",
        "operationId" : "post-api-dashboard-from-dashboard-id-copy",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "from-dashboard-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_deep_copy" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "is_deep_copy" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dashboard/{from-dashboard-id}/copy",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}" : {
      "delete" : {
        "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.",
        "operationId" : "delete-api-dashboard-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/dashboard/{id}",
        "tags" : [ "/api/dashboard" ]
      },
      "get" : {
        "description" : "Get Dashboard with ID.",
        "operationId" : "get-api-dashboard-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}",
        "tags" : [ "/api/dashboard" ]
      },
      "put" : {
        "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`.",
        "operationId" : "put-api-dashboard-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "dashcards" : {
                    "oneOf" : [ {
                      "description" : "value must be seq of maps in which ids are unique",
                      "items" : {
                        "properties" : {
                          "col" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "id" : {
                            "type" : "integer"
                          },
                          "inline_parameters" : {
                            "oneOf" : [ {
                              "items" : {
                                "minLength" : 1,
                                "type" : "string"
                              },
                              "type" : "array"
                            }, {
                              "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.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "series" : {
                            "oneOf" : [ {
                              "items" : {
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "size_x" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "size_y" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          }
                        },
                        "required" : [ "id", "size_x", "size_y", "row", "col" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_params" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid embedding params map.",
                      "oneOf" : [ {
                        "additionalProperties" : {
                          "enum" : [ "disabled", "enabled", "locked" ],
                          "type" : "string"
                        },
                        "type" : "object"
                      }, {
                        "type" : "null"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "embedding_type" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "enable_embedding" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.parameters.schema.parameters"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "show_in_getting_started" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "tabs" : {
                    "oneOf" : [ {
                      "description" : "value must be seq of maps in which ids are unique",
                      "items" : {
                        "properties" : {
                          "id" : {
                            "description" : "value must be an integer.",
                            "type" : "integer"
                          },
                          "name" : {
                            "minLength" : 1,
                            "type" : "string"
                          }
                        },
                        "required" : [ "id", "name" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "width" : {
                    "enum" : [ "fixed", "full" ],
                    "type" : "string"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/dashboard/{id}",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/cards" : {
      "put" : {
        "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     ...}]}",
        "operationId" : "put-api-dashboard-id-cards",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "cards" : {
                    "description" : "value must be seq of maps in which ids are unique",
                    "items" : {
                      "properties" : {
                        "col" : {
                          "description" : "value must be an integer greater or equal to than zero.",
                          "minimum" : 0,
                          "type" : "integer"
                        },
                        "id" : {
                          "type" : "integer"
                        },
                        "inline_parameters" : {
                          "oneOf" : [ {
                            "items" : {
                              "minLength" : 1,
                              "type" : "string"
                            },
                            "type" : "array"
                          }, {
                            "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.",
                          "minimum" : 0,
                          "type" : "integer"
                        },
                        "series" : {
                          "oneOf" : [ {
                            "items" : {
                              "type" : "object"
                            },
                            "type" : "array"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "size_x" : {
                          "description" : "value must be an integer greater than zero.",
                          "minimum" : 1,
                          "type" : "integer"
                        },
                        "size_y" : {
                          "description" : "value must be an integer greater than zero.",
                          "minimum" : 1,
                          "type" : "integer"
                        }
                      },
                      "required" : [ "id", "size_x", "size_y", "row", "col" ],
                      "type" : "object"
                    },
                    "type" : "array"
                  },
                  "tabs" : {
                    "oneOf" : [ {
                      "description" : "value must be seq of maps in which ids are unique",
                      "items" : {
                        "properties" : {
                          "id" : {
                            "description" : "value must be an integer.",
                            "type" : "integer"
                          },
                          "name" : {
                            "minLength" : 1,
                            "type" : "string"
                          }
                        },
                        "required" : [ "id", "name" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "cards" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/dashboard/{id}/cards",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/items" : {
      "get" : {
        "description" : "Get Dashboard with ID.",
        "operationId" : "get-api-dashboard-id-items",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}/items",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/params/{param-key}/remapping" : {
      "get" : {
        "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",
        "operationId" : "get-api-dashboard-id-params-param-key-remapping",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "value",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}/params/{param-key}/remapping",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/params/{param-key}/search/{query}" : {
      "get" : {
        "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.",
        "operationId" : "get-api-dashboard-id-params-param-key-search-query",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        }, {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}/params/{param-key}/search/{query}",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/params/{param-key}/values" : {
      "get" : {
        "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",
        "operationId" : "get-api-dashboard-id-params-param-key-values",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "param-key",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}/params/{param-key}/values",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/query_metadata" : {
      "get" : {
        "description" : "Get all of the required query metadata for the cards on dashboard.",
        "operationId" : "get-api-dashboard-id-query_metadata",
        "parameters" : [ {
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "anyOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "description" : "String must be a valid 21-character NanoID string.",
              "pattern" : "^[A-Za-z0-9_\\-]{21}$",
              "type" : "string"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}/query_metadata",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/dashboard/{id}/related" : {
      "get" : {
        "description" : "Return related entities.",
        "operationId" : "get-api-dashboard-id-related",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/dashboard/{id}/related",
        "tags" : [ "/api/dashboard" ]
      }
    },
    "/api/data-studio/table/discard-values" : {
      "post" : {
        "description" : "Batch version of /table/:id/discard_values. Takes an abstract table selection as /table/edit does.",
        "operationId" : "post-api-data-studio-table-discard-values",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/data-studio/table/discard-values",
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/edit" : {
      "post" : {
        "description" : "Bulk updating tables.",
        "operationId" : "post-api-data-studio-table-edit",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "additionalProperties" : false,
                "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"
                    } ]
                  },
                  "data_source" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.data-studio.api.table.data-sources"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "database_ids" : {
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "type" : "array"
                  },
                  "entity_type" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_email" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "owner_user_id" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "schema_ids" : {
                    "items" : {
                      "type" : "string"
                    },
                    "type" : "array"
                  },
                  "table_ids" : {
                    "items" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "type" : "array"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "additionalProperties" : false,
                  "properties" : { },
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/data-studio/table/edit",
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/rescan-values" : {
      "post" : {
        "description" : "Batch version of /table/:id/rescan_values. Takes an abstract table selection as /table/edit does.",
        "operationId" : "post-api-data-studio-table-rescan-values",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/data-studio/table/rescan-values",
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/selection" : {
      "post" : {
        "description" : "Gets information about selected tables",
        "operationId" : "post-api-data-studio-table-selection",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.data-studio.api.table.bulk-table-selection-info"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/data-studio/table/selection",
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/data-studio/table/sync-schema" : {
      "post" : {
        "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.",
        "operationId" : "post-api-data-studio-table-sync-schema",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/data-studio/table/sync-schema",
        "tags" : [ "/api/data-studio/table" ]
      }
    },
    "/api/database" : {
      "get" : {
        "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.",
        "operationId" : "get-api-database",
        "parameters" : [ {
          "description" : "include must be either empty or the value 'tables'",
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "const" : "tables"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "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.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "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"
          }
        },
        "summary" : "GET /api/database",
        "tags" : [ "/api/database" ]
      },
      "post" : {
        "description" : "Add a new `Database`.",
        "operationId" : "post-api-database",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "auto_run_queries" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "connection_source" : {
                    "default" : "admin",
                    "oneOf" : [ {
                      "enum" : [ "admin", "setup" ],
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "description" : "Value must be a map.",
                    "properties" : { },
                    "type" : "object"
                  },
                  "engine" : {
                    "description" : "value must be a valid database engine.",
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "is_full_sync" : {
                    "default" : true,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "is_on_demand" : {
                    "default" : false,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "provider_name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "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" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/sample_database" : {
      "post" : {
        "description" : "Add the sample database as a new `Database`.",
        "operationId" : "post-api-database-sample_database",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database/sample_database",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/validate" : {
      "post" : {
        "description" : "Validate that we can connect to a database given a set of details.",
        "operationId" : "post-api-database-validate",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "details" : {
                    "properties" : {
                      "details" : {
                        "properties" : { },
                        "type" : "object"
                      },
                      "engine" : {
                        "description" : "value must be a valid database engine.",
                        "minLength" : 1,
                        "type" : "string"
                      }
                    },
                    "required" : [ "engine", "details" ],
                    "type" : "object"
                  }
                },
                "required" : [ "details" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database/validate",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}" : {
      "delete" : {
        "description" : "Delete a `Database`.",
        "operationId" : "delete-api-database-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/database/{id}",
        "tags" : [ "/api/database" ]
      },
      "get" : {
        "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.",
        "operationId" : "get-api-database-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "include",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "tables", "tables.fields" ],
              "type" : "string"
            }, {
              "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"
          }
        },
        "summary" : "GET /api/database/{id}",
        "tags" : [ "/api/database" ]
      },
      "put" : {
        "description" : "Update a `Database`.",
        "operationId" : "put-api-database-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "auto_run_queries" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cache_ttl" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "caveats" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "description" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "details" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "properties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "engine" : {
                    "oneOf" : [ {
                      "description" : "value must be a valid database engine.",
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "points_of_interest" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "provider_name" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "refingerprint" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "schedules" : {
                    "oneOf" : [ {
                      "$ref" : "#/components/schemas/metabase.sync.schedules.ExpandedSchedulesMap"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "settings" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "properties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "write_data_details" : {
                    "oneOf" : [ {
                      "description" : "Value must be a map.",
                      "properties" : { },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/database/{id}",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/autocomplete_suggestions" : {
      "get" : {
        "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\"]`",
        "operationId" : "get-api-database-id-autocomplete_suggestions",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "prefix",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "substring",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "minLength" : 1,
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/autocomplete_suggestions",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/card_autocomplete_suggestions" : {
      "get" : {
        "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. {{#...}}.",
        "operationId" : "get-api-database-id-card_autocomplete_suggestions",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "query",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/database/{id}/card_autocomplete_suggestions",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/discard_values" : {
      "post" : {
        "description" : "Discards all saved field values for this `Database`.",
        "operationId" : "post-api-database-id-discard_values",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database/{id}/discard_values",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/dismiss_spinner" : {
      "post" : {
        "description" : "Manually set the initial sync status of the `Database` and corresponding\n  tables to be `complete` (see #20863)",
        "operationId" : "post-api-database-id-dismiss_spinner",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database/{id}/dismiss_spinner",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/fields" : {
      "get" : {
        "description" : "Get a list of all `Fields` in `Database`.",
        "operationId" : "get-api-database-id-fields",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/fields",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/healthcheck" : {
      "get" : {
        "description" : "Reports whether the database can currently connect",
        "operationId" : "get-api-database-id-healthcheck",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/database/{id}/healthcheck",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/idfields" : {
      "get" : {
        "description" : "Get a list of all primary key `Fields` for `Database`.",
        "operationId" : "get-api-database-id-idfields",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/idfields",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/metadata" : {
      "get" : {
        "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.",
        "operationId" : "get-api-database-id-metadata",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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"
          }
        },
        "summary" : "GET /api/database/{id}/metadata",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/rescan_values" : {
      "post" : {
        "description" : "Trigger a manual scan of the field values for this `Database`.",
        "operationId" : "post-api-database-id-rescan_values",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database/{id}/rescan_values",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/schema" : {
      "get" : {
        "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",
        "operationId" : "get-api-database-id-schema",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_measures",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/schema",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/schema/{schema}" : {
      "get" : {
        "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",
        "operationId" : "get-api-database-id-schema-schema",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "schema",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        }, {
          "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"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include_measures",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "boolean"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/schema/{schema}",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/schemas" : {
      "get" : {
        "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",
        "operationId" : "get-api-database-id-schemas",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "type" : "string"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/schemas",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/settings-available" : {
      "get" : {
        "description" : "Get all database-local settings and their availability for the given database.",
        "operationId" : "get-api-database-id-settings-available",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "settings" : {
                      "$ref" : "#/components/schemas/metabase.warehouses-rest.api.available-settings"
                    }
                  },
                  "required" : [ "settings" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/settings-available",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/sync_schema" : {
      "post" : {
        "description" : "Trigger a manual update of the schema metadata for this `Database`.",
        "operationId" : "post-api-database-id-sync_schema",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/database/{id}/sync_schema",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/syncable_schemas" : {
      "get" : {
        "description" : "Returns a list of all syncable schemas found for the database `id`.",
        "operationId" : "get-api-database-id-syncable_schemas",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/syncable_schemas",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{id}/usage_info" : {
      "get" : {
        "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.",
        "operationId" : "get-api-database-id-usage_info",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{id}/usage_info",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/datasets" : {
      "get" : {
        "description" : "Returns a list of all the datasets found for the saved questions virtual database.",
        "operationId" : "get-api-database-virtual-db-datasets",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{virtual-db}/datasets",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/datasets/{schema}" : {
      "get" : {
        "description" : "Returns a list of Tables for the datasets virtual database.",
        "operationId" : "get-api-database-virtual-db-datasets-schema",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{virtual-db}/datasets/{schema}",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/metadata" : {
      "get" : {
        "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.",
        "operationId" : "get-api-database-virtual-db-metadata",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{virtual-db}/metadata",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/schema/{schema}" : {
      "get" : {
        "description" : "Returns a list of Tables for the saved questions virtual database.",
        "operationId" : "get-api-database-virtual-db-schema-schema",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{virtual-db}/schema/{schema}",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/database/{virtual-db}/schemas" : {
      "get" : {
        "description" : "Returns a list of all the schemas found for the saved questions virtual database.",
        "operationId" : "get-api-database-virtual-db-schemas",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/database/{virtual-db}/schemas",
        "tags" : [ "/api/database" ]
      }
    },
    "/api/dataset" : {
      "post" : {
        "description" : "Execute a query and retrieve the results in the usual format. The query will not use the cache.",
        "operationId" : "post-api-dataset",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "database" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/native" : {
      "post" : {
        "description" : "Fetch a native version of an MBQL query.",
        "operationId" : "post-api-dataset-native",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "database" : {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  },
                  "pretty" : {
                    "default" : true,
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "database", "pretty" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/native",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/parameter/remapping" : {
      "post" : {
        "description" : "Return the remapped parameter values for cards or dashboards that are being edited.",
        "operationId" : "post-api-dataset-parameter-remapping",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "field_ids" : {
                    "oneOf" : [ {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter" : {
                    "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
                  },
                  "value" : { }
                },
                "required" : [ "parameter", "value" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/parameter/remapping",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/parameter/search/{query}" : {
      "post" : {
        "description" : "Return parameter values for cards or dashboards that are being edited. Expects a query string at `?query=foo`.",
        "operationId" : "post-api-dataset-parameter-search-query",
        "parameters" : [ {
          "in" : "path",
          "name" : "query",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "field_ids" : {
                    "oneOf" : [ {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter" : {
                    "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
                  }
                },
                "required" : [ "parameter" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/parameter/search/{query}",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/parameter/values" : {
      "post" : {
        "description" : "Return parameter values for cards or dashboards that are being edited.",
        "operationId" : "post-api-dataset-parameter-values",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "field_ids" : {
                    "oneOf" : [ {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
                      },
                      "type" : "array"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "parameter" : {
                    "$ref" : "#/components/schemas/metabase.parameters.schema.parameter"
                  }
                },
                "required" : [ "parameter" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/parameter/values",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/pivot" : {
      "post" : {
        "description" : "Generate a pivoted dataset for an ad-hoc query",
        "operationId" : "post-api-dataset-pivot",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "database" : {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  }
                },
                "required" : [ "database" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/pivot",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/query_metadata" : {
      "post" : {
        "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.",
        "operationId" : "post-api-dataset-query_metadata",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "database" : {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  },
                  "settings" : {
                    "oneOf" : [ {
                      "properties" : {
                        "include_sensitive_fields" : {
                          "type" : "boolean"
                        }
                      },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "database" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/query_metadata",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/dataset/{export-format}" : {
      "post" : {
        "description" : "Execute a query and download the result data as a file in the specified format.",
        "operationId" : "post-api-dataset-export-format",
        "parameters" : [ {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "$ref" : "#/components/schemas/metabase.query-processor.schema.export-format"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "query" : {
                    "properties" : { },
                    "type" : "object"
                  },
                  "visualization_settings" : {
                    "default" : { },
                    "properties" : { },
                    "type" : "object"
                  }
                },
                "required" : [ "query", "visualization_settings", "format_rows", "pivot_results" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.query-processor.schema.query-result"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/dataset/{export-format}",
        "tags" : [ "/api/dataset" ]
      }
    },
    "/api/document" : {
      "get" : {
        "description" : "Gets existing `Documents`.",
        "operationId" : "get-api-document",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/document",
        "tags" : [ "/api/document" ]
      },
      "post" : {
        "description" : "Create a new `Document`.",
        "operationId" : "post-api-document",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "cards" : {
                    "oneOf" : [ {
                      "additionalProperties" : {
                        "properties" : {
                          "cache_ttl" : {
                            "oneOf" : [ {
                              "description" : "value must be an integer greater than zero.",
                              "minimum" : 1,
                              "type" : "integer"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "dataset_query" : {
                            "description" : "Value must be a map.",
                            "properties" : { },
                            "type" : "object"
                          },
                          "description" : {
                            "oneOf" : [ {
                              "minLength" : 1,
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display" : {
                            "minLength" : 1,
                            "type" : "string"
                          },
                          "entity_id" : {
                            "oneOf" : [ {
                              "minLength" : 1,
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "name" : {
                            "minLength" : 1,
                            "type" : "string"
                          },
                          "parameter_mappings" : {
                            "oneOf" : [ {
                              "items" : {
                                "description" : "Value must be a map.",
                                "properties" : { },
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "parameters" : {
                            "oneOf" : [ {
                              "items" : {
                                "description" : "Value must be a map.",
                                "properties" : { },
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "result_metadata" : {
                            "oneOf" : [ {
                              "items" : {
                                "description" : "Value must be a map.",
                                "properties" : { },
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "visualization_settings" : {
                            "description" : "Value must be a map.",
                            "properties" : { },
                            "type" : "object"
                          }
                        },
                        "required" : [ "name", "dataset_query", "display", "visualization_settings" ],
                        "type" : "object"
                      },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "document" : { },
                  "name" : {
                    "maxLength" : 254,
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "required" : [ "name", "document" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/document",
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/public" : {
      "get" : {
        "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.",
        "operationId" : "get-api-document-public",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "properties" : {
                      "id" : {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "name" : {
                        "type" : "string"
                      },
                      "public_uuid" : {
                        "description" : "value must be a valid UUID.",
                        "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}",
                        "type" : "string"
                      }
                    },
                    "required" : [ "name", "id", "public_uuid" ],
                    "type" : "object"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/document/public",
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{document-id}" : {
      "delete" : {
        "description" : "Permanently deletes an archived Document.",
        "operationId" : "delete-api-document-document-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/document/{document-id}",
        "tags" : [ "/api/document" ]
      },
      "get" : {
        "description" : "Returns an existing Document by ID.",
        "operationId" : "get-api-document-document-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/document/{document-id}",
        "tags" : [ "/api/document" ]
      },
      "put" : {
        "description" : "Updates an existing `Document`.",
        "operationId" : "put-api-document-document-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "archived" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "cards" : {
                    "oneOf" : [ {
                      "additionalProperties" : {
                        "properties" : {
                          "cache_ttl" : {
                            "oneOf" : [ {
                              "description" : "value must be an integer greater than zero.",
                              "minimum" : 1,
                              "type" : "integer"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "dataset_query" : {
                            "description" : "Value must be a map.",
                            "properties" : { },
                            "type" : "object"
                          },
                          "description" : {
                            "oneOf" : [ {
                              "minLength" : 1,
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display" : {
                            "minLength" : 1,
                            "type" : "string"
                          },
                          "entity_id" : {
                            "oneOf" : [ {
                              "minLength" : 1,
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "name" : {
                            "minLength" : 1,
                            "type" : "string"
                          },
                          "parameter_mappings" : {
                            "oneOf" : [ {
                              "items" : {
                                "description" : "Value must be a map.",
                                "properties" : { },
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "parameters" : {
                            "oneOf" : [ {
                              "items" : {
                                "description" : "Value must be a map.",
                                "properties" : { },
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "result_metadata" : {
                            "oneOf" : [ {
                              "items" : {
                                "description" : "Value must be a map.",
                                "properties" : { },
                                "type" : "object"
                              },
                              "type" : "array"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "visualization_settings" : {
                            "description" : "Value must be a map.",
                            "properties" : { },
                            "type" : "object"
                          }
                        },
                        "required" : [ "name", "dataset_query", "display", "visualization_settings" ],
                        "type" : "object"
                      },
                      "type" : "object"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "document" : { },
                  "name" : {
                    "maxLength" : 254,
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/document/{document-id}",
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{document-id}/card/{card-id}/query/{export-format}" : {
      "post" : {
        "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)",
        "operationId" : "post-api-document-document-id-card-card-id-query-export-format",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "card-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "path",
          "name" : "export-format",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "format_rows" : {
                    "default" : false,
                    "type" : "boolean"
                  },
                  "parameters" : {
                    "oneOf" : [ {
                      "anyOf" : [ {
                        "items" : {
                          "description" : "Value must be a map.",
                          "properties" : { },
                          "type" : "object"
                        },
                        "type" : "array"
                      }, {
                        "description" : "value must be a valid JSON string.",
                        "type" : "string"
                      } ]
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "pivot_results" : {
                    "default" : false,
                    "type" : "boolean"
                  }
                },
                "required" : [ "format_rows", "pivot_results" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/document/{document-id}/card/{card-id}/query/{export-format}",
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{document-id}/public-link" : {
      "delete" : {
        "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.",
        "operationId" : "delete-api-document-document-id-public-link",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/document/{document-id}/public-link",
        "tags" : [ "/api/document" ]
      },
      "post" : {
        "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.",
        "operationId" : "post-api-document-document-id-public-link",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "uuid" : {
                      "description" : "value must be a valid UUID.",
                      "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}",
                      "type" : "string"
                    }
                  },
                  "required" : [ "uuid" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/document/{document-id}/public-link",
        "tags" : [ "/api/document" ]
      }
    },
    "/api/document/{from-document-id}/copy" : {
      "post" : {
        "description" : "Copy a Document.",
        "operationId" : "post-api-document-from-document-id-copy",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "from-document-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "collection_id" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "collection_position" : {
                    "oneOf" : [ {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "name" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase.documents.schema.document"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/document/{from-document-id}/copy",
        "tags" : [ "/api/document" ]
      }
    },
    "/api/ee/action-v2/execute" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-action-v2-execute",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "action" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-id-or-expression"
                  },
                  "input" : {
                    "properties" : { },
                    "type" : "object"
                  },
                  "params" : {
                    "properties" : { },
                    "type" : "object"
                  },
                  "scope" : {
                    "$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
                  }
                },
                "required" : [ "action", "scope" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/action-v2/execute",
        "tags" : [ "/api/ee/action-v2" ]
      }
    },
    "/api/ee/action-v2/execute-bulk" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-action-v2-execute-bulk",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "action" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.action-v2.api.api-action-id-or-expression"
                  },
                  "inputs" : {
                    "items" : {
                      "properties" : { },
                      "type" : "object"
                    },
                    "minItems" : 1,
                    "type" : "array"
                  },
                  "params" : {
                    "additionalProperties" : { },
                    "type" : "object"
                  },
                  "scope" : {
                    "$ref" : "#/components/schemas/metabase.actions.types..scope.raw"
                  }
                },
                "required" : [ "action", "scope", "inputs" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/action-v2/execute-bulk",
        "tags" : [ "/api/ee/action-v2" ]
      }
    },
    "/api/ee/action-v2/execute-form" : {
      "post" : {
        "description" : "Temporary endpoint for describing an actions parameters\n  such that they can be presented correctly in a modal ahead of execution.",
        "operationId" : "post-api-ee-action-v2-execute-form",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/action-v2/execute-form",
        "tags" : [ "/api/ee/action-v2" ]
      }
    },
    "/api/ee/advanced-permissions/application/graph" : {
      "get" : {
        "description" : "Fetch a graph of Application Permissions.",
        "operationId" : "get-api-ee-advanced-permissions-application-graph",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/advanced-permissions/application/graph",
        "tags" : [ "/api/ee/advanced-permissions/application" ]
      },
      "put" : {
        "description" : "Do a batch update of Application Permissions by passing a modified graph.",
        "operationId" : "put-api-ee-advanced-permissions-application-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"
            } ]
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : { },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/advanced-permissions/application/graph",
        "tags" : [ "/api/ee/advanced-permissions/application" ]
      }
    },
    "/api/ee/advanced-permissions/impersonation" : {
      "get" : {
        "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.",
        "operationId" : "get-api-ee-advanced-permissions-impersonation",
        "parameters" : [ {
          "in" : "query",
          "name" : "group_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "db_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/advanced-permissions/impersonation",
        "tags" : [ "/api/ee/advanced-permissions/impersonation" ]
      }
    },
    "/api/ee/advanced-permissions/impersonation/{id}" : {
      "delete" : {
        "description" : "Delete a Connection Impersonation entry.",
        "operationId" : "delete-api-ee-advanced-permissions-impersonation-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/advanced-permissions/impersonation/{id}",
        "tags" : [ "/api/ee/advanced-permissions/impersonation" ]
      }
    },
    "/api/ee/ai-controls/permissions" : {
      "get" : {
        "description" : "List all metabot permissions for all groups, filling in defaults for missing entries.",
        "operationId" : "get-api-ee-ai-controls-permissions",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "advanced" : {
                      "type" : "boolean"
                    },
                    "permissions" : {
                      "items" : {
                        "properties" : {
                          "group_id" : {
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "perm_type" : {
                            "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ],
                            "type" : "string"
                          },
                          "perm_value" : {
                            "enum" : [ "yes", "no" ],
                            "type" : "string"
                          }
                        },
                        "required" : [ "group_id", "perm_type", "perm_value" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "permissions", "advanced" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/ai-controls/permissions",
        "tags" : [ "/api/ee/ai-controls/permissions" ]
      },
      "put" : {
        "description" : "Update metabot permissions for all groups. Upserts each permission entry and returns the full\n   permissions list with defaults filled in.",
        "operationId" : "put-api-ee-ai-controls-permissions",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "permissions" : {
                    "items" : {
                      "properties" : {
                        "group_id" : {
                          "minimum" : 1,
                          "type" : "integer"
                        },
                        "perm_type" : {
                          "enum" : [ "permission/metabot-nlq", "permission/metabot-sql-generation", "permission/metabot-other-tools", "permission/metabot" ],
                          "type" : "string"
                        },
                        "perm_value" : {
                          "enum" : [ "yes", "no" ],
                          "type" : "string"
                        }
                      },
                      "required" : [ "group_id", "perm_type", "perm_value" ],
                      "type" : "object"
                    },
                    "type" : "array"
                  }
                },
                "required" : [ "permissions" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "advanced" : {
                      "type" : "boolean"
                    },
                    "permissions" : {
                      "items" : {
                        "properties" : {
                          "group_id" : {
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "perm_type" : {
                            "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ],
                            "type" : "string"
                          },
                          "perm_value" : {
                            "enum" : [ "yes", "no" ],
                            "type" : "string"
                          }
                        },
                        "required" : [ "group_id", "perm_type", "perm_value" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "permissions", "advanced" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/ai-controls/permissions",
        "tags" : [ "/api/ee/ai-controls/permissions" ]
      }
    },
    "/api/ee/ai-controls/permissions/advanced" : {
      "delete" : {
        "description" : "Switch back to simple permissions. Removes any custom permissions from all specific groups, keeping only Admins and All Users.",
        "operationId" : "delete-api-ee-ai-controls-permissions-advanced",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "advanced" : {
                      "type" : "boolean"
                    },
                    "permissions" : {
                      "items" : {
                        "properties" : {
                          "group_id" : {
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "perm_type" : {
                            "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ],
                            "type" : "string"
                          },
                          "perm_value" : {
                            "enum" : [ "yes", "no" ],
                            "type" : "string"
                          }
                        },
                        "required" : [ "group_id", "perm_type", "perm_value" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "permissions", "advanced" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/ai-controls/permissions/advanced",
        "tags" : [ "/api/ee/ai-controls/permissions" ]
      },
      "post" : {
        "description" : "Switch to advanced group-level permissions. Removes any custom permissions from the All Users group.",
        "operationId" : "post-api-ee-ai-controls-permissions-advanced",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "advanced" : {
                      "type" : "boolean"
                    },
                    "permissions" : {
                      "items" : {
                        "properties" : {
                          "group_id" : {
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "perm_type" : {
                            "enum" : [ "permission/metabot", "permission/metabot-nlq", "permission/metabot-other-tools", "permission/metabot-sql-generation" ],
                            "type" : "string"
                          },
                          "perm_value" : {
                            "enum" : [ "yes", "no" ],
                            "type" : "string"
                          }
                        },
                        "required" : [ "group_id", "perm_type", "perm_value" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "permissions", "advanced" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/ai-controls/permissions/advanced",
        "tags" : [ "/api/ee/ai-controls/permissions" ]
      }
    },
    "/api/ee/ai-controls/usage/group" : {
      "get" : {
        "description" : "Get all group-level metabot usage limits.",
        "operationId" : "get-api-ee-ai-controls-usage-group",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "properties" : {
                      "group_id" : {
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "max_usage" : {
                        "minimum" : 0,
                        "type" : "integer"
                      }
                    },
                    "required" : [ "group_id", "max_usage" ],
                    "type" : "object"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/ai-controls/usage/group",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/group/{group-id}" : {
      "get" : {
        "description" : "Get the metabot usage limit for a specific group. Returns `max_usage: null` if no limit is set.",
        "operationId" : "get-api-ee-ai-controls-usage-group-group-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "group_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "max_usage" : {
                      "oneOf" : [ {
                        "minimum" : 0,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "group_id", "max_usage" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/ai-controls/usage/group/{group-id}",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      },
      "put" : {
        "description" : "Set or update the metabot usage limit for a specific group. Pass `max_usage: null` to remove the limit.",
        "operationId" : "put-api-ee-ai-controls-usage-group-group-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "group-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "max_usage" : {
                    "oneOf" : [ {
                      "minimum" : 0,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "max_usage" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "group_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "max_usage" : {
                      "oneOf" : [ {
                        "minimum" : 0,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "group_id", "max_usage" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/ai-controls/usage/group/{group-id}",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/instance" : {
      "get" : {
        "description" : "Get the instance-wide metabot usage limit. Returns `max_usage: null` if no limit is set (unlimited).",
        "operationId" : "get-api-ee-ai-controls-usage-instance",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "minimum" : 0,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "max_usage" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/ai-controls/usage/instance",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      },
      "put" : {
        "description" : "Set or update the instance-wide metabot usage limit. Pass `max_usage: null` to remove the limit (unlimited).",
        "operationId" : "put-api-ee-ai-controls-usage-instance",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "max_usage" : {
                    "oneOf" : [ {
                      "minimum" : 0,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "max_usage" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "minimum" : 0,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "max_usage" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/ai-controls/usage/instance",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/tenant" : {
      "get" : {
        "description" : "Get all tenant-level metabot usage limits.",
        "operationId" : "get-api-ee-ai-controls-usage-tenant",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "properties" : {
                      "max_usage" : {
                        "minimum" : 0,
                        "type" : "integer"
                      },
                      "tenant_id" : {
                        "minimum" : 1,
                        "type" : "integer"
                      }
                    },
                    "required" : [ "tenant_id", "max_usage" ],
                    "type" : "object"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/ai-controls/usage/tenant",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/ai-controls/usage/tenant/{tenant-id}" : {
      "get" : {
        "description" : "Get the metabot usage limit for a specific tenant. Returns `max_usage: null` if no limit is set.",
        "operationId" : "get-api-ee-ai-controls-usage-tenant-tenant-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "tenant-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "minimum" : 0,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tenant_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "tenant_id", "max_usage" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/ai-controls/usage/tenant/{tenant-id}",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      },
      "put" : {
        "description" : "Set or update the metabot usage limit for a specific tenant. Pass `max_usage: null` to remove the limit.",
        "operationId" : "put-api-ee-ai-controls-usage-tenant-tenant-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "tenant-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "max_usage" : {
                    "oneOf" : [ {
                      "minimum" : 0,
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "max_usage" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "max_usage" : {
                      "oneOf" : [ {
                        "minimum" : 0,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "tenant_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "tenant_id", "max_usage" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/ai-controls/usage/tenant/{tenant-id}",
        "tags" : [ "/api/ee/ai-controls/usage" ]
      }
    },
    "/api/ee/audit-app/analytics-dev/export" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-audit-app-analytics-dev-export",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "body" : { }
                  },
                  "required" : [ "body" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/audit-app/analytics-dev/export",
        "tags" : [ "/api/ee/audit-app/analytics-dev" ]
      }
    },
    "/api/ee/audit-app/user/audit-info" : {
      "get" : {
        "description" : "Gets audit info for the current user if he has permissions to access the audit collection.\n  Otherwise return an empty map.",
        "operationId" : "get-api-ee-audit-app-user-audit-info",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/audit-app/user/audit-info",
        "tags" : [ "/api/ee/audit-app/user" ]
      }
    },
    "/api/ee/audit-app/user/{id}/subscriptions" : {
      "delete" : {
        "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.",
        "operationId" : "delete-api-ee-audit-app-user-id-subscriptions",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/audit-app/user/{id}/subscriptions",
        "tags" : [ "/api/ee/audit-app/user" ]
      }
    },
    "/api/ee/billing" : {
      "get" : {
        "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.",
        "operationId" : "get-api-ee-billing",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/billing",
        "tags" : [ "/api/ee/billing" ]
      }
    },
    "/api/ee/cloud-add-ons/addons" : {
      "get" : {
        "description" : "Get addons information from the Metabase Store API.",
        "operationId" : "get-api-ee-cloud-add-ons-addons",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/cloud-add-ons/addons",
        "tags" : [ "/api/ee/cloud-add-ons" ]
      }
    },
    "/api/ee/cloud-add-ons/plans" : {
      "get" : {
        "description" : "Get plans information from the Metabase Store API.",
        "operationId" : "get-api-ee-cloud-add-ons-plans",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/cloud-add-ons/plans",
        "tags" : [ "/api/ee/cloud-add-ons" ]
      }
    },
    "/api/ee/cloud-add-ons/{product-type}" : {
      "delete" : {
        "description" : "Remove an add-on.",
        "operationId" : "delete-api-ee-cloud-add-ons-product-type",
        "parameters" : [ {
          "in" : "path",
          "name" : "product-type",
          "required" : true,
          "schema" : {
            "enum" : [ "metabase-ai", "metabase-ai-tiered", "metabase-ai-managed", "python-execution", "transforms", "transforms-basic", "transforms-advanced", "transforms-basic-metered", "transforms-advanced-metered" ],
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "body" : { },
                    "status" : {
                      "type" : "integer"
                    }
                  },
                  "required" : [ "status", "body" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/cloud-add-ons/{product-type}",
        "tags" : [ "/api/ee/cloud-add-ons" ]
      },
      "post" : {
        "description" : "Purchase an add-on.",
        "operationId" : "post-api-ee-cloud-add-ons-product-type",
        "parameters" : [ {
          "in" : "path",
          "name" : "product-type",
          "required" : true,
          "schema" : {
            "enum" : [ "metabase-ai", "metabase-ai-tiered", "metabase-ai-managed", "python-execution", "transforms", "transforms-basic", "transforms-advanced", "transforms-basic-metered", "transforms-advanced-metered" ],
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "quantity" : {
                    "oneOf" : [ {
                      "type" : "integer"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "terms_of_service" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/cloud-add-ons/{product-type}",
        "tags" : [ "/api/ee/cloud-add-ons" ]
      }
    },
    "/api/ee/cloud-proxy/{operation-id}" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-cloud-proxy-operation-id",
        "parameters" : [ {
          "in" : "path",
          "name" : "operation-id",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "oneOf" : [ {
                  "properties" : { },
                  "type" : "object"
                }, {
                  "type" : "null"
                } ]
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/cloud-proxy/{operation-id}",
        "tags" : [ "/api/ee/cloud-proxy" ]
      }
    },
    "/api/ee/content-translation/csv" : {
      "get" : {
        "description" : "Provides content translation dictionary in CSV",
        "operationId" : "get-api-ee-content-translation-csv",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/content-translation/csv",
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/content-translation/dictionary" : {
      "get" : {
        "description" : "Fetch the content translation dictionary for authenticated users (auth-based embedding flows).",
        "operationId" : "get-api-ee-content-translation-dictionary",
        "parameters" : [ {
          "in" : "query",
          "name" : "locale",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "properties" : {
                          "locale" : {
                            "minLength" : 1,
                            "type" : "string"
                          },
                          "msgid" : {
                            "minLength" : 1,
                            "type" : "string"
                          },
                          "msgstr" : {
                            "type" : "string"
                          }
                        },
                        "required" : [ "locale", "msgid", "msgstr" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "data" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/content-translation/dictionary",
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/content-translation/dictionary/{token}" : {
      "get" : {
        "description" : "Fetch the content translation dictionary via a JSON Web Token signed with the `embedding-secret-key`.",
        "operationId" : "get-api-ee-content-translation-dictionary-token",
        "parameters" : [ {
          "in" : "path",
          "name" : "token",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/content-translation/dictionary/{token}",
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/content-translation/upload-dictionary" : {
      "post" : {
        "description" : "Upload a CSV of content translations",
        "operationId" : "post-api-ee-content-translation-upload-dictionary",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "properties" : {
                  "file" : {
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ],
                    "type" : "object"
                  }
                },
                "required" : [ "file" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/content-translation/upload-dictionary",
        "tags" : [ "/api/ee/content-translation" ]
      }
    },
    "/api/ee/custom-viz-plugin" : {
      "get" : {
        "description" : "List all registered custom visualization plugins.",
        "operationId" : "get-api-ee-custom-viz-plugin",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "properties" : {
                      "bundle_hash" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "created_at" : { },
                      "dev_bundle_url" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "dev_only" : {
                        "type" : "boolean"
                      },
                      "display_name" : {
                        "minLength" : 1,
                        "type" : "string"
                      },
                      "enabled" : {
                        "type" : "boolean"
                      },
                      "error_message" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "icon" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "identifier" : {
                        "minLength" : 1,
                        "type" : "string"
                      },
                      "manifest" : {
                        "oneOf" : [ { }, {
                          "type" : "null"
                        } ]
                      },
                      "metabase_version" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "status" : {
                        "enum" : [ "active", "error" ],
                        "type" : "string"
                      },
                      "updated_at" : { }
                    },
                    "required" : [ "id", "display_name", "identifier", "status", "enabled", "dev_only", "created_at", "updated_at" ],
                    "type" : "object"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/custom-viz-plugin",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      },
      "post" : {
        "description" : "Register a new custom visualization plugin from an uploaded tar.gz bundle.\n\n  The archive must contain `metabase-plugin.json` at the root and\n  `dist/index.js` for the JS bundle, plus any whitelisted assets under\n  `dist/assets/`. The plugin's `identifier` is taken from the manifest's `name`\n  field.",
        "operationId" : "post-api-ee-custom-viz-plugin",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "properties" : {
                  "file" : {
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ],
                    "type" : "object"
                  }
                },
                "required" : [ "file" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "bundle_hash" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "created_at" : { },
                    "dev_bundle_url" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "dev_only" : {
                      "type" : "boolean"
                    },
                    "display_name" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "enabled" : {
                      "type" : "boolean"
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "icon" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "identifier" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "manifest" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "metabase_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "enum" : [ "active", "error" ],
                      "type" : "string"
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "display_name", "identifier", "status", "enabled", "dev_only", "created_at", "updated_at" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/custom-viz-plugin",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/dev" : {
      "post" : {
        "description" : "Register a dev-only custom visualization plugin from a local dev server.\n   No bundle upload is required — files are served from the dev server URL.\n   Requires custom viz plugin dev mode to be enabled.",
        "operationId" : "post-api-ee-custom-viz-plugin-dev",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "dev_bundle_url" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "identifier" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "dev_bundle_url" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "bundle_hash" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "created_at" : { },
                    "dev_bundle_url" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "dev_only" : {
                      "type" : "boolean"
                    },
                    "display_name" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "enabled" : {
                      "type" : "boolean"
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "icon" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "identifier" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "manifest" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "metabase_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "enum" : [ "active", "error" ],
                      "type" : "string"
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "display_name", "identifier", "status", "enabled", "dev_only", "created_at", "updated_at" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/custom-viz-plugin/dev",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/list" : {
      "get" : {
        "description" : "List active and enabled custom visualization plugins. Available to any authenticated user.\n   Plugins with incompatible Metabase version requirements are excluded.\n   Dev-only plugins are excluded when dev mode is disabled.",
        "operationId" : "get-api-ee-custom-viz-plugin-list",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "properties" : {
                      "bundle_hash" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "bundle_url" : {
                        "minLength" : 1,
                        "type" : "string"
                      },
                      "dev_bundle_url" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "display_name" : {
                        "minLength" : 1,
                        "type" : "string"
                      },
                      "icon" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "description" : "value must be an integer greater than zero.",
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "identifier" : {
                        "minLength" : 1,
                        "type" : "string"
                      },
                      "manifest" : {
                        "oneOf" : [ { }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "identifier", "display_name", "bundle_url" ],
                    "type" : "object"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/custom-viz-plugin/list",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/{id}" : {
      "delete" : {
        "description" : "Remove a custom visualization plugin and evict its on-disk cache.",
        "operationId" : "delete-api-ee-custom-viz-plugin-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/custom-viz-plugin/{id}",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      },
      "put" : {
        "description" : "Update a custom visualization plugin. Currently only `enabled` may be toggled.",
        "operationId" : "put-api-ee-custom-viz-plugin-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "enabled" : {
                    "oneOf" : [ {
                      "type" : "boolean"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "bundle_hash" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "created_at" : { },
                    "dev_bundle_url" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "dev_only" : {
                      "type" : "boolean"
                    },
                    "display_name" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "enabled" : {
                      "type" : "boolean"
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "icon" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "identifier" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "manifest" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "metabase_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "enum" : [ "active", "error" ],
                      "type" : "string"
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "display_name", "identifier", "status", "enabled", "dev_only", "created_at", "updated_at" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/custom-viz-plugin/{id}",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/{id}/asset" : {
      "get" : {
        "description" : "Serve a static image asset from the plugin's bundle.\n   The asset path is passed as a `path` query parameter (e.g. `?path=icon.svg`)\n   and must match an entry in the manifest's `assets` whitelist.\n   Only image files are served.\n   In dev mode, proxies from the dev base URL if set.",
        "operationId" : "get-api-ee-custom-viz-plugin-id-asset",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "path",
          "required" : true,
          "schema" : {
            "minLength" : 1,
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : { }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/custom-viz-plugin/{id}/asset",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/{id}/bundle" : {
      "get" : {
        "description" : "Serve the JS bundle for a plugin from the on-disk cache.\n   Returns application/javascript with ETag and Cache-Control headers.\n   In dev mode, proxies from `dev_bundle_url` if set.",
        "operationId" : "get-api-ee-custom-viz-plugin-id-bundle",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : { }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/custom-viz-plugin/{id}/bundle",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      },
      "put" : {
        "description" : "Replace the bundle for an existing plugin. Accepts a multipart tar.gz upload in\n   the same format as the `POST /` endpoint. The manifest's `name` field must\n   match the plugin's existing `identifier`.",
        "operationId" : "put-api-ee-custom-viz-plugin-id-bundle",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "properties" : {
                  "file" : {
                    "properties" : {
                      "filename" : {
                        "type" : "string"
                      },
                      "tempfile" : { }
                    },
                    "required" : [ "filename", "tempfile" ],
                    "type" : "object"
                  }
                },
                "required" : [ "file" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "bundle_hash" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "created_at" : { },
                    "dev_bundle_url" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "dev_only" : {
                      "type" : "boolean"
                    },
                    "display_name" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "enabled" : {
                      "type" : "boolean"
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "icon" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "identifier" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "manifest" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "metabase_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "enum" : [ "active", "error" ],
                      "type" : "string"
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "display_name", "identifier", "status", "enabled", "dev_only", "created_at", "updated_at" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/custom-viz-plugin/{id}/bundle",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/{id}/dev-sse" : {
      "get" : {
        "description" : "Proxy Server-Sent Events from the plugin's dev server.\n   Connects to `{dev_bundle_url}/__sse` and forwards events to the browser.\n   This avoids the need for a CSP exception for the dev server origin.\n   Requires custom viz plugin dev mode to be enabled.",
        "operationId" : "get-api-ee-custom-viz-plugin-id-dev-sse",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : { }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/custom-viz-plugin/{id}/dev-sse",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/{id}/dev-url" : {
      "put" : {
        "description" : "Set or clear the dev base URL for a plugin (e.g. `http://localhost:5174`).\n   The bundle is fetched from `{base}/index.js` and assets from `{base}/assets/{name}`.\n   Persisted to the database so it survives server restarts.\n   Requires custom viz plugin dev mode to be enabled.",
        "operationId" : "put-api-ee-custom-viz-plugin-id-dev-url",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "dev_bundle_url" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "required" : [ "dev_bundle_url" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "dev_bundle_url" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "dev_bundle_url" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/custom-viz-plugin/{id}/dev-url",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/custom-viz-plugin/{id}/refresh" : {
      "post" : {
        "description" : "Re-fetch the manifest from the dev server for a dev-only plugin. For uploaded\n   plugins this is a no-op — to update an upload-backed plugin, PUT a new bundle\n   to `/:id/bundle`.",
        "operationId" : "post-api-ee-custom-viz-plugin-id-refresh",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "bundle_hash" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "created_at" : { },
                    "dev_bundle_url" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "dev_only" : {
                      "type" : "boolean"
                    },
                    "display_name" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "enabled" : {
                      "type" : "boolean"
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "icon" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "identifier" : {
                      "minLength" : 1,
                      "type" : "string"
                    },
                    "manifest" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "metabase_version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "enum" : [ "active", "error" ],
                      "type" : "string"
                    },
                    "updated_at" : { }
                  },
                  "required" : [ "id", "display_name", "identifier", "status", "enabled", "dev_only", "created_at", "updated_at" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/custom-viz-plugin/{id}/refresh",
        "tags" : [ "/api/ee/custom-viz-plugin" ]
      }
    },
    "/api/ee/data-complexity-score/complexity" : {
      "get" : {
        "description" : "Return the most recently stored Data Complexity Score for this instance.\n  Pass `force-recalculation=true` to recompute, persist, and return a fresh score.\n  Superuser-only.",
        "operationId" : "get-api-ee-data-complexity-score-complexity",
        "parameters" : [ {
          "in" : "query",
          "name" : "force-recalculation",
          "required" : true,
          "schema" : {
            "default" : false,
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "library" : {
                      "properties" : {
                        "components" : {
                          "properties" : {
                            "entity_count" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "field_count" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "name_collisions" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "repeated_measures" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "synonym_pairs" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            }
                          },
                          "required" : [ "entity_count", "name_collisions", "synonym_pairs", "field_count", "repeated_measures" ],
                          "type" : "object"
                        },
                        "total" : {
                          "oneOf" : [ {
                            "minimum" : 0,
                            "type" : "integer"
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "total", "components" ],
                      "type" : "object"
                    },
                    "meta" : {
                      "properties" : {
                        "calculated_at" : { },
                        "embedding_model" : {
                          "oneOf" : [ {
                            "properties" : {
                              "model_name" : {
                                "type" : "string"
                              },
                              "provider" : {
                                "type" : "string"
                              }
                            },
                            "required" : [ "provider", "model_name" ],
                            "type" : "object"
                          }, {
                            "type" : "null"
                          } ]
                        },
                        "formula_version" : {
                          "minimum" : 1,
                          "type" : "integer"
                        },
                        "synonym_threshold" : {
                          "type" : "number"
                        }
                      },
                      "required" : [ "formula_version", "synonym_threshold" ],
                      "type" : "object"
                    },
                    "metabot" : {
                      "properties" : {
                        "components" : {
                          "properties" : {
                            "entity_count" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "field_count" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "name_collisions" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "repeated_measures" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "synonym_pairs" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            }
                          },
                          "required" : [ "entity_count", "name_collisions", "synonym_pairs", "field_count", "repeated_measures" ],
                          "type" : "object"
                        },
                        "total" : {
                          "oneOf" : [ {
                            "minimum" : 0,
                            "type" : "integer"
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "total", "components" ],
                      "type" : "object"
                    },
                    "universe" : {
                      "properties" : {
                        "components" : {
                          "properties" : {
                            "entity_count" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "field_count" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "name_collisions" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "repeated_measures" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            },
                            "synonym_pairs" : {
                              "anyOf" : [ {
                                "additionalProperties" : false,
                                "properties" : {
                                  "measurement" : {
                                    "type" : "number"
                                  },
                                  "score" : {
                                    "minimum" : 0,
                                    "type" : "integer"
                                  }
                                },
                                "required" : [ "measurement", "score" ],
                                "type" : "object"
                              }, {
                                "additionalProperties" : false,
                                "properties" : {
                                  "error" : {
                                    "type" : "string"
                                  },
                                  "measurement" : {
                                    "type" : "null"
                                  },
                                  "score" : {
                                    "type" : "null"
                                  }
                                },
                                "required" : [ "measurement", "score", "error" ],
                                "type" : "object"
                              } ]
                            }
                          },
                          "required" : [ "entity_count", "name_collisions", "synonym_pairs", "field_count", "repeated_measures" ],
                          "type" : "object"
                        },
                        "total" : {
                          "oneOf" : [ {
                            "minimum" : 0,
                            "type" : "integer"
                          }, {
                            "type" : "null"
                          } ]
                        }
                      },
                      "required" : [ "total", "components" ],
                      "type" : "object"
                    }
                  },
                  "required" : [ "library", "universe", "metabot", "meta" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/data-complexity-score/complexity",
        "tags" : [ "/api/ee/data-complexity-score" ]
      }
    },
    "/api/ee/data-studio/table/publish-tables" : {
      "post" : {
        "description" : "Set collection for each of selected tables and all upstream dependencies recursively.",
        "operationId" : "post-api-ee-data-studio-table-publish-tables",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.data-studio.api.table.publish-table-selectors"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.data-studio.api.table.publish-tables-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/data-studio/table/publish-tables",
        "tags" : [ "/api/ee/data-studio/table" ]
      }
    },
    "/api/ee/data-studio/table/unpublish-tables" : {
      "post" : {
        "description" : "Unset collection for each of selected tables and all downstream dependents recursively.",
        "operationId" : "post-api-ee-data-studio-table-unpublish-tables",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.data-studio.api.table.table-selectors"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "null"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/data-studio/table/unpublish-tables",
        "tags" : [ "/api/ee/data-studio/table" ]
      }
    },
    "/api/ee/database-replication/connection/{database-id}" : {
      "delete" : {
        "description" : "Delete PG replication connection for the specified database.",
        "operationId" : "delete-api-ee-database-replication-connection-database-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "database-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/database-replication/connection/{database-id}",
        "tags" : [ "/api/ee/database-replication" ]
      },
      "post" : {
        "description" : "Create a new PG replication connection for the specified database.",
        "operationId" : "post-api-ee-database-replication-connection-database-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "database-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "replicationSchemaFilters" : {
                    "properties" : {
                      "schema-filters-patterns" : {
                        "type" : "string"
                      },
                      "schema-filters-type" : {
                        "enum" : [ "inclusion", "exclusion", "all" ],
                        "type" : "string"
                      }
                    },
                    "required" : [ "schema-filters-type", "schema-filters-patterns" ],
                    "type" : "object"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/database-replication/connection/{database-id}",
        "tags" : [ "/api/ee/database-replication" ]
      }
    },
    "/api/ee/database-replication/connection/{database-id}/preview" : {
      "post" : {
        "description" : "Return info about pg-replication connection that is about to be created.",
        "operationId" : "post-api-ee-database-replication-connection-database-id-preview",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "database-id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "replicationSchemaFilters" : {
                    "properties" : {
                      "schema-filters-patterns" : {
                        "type" : "string"
                      },
                      "schema-filters-type" : {
                        "enum" : [ "inclusion", "exclusion", "all" ],
                        "type" : "string"
                      }
                    },
                    "required" : [ "schema-filters-type", "schema-filters-patterns" ],
                    "type" : "object"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/database-replication/connection/{database-id}/preview",
        "tags" : [ "/api/ee/database-replication" ]
      }
    },
    "/api/ee/database-routing/destination-database" : {
      "post" : {
        "description" : "Create new Destination Databases.\n\n  Note that unlike the normal `POST /api/database` endpoint, this endpoint does not test that the database is actually\n  reachable before adding it — destination details are not required to be valid at creation time, and an\n  unreachable destination is fine.",
        "operationId" : "post-api-ee-database-routing-destination-database",
        "parameters" : [ {
          "in" : "query",
          "name" : "check_connection_details",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "destinations" : {
                    "items" : {
                      "properties" : {
                        "details" : {
                          "description" : "Value must be a map.",
                          "properties" : { },
                          "type" : "object"
                        },
                        "name" : {
                          "minLength" : 1,
                          "type" : "string"
                        }
                      },
                      "required" : [ "name", "details" ],
                      "type" : "object"
                    },
                    "type" : "array"
                  },
                  "router_database_id" : {
                    "description" : "value must be an integer greater than zero.",
                    "minimum" : 1,
                    "type" : "integer"
                  }
                },
                "required" : [ "router_database_id", "destinations" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/database-routing/destination-database",
        "tags" : [ "/api/ee/database-routing" ]
      }
    },
    "/api/ee/database-routing/router-database/{id}" : {
      "put" : {
        "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`",
        "operationId" : "put-api-ee-database-routing-router-database-id",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "user_attribute" : {
                    "oneOf" : [ {
                      "minLength" : 1,
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/database-routing/router-database/{id}",
        "tags" : [ "/api/ee/database-routing" ]
      }
    },
    "/api/ee/dependencies/backfill-status" : {
      "get" : {
        "description" : "Returns whether the dependency backfill has pending work.\n  `complete` is true when there are no stale or outdated entities awaiting processing.",
        "operationId" : "get-api-ee-dependencies-backfill-status",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "complete" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "complete" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/dependencies/backfill-status",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/check-card" : {
      "post" : {
        "description" : "Check a proposed edit to a card, and return the card IDs for those cards this edit will break.",
        "operationId" : "post-api-ee-dependencies-check-card",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.card-body"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/dependencies/check-card",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/check-snippet" : {
      "post" : {
        "description" : "Check a proposed edit to a native snippet, and return the cards, etc. which will be broken.",
        "operationId" : "post-api-ee-dependencies-check-snippet",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "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" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/dependencies/check-snippet",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/check-transform" : {
      "post" : {
        "description" : "Check a proposed edit to a transform, and return the card, transform, etc. IDs for things that will break.",
        "operationId" : "post-api-ee-dependencies-check-transform",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.transform-body"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-cards-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/dependencies/check-transform",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph" : {
      "get" : {
        "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",
        "operationId" : "get-api-ee-dependencies-graph",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "query",
          "name" : "id",
          "required" : false,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.graph-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/dependencies/graph",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/breaking" : {
      "get" : {
        "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",
        "operationId" : "get-api-ee-dependencies-graph-breaking",
        "parameters" : [ {
          "in" : "query",
          "name" : "types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
            }, {
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              },
              "type" : "array"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "enum" : [ "question", "metric", "model" ],
              "type" : "string"
            }, {
              "items" : {
                "enum" : [ "question", "metric", "model" ],
                "type" : "string"
              },
              "type" : "array"
            } ]
          }
        }, {
          "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" : {
            "enum" : [ "dependents-with-errors", "dependents-errors", "name", "location" ],
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "enum" : [ "desc", "asc" ],
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
                      },
                      "type" : "array"
                    },
                    "limit" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "offset" : {
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "total" : {
                      "minimum" : 0,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "data", "total", "offset", "limit" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/dependencies/graph/breaking",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/broken" : {
      "get" : {
        "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)",
        "operationId" : "get-api-ee-dependencies-graph-broken",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "query",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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"
            }, {
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              },
              "type" : "array"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "dependent-card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "enum" : [ "question", "metric", "model" ],
              "type" : "string"
            }, {
              "items" : {
                "enum" : [ "question", "metric", "model" ],
                "type" : "string"
              },
              "type" : "array"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "include-personal-collections",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "in" : "query",
          "name" : "sort-column",
          "required" : false,
          "schema" : {
            "enum" : [ "name", "view-count", "location" ],
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "enum" : [ "desc", "asc" ],
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.broken-dependent-entity"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/dependencies/graph/broken",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/dependents" : {
      "get" : {
        "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)",
        "operationId" : "get-api-ee-dependencies-graph-dependents",
        "parameters" : [ {
          "description" : "value must be an integer greater than zero.",
          "in" : "query",
          "name" : "id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "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"
            }, {
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              },
              "type" : "array"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "dependent-card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "enum" : [ "question", "metric", "model" ],
              "type" : "string"
            }, {
              "items" : {
                "enum" : [ "question", "metric", "model" ],
                "type" : "string"
              },
              "type" : "array"
            } ]
          }
        }, {
          "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" : {
            "enum" : [ "name", "view-count", "location" ],
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "enum" : [ "desc", "asc" ],
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/dependencies/graph/dependents",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/dependencies/graph/unreferenced" : {
      "get" : {
        "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",
        "operationId" : "get-api-ee-dependencies-graph-unreferenced",
        "parameters" : [ {
          "in" : "query",
          "name" : "types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
            }, {
              "items" : {
                "$ref" : "#/components/schemas/metabase-enterprise.dependencies.dependency-types.dependency-types"
              },
              "type" : "array"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "card-types",
          "required" : false,
          "schema" : {
            "anyOf" : [ {
              "enum" : [ "question", "metric", "model" ],
              "type" : "string"
            }, {
              "items" : {
                "enum" : [ "question", "metric", "model" ],
                "type" : "string"
              },
              "type" : "array"
            } ]
          }
        }, {
          "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" : {
            "enum" : [ "dependents-with-errors", "dependents-errors", "name", "location" ],
            "type" : "string"
          }
        }, {
          "in" : "query",
          "name" : "sort-direction",
          "required" : false,
          "schema" : {
            "enum" : [ "desc", "asc" ],
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "$ref" : "#/components/schemas/metabase-enterprise.dependencies.api.entity"
                      },
                      "type" : "array"
                    },
                    "limit" : {
                      "description" : "value must be an integer greater than zero.",
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "offset" : {
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "total" : {
                      "minimum" : 0,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "data", "total", "offset", "limit" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/dependencies/graph/unreferenced",
        "tags" : [ "/api/ee/dependencies" ]
      }
    },
    "/api/ee/email/override" : {
      "delete" : {
        "description" : "Clear all cloud email related settings. You must be a superuser or have `setting` permission to do this.",
        "operationId" : "delete-api-ee-email-override",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/email/override",
        "tags" : [ "/api/ee/email" ]
      },
      "put" : {
        "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.",
        "operationId" : "put-api-ee-email-override",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "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"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/email/override",
        "tags" : [ "/api/ee/email" ]
      }
    },
    "/api/ee/embedding-hub/checklist" : {
      "get" : {
        "description" : "Get the embedding hub checklist status, indicating which setup steps have been completed.",
        "operationId" : "get-api-ee-embedding-hub-checklist",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "additionalProperties" : false,
                  "properties" : {
                    "checklist" : {
                      "additionalProperties" : false,
                      "properties" : {
                        "add-data" : {
                          "type" : "boolean"
                        },
                        "configure-row-column-security" : {
                          "type" : "boolean"
                        },
                        "create-dashboard" : {
                          "type" : "boolean"
                        },
                        "create-models" : {
                          "type" : "boolean"
                        },
                        "create-tenants" : {
                          "type" : "boolean"
                        },
                        "create-test-embed" : {
                          "type" : "boolean"
                        },
                        "data-permissions-and-enable-tenants" : {
                          "type" : "boolean"
                        },
                        "embed-production" : {
                          "type" : "boolean"
                        },
                        "enable-tenants" : {
                          "type" : "boolean"
                        },
                        "move-dashboard-to-shared" : {
                          "type" : "boolean"
                        },
                        "setup-data-segregation-strategy" : {
                          "type" : "boolean"
                        },
                        "sso-auth-manual-tested" : {
                          "type" : "boolean"
                        },
                        "sso-configured" : {
                          "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" ],
                      "type" : "object"
                    },
                    "data-isolation-strategy" : {
                      "oneOf" : [ {
                        "enum" : [ "row-column-level-security", "connection-impersonation", "database-routing" ],
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "checklist", "data-isolation-strategy" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/embedding-hub/checklist",
        "tags" : [ "/api/ee/embedding-hub" ]
      }
    },
    "/api/ee/gsheets/connection" : {
      "delete" : {
        "description" : "Disconnect the google service account. There is only one (or zero) at the time of writing.",
        "operationId" : "delete-api-ee-gsheets-connection",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "DELETE /api/ee/gsheets/connection",
        "tags" : [ "/api/ee/gsheets" ]
      },
      "get" : {
        "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`.",
        "operationId" : "get-api-ee-gsheets-connection",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/gsheets.response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/gsheets/connection",
        "tags" : [ "/api/ee/gsheets" ]
      },
      "post" : {
        "description" : "Hook up a new google drive folder or sheet that will be watched and have its content ETL'd into Metabase.",
        "operationId" : "post-api-ee-gsheets-connection",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "url" : {
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "required" : [ "url" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/gsheets.response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/gsheets/connection",
        "tags" : [ "/api/ee/gsheets" ]
      }
    },
    "/api/ee/gsheets/connection/sync" : {
      "post" : {
        "description" : "Force a sync of the connection now.\n\n  Returns the gsheets shape, with the attached datawarehouse db id at `:db_id`.",
        "operationId" : "post-api-ee-gsheets-connection-sync",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/gsheets/connection/sync",
        "tags" : [ "/api/ee/gsheets" ]
      }
    },
    "/api/ee/gsheets/service-account" : {
      "get" : {
        "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.",
        "operationId" : "get-api-ee-gsheets-service-account",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "email" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "email" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/gsheets/service-account",
        "tags" : [ "/api/ee/gsheets" ]
      }
    },
    "/api/ee/library" : {
      "get" : {
        "description" : "Get the Library. If no library exists, it doesn't fail but returns an empty response",
        "operationId" : "get-api-ee-library",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "anyOf" : [ {
                    "$ref" : "#/components/schemas/metabase.collections.schema.CollectionItem"
                  }, {
                    "properties" : {
                      "data" : {
                        "type" : "null"
                      }
                    },
                    "required" : [ "data" ],
                    "type" : "object"
                  } ]
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/library",
        "tags" : [ "/api/ee/library" ]
      },
      "post" : {
        "description" : "Creates the Library if it doesn't exist. Returns the created collection.\n\n  Requires data analyst or superuser permissions.",
        "operationId" : "post-api-ee-library",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/library",
        "tags" : [ "/api/ee/library" ]
      }
    },
    "/api/ee/library/tree" : {
      "get" : {
        "description" : "This matches /api/collection/tree but only returns the library collection.",
        "operationId" : "get-api-ee-library-tree",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/library/tree",
        "tags" : [ "/api/ee/library" ]
      }
    },
    "/api/ee/logs/query_execution/{yyyy-mm}" : {
      "get" : {
        "description" : "Fetch rows for the month specified by `:yyyy-mm` from the query_execution logs table.\n  Must be a superuser.",
        "operationId" : "get-api-ee-logs-query_execution-yyyy-mm",
        "parameters" : [ {
          "description" : "Must be a string like 2020-04 or 2222-11.",
          "in" : "path",
          "name" : "yyyy-mm",
          "required" : true,
          "schema" : {
            "pattern" : "\\d{4}-\\d{2}",
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/logs/query_execution/{yyyy-mm}",
        "tags" : [ "/api/ee/logs" ]
      }
    },
    "/api/ee/metabot-analytics/conversations" : {
      "get" : {
        "description" : "Return paginated list of AI conversations with summary statistics.",
        "operationId" : "get-api-ee-metabot-analytics-conversations",
        "parameters" : [ {
          "in" : "query",
          "name" : "sort_by",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "created_at", "message_count", "total_tokens" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "sort_dir",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "enum" : [ "asc", "desc" ],
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "user_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "group_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "tenant_id",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "description" : "value must be an integer greater than zero.",
              "minimum" : 1,
              "type" : "integer"
            }, {
              "type" : "null"
            } ]
          }
        }, {
          "in" : "query",
          "name" : "date",
          "required" : false,
          "schema" : {
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "null"
            } ]
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "properties" : {
                          "assistant_message_count" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "conversation_id" : {
                            "description" : "value must be a valid UUID.",
                            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}",
                            "type" : "string"
                          },
                          "created_at" : {
                            "format" : "date-time",
                            "type" : "string"
                          },
                          "embedding_hostname" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "embedding_path" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "ip_address" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "last_message_at" : {
                            "oneOf" : [ {
                              "format" : "date-time",
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "message_count" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "profile_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "query_count" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "sanitized_user_agent" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "search_count" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "summary" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "total_tokens" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          },
                          "user" : {
                            "oneOf" : [ {
                              "properties" : {
                                "email" : {
                                  "type" : "string"
                                },
                                "first_name" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "id" : {
                                  "description" : "value must be an integer greater than zero.",
                                  "minimum" : 1,
                                  "type" : "integer"
                                },
                                "last_name" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                }
                              },
                              "required" : [ "id", "email", "first_name", "last_name" ],
                              "type" : "object"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_agent" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_message_count" : {
                            "description" : "value must be an integer greater or equal to than zero.",
                            "minimum" : 0,
                            "type" : "integer"
                          }
                        },
                        "required" : [ "conversation_id", "created_at", "summary", "message_count", "user_message_count", "assistant_message_count", "total_tokens", "last_message_at", "profile_id", "search_count", "query_count", "ip_address", "embedding_hostname", "embedding_path", "user_agent", "sanitized_user_agent", "user" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    },
                    "limit" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "offset" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "total" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "data", "total", "limit", "offset" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/metabot-analytics/conversations",
        "tags" : [ "/api/ee/metabot-analytics" ]
      }
    },
    "/api/ee/metabot-analytics/conversations/{id}" : {
      "get" : {
        "description" : "Return full details for a specific conversation including all messages.",
        "operationId" : "get-api-ee-metabot-analytics-conversations-id",
        "parameters" : [ {
          "description" : "value must be a valid UUID.",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}",
            "type" : "string"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "chat_messages" : {
                      "items" : {
                        "properties" : { },
                        "type" : "object"
                      },
                      "type" : "array"
                    },
                    "conversation_id" : {
                      "description" : "value must be a valid UUID.",
                      "pattern" : "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}",
                      "type" : "string"
                    },
                    "created_at" : {
                      "format" : "date-time",
                      "type" : "string"
                    },
                    "embedding_hostname" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "embedding_path" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "feedback" : {
                      "items" : {
                        "properties" : {
                          "created_at" : {
                            "format" : "date-time",
                            "type" : "string"
                          },
                          "external_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "freeform_feedback" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "issue_type" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "message_id" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "positive" : {
                            "type" : "boolean"
                          },
                          "updated_at" : {
                            "format" : "date-time",
                            "type" : "string"
                          },
                          "user" : {
                            "oneOf" : [ {
                              "properties" : {
                                "email" : {
                                  "type" : "string"
                                },
                                "first_name" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                },
                                "id" : {
                                  "description" : "value must be an integer greater than zero.",
                                  "minimum" : 1,
                                  "type" : "integer"
                                },
                                "last_name" : {
                                  "oneOf" : [ {
                                    "type" : "string"
                                  }, {
                                    "type" : "null"
                                  } ]
                                }
                              },
                              "required" : [ "id", "email", "first_name", "last_name" ],
                              "type" : "object"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "user_id" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          }
                        },
                        "required" : [ "id", "message_id", "user_id", "external_id", "positive", "issue_type", "freeform_feedback", "created_at", "updated_at" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    },
                    "ip_address" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "message_count" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "profile_id" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "queries" : {
                      "items" : {
                        "properties" : {
                          "call_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "database_id" : {
                            "oneOf" : [ {
                              "description" : "value must be an integer greater than zero.",
                              "minimum" : 1,
                              "type" : "integer"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "mbql" : {
                            "oneOf" : [ {
                              "properties" : { },
                              "type" : "object"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "message_id" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "query_id" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "query_type" : {
                            "enum" : [ "sql", "notebook" ],
                            "type" : "string"
                          },
                          "sql" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "tables" : {
                            "items" : {
                              "type" : "string"
                            },
                            "type" : "array"
                          },
                          "tool" : {
                            "enum" : [ "construct_notebook_query", "create_sql_query", "edit_sql_query", "replace_sql_query" ],
                            "type" : "string"
                          }
                        },
                        "required" : [ "tool", "call_id", "message_id", "query_id", "query_type", "sql", "mbql", "display", "database_id", "tables" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    },
                    "query_count" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "sanitized_user_agent" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "search_count" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "slack_permalink" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "summary" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "total_tokens" : {
                      "description" : "value must be an integer greater or equal to than zero.",
                      "minimum" : 0,
                      "type" : "integer"
                    },
                    "user" : {
                      "oneOf" : [ {
                        "properties" : {
                          "email" : {
                            "type" : "string"
                          },
                          "first_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "description" : "value must be an integer greater than zero.",
                            "minimum" : 1,
                            "type" : "integer"
                          },
                          "last_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "email", "first_name", "last_name" ],
                        "type" : "object"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "user_agent" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "conversation_id", "created_at", "summary", "user", "message_count", "total_tokens", "profile_id", "slack_permalink", "chat_messages", "queries", "search_count", "query_count", "ip_address", "embedding_hostname", "embedding_path", "user_agent", "sanitized_user_agent", "feedback" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/metabot-analytics/conversations/{id}",
        "tags" : [ "/api/ee/metabot-analytics" ]
      }
    },
    "/api/ee/metabot/usage" : {
      "get" : {
        "description" : "Fetch current Metabot token usage for the current billing period.",
        "operationId" : "get-api-ee-metabot-usage",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "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" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/metabot/usage",
        "tags" : [ "/api/ee/metabot" ]
      }
    },
    "/api/ee/permission_debug" : {
      "get" : {
        "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    ```",
        "operationId" : "get-api-ee-permission_debug",
        "parameters" : [ {
          "in" : "query",
          "name" : "user_id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "value must be an integer greater than zero.",
          "in" : "query",
          "name" : "model_id",
          "required" : true,
          "schema" : {
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "in" : "query",
          "name" : "action_type",
          "required" : true,
          "schema" : {
            "enum" : [ "card/read", "card/query", "card/download-data" ],
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "additionalProperties" : false,
                "properties" : { },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.permission-debug.impl.perm-debug-info"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/permission_debug",
        "tags" : [ "/api/ee/permission_debug" ]
      }
    },
    "/api/ee/remote-sync/branches" : {
      "get" : {
        "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.",
        "operationId" : "get-api-ee-remote-sync-branches",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "items" : {
                      "items" : {
                        "type" : "string"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "items" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/remote-sync/branches",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/create-branch" : {
      "post" : {
        "description" : "Create a new branch from the current remote-sync branch and switches the current remote-sync branch to it.\n  Requires superuser permissions.",
        "operationId" : "post-api-ee-remote-sync-create-branch",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "name" : {
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "required" : [ "name" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    }
                  },
                  "required" : [ "status", "message" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/remote-sync/create-branch",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/current-task" : {
      "get" : {
        "description" : "Get the current sync task",
        "operationId" : "get-api-ee-remote-sync-current-task",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "oneOf" : [ {
                    "properties" : {
                      "cancelled" : {
                        "oneOf" : [ {
                          "type" : "boolean"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "conflicts" : {
                        "oneOf" : [ {
                          "items" : {
                            "type" : "string"
                          },
                          "type" : "array"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "ended_at" : {
                        "oneOf" : [ { }, {
                          "type" : "null"
                        } ]
                      },
                      "error_message" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "id" : {
                        "minimum" : 1,
                        "type" : "integer"
                      },
                      "initiated_by" : {
                        "oneOf" : [ {
                          "minimum" : 1,
                          "type" : "integer"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "last_progress_report_at" : {
                        "oneOf" : [ { }, {
                          "type" : "null"
                        } ]
                      },
                      "progress" : {
                        "oneOf" : [ {
                          "maximum" : 1.0,
                          "minimum" : 0.0,
                          "type" : "number"
                        }, {
                          "type" : "null"
                        } ]
                      },
                      "started_at" : { },
                      "status" : {
                        "enum" : [ "running", "successful", "errored", "cancelled", "timed-out", "conflict" ],
                        "type" : "string"
                      },
                      "sync_task_type" : {
                        "enum" : [ "import", "export" ],
                        "type" : "string"
                      },
                      "version" : {
                        "oneOf" : [ {
                          "type" : "string"
                        }, {
                          "type" : "null"
                        } ]
                      }
                    },
                    "required" : [ "id", "sync_task_type", "progress", "started_at", "status" ],
                    "type" : "object"
                  }, {
                    "type" : "null"
                  } ]
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/remote-sync/current-task",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/current-task/cancel" : {
      "post" : {
        "description" : "Cancels the current task if one is running",
        "operationId" : "post-api-ee-remote-sync-current-task-cancel",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "cancelled" : {
                      "oneOf" : [ {
                        "type" : "boolean"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "conflicts" : {
                      "oneOf" : [ {
                        "items" : {
                          "type" : "string"
                        },
                        "type" : "array"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "ended_at" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "error_message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    },
                    "initiated_by" : {
                      "oneOf" : [ {
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "last_progress_report_at" : {
                      "oneOf" : [ { }, {
                        "type" : "null"
                      } ]
                    },
                    "progress" : {
                      "oneOf" : [ {
                        "maximum" : 1.0,
                        "minimum" : 0.0,
                        "type" : "number"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "started_at" : { },
                    "status" : {
                      "enum" : [ "running", "successful", "errored", "cancelled", "timed-out", "conflict" ],
                      "type" : "string"
                    },
                    "sync_task_type" : {
                      "enum" : [ "import", "export" ],
                      "type" : "string"
                    },
                    "version" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "id", "sync_task_type", "progress", "started_at", "status" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/remote-sync/current-task/cancel",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/dirty" : {
      "get" : {
        "description" : "Return all models with changes that have not been pushed to the remote sync source in any\n  remote-synced collection.",
        "operationId" : "get-api-ee-remote-sync-dirty",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "dirty" : {
                      "items" : {
                        "properties" : {
                          "authority_level" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "collection_id" : {
                            "oneOf" : [ {
                              "minimum" : 1,
                              "type" : "integer"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "created_at" : { },
                          "description" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "display" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "id" : {
                            "type" : "integer"
                          },
                          "model" : {
                            "type" : "string"
                          },
                          "name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "query_type" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "sync_status" : {
                            "type" : "string"
                          },
                          "table_id" : {
                            "oneOf" : [ {
                              "minimum" : 1,
                              "type" : "integer"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "table_name" : {
                            "oneOf" : [ {
                              "type" : "string"
                            }, {
                              "type" : "null"
                            } ]
                          },
                          "updated_at" : {
                            "oneOf" : [ { }, {
                              "type" : "null"
                            } ]
                          }
                        },
                        "required" : [ "id", "name", "model", "sync_status" ],
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  },
                  "required" : [ "dirty" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/remote-sync/dirty",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/export" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-remote-sync-export",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "task_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "message", "task_id" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/remote-sync/export",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/has-remote-changes" : {
      "get" : {
        "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",
        "operationId" : "get-api-ee-remote-sync-has-remote-changes",
        "parameters" : [ {
          "in" : "query",
          "name" : "force-refresh",
          "required" : false,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "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" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/remote-sync/has-remote-changes",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/import" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-remote-sync-import",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "branch" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "force" : {
                    "type" : "boolean"
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "message" : {
                      "oneOf" : [ {
                        "type" : "string"
                      }, {
                        "type" : "null"
                      } ]
                    },
                    "status" : {
                      "const" : "success"
                    },
                    "task_id" : {
                      "oneOf" : [ {
                        "minimum" : 1,
                        "type" : "integer"
                      }, {
                        "type" : "null"
                      } ]
                    }
                  },
                  "required" : [ "status", "task_id" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/remote-sync/import",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/is-dirty" : {
      "get" : {
        "description" : "Check if any remote-synced collection or collection item has local changes that have not been pushed\n  to the remote sync source.",
        "operationId" : "get-api-ee-remote-sync-is-dirty",
        "parameters" : [ ],
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "is_dirty" : {
                      "type" : "boolean"
                    }
                  },
                  "required" : [ "is_dirty" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "GET /api/ee/remote-sync/is-dirty",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/settings" : {
      "put" : {
        "description" : "Update Remote Sync related settings. You must be a superuser to do this.",
        "operationId" : "put-api-ee-remote-sync-settings",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "collections" : {
                    "oneOf" : [ {
                      "additionalProperties" : {
                        "type" : "boolean"
                      },
                      "type" : "object"
                    }, {
                      "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" : [ {
                      "enum" : [ "read-only", "read-write" ],
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  },
                  "remote-sync-url" : {
                    "oneOf" : [ {
                      "type" : "string"
                    }, {
                      "type" : "null"
                    } ]
                  }
                },
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "success" : {
                      "type" : "boolean"
                    },
                    "task_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "success" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "PUT /api/ee/remote-sync/settings",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/remote-sync/stash" : {
      "post" : {
        "description" : "Stashes changes to a new branch, and changes the current branch to it.\n  Requires superuser permissions.",
        "operationId" : "post-api-ee-remote-sync-stash",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "properties" : {
                  "message" : {
                    "minLength" : 1,
                    "type" : "string"
                  },
                  "new_branch" : {
                    "minLength" : 1,
                    "type" : "string"
                  }
                },
                "required" : [ "new_branch", "message" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "message" : {
                      "type" : "string"
                    },
                    "status" : {
                      "type" : "string"
                    },
                    "task_id" : {
                      "minimum" : 1,
                      "type" : "integer"
                    }
                  },
                  "required" : [ "status", "message", "task_id" ],
                  "type" : "object"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/remote-sync/stash",
        "tags" : [ "/api/ee/remote-sync" ]
      }
    },
    "/api/ee/replacement/check-replace-source" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-replacement-check-replace-source",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "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" ],
                "type" : "object"
              }
            }
          }
        },
        "responses" : {
          "2XX" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/metabase-enterprise.replacement.schema.check-replace-source-response"
                }
              }
            },
            "description" : "Successful response"
          },
          "4XX" : {
            "description" : "Client error response"
          },
          "5XX" : {
            "description" : "Server error response"
          }
        },
        "summary" : "POST /api/ee/replacement/check-replace-source",
        "tags" : [ "/api/ee/replacement" ]
      }
    },
    "/api/ee/replacement/replace-model-with-transform" : {
      "post" : {
        "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.",
        "operationId" : "post-api-ee-replacement-replace-model-with-transform",
        "parameters" : [ ],
        "requestBody" : {
          "content" : {
            "application/jso

File truncated at 1 MB.