{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TemplateRole",
  "type": "object",
  "description": "Maps a recipient to a role defined in a template. Used when creating an envelope from a template.",
  "properties": {
    "name": {
      "type": "string",
      "description": "The recipient's full name."
    },
    "email": {
      "type": "string",
      "description": "The recipient's email address."
    },
    "roleName": {
      "type": "string",
      "description": "The role name that matches a role defined in the template."
    },
    "clientUserId": {
      "type": "string",
      "description": "The client user ID for embedded signing."
    },
    "defaultRecipient": {
      "type": "string",
      "description": "When true, this is the default recipient for the role."
    },
    "routingOrder": {
      "type": "string",
      "description": "The routing order for the recipient."
    },
    "accessCode": {
      "type": "string",
      "description": "Access code for authentication."
    }
  }
}