{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-signing-field-rules-dto-schema.json",
  "title": "SigningFieldRulesDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-files-api-openapi.yml#/components/schemas/SigningFieldRulesDto",
  "type": "object",
  "properties": {
    "kinds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SigningFieldKindDto"
      }
    },
    "senderRole": {
      "type": "string",
      "description": "The role the sender fills when sending"
    },
    "recordRole": {
      "type": "string",
      "description": "The role printed from the record, which only templates have"
    }
  },
  "required": [
    "kinds",
    "senderRole",
    "recordRole"
  ],
  "$defs": {
    "SigningFieldKind": {
      "type": "string",
      "enum": [
        "signature",
        "initials",
        "date_signed",
        "full_name",
        "email",
        "text",
        "number",
        "checkbox",
        "select"
      ]
    },
    "SigningFieldKindDto": {
      "type": "object",
      "properties": {
        "kind": {
          "allOf": [
            {
              "$ref": "#/$defs/SigningFieldKind"
            }
          ]
        },
        "w": {
          "type": "number",
          "description": "Starting width in points"
        },
        "h": {
          "type": "number",
          "description": "Starting height in points"
        },
        "auto": {
          "type": "boolean",
          "description": "Filled in by the server when the person signs, never typed"
        },
        "mark": {
          "type": "boolean",
          "description": "Drawn as the person's adopted signature or initials"
        }
      },
      "required": [
        "kind",
        "w",
        "h",
        "auto",
        "mark"
      ]
    }
  }
}