# styles.create

> Define or redefine a named paragraph or character style in the Style Definitions part. Replaces the definition rather than merging into it, and decides conflicts on both styleId and name, because Word keys its Styles gallery on the name. Linked style pairs and table/numbering styles are out of scope.



- Member path: `doc.styles.create(…)`
- Mutates document: yes
- Idempotency: `conditional`
- Supports tracked mode: no
- Supports dry run: yes

## Expected result

Returns a StylesCreateReceipt reporting whether the style was created or redefined, with per-channel before/after state for the paragraph and run properties.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "basedOn": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[^,]+$"
          },
          "uniqueItems": true
        },
        "priority": {
          "type": [
            "integer",
            "null"
          ]
        },
        "qFormat": {
          "type": "boolean"
        },
        "hidden": {
          "type": "boolean"
        },
        "semiHidden": {
          "type": "boolean"
        },
        "unhideWhenUsed": {
          "type": "boolean"
        },
        "locked": {
          "type": "boolean"
        },
        "custom": {
          "type": "boolean"
        },
        "conflictPolicy": {
          "enum": [
            "fail",
            "replace"
          ]
        },
        "type": {
          "const": "paragraph"
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "paragraph": {
          "type": "object",
          "properties": {
            "keepLines": {
              "type": "boolean"
            },
            "keepNext": {
              "type": "boolean"
            },
            "widowControl": {
              "type": "boolean"
            },
            "contextualSpacing": {
              "type": "boolean"
            },
            "pageBreakBefore": {
              "type": "boolean"
            },
            "suppressAutoHyphens": {
              "type": "boolean"
            },
            "suppressLineNumbers": {
              "type": "boolean"
            },
            "suppressOverlap": {
              "type": "boolean"
            },
            "mirrorIndents": {
              "type": "boolean"
            },
            "wordWrap": {
              "type": "boolean"
            },
            "kinsoku": {
              "type": "boolean"
            },
            "overflowPunct": {
              "type": "boolean"
            },
            "topLinePunct": {
              "type": "boolean"
            },
            "autoSpaceDE": {
              "type": "boolean"
            },
            "autoSpaceDN": {
              "type": "boolean"
            },
            "adjustRightInd": {
              "type": "boolean"
            },
            "rightToLeft": {
              "type": "boolean"
            },
            "snapToGrid": {
              "type": "boolean"
            },
            "outlineLvl": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9
            },
            "justification": {
              "enum": [
                "left",
                "center",
                "right",
                "justify",
                "distribute"
              ]
            },
            "textAlignment": {
              "enum": [
                "top",
                "center",
                "baseline",
                "bottom",
                "auto"
              ]
            },
            "textDirection": {
              "enum": [
                "lrTb",
                "tbRl",
                "btLr",
                "lrTbV",
                "tbRlV",
                "tbLrV"
              ]
            },
            "textboxTightWrap": {
              "enum": [
                "none",
                "allLines",
                "firstAndLastLine",
                "firstLineOnly",
                "lastLineOnly"
              ]
            },
            "spacing": {
              "type": "object",
              "properties": {
                "after": {
                  "type": "integer"
                },
                "afterAutospacing": {
                  "type": "boolean"
                },
                "afterLines": {
                  "type": "integer"
                },
                "before": {
                  "type": "integer"
                },
                "beforeAutospacing": {
                  "type": "boolean"
                },
                "beforeLines": {
                  "type": "integer"
                },
                "line": {
                  "type": "integer"
                },
                "lineRule": {
                  "enum": [
                    "auto",
                    "exact",
                    "atLeast"
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "indent": {
              "type": "object",
              "properties": {
                "end": {
                  "type": "integer"
                },
                "endChars": {
                  "type": "integer"
                },
                "firstLine": {
                  "type": "integer"
                },
                "firstLineChars": {
                  "type": "integer"
                },
                "hanging": {
                  "type": "integer"
                },
                "hangingChars": {
                  "type": "integer"
                },
                "left": {
                  "type": "integer"
                },
                "leftChars": {
                  "type": "integer"
                },
                "right": {
                  "type": "integer"
                },
                "rightChars": {
                  "type": "integer"
                },
                "start": {
                  "type": "integer"
                },
                "startChars": {
                  "type": "integer"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "shading": {
              "type": "object",
              "properties": {
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "fill": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFill": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFillShade": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFillTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "val": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "numberingProperties": {
              "type": "object",
              "properties": {
                "ilvl": {
                  "type": "integer"
                },
                "numId": {
                  "type": "integer"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "framePr": {
              "type": "object",
              "properties": {
                "anchorLock": {
                  "type": "boolean"
                },
                "dropCap": {
                  "type": "string",
                  "minLength": 1
                },
                "h": {
                  "type": "integer"
                },
                "hAnchor": {
                  "type": "string",
                  "minLength": 1
                },
                "hRule": {
                  "type": "string",
                  "minLength": 1
                },
                "hSpace": {
                  "type": "integer"
                },
                "lines": {
                  "type": "integer"
                },
                "vAnchor": {
                  "type": "string",
                  "minLength": 1
                },
                "vSpace": {
                  "type": "integer"
                },
                "w": {
                  "type": "integer"
                },
                "wrap": {
                  "type": "string",
                  "minLength": 1
                },
                "x": {
                  "type": "integer"
                },
                "xAlign": {
                  "type": "string",
                  "minLength": 1
                },
                "y": {
                  "type": "integer"
                },
                "yAlign": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "borders": {
              "type": "object",
              "properties": {
                "top": {
                  "type": "object",
                  "properties": {
                    "val": {
                      "type": "string",
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeTint": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeShade": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer"
                    },
                    "space": {
                      "type": "integer"
                    },
                    "shadow": {
                      "type": "boolean"
                    },
                    "frame": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                "bottom": {
                  "type": "object",
                  "properties": {
                    "val": {
                      "type": "string",
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeTint": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeShade": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer"
                    },
                    "space": {
                      "type": "integer"
                    },
                    "shadow": {
                      "type": "boolean"
                    },
                    "frame": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                "left": {
                  "type": "object",
                  "properties": {
                    "val": {
                      "type": "string",
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeTint": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeShade": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer"
                    },
                    "space": {
                      "type": "integer"
                    },
                    "shadow": {
                      "type": "boolean"
                    },
                    "frame": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                "right": {
                  "type": "object",
                  "properties": {
                    "val": {
                      "type": "string",
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeTint": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeShade": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer"
                    },
                    "space": {
                      "type": "integer"
                    },
                    "shadow": {
                      "type": "boolean"
                    },
                    "frame": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                "between": {
                  "type": "object",
                  "properties": {
                    "val": {
                      "type": "string",
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeTint": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeShade": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer"
                    },
                    "space": {
                      "type": "integer"
                    },
                    "shadow": {
                      "type": "boolean"
                    },
                    "frame": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                "bar": {
                  "type": "object",
                  "properties": {
                    "val": {
                      "type": "string",
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeColor": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeTint": {
                      "type": "string",
                      "minLength": 1
                    },
                    "themeShade": {
                      "type": "string",
                      "minLength": 1
                    },
                    "size": {
                      "type": "integer"
                    },
                    "space": {
                      "type": "integer"
                    },
                    "shadow": {
                      "type": "boolean"
                    },
                    "frame": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "tabStops": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "tab": {
                    "type": "object",
                    "properties": {
                      "tabType": {
                        "type": "string",
                        "minLength": 1
                      },
                      "pos": {
                        "type": "integer"
                      },
                      "leader": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false,
                    "minProperties": 1
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              }
            }
          },
          "additionalProperties": false,
          "minProperties": 1
        },
        "run": {
          "type": "object",
          "properties": {
            "bold": {
              "type": "boolean"
            },
            "boldCs": {
              "type": "boolean"
            },
            "italic": {
              "type": "boolean"
            },
            "iCs": {
              "type": "boolean"
            },
            "smallCaps": {
              "type": "boolean"
            },
            "strike": {
              "type": "boolean"
            },
            "dstrike": {
              "type": "boolean"
            },
            "emboss": {
              "type": "boolean"
            },
            "imprint": {
              "type": "boolean"
            },
            "outline": {
              "type": "boolean"
            },
            "shadow": {
              "type": "boolean"
            },
            "vanish": {
              "type": "boolean"
            },
            "webHidden": {
              "type": "boolean"
            },
            "specVanish": {
              "type": "boolean"
            },
            "snapToGrid": {
              "type": "boolean"
            },
            "noProof": {
              "type": "boolean"
            },
            "fontSize": {
              "type": "integer"
            },
            "fontSizeCs": {
              "type": "integer"
            },
            "letterSpacing": {
              "type": "integer"
            },
            "kern": {
              "type": "integer"
            },
            "position": {
              "type": "integer"
            },
            "w": {
              "type": "integer",
              "minimum": 1,
              "maximum": 600
            },
            "textTransform": {
              "enum": [
                "uppercase",
                "none"
              ]
            },
            "vertAlign": {
              "enum": [
                "superscript",
                "subscript",
                "baseline"
              ]
            },
            "em": {
              "enum": [
                "none",
                "dot",
                "comma",
                "circle",
                "sesame"
              ]
            },
            "effect": {
              "type": "string",
              "minLength": 1
            },
            "fontFamily": {
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string",
                  "minLength": 1
                },
                "ascii": {
                  "type": "string",
                  "minLength": 1
                },
                "hAnsi": {
                  "type": "string",
                  "minLength": 1
                },
                "eastAsia": {
                  "type": "string",
                  "minLength": 1
                },
                "cs": {
                  "type": "string",
                  "minLength": 1
                },
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "asciiTheme": {
                  "type": "string",
                  "minLength": 1
                },
                "hAnsiTheme": {
                  "type": "string",
                  "minLength": 1
                },
                "eastAsiaTheme": {
                  "type": "string",
                  "minLength": 1
                },
                "cstheme": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "color": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "underline": {
              "type": "object",
              "properties": {
                "val": {
                  "enum": [
                    "single",
                    "double",
                    "thick",
                    "dotted",
                    "dottedHeavy",
                    "dash",
                    "dashedHeavy",
                    "dashLong",
                    "dashLongHeavy",
                    "dotDash",
                    "dashDotHeavy",
                    "dotDotDash",
                    "dashDotDotHeavy",
                    "wave",
                    "wavyHeavy",
                    "wavyDouble",
                    "words",
                    "none"
                  ]
                },
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "borders": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                },
                "size": {
                  "type": "integer"
                },
                "space": {
                  "type": "integer"
                },
                "shadow": {
                  "type": "boolean"
                },
                "frame": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "shading": {
              "type": "object",
              "properties": {
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "fill": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFill": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFillShade": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFillTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "val": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "lang": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "eastAsia": {
                  "type": "string",
                  "minLength": 1
                },
                "bidi": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "eastAsianLayout": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "combine": {
                  "type": "boolean"
                },
                "combineBrackets": {
                  "type": "string",
                  "minLength": 1
                },
                "vert": {
                  "type": "boolean"
                },
                "vertCompress": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "fitText": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "integer"
                },
                "id": {
                  "type": "integer"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "cs": {
              "type": "boolean"
            },
            "oMath": {
              "type": "boolean"
            },
            "rtl": {
              "type": "boolean"
            },
            "highlight": {
              "enum": [
                "black",
                "blue",
                "cyan",
                "green",
                "magenta",
                "red",
                "yellow",
                "white",
                "darkBlue",
                "darkCyan",
                "darkGreen",
                "darkMagenta",
                "darkRed",
                "darkYellow",
                "darkGray",
                "lightGray",
                "none"
              ]
            }
          },
          "additionalProperties": false,
          "minProperties": 1
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "type"
      ]
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "basedOn": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[^,]+$"
          },
          "uniqueItems": true
        },
        "priority": {
          "type": [
            "integer",
            "null"
          ]
        },
        "qFormat": {
          "type": "boolean"
        },
        "hidden": {
          "type": "boolean"
        },
        "semiHidden": {
          "type": "boolean"
        },
        "unhideWhenUsed": {
          "type": "boolean"
        },
        "locked": {
          "type": "boolean"
        },
        "custom": {
          "type": "boolean"
        },
        "conflictPolicy": {
          "enum": [
            "fail",
            "replace"
          ]
        },
        "type": {
          "const": "character"
        },
        "run": {
          "type": "object",
          "properties": {
            "bold": {
              "type": "boolean"
            },
            "boldCs": {
              "type": "boolean"
            },
            "italic": {
              "type": "boolean"
            },
            "iCs": {
              "type": "boolean"
            },
            "smallCaps": {
              "type": "boolean"
            },
            "strike": {
              "type": "boolean"
            },
            "dstrike": {
              "type": "boolean"
            },
            "emboss": {
              "type": "boolean"
            },
            "imprint": {
              "type": "boolean"
            },
            "outline": {
              "type": "boolean"
            },
            "shadow": {
              "type": "boolean"
            },
            "vanish": {
              "type": "boolean"
            },
            "webHidden": {
              "type": "boolean"
            },
            "specVanish": {
              "type": "boolean"
            },
            "snapToGrid": {
              "type": "boolean"
            },
            "noProof": {
              "type": "boolean"
            },
            "fontSize": {
              "type": "integer"
            },
            "fontSizeCs": {
              "type": "integer"
            },
            "letterSpacing": {
              "type": "integer"
            },
            "kern": {
              "type": "integer"
            },
            "position": {
              "type": "integer"
            },
            "w": {
              "type": "integer",
              "minimum": 1,
              "maximum": 600
            },
            "textTransform": {
              "enum": [
                "uppercase",
                "none"
              ]
            },
            "vertAlign": {
              "enum": [
                "superscript",
                "subscript",
                "baseline"
              ]
            },
            "em": {
              "enum": [
                "none",
                "dot",
                "comma",
                "circle",
                "sesame"
              ]
            },
            "effect": {
              "type": "string",
              "minLength": 1
            },
            "fontFamily": {
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string",
                  "minLength": 1
                },
                "ascii": {
                  "type": "string",
                  "minLength": 1
                },
                "hAnsi": {
                  "type": "string",
                  "minLength": 1
                },
                "eastAsia": {
                  "type": "string",
                  "minLength": 1
                },
                "cs": {
                  "type": "string",
                  "minLength": 1
                },
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "asciiTheme": {
                  "type": "string",
                  "minLength": 1
                },
                "hAnsiTheme": {
                  "type": "string",
                  "minLength": 1
                },
                "eastAsiaTheme": {
                  "type": "string",
                  "minLength": 1
                },
                "cstheme": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "color": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "underline": {
              "type": "object",
              "properties": {
                "val": {
                  "enum": [
                    "single",
                    "double",
                    "thick",
                    "dotted",
                    "dottedHeavy",
                    "dash",
                    "dashedHeavy",
                    "dashLong",
                    "dashLongHeavy",
                    "dotDash",
                    "dashDotHeavy",
                    "dotDotDash",
                    "dashDotDotHeavy",
                    "wave",
                    "wavyHeavy",
                    "wavyDouble",
                    "words",
                    "none"
                  ]
                },
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "borders": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                },
                "size": {
                  "type": "integer"
                },
                "space": {
                  "type": "integer"
                },
                "shadow": {
                  "type": "boolean"
                },
                "frame": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "shading": {
              "type": "object",
              "properties": {
                "color": {
                  "type": "string",
                  "minLength": 1
                },
                "fill": {
                  "type": "string",
                  "minLength": 1
                },
                "themeColor": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFill": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFillShade": {
                  "type": "string",
                  "minLength": 1
                },
                "themeFillTint": {
                  "type": "string",
                  "minLength": 1
                },
                "themeShade": {
                  "type": "string",
                  "minLength": 1
                },
                "themeTint": {
                  "type": "string",
                  "minLength": 1
                },
                "val": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "lang": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "string",
                  "minLength": 1
                },
                "eastAsia": {
                  "type": "string",
                  "minLength": 1
                },
                "bidi": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "eastAsianLayout": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "combine": {
                  "type": "boolean"
                },
                "combineBrackets": {
                  "type": "string",
                  "minLength": 1
                },
                "vert": {
                  "type": "boolean"
                },
                "vertCompress": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "fitText": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "integer"
                },
                "id": {
                  "type": "integer"
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            "cs": {
              "type": "boolean"
            },
            "oMath": {
              "type": "boolean"
            },
            "rtl": {
              "type": "boolean"
            },
            "highlight": {
              "enum": [
                "black",
                "blue",
                "cyan",
                "green",
                "magenta",
                "red",
                "yellow",
                "white",
                "darkBlue",
                "darkCyan",
                "darkGreen",
                "darkMagenta",
                "darkRed",
                "darkYellow",
                "darkGray",
                "lightGray",
                "none"
              ]
            }
          },
          "additionalProperties": false,
          "minProperties": 1
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "type"
      ]
    }
  ]
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "success": {
          "const": true
        },
        "changed": {
          "type": "boolean"
        },
        "created": {
          "type": "boolean"
        },
        "resolution": {
          "type": "object",
          "properties": {
            "scope": {
              "const": "style"
            },
            "id": {
              "type": "string",
              "minLength": 1
            },
            "type": {
              "enum": [
                "paragraph",
                "character"
              ]
            },
            "xmlPart": {
              "type": "string"
            },
            "xmlPath": {
              "const": "w:styles/w:style"
            }
          },
          "additionalProperties": false,
          "required": [
            "scope",
            "id",
            "type",
            "xmlPart",
            "xmlPath"
          ]
        },
        "dryRun": {
          "type": "boolean"
        },
        "before": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "paragraph": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "keepLines": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "keepNext": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "widowControl": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "contextualSpacing": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "pageBreakBefore": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "suppressAutoHyphens": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "suppressLineNumbers": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "suppressOverlap": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "mirrorIndents": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "wordWrap": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "kinsoku": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "overflowPunct": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "topLinePunct": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "autoSpaceDE": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "autoSpaceDN": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "adjustRightInd": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "rightToLeft": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "snapToGrid": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "outlineLvl": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "justification": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "textAlignment": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "textDirection": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "textboxTightWrap": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "spacing": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "indent": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "shading": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "numberingProperties": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "framePr": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "borders": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "tabStops": {
                          "oneOf": [
                            {
                              "type": "array"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "run": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "bold": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "boldCs": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "italic": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "iCs": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "smallCaps": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "strike": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "dstrike": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "emboss": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "imprint": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "outline": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "shadow": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "vanish": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "webHidden": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "specVanish": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "snapToGrid": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "noProof": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "fontSize": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "fontSizeCs": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "letterSpacing": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "kern": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "position": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "w": {
                          "oneOf": [
                            {
                              "type": "number"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "textTransform": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "vertAlign": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "em": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "effect": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "fontFamily": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "color": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "underline": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "borders": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "shading": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "lang": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "eastAsianLayout": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "fitText": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        },
                        "cs": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "oMath": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "rtl": {
                          "enum": [
                            "on",
                            "off",
                            "inherit"
                          ]
                        },
                        "highlight": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "const": "inherit"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "required": [
                "paragraph",
                "run"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "after": {
          "type": "object",
          "properties": {
            "paragraph": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "keepLines": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "keepNext": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "widowControl": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "contextualSpacing": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "pageBreakBefore": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "suppressAutoHyphens": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "suppressLineNumbers": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "suppressOverlap": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "mirrorIndents": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "wordWrap": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "kinsoku": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "overflowPunct": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "topLinePunct": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "autoSpaceDE": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "autoSpaceDN": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "adjustRightInd": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "rightToLeft": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "snapToGrid": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "outlineLvl": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "justification": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "textAlignment": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "textDirection": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "textboxTightWrap": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "spacing": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "indent": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "shading": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "numberingProperties": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "framePr": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "borders": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "tabStops": {
                      "oneOf": [
                        {
                          "type": "array"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "run": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "bold": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "boldCs": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "italic": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "iCs": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "smallCaps": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "strike": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "dstrike": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "emboss": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "imprint": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "outline": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "shadow": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "vanish": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "webHidden": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "specVanish": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "snapToGrid": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "noProof": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "fontSize": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "fontSizeCs": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "letterSpacing": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "kern": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "position": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "w": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "textTransform": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "vertAlign": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "em": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "effect": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "fontFamily": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "color": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "underline": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "borders": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "shading": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "lang": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "eastAsianLayout": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "fitText": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    },
                    "cs": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "oMath": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "rtl": {
                      "enum": [
                        "on",
                        "off",
                        "inherit"
                      ]
                    },
                    "highlight": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "const": "inherit"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": false,
          "required": [
            "paragraph",
            "run"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "success",
        "changed",
        "created",
        "resolution",
        "dryRun",
        "before",
        "after"
      ]
    },
    {
      "type": "object",
      "properties": {
        "success": {
          "const": false
        },
        "failure": {
          "type": "object",
          "properties": {
            "code": {
              "enum": [
                "DUPLICATE_ID",
                "STYLE_CONFLICT",
                "PRECONDITION_FAILED"
              ]
            },
            "message": {
              "type": "string"
            },
            "details": {}
          },
          "additionalProperties": false,
          "required": [
            "code",
            "message"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "success",
        "failure"
      ]
    }
  ]
}
```

## Pre-apply throws

- `INVALID_INPUT`
- `CAPABILITY_UNAVAILABLE`
- `REVISION_MISMATCH`

## Non-applied receipt codes

- `DUPLICATE_ID`
- `STYLE_CONFLICT`
- `PRECONDITION_FAILED`

