{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "operationId": "tables.listPresets",
  "schemas": {
    "input": {
      "type": "object",
      "properties": {
        "source": {
          "enum": [
            "word",
            "superdoc"
          ]
        },
        "group": {
          "enum": [
            "plain",
            "grid",
            "list",
            "convenience"
          ]
        },
        "query": {
          "type": "string"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 25
        },
        "offset": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "source": {
                "enum": [
                  "word",
                  "superdoc"
                ]
              },
              "group": {
                "enum": [
                  "plain",
                  "grid",
                  "list",
                  "convenience"
                ]
              },
              "accent": {
                "oneOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 6
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "appearance": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "baseFill": {
                        "type": "object",
                        "properties": {
                          "themeColor": {
                            "type": "string",
                            "description": "OOXML theme role. Resolve with styles.getTheme; never assume an accent has a fixed RGB."
                          },
                          "rgb": {
                            "type": "string",
                            "pattern": "^[0-9A-F]{6}$"
                          },
                          "tint": {
                            "type": "string",
                            "pattern": "^[0-9A-Fa-f]{2}$",
                            "description": "OOXML theme tint hex byte; 00 is white and FF leaves the theme color unchanged."
                          },
                          "shade": {
                            "type": "string",
                            "pattern": "^[0-9A-Fa-f]{2}$",
                            "description": "OOXML theme shade hex byte; 00 is black and FF leaves the theme color unchanged."
                          }
                        },
                        "additionalProperties": false
                      },
                      "header": {
                        "type": "object",
                        "properties": {
                          "treatment": {
                            "type": "array",
                            "items": {
                              "enum": [
                                "shading",
                                "bold",
                                "borders"
                              ]
                            }
                          },
                          "fill": {
                            "type": "object",
                            "properties": {
                              "themeColor": {
                                "type": "string",
                                "description": "OOXML theme role. Resolve with styles.getTheme; never assume an accent has a fixed RGB."
                              },
                              "rgb": {
                                "type": "string",
                                "pattern": "^[0-9A-F]{6}$"
                              },
                              "tint": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme tint hex byte; 00 is white and FF leaves the theme color unchanged."
                              },
                              "shade": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme shade hex byte; 00 is black and FF leaves the theme color unchanged."
                              }
                            },
                            "additionalProperties": false
                          },
                          "textColor": {
                            "type": "object",
                            "properties": {
                              "themeColor": {
                                "type": "string",
                                "description": "OOXML theme role. Resolve with styles.getTheme; never assume an accent has a fixed RGB."
                              },
                              "rgb": {
                                "type": "string",
                                "pattern": "^[0-9A-F]{6}$"
                              },
                              "tint": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme tint hex byte; 00 is white and FF leaves the theme color unchanged."
                              },
                              "shade": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme shade hex byte; 00 is black and FF leaves the theme color unchanged."
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "treatment"
                        ]
                      },
                      "bandedRows": {
                        "type": "object",
                        "properties": {
                          "effect": {
                            "enum": [
                              "none",
                              "shading",
                              "borders",
                              "shadingAndBorders"
                            ]
                          },
                          "fill": {
                            "type": "object",
                            "properties": {
                              "themeColor": {
                                "type": "string",
                                "description": "OOXML theme role. Resolve with styles.getTheme; never assume an accent has a fixed RGB."
                              },
                              "rgb": {
                                "type": "string",
                                "pattern": "^[0-9A-F]{6}$"
                              },
                              "tint": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme tint hex byte; 00 is white and FF leaves the theme color unchanged."
                              },
                              "shade": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme shade hex byte; 00 is black and FF leaves the theme color unchanged."
                              }
                            },
                            "additionalProperties": false
                          },
                          "borderColor": {
                            "type": "object",
                            "properties": {
                              "themeColor": {
                                "type": "string",
                                "description": "OOXML theme role. Resolve with styles.getTheme; never assume an accent has a fixed RGB."
                              },
                              "rgb": {
                                "type": "string",
                                "pattern": "^[0-9A-F]{6}$"
                              },
                              "tint": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme tint hex byte; 00 is white and FF leaves the theme color unchanged."
                              },
                              "shade": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme shade hex byte; 00 is black and FF leaves the theme color unchanged."
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "effect"
                        ]
                      },
                      "borders": {
                        "type": "object",
                        "properties": {
                          "layout": {
                            "enum": [
                              "none",
                              "horizontal",
                              "outer",
                              "outerAndHorizontal",
                              "grid"
                            ]
                          },
                          "color": {
                            "type": "object",
                            "properties": {
                              "themeColor": {
                                "type": "string",
                                "description": "OOXML theme role. Resolve with styles.getTheme; never assume an accent has a fixed RGB."
                              },
                              "rgb": {
                                "type": "string",
                                "pattern": "^[0-9A-F]{6}$"
                              },
                              "tint": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme tint hex byte; 00 is white and FF leaves the theme color unchanged."
                              },
                              "shade": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{2}$",
                                "description": "OOXML theme shade hex byte; 00 is black and FF leaves the theme color unchanged."
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "layout"
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "header",
                      "bandedRows",
                      "borders"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "source",
              "group",
              "accent",
              "appearance"
            ]
          }
        },
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "offset": {
          "type": "integer",
          "minimum": 0
        },
        "nextOffset": {
          "oneOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "items",
        "total",
        "offset",
        "nextOffset"
      ]
    }
  }
}
