{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namirial/json-schema/namirial-draft-create-request-schema.json",
  "title": "DraftCreateRequest",
  "description": "The model for creating a draft.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namirial-draft-api-openapi.yml#/components/schemas/DraftCreateRequest",
  "required": [
    "Documents",
    "Name",
    "Activities"
  ],
  "type": "object",
  "properties": {
    "Documents": {
      "description": "The documents for the envelope.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/DraftCreateDocument"
      }
    },
    "Name": {
      "description": "The name of the envelope.",
      "maxLength": 100,
      "minLength": 0,
      "type": "string"
    },
    "MetaData": {
      "description": "The metadata of the envelope.",
      "maxLength": 204800,
      "minLength": 0,
      "type": "string"
    },
    "AddDocumentTimestamp": {
      "description": "If true, a timestamp is added to all documents of the envelope at the end of each signing activity.",
      "type": "boolean"
    },
    "ShareWithTeam": {
      "description": "If true, this envelope is shared with your teams.",
      "type": "boolean"
    },
    "LockFormFieldsOnFinish": {
      "description": "If true, form fields are locked after the envelope is finished.",
      "type": "boolean"
    },
    "LateIdentification": {
      "description": "If true, oAuth identification is performed when signing not when opening the document.",
      "type": "boolean"
    },
    "SendFinishedDocumentsToAllSignersAndMustView": {
      "description": "If true, every signer and viewer will receive a copy of the finished documents.",
      "type": "boolean"
    },
    "UnassignedElements": {
      "$ref": "#/$defs/DraftCreateElements",
      "description": "The elements which are not assigned to any action."
    },
    "Activities": {
      "description": "The steps for the envelope.",
      "maxItems": 50,
      "type": "array",
      "items": {
        "$ref": "#/$defs/DraftCreateActivity"
      }
    },
    "EmailConfiguration": {
      "$ref": "#/$defs/DraftCreateEmailConfiguration",
      "description": "The configuration for notifications."
    },
    "ReminderConfiguration": {
      "$ref": "#/$defs/DraftCreateReminderConfiguration",
      "description": "The configuration for reminders."
    },
    "ExpirationConfiguration": {
      "$ref": "#/$defs/DraftCreateExpirationConfiguration",
      "description": "The configuration of the expiration for the envelope."
    },
    "CallbackConfiguration": {
      "$ref": "#/$defs/DraftCreateCallbackConfiguration",
      "description": "The configuration of the callbacks for a custom integration."
    },
    "AgentRedirectConfiguration": {
      "$ref": "#/$defs/DraftCreateAgentRedirectConfiguration",
      "description": "The configuration of the redirects for the agent mode."
    },
    "RedirectConfiguration": {
      "$ref": "#/$defs/DraftCreateRedirectConfiguration",
      "description": "The configuration of the draft redirect URLs."
    },
    "AgreementConfiguration": {
      "$ref": "#/$defs/DraftCreateAgreementConfiguration",
      "description": "The configuration of the agreement.\nRequires that the organization allows custom agreement settings."
    },
    "DefaultSignatureTypeConfiguration": {
      "$ref": "#/$defs/DraftCreateDefaultSignatureTypeConfiguration",
      "description": "A default signature type to be used only for the draft that overwrites the default signature type of the organization."
    },
    "SealingConfiguration": {
      "$ref": "#/$defs/DraftCreateSealingConfiguration",
      "description": "The custom sealing configuration for the envelope."
    }
  },
  "$defs": {
    "DraftCreateATrustCertificateSignatureData": {
      "description": "The recipient configuration for signing with an A-Trust certificate.",
      "type": "object",
      "properties": {
        "PhoneNumber": {
          "description": "The phone number of the recipient.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^(\\+|00){1}\\(?([0-9]{2,})\\)?([\\-. ]?([0-9]{2,})){1,}$",
          "type": "string"
        }
      }
    },
    "DraftCreateATrustCertificateSignatureType": {
      "description": "The configuration of the A-Trust certificate signature.",
      "type": "object",
      "properties": {
        "TemplateId": {
          "description": "The identifier of the A-Trust template.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateAccessCodeAuthentication": {
      "description": "The configuration for authentication with a predefined access code.",
      "type": "object",
      "properties": {
        "Code": {
          "description": "The code for authenticating the recipient.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateAction": {
      "description": "The action of the activity with the possibility to define a bulk. Exactly one definition must be used!",
      "type": "object",
      "properties": {
        "SendCopy": {
          "$ref": "#/$defs/DraftCreateSendCopy",
          "description": "The definition of the copy action."
        },
        "SignAutomatic": {
          "$ref": "#/$defs/DraftCreateSignAutomatic",
          "description": "The definition of the automatic sign action."
        },
        "Sign": {
          "$ref": "#/$defs/DraftCreateSign",
          "description": "The definition of the sign action."
        },
        "View": {
          "$ref": "#/$defs/DraftCreateView",
          "description": "The definition of the view action."
        },
        "SignAsP7M": {
          "$ref": "#/$defs/DraftCreateSignAsP7M",
          "description": "The definition of the P7M sign action."
        },
        "SignBulk": {
          "$ref": "#/$defs/DraftCreateSignBulk",
          "description": "The definition of the bulk."
        }
      }
    },
    "DraftCreateActionCallbackSelection": {
      "description": "The selection of events which trigger the callback.",
      "type": "object",
      "properties": {
        "ConfirmTransactionCode": {
          "description": "If true, the callback is triggered when a transaction code was sent. This is only used for legacy disposable certificates, after user accepted issuance of disposable certificate.",
          "type": "boolean"
        },
        "AgreementAccepted": {
          "description": "If true, the callback is triggered when the user accepted the agreement.",
          "type": "boolean"
        },
        "AgreementRejected": {
          "description": "If true, the callback is triggered when the user rejected the agreement.",
          "type": "boolean"
        },
        "PrepareAuthenticationSuccess": {
          "description": "If true, the callback is triggered when the preparation of the authentication process succeeded.",
          "type": "boolean"
        },
        "AuthenticationFailed": {
          "description": "If true, the callback is triggered when the user failed to authenticate.",
          "type": "boolean"
        },
        "AuthenticationSuccess": {
          "description": "If true, the callback is triggered when the user succeeded to authenticate.",
          "type": "boolean"
        },
        "AuditTrailRequested": {
          "description": "If true, the callback is triggered when the audit trail was requested.",
          "type": "boolean"
        },
        "AuditTrailXmlRequested": {
          "description": "If true, the callback is triggered when the audit trail XML was requested.",
          "type": "boolean"
        },
        "CalledPage": {
          "description": "If true, the callback is triggered when the SignAnyWhere Viewer was requested.",
          "type": "boolean"
        },
        "DocumentDownloaded": {
          "description": "If true, the callback is triggered when the document download was requested.",
          "type": "boolean"
        },
        "FlattenedDocumentDownloaded": {
          "description": "If true, the callback is triggered when the flattened document download was requested.",
          "type": "boolean"
        },
        "AddedAnnotation": {
          "description": "If true, the callback is triggered when an annotation was added.",
          "type": "boolean"
        },
        "AddedAttachment": {
          "description": "If true, the callback is triggered when an attachment was added.",
          "type": "boolean"
        },
        "AppendedDocument": {
          "description": "If true, the callback is triggered when a document was appended.",
          "type": "boolean"
        },
        "FormsFilled": {
          "description": "If true, the callback is triggered when a form field was filled.",
          "type": "boolean"
        },
        "ConfirmReading": {
          "description": "If true, the callback is triggered when a reading task was completed.",
          "type": "boolean"
        },
        "SendTransactionCode": {
          "description": "If true, the callback is triggered when a transaction code for a signature with type TransactionCode was sent using the TransactionCodeSenderPlugin.",
          "type": "boolean"
        },
        "PrepareSignWorkstepDocument": {
          "description": "If true, the callback is triggered when a signature was prepared for signing.",
          "type": "boolean"
        },
        "SignWorkstepDocument": {
          "description": "If true, the callback is triggered when a signature was applied.",
          "type": "boolean"
        },
        "UndoAction": {
          "description": "If true, the callback is triggered when an action was undone.",
          "type": "boolean"
        },
        "WorkstepCreated": {
          "description": "If true, the callback is triggered when a workstep was created.",
          "type": "boolean"
        },
        "WorkstepFinished": {
          "description": "If true, the callback is triggered when a workstep was finished.",
          "type": "boolean"
        },
        "WorkstepRejected": {
          "description": "If true, the callback is triggered when a workstep was rejected.",
          "type": "boolean"
        },
        "DisablePolicyAndValidityChecks": {
          "description": "If true, the callback is triggered when policy and validity checks were disabled.",
          "type": "boolean"
        },
        "EnablePolicyAndValidityChecks": {
          "description": "If true, the callback is triggered when policy and validity checks were enabled.",
          "type": "boolean"
        },
        "AppendFileToWorkstep": {
          "description": "If true, the callback is triggered when a file was appended to the workstep.",
          "type": "boolean"
        },
        "AppendTasksToWorkstep": {
          "description": "If true, the callback is triggered when a task was added to the workstep.",
          "type": "boolean"
        },
        "SetOptionalDocumentState": {
          "description": "If true, the callback is triggered when an optional document became either active or inactive.",
          "type": "boolean"
        },
        "PreparePayloadForBatch": {
          "description": "If true, the callback is triggered when the payload was prepared for batch signing.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateActivity": {
      "description": "Define an activity with the possibility of bulk.",
      "type": "object",
      "properties": {
        "Action": {
          "$ref": "#/$defs/DraftCreateAction",
          "description": "The action assigned to the activity."
        },
        "VisibilityOptions": {
          "description": "The document visibility options for the activity.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateVisibilityOption"
          }
        }
      }
    },
    "DraftCreateActivityActionCallbackConfiguration": {
      "description": "The configuration of the callback for workstep events.",
      "required": [
        "Url"
      ],
      "type": "object",
      "properties": {
        "Url": {
          "description": "The callback URL triggered for the selected events.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        },
        "ActionCallbackSelection": {
          "$ref": "#/$defs/DraftCreateActionCallbackSelection",
          "description": "The selection of events which trigger the callback."
        }
      }
    },
    "DraftCreateAdvancedRecipientConfiguration": {
      "description": "The advanced configuration for the recipient.",
      "type": "object",
      "properties": {
        "ContactInformation": {
          "$ref": "#/$defs/DraftCreateContactInformation",
          "description": "The contact information of the recipient."
        },
        "PersonalMessage": {
          "description": "The personal message for the recipient.",
          "maxLength": 204800,
          "minLength": 0,
          "type": "string"
        },
        "AuthenticationConfiguration": {
          "$ref": "#/$defs/DraftCreateAuthenticationConfiguration",
          "description": "The configuration for the authentication of the recipient."
        },
        "SendEmails": {
          "description": "Obsolete: If true, emails will be sent out for this recipient.\nUse NotificationChannel property instead, which also allows sending with other notification channels than Email.\nNotificationChannel.None is the equivalent of sending false.\nNotificationChannel.Email is the equivalent of sending true.\nIf the NotificationChannel property is used/sent this property will be ignored.",
          "type": "boolean"
        },
        "NotificationChannel": {
          "description": "Which channel is used for sending notifications to the recipient.\nDefault Email if not specified.",
          "enum": [
            "None",
            "Email",
            "Sms",
            "WhatsApp"
          ],
          "type": "string"
        },
        "AllowAccessAfterFinish": {
          "description": "If true, the recipient is allowed to access the action after it has been finished.\nIt is required that the organization has the AllowAccessFinishedWorkstep feature enabled.\nThe default value is taken from the OrganizationSettings.",
          "type": "boolean"
        },
        "RequireViewContentBeforeFormFilling": {
          "description": "If true, the signer has to confirm the reading of all documents as first task.",
          "type": "boolean"
        },
        "IncludedEmailAppLinks": {
          "$ref": "#/$defs/DraftCreateEmailAppLinks",
          "description": "The configuration for mobile app links in email messages."
        },
        "AllowDelegation": {
          "description": "If true, the recipient may delegate this activity to another person.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateAgentRedirectConfiguration": {
      "description": "The configuration of the redirects for the agent mode.",
      "type": "object",
      "properties": {
        "Policy": {
          "description": "Defines the redirect target page which should be opened when the agent mode is active. \nMust not be set, when 'Allow' is not set to true.",
          "enum": [
            "Workflow",
            "FormEditor",
            "Summary"
          ],
          "type": "string"
        },
        "Allow": {
          "description": "If true, the agent mode can be used. \nIf false, both 'Policy'and 'IFrameAllowList' must not be set.",
          "type": "boolean"
        },
        "IFrameAllowList": {
          "description": "The URLs where the designer interface of eSignAnyWhere may be embedded.\nMust not be set, when 'Allow' is not set to true.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "maxLength": 8000,
            "type": "string"
          }
        }
      }
    },
    "DraftCreateAgreementConfiguration": {
      "description": "The configuration of the agreement.",
      "type": "object",
      "properties": {
        "Translations": {
          "description": "The agreement and its translations to be used.\nIf no custom agreement is specified, the default organization agreement will be used.",
          "maxItems": 228,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateAgreementTranslation"
          }
        }
      }
    },
    "DraftCreateAgreementTranslation": {
      "description": "A translation for the agreement.",
      "required": [
        "LanguageCode",
        "Text"
      ],
      "type": "object",
      "properties": {
        "LanguageCode": {
          "description": "The language of the translated agreement.",
          "enum": [
            "AF",
            "AF_ZA",
            "AR",
            "AR_AE",
            "AR_BH",
            "AR_DZ",
            "AR_EG",
            "AR_IQ",
            "AR_JO",
            "AR_KW",
            "AR_LB",
            "AR_LY",
            "AR_MA",
            "AR_OM",
            "AR_QA",
            "AR_SA",
            "AR_SY",
            "AR_TN",
            "AR_YE",
            "AZ",
            "BE",
            "BE_BY",
            "BG",
            "BG_BG",
            "CA",
            "CA_ES",
            "CS",
            "CS_CZ",
            "CY",
            "CY_GB",
            "DA",
            "DA_DK",
            "DE",
            "DE_AT",
            "DE_CH",
            "DE_DE",
            "DE_LI",
            "DE_LU",
            "DV",
            "DV_MV",
            "EL",
            "EL_GR",
            "EN",
            "EN_AU",
            "EN_BZ",
            "EN_CA",
            "EN_GB",
            "EN_IE",
            "EN_JM",
            "EN_NZ",
            "EN_PH",
            "EN_TT",
            "EN_US",
            "EN_ZA",
            "EN_ZW",
            "ES",
            "ES_AR",
            "ES_BO",
            "ES_CL",
            "ES_CO",
            "ES_CR",
            "ES_DO",
            "ES_EC",
            "ES_ES",
            "ES_GT",
            "ES_HN",
            "ES_MX",
            "ES_NI",
            "ES_PA",
            "ES_PE",
            "ES_PR",
            "ES_PY",
            "ES_SV",
            "ES_UY",
            "ES_VE",
            "ET",
            "ET_EE",
            "EU",
            "EU_ES",
            "FA",
            "FA_IR",
            "FI",
            "FI_FI",
            "FO",
            "FO_FO",
            "FR",
            "FR_BE",
            "FR_CA",
            "FR_CH",
            "FR_FR",
            "FR_LU",
            "FR_MC",
            "GL",
            "GL_ES",
            "GU",
            "GU_IN",
            "HE",
            "HE_IL",
            "HI",
            "HI_IN",
            "HR",
            "HR_BA",
            "HR_HR",
            "HU",
            "HU_HU",
            "HY",
            "HY_AM",
            "ID",
            "ID_ID",
            "IS",
            "IS_IS",
            "IT",
            "IT_CH",
            "IT_IT",
            "JA",
            "JA_JP",
            "KA",
            "KA_GE",
            "KK",
            "KK_KZ",
            "KN",
            "KN_IN",
            "KO",
            "KO_KR",
            "KOK",
            "KOK_IN",
            "KY",
            "KY_KG",
            "LT",
            "LT_LT",
            "LV",
            "LV_LV",
            "MI",
            "MI_NZ",
            "MK",
            "MK_MK",
            "MN",
            "MN_MN",
            "MR",
            "MR_IN",
            "MS",
            "MS_BN",
            "MS_MY",
            "MT",
            "MT_MT",
            "NB",
            "NB_NO",
            "NL",
            "NL_BE",
            "NL_NL",
            "NN_NO",
            "PA",
            "PA_IN",
            "PL",
            "PL_PL",
            "PS",
            "PT",
            "PT_BR",
            "PT_PT",
            "RO",
            "RO_RO",
            "RU",
            "RU_RU",
            "SA",
            "SA_IN",
            "SE",
            "SE_FI",
            "SE_NO",
            "SE_SE",
            "SK",
            "SK_SK",
            "SL",
            "SL_SI",
            "SQ",
            "SQ_AL",
            "SV",
            "SV_FI",
            "SV_SE",
            "SW",
            "SW_KE",
            "SYR",
            "SYR_SY",
            "TA",
            "TA_IN",
            "TE",
            "TE_IN",
            "TH",
            "TH_TH",
            "TN",
            "TN_ZA",
            "TR",
            "TR_TR",
            "TT",
            "TT_RU",
            "TS",
            "UK",
            "UK_UA",
            "UR",
            "UR_PK",
            "UZ",
            "VI",
            "VI_VN",
            "XH",
            "XH_ZA",
            "ZH",
            "ZH_CN",
            "ZH_HK",
            "ZH_MO",
            "ZH_SG",
            "ZH_TW",
            "ZU",
            "ZU_ZA",
            "AM",
            "AM_ET",
            "ARN",
            "ARN_CL",
            "AS",
            "AS_IN",
            "AZ_CYRL",
            "AZ_CYRL_AZ",
            "AZ_LATN",
            "AZ_LATN_AZ",
            "BA",
            "BA_RU",
            "BN",
            "BN_BD",
            "BN_IN",
            "BO",
            "BO_CN",
            "BR",
            "BR_FR",
            "BS",
            "BS_CYRL",
            "BS_CYRL_BA",
            "BS_LATN",
            "BS_LATN_BA",
            "CA_ES_VALENCIA",
            "CHR",
            "CHR_CHER",
            "CHR_CHER_US",
            "CO",
            "CO_FR",
            "DSB",
            "DSB_DE",
            "EN_029",
            "EN_HK",
            "EN_IN",
            "EN_MY",
            "EN_SG",
            "ES_419",
            "ES_US",
            "FF",
            "FF_LATN",
            "FF_LATN_SN",
            "FIL",
            "FIL_PH",
            "FR_CD",
            "FR_CI",
            "FR_CM",
            "FR_HT",
            "FR_MA",
            "FR_ML",
            "FR_RE",
            "FR_SN",
            "FY",
            "FY_NL",
            "GA",
            "GA_IE",
            "GD",
            "GD_GB",
            "GN",
            "GN_PY",
            "GSW",
            "GSW_FR",
            "HA",
            "HA_LATN",
            "HA_LATN_NG",
            "HAW",
            "HAW_US",
            "HSB",
            "HSB_DE",
            "IG",
            "IG_NG",
            "II",
            "II_CN",
            "IU",
            "IU_CANS",
            "IU_CANS_CA",
            "IU_LATN",
            "IU_LATN_CA",
            "JV",
            "JV_LATN",
            "JV_LATN_ID",
            "KL",
            "KL_GL",
            "KM",
            "KM_KH",
            "KU",
            "KU_ARAB",
            "KU_ARAB_IQ",
            "LB",
            "LB_LU",
            "LO",
            "LO_LA",
            "MG",
            "MG_MG",
            "ML",
            "ML_IN",
            "MN_CYRL",
            "MN_MONG",
            "MN_MONG_CN",
            "MN_MONG_MN",
            "MOH",
            "MOH_CA",
            "MY",
            "MY_MM",
            "NE",
            "NE_IN",
            "NE_NP",
            "NN",
            "NO",
            "NQO",
            "NQO_GN",
            "NSO",
            "NSO_ZA",
            "OC",
            "OC_FR",
            "OM",
            "OM_ET",
            "OR",
            "OR_IN",
            "PA_ARAB",
            "PA_ARAB_PK",
            "PRS",
            "PRS_AF",
            "PS_AF",
            "PT_AO",
            "QUT",
            "QUT_GT",
            "QUZ",
            "QUZ_BO",
            "QUZ_EC",
            "QUZ_PE",
            "RM",
            "RM_CH",
            "RO_MD",
            "RW",
            "RW_RW",
            "SAH",
            "SAH_RU",
            "SD",
            "SD_ARAB",
            "SD_ARAB_PK",
            "SI",
            "SI_LK",
            "SMA",
            "SMA_NO",
            "SMA_SE",
            "SMJ",
            "SMJ_NO",
            "SMJ_SE",
            "SMN",
            "SMN_FI",
            "SMS",
            "SMS_FI",
            "SN",
            "SN_LATN",
            "SN_LATN_ZW",
            "SO",
            "SO_SO",
            "SR",
            "SR_CYRL",
            "SR_CYRL_BA",
            "SR_CYRL_CS",
            "SR_CYRL_ME",
            "SR_CYRL_RS",
            "SR_LATN",
            "SR_LATN_BA",
            "SR_LATN_CS",
            "SR_LATN_ME",
            "SR_LATN_RS",
            "ST",
            "ST_ZA",
            "TA_LK",
            "TG",
            "TG_CYRL",
            "TG_CYRL_TJ",
            "TI",
            "TI_ER",
            "TI_ET",
            "TK",
            "TK_TM",
            "TN_BW",
            "TS_ZA",
            "TZM",
            "TZM_LATN",
            "TZM_LATN_DZ",
            "TZM_TFNG",
            "TZM_TFNG_MA",
            "UG",
            "UG_CN",
            "UR_IN",
            "UZ_CYRL",
            "UZ_CYRL_UZ",
            "UZ_LATN",
            "UZ_LATN_UZ",
            "WO",
            "WO_SN",
            "YO",
            "YO_NG",
            "ZGH",
            "ZGH_TFNG",
            "ZGH_TFNG_MA",
            "ZH_HANS",
            "ZH_HANT",
            "ZH_CHS",
            "ZH_CHT"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "LanguageCode",
            "modelAsString": false
          }
        },
        "Text": {
          "description": "The translated agreement.",
          "maxLength": 204800,
          "minLength": 0,
          "type": "string"
        },
        "Header": {
          "description": "The header for the translated agreement.",
          "maxLength": 1000,
          "minLength": 0,
          "type": "string"
        },
        "IsDefault": {
          "description": "If true, this translation is used as default.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateAllowedSignatureTypes": {
      "description": "The definition of the allowed signature types for the signature.",
      "type": "object",
      "properties": {
        "ClickToSign": {
          "$ref": "#/$defs/DraftCreateClickToSignSignatureType",
          "description": "Allow signing with \"click to sign\"."
        },
        "DrawToSign": {
          "$ref": "#/$defs/DraftCreateDrawToSignSignatureType",
          "description": "Allow signing with \"draw to sign\"."
        },
        "TypeToSign": {
          "$ref": "#/$defs/DraftCreateTypeToSignSignatureType",
          "description": "Allow signing with \"type to sign\"."
        },
        "LocalCertificate": {
          "$ref": "#/$defs/DraftCreateLocalCertificateSignatureType",
          "description": "Allow signing with a local certificate."
        },
        "DisposableCertificate": {
          "$ref": "#/$defs/DraftCreateDisposableCertificateSignatureType",
          "description": "Allow signing with a disposable certificate."
        },
        "SwissComOnDemand": {
          "$ref": "#/$defs/DraftCreateSwissComOnDemandSignatureType",
          "description": "Allow signing with a Swisscom On-Demand certificate."
        },
        "ATrustCertificate": {
          "$ref": "#/$defs/DraftCreateATrustCertificateSignatureType",
          "description": "Allow signing with an A-Trust certificate."
        },
        "Biometric": {
          "$ref": "#/$defs/DraftCreateBiometricSignatureType",
          "description": "Allow signing with a biometric signature."
        },
        "RemoteCertificate": {
          "$ref": "#/$defs/DraftCreateRemoteCertificateSignatureType",
          "description": "Allow signing with a remote certificate."
        },
        "OneTimePassword": {
          "$ref": "#/$defs/DraftCreateOneTimePasswordSignatureType",
          "description": "Allow signing with a one time password (SMS-OTP)."
        },
        "SwedishBankId": {
          "$ref": "#/$defs/DraftCreateSwedishBankIdSignatureType",
          "description": "Allow signing with Swedish BankID."
        },
        "SignaturePlugins": {
          "description": "Allow signing with signature plugins.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSignaturePluginSignatureType"
          }
        }
      }
    },
    "DraftCreateAppFinishAction": {
      "description": "Define actions for different clients that will trigger after an action has been finished.",
      "type": "object",
      "properties": {
        "RemoveDocumentFromRecentDocumentList": {
          "description": "If true, the document will be removed from the recent document list.",
          "type": "boolean"
        },
        "CallClientActionOnlyAfterSuccessfulSync": {
          "description": "If true, the client action will be called only after a successful sync.",
          "type": "boolean"
        },
        "CloseApp": {
          "description": "If true, the app will be closed.",
          "type": "boolean"
        },
        "RedirectUri": {
          "description": "The redirect uri.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateAttachment": {
      "description": "The configuration of the attachment element.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "The displayed name.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DisplayIconType": {
          "description": "The type of the displayed icon. If no icon is provided Paperclip will be used.",
          "enum": [
            "Paperclip",
            "Graph",
            "PushPin",
            "Tag"
          ],
          "type": "string"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateAttachmentDefinition",
          "description": "The definition of the attachment element.\nIt must be specified when the attachment element is added.\nIt must not be specified when the attachment element already exists."
        }
      }
    },
    "DraftCreateAttachmentDefinition": {
      "description": "The settings of a positionable element.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateAuthenticationConfiguration": {
      "description": "The definition of the authentications of the recipient.",
      "type": "object",
      "properties": {
        "AccessCode": {
          "$ref": "#/$defs/DraftCreateAccessCodeAuthentication",
          "description": "The configuration of the authentication with an access code."
        },
        "SmsOneTimePassword": {
          "$ref": "#/$defs/DraftCreateSmsOneTimePasswordAuthentication",
          "description": "The configuration of the authentication with one time password over SMS."
        },
        "SwedishBankId": {
          "$ref": "#/$defs/DraftCreateSwedishBankIdAuthentication",
          "description": "The configuration of the authentication with Swedish BankID."
        },
        "OAuthAuthentications": {
          "description": "The configurations of the authentication with OAuth.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateOAuthAuthentication"
          }
        },
        "SamlAuthentications": {
          "description": "The configurations of the authentication with SAML.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSamlAuthentication"
          }
        }
      }
    },
    "DraftCreateAuthenticationValidation": {
      "description": "A validation rule for an authentication response.",
      "type": "object",
      "properties": {
        "FieldReferenceId": {
          "description": "The identifier of the field.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "ExpectedValue": {
          "description": "The expected value of the field.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateBasicRecipientConfiguration": {
      "description": "The configuration of the recipient.",
      "type": "object",
      "properties": {
        "ContactInformation": {
          "$ref": "#/$defs/DraftCreateContactInformation",
          "description": "The contact information of the recipient."
        },
        "PersonalMessage": {
          "description": "The personal message for the recipient.",
          "maxLength": 204800,
          "minLength": 0,
          "type": "string"
        },
        "NotificationChannel": {
          "description": "Which channel is used for sending notifications to the recipient.\nDefault Email if not specified.",
          "enum": [
            "None",
            "Email",
            "Sms",
            "WhatsApp"
          ],
          "type": "string"
        }
      }
    },
    "DraftCreateBatchConfiguration": {
      "description": "The configuration of a signing batch.",
      "type": "object",
      "properties": {
        "Mode": {
          "description": "The mode, that will be used for batch signing.",
          "enum": [
            "Basic",
            "OptIn",
            "OptOut",
            "OptOutWithRequiredAlwaysSelected",
            "OptInWithRequiredAlwaysSelected"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "BatchMode",
            "modelAsString": false
          }
        },
        "RequireScrollingOverAllSignaturesBeforeSigning": {
          "description": "If true, the user has to review all signatures in the batch signing dialog before signing.\nThis is only applicable when the <code>Mode</code> is set to <code>OptIn</code> or <code>OptOut</code>.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateBiometricSignatureType": {
      "description": "The configuration of the Biometric signature.",
      "type": "object",
      "properties": {
        "BiometricVerification": {
          "description": "If true, a biometric verification is performed.",
          "type": "boolean"
        },
        "AllowBiometricStoringOnly": {
          "description": "If true, the biometric signature might be stored without verification.",
          "type": "boolean"
        },
        "StoreSignedResponseWithoutBioData": {
          "description": "If true, the signed response is stored without biometric data.",
          "type": "boolean"
        },
        "BiometricServerUserId": {
          "description": "The identifier of the user on the biometric server.",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "SignaturePositioning": {
          "description": "The allowed positioning of the biometric signature.",
          "enum": [
            "WithinField",
            "OnPage",
            "IntersectsWithField"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateBulkRecipient": {
      "description": "The definition of the recipient including the signature data.",
      "required": [
        "RecipientConfiguration"
      ],
      "type": "object",
      "properties": {
        "RecipientConfiguration": {
          "$ref": "#/$defs/DraftCreateAdvancedRecipientConfiguration",
          "description": "The configuration of the recipient."
        },
        "SignatureDataConfiguration": {
          "$ref": "#/$defs/DraftCreateSignatureDataConfiguration",
          "description": "The configuration of the signature data for the recipient."
        }
      }
    },
    "DraftCreateCallbackConfiguration": {
      "description": "The configuration of the callbacks for a custom integration.",
      "type": "object",
      "properties": {
        "CallbackUrl": {
          "description": "The callback URL triggered when the envelope has been finished.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        },
        "StatusUpdateCallbackUrl": {
          "description": "The callback URL triggered for status updates of an envelope.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        },
        "AfterSendCallbackUrl": {
          "description": "The callback URL triggered after sending the draft.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        },
        "ActivityActionCallbackConfiguration": {
          "$ref": "#/$defs/DraftCreateActivityActionCallbackConfiguration",
          "description": "The configuration of the callback for workstep events."
        }
      }
    },
    "DraftCreateCheckBox": {
      "description": "The configuration of the check box.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "IsChecked": {
          "description": "If true, the check box is checked.",
          "type": "boolean"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateCheckBoxDefinition",
          "description": "The definition of the check box.\nIt must be specified when the check box is added.\nIt must not be specified when the check box already exists."
        }
      }
    },
    "DraftCreateCheckBoxDefinition": {
      "description": "The configuration of a check box.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "ExportValue": {
          "description": "The value of the check box when it is checked.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        },
        "ReadOnly": {
          "description": "If true, the element is readonly.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateChoiceItem": {
      "description": "The configuration of the choice item.",
      "required": [
        "DisplayValue"
      ],
      "type": "object",
      "properties": {
        "ExportValue": {
          "description": "The value of the element when the choice item is selected.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DisplayValue": {
          "description": "The displayed value of the choice item.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateClickToSignSignatureType": {
      "description": "The configuration of the signature image.",
      "type": "object",
      "properties": {
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateClickToSignStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateClickToSignStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayEmail": {
          "description": "If true, the email address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateClientFinishAction": {
      "description": "Define actions for different clients that will trigger after an action has been finished.",
      "type": "object",
      "properties": {
        "RedirectUri": {
          "description": "The redirect uri.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateComboBox": {
      "description": "The configuration of the combo box.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "Value": {
          "description": "The selected value of the combo box.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateComboBoxDefinition",
          "description": "The definition of the combo box.\nIt must be specified when the combo box is added.\nIt must not be specified when the combo box already exists."
        }
      }
    },
    "DraftCreateComboBoxDefinition": {
      "description": "The configuration of the combo box.",
      "required": [
        "Items",
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "TextFormat": {
          "$ref": "#/$defs/DraftCreateTextFormat",
          "description": "The configuration of the text format."
        },
        "Items": {
          "description": "A list of items that can be selected for the element.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateChoiceItem"
          }
        },
        "IsEditable": {
          "description": "If true, the combo box is editable.",
          "type": "boolean"
        },
        "ReadOnly": {
          "description": "If true, the element is readonly.",
          "type": "boolean"
        },
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateContactInformation": {
      "description": "Define the contact information for the recipient.",
      "type": "object",
      "properties": {
        "Email": {
          "description": "The email address of the recipient.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^[a-zA-Z\\u00A0-\\uD7FF\\uE000-\\uFFFF0-9.!#$%&'*+\\-\\/=?^_`{|}~]+@(?=[a-z0-9A-Z\\u00A0-\\uD7FF\\uE000-\\uFFFF])(?:[a-z0-9A-Z\\u00A0-\\uD7FF\\uE000-\\uFFFF]|(?<![.-])\\.|(?<!\\.)-)*[a-z0-9A-Z\\u00A0-\\uD7FF\\uE000-\\uFFFF]$",
          "type": "string"
        },
        "GivenName": {
          "description": "The given name of the recipient.",
          "maxLength": 200,
          "minLength": 0,
          "type": "string"
        },
        "Surname": {
          "description": "The surname of the recipient.",
          "maxLength": 200,
          "minLength": 0,
          "type": "string"
        },
        "PhoneNumber": {
          "description": "The phone number of the recipient.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^(\\+|00){1}\\(?([0-9]{2,})\\)?([\\-. ]?([0-9]{2,})){1,}$",
          "type": "string"
        },
        "LanguageCode": {
          "description": "The language of the recipient.",
          "enum": [
            "AF",
            "AF_ZA",
            "AR",
            "AR_AE",
            "AR_BH",
            "AR_DZ",
            "AR_EG",
            "AR_IQ",
            "AR_JO",
            "AR_KW",
            "AR_LB",
            "AR_LY",
            "AR_MA",
            "AR_OM",
            "AR_QA",
            "AR_SA",
            "AR_SY",
            "AR_TN",
            "AR_YE",
            "AZ",
            "BE",
            "BE_BY",
            "BG",
            "BG_BG",
            "CA",
            "CA_ES",
            "CS",
            "CS_CZ",
            "CY",
            "CY_GB",
            "DA",
            "DA_DK",
            "DE",
            "DE_AT",
            "DE_CH",
            "DE_DE",
            "DE_LI",
            "DE_LU",
            "DV",
            "DV_MV",
            "EL",
            "EL_GR",
            "EN",
            "EN_AU",
            "EN_BZ",
            "EN_CA",
            "EN_GB",
            "EN_IE",
            "EN_JM",
            "EN_NZ",
            "EN_PH",
            "EN_TT",
            "EN_US",
            "EN_ZA",
            "EN_ZW",
            "ES",
            "ES_AR",
            "ES_BO",
            "ES_CL",
            "ES_CO",
            "ES_CR",
            "ES_DO",
            "ES_EC",
            "ES_ES",
            "ES_GT",
            "ES_HN",
            "ES_MX",
            "ES_NI",
            "ES_PA",
            "ES_PE",
            "ES_PR",
            "ES_PY",
            "ES_SV",
            "ES_UY",
            "ES_VE",
            "ET",
            "ET_EE",
            "EU",
            "EU_ES",
            "FA",
            "FA_IR",
            "FI",
            "FI_FI",
            "FO",
            "FO_FO",
            "FR",
            "FR_BE",
            "FR_CA",
            "FR_CH",
            "FR_FR",
            "FR_LU",
            "FR_MC",
            "GL",
            "GL_ES",
            "GU",
            "GU_IN",
            "HE",
            "HE_IL",
            "HI",
            "HI_IN",
            "HR",
            "HR_BA",
            "HR_HR",
            "HU",
            "HU_HU",
            "HY",
            "HY_AM",
            "ID",
            "ID_ID",
            "IS",
            "IS_IS",
            "IT",
            "IT_CH",
            "IT_IT",
            "JA",
            "JA_JP",
            "KA",
            "KA_GE",
            "KK",
            "KK_KZ",
            "KN",
            "KN_IN",
            "KO",
            "KO_KR",
            "KOK",
            "KOK_IN",
            "KY",
            "KY_KG",
            "LT",
            "LT_LT",
            "LV",
            "LV_LV",
            "MI",
            "MI_NZ",
            "MK",
            "MK_MK",
            "MN",
            "MN_MN",
            "MR",
            "MR_IN",
            "MS",
            "MS_BN",
            "MS_MY",
            "MT",
            "MT_MT",
            "NB",
            "NB_NO",
            "NL",
            "NL_BE",
            "NL_NL",
            "NN_NO",
            "PA",
            "PA_IN",
            "PL",
            "PL_PL",
            "PS",
            "PT",
            "PT_BR",
            "PT_PT",
            "RO",
            "RO_RO",
            "RU",
            "RU_RU",
            "SA",
            "SA_IN",
            "SE",
            "SE_FI",
            "SE_NO",
            "SE_SE",
            "SK",
            "SK_SK",
            "SL",
            "SL_SI",
            "SQ",
            "SQ_AL",
            "SV",
            "SV_FI",
            "SV_SE",
            "SW",
            "SW_KE",
            "SYR",
            "SYR_SY",
            "TA",
            "TA_IN",
            "TE",
            "TE_IN",
            "TH",
            "TH_TH",
            "TN",
            "TN_ZA",
            "TR",
            "TR_TR",
            "TT",
            "TT_RU",
            "TS",
            "UK",
            "UK_UA",
            "UR",
            "UR_PK",
            "UZ",
            "VI",
            "VI_VN",
            "XH",
            "XH_ZA",
            "ZH",
            "ZH_CN",
            "ZH_HK",
            "ZH_MO",
            "ZH_SG",
            "ZH_TW",
            "ZU",
            "ZU_ZA",
            "AM",
            "AM_ET",
            "ARN",
            "ARN_CL",
            "AS",
            "AS_IN",
            "AZ_CYRL",
            "AZ_CYRL_AZ",
            "AZ_LATN",
            "AZ_LATN_AZ",
            "BA",
            "BA_RU",
            "BN",
            "BN_BD",
            "BN_IN",
            "BO",
            "BO_CN",
            "BR",
            "BR_FR",
            "BS",
            "BS_CYRL",
            "BS_CYRL_BA",
            "BS_LATN",
            "BS_LATN_BA",
            "CA_ES_VALENCIA",
            "CHR",
            "CHR_CHER",
            "CHR_CHER_US",
            "CO",
            "CO_FR",
            "DSB",
            "DSB_DE",
            "EN_029",
            "EN_HK",
            "EN_IN",
            "EN_MY",
            "EN_SG",
            "ES_419",
            "ES_US",
            "FF",
            "FF_LATN",
            "FF_LATN_SN",
            "FIL",
            "FIL_PH",
            "FR_CD",
            "FR_CI",
            "FR_CM",
            "FR_HT",
            "FR_MA",
            "FR_ML",
            "FR_RE",
            "FR_SN",
            "FY",
            "FY_NL",
            "GA",
            "GA_IE",
            "GD",
            "GD_GB",
            "GN",
            "GN_PY",
            "GSW",
            "GSW_FR",
            "HA",
            "HA_LATN",
            "HA_LATN_NG",
            "HAW",
            "HAW_US",
            "HSB",
            "HSB_DE",
            "IG",
            "IG_NG",
            "II",
            "II_CN",
            "IU",
            "IU_CANS",
            "IU_CANS_CA",
            "IU_LATN",
            "IU_LATN_CA",
            "JV",
            "JV_LATN",
            "JV_LATN_ID",
            "KL",
            "KL_GL",
            "KM",
            "KM_KH",
            "KU",
            "KU_ARAB",
            "KU_ARAB_IQ",
            "LB",
            "LB_LU",
            "LO",
            "LO_LA",
            "MG",
            "MG_MG",
            "ML",
            "ML_IN",
            "MN_CYRL",
            "MN_MONG",
            "MN_MONG_CN",
            "MN_MONG_MN",
            "MOH",
            "MOH_CA",
            "MY",
            "MY_MM",
            "NE",
            "NE_IN",
            "NE_NP",
            "NN",
            "NO",
            "NQO",
            "NQO_GN",
            "NSO",
            "NSO_ZA",
            "OC",
            "OC_FR",
            "OM",
            "OM_ET",
            "OR",
            "OR_IN",
            "PA_ARAB",
            "PA_ARAB_PK",
            "PRS",
            "PRS_AF",
            "PS_AF",
            "PT_AO",
            "QUT",
            "QUT_GT",
            "QUZ",
            "QUZ_BO",
            "QUZ_EC",
            "QUZ_PE",
            "RM",
            "RM_CH",
            "RO_MD",
            "RW",
            "RW_RW",
            "SAH",
            "SAH_RU",
            "SD",
            "SD_ARAB",
            "SD_ARAB_PK",
            "SI",
            "SI_LK",
            "SMA",
            "SMA_NO",
            "SMA_SE",
            "SMJ",
            "SMJ_NO",
            "SMJ_SE",
            "SMN",
            "SMN_FI",
            "SMS",
            "SMS_FI",
            "SN",
            "SN_LATN",
            "SN_LATN_ZW",
            "SO",
            "SO_SO",
            "SR",
            "SR_CYRL",
            "SR_CYRL_BA",
            "SR_CYRL_CS",
            "SR_CYRL_ME",
            "SR_CYRL_RS",
            "SR_LATN",
            "SR_LATN_BA",
            "SR_LATN_CS",
            "SR_LATN_ME",
            "SR_LATN_RS",
            "ST",
            "ST_ZA",
            "TA_LK",
            "TG",
            "TG_CYRL",
            "TG_CYRL_TJ",
            "TI",
            "TI_ER",
            "TI_ET",
            "TK",
            "TK_TM",
            "TN_BW",
            "TS_ZA",
            "TZM",
            "TZM_LATN",
            "TZM_LATN_DZ",
            "TZM_TFNG",
            "TZM_TFNG_MA",
            "UG",
            "UG_CN",
            "UR_IN",
            "UZ_CYRL",
            "UZ_CYRL_UZ",
            "UZ_LATN",
            "UZ_LATN_UZ",
            "WO",
            "WO_SN",
            "YO",
            "YO_NG",
            "ZGH",
            "ZGH_TFNG",
            "ZGH_TFNG_MA",
            "ZH_HANS",
            "ZH_HANT",
            "ZH_CHS",
            "ZH_CHT"
          ],
          "type": "string"
        }
      }
    },
    "DraftCreateDate": {
      "description": "The configuration of the predefined element showing the date.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "DateFormat": {
          "description": "The format of the date.",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateDateValidationConfiguration": {
      "description": "The validation rules for dates.",
      "type": "object",
      "properties": {
        "DateFormat": {
          "description": "The format of the dates.",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "Range": {
          "$ref": "#/$defs/DraftCreateFieldValidationRange",
          "description": "The range of the values."
        }
      }
    },
    "DraftCreateDefaultSignature": {
      "description": "The configuration of the default signature type for a draft.",
      "type": "object",
      "properties": {
        "IsDefault": {
          "description": "If true, this signature type is used for newly added signature fields as default.\nOnly one signature type can be set as default.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateDefaultSignatureTypeConfiguration": {
      "description": "The configuration of the default signature type for the draft.",
      "type": "object",
      "properties": {
        "None": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"None\" SignatureType."
        },
        "ClickToSign": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"click to sign\" SignatureType."
        },
        "DrawToSign": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"draw to sign\" SignatureType."
        },
        "TypeToSign": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"type to sign\" SignatureType."
        },
        "LocalCertificate": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"local certificate\" SignatureType."
        },
        "DisposableCertificate": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"disposable certificate\" SignatureType."
        },
        "Biometric": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"biometric signature\" SignatureType."
        },
        "RemoteCertificate": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"remote certificate\" SignatureType."
        },
        "OneTimePassword": {
          "$ref": "#/$defs/DraftCreateDefaultSignature",
          "description": "\"one time password (SMS-OTP)\" SignatureType."
        }
      }
    },
    "DraftCreateDisposableCertificateSignatureData": {
      "description": "The recipient configuration for signing with a disposable certificate.",
      "type": "object",
      "properties": {
        "DocumentIssuingCountry": {
          "description": "The issuing country of the document.\nWill be used as country of residence, if lean is disabled.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "IdentificationIssuingCountry": {
          "description": "The issuing country of the identification.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "IdentificationType": {
          "description": "The type of identification in use.",
          "enum": [
            "None",
            "ForeignTaxCode",
            "PersonalNumber",
            "Passport",
            "NationalIdentityCard",
            "ItalianTaxCode",
            "NoSerialNumber",
            "DrivingLicense",
            "ResidencePermit",
            "TemporaryResidencePermit",
            "EmbassyDocument",
            "AML"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "DisposableCertificateIdentificationType",
            "modelAsString": false
          }
        },
        "PhoneNumber": {
          "description": "The phone number registered for identification.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^(\\+|00){1}\\(?([0-9]{2,})\\)?([\\-. ]?([0-9]{2,})){1,}$",
          "type": "string"
        },
        "DocumentType": {
          "description": "The type of document used for the identification.",
          "enum": [
            "IdentityCard",
            "DriverLicense",
            "Passport",
            "ResidencePermit",
            "NationalElectronicIdentityCard",
            "TemporaryResidencePermit",
            "EmbassyDocument"
          ],
          "type": "string"
        },
        "DocumentIssuedBy": {
          "description": "The authority that issued the document.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentIssuedOn": {
          "format": "date",
          "description": "The date when the document has been issued.\nA date in the format RFC 3339, section 5.6, 'full-date' (e.g. 2017-07-21).",
          "maxLength": 10,
          "minLength": 10,
          "type": "string"
        },
        "DocumentExpiryDate": {
          "format": "date",
          "description": "The expiration date of the document.\nA date in the format RFC 3339, section 5.6, 'full-date' (e.g. 2017-07-21).",
          "maxLength": 10,
          "minLength": 10,
          "type": "string"
        },
        "SerialNumber": {
          "description": "The serial number of the certificate.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "description": "The identifier of the document.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateDisposableCertificateSignatureType": {
      "description": "The configuration of the DisposableCertificate signature.",
      "type": "object",
      "properties": {
        "IsLongLived": {
          "description": "If true, the disposable certificate is long lived.",
          "type": "boolean"
        },
        "ValidityInSeconds": {
          "description": "The validity of the certificate in seconds.",
          "type": "integer"
        },
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateDisposableCertificateStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateDisposableCertificateStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateDocument": {
      "description": "Define a document.",
      "type": "object",
      "properties": {
        "FileId": {
          "description": "The identifier of the file.",
          "maxLength": 36,
          "minLength": 36,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The document number.\nIf the document number is 0 for all documents, the order of the documents is used as number.\nThe document number must not be duplicated.\nThe document number must be set for all documents or none.",
          "type": "integer"
        }
      }
    },
    "DraftCreateDrawToSignSignatureType": {
      "description": "The configuration of the signature image.",
      "type": "object",
      "properties": {
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateDrawToSignStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateDrawToSignStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayEmail": {
          "description": "If true, the email address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateElements": {
      "description": "The configurable elements of the documents.",
      "type": "object",
      "properties": {
        "TextBoxes": {
          "description": "The text boxes.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateTextBox"
          }
        },
        "CheckBoxes": {
          "description": "The check boxes.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateCheckBox"
          }
        },
        "ComboBoxes": {
          "description": "The combo boxes.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateComboBox"
          }
        },
        "RadioButtons": {
          "description": "The radio buttons.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateRadioButtonGroup"
          }
        },
        "ListBoxes": {
          "description": "The list boxes.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateListBox"
          }
        },
        "Signatures": {
          "description": "The signatures.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSignatureField"
          }
        },
        "Attachments": {
          "description": "The attachments.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateAttachment"
          }
        },
        "PredefinedFieldElements": {
          "$ref": "#/$defs/DraftCreatePredefinedFieldElements",
          "description": "The predefined field elements."
        },
        "LinkConfiguration": {
          "$ref": "#/$defs/DraftCreateLinkConfiguration",
          "description": "The links in the documents."
        },
        "AreaReadConfirmations": {
          "description": "The areas which have to be read.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateReadAreaConfirmation"
          }
        },
        "PageReadConfirmations": {
          "description": "The pages which have to be read.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateReadPagesConfirmation"
          }
        },
        "DocumentReadConfirmations": {
          "description": "The documents which have to be read.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateReadDocumentConfirmation"
          }
        }
      }
    },
    "DraftCreateEmail": {
      "description": "The configuration of the predefined element.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateEmailAppLinks": {
      "description": "Configure if links for our apps should be included in the recipient document signing request email message.",
      "type": "object",
      "properties": {
        "Android": {
          "description": "If true, an Android app link is added to the email message.",
          "type": "boolean"
        },
        "iOS": {
          "description": "If true, an iOS app link is added to the email message.",
          "type": "boolean"
        },
        "Windows": {
          "description": "If true, a Windows app link is added to the email message.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateEmailConfiguration": {
      "description": "The configuration for notifications.",
      "type": "object",
      "properties": {
        "Subject": {
          "description": "The subject of the sign notifications.",
          "maxLength": 300,
          "minLength": 0,
          "type": "string"
        },
        "Message": {
          "description": "The message of the sign notifications.",
          "maxLength": 204800,
          "minLength": 0,
          "type": "string"
        },
        "SenderDisplayName": {
          "description": "The displayed name of the sender in the notifications.",
          "maxLength": 200,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateExpirationConfiguration": {
      "description": "The configuration of the expiration for the envelope.",
      "type": "object",
      "properties": {
        "ExpirationInSecondsAfterSending": {
          "description": "The relative expiration in seconds after sending the envelope.\nMust be a positive number between 600 and the maximum envelope validity located in the system configuration [Configuration key: maxEnvelopeValidityInDays, Default: 2419200 seconds (28 days)].\nMust not be defined when property <code>ExpirationDate</code> is specified.",
          "type": "integer"
        },
        "ExpirationDate": {
          "format": "date-time",
          "description": "The absolute expiration date of the envelope.\nMust not be in the past.\nMust not be defined when property <code>ExpirationInSecondsAfterSending</code> is specified.\nA datetime in the format RFC 3339, section 5.6, 'date-Time' (e.g. 2017-07-21T17:32:28Z).",
          "maxLength": 30,
          "minLength": 20,
          "type": "string"
        }
      }
    },
    "DraftCreateFieldValidation": {
      "description": "The configuration of the field validation rules.",
      "type": "object",
      "properties": {
        "Type": {
          "description": "The type of the value.",
          "enum": [
            "None",
            "Date",
            "Email",
            "Number",
            "Phone",
            "Time"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "FieldValidationType",
            "modelAsString": false
          }
        },
        "DateValidationConfiguration": {
          "$ref": "#/$defs/DraftCreateDateValidationConfiguration",
          "description": "The validation rules for dates."
        },
        "NumberValidationConfiguration": {
          "$ref": "#/$defs/DraftCreateNumberValidationConfiguration",
          "description": "The validation rules for numbers."
        },
        "PhoneValidationConfiguration": {
          "$ref": "#/$defs/DraftCreatePhoneValidationConfiguration",
          "description": "The validation rules for phone numbers."
        },
        "TimeValidationConfiguration": {
          "$ref": "#/$defs/DraftCreateTimeValidationConfiguration",
          "description": "The validation rules for time values."
        }
      }
    },
    "DraftCreateFieldValidationRange": {
      "description": "The validation rules for a value range.",
      "type": "object",
      "properties": {
        "From": {
          "description": "The lower boundary of the range.",
          "maxLength": 100,
          "minLength": 0,
          "type": "string"
        },
        "To": {
          "description": "The upper boundary of the range.",
          "maxLength": 100,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateFinishAction": {
      "description": "Define what happens in the signing clients, after an action has been finished.",
      "type": "object",
      "properties": {
        "SignAnyWhereViewer": {
          "$ref": "#/$defs/DraftCreateClientFinishAction",
          "description": "The actions for the SAW Viewer."
        },
        "SignificantClientSignatureCaptureForIos": {
          "$ref": "#/$defs/DraftCreateAppFinishAction",
          "description": "The actions for the SIGNificant Client Signature Capture App for iOS."
        },
        "SignificantClientSignatureCaptureForAndroid": {
          "$ref": "#/$defs/DraftCreateAppFinishAction",
          "description": "The actions for the SIGNificant Client Signature Capture App for Android."
        },
        "SignificantClientSignatureCaptureForWindows": {
          "$ref": "#/$defs/DraftCreateAppFinishAction",
          "description": "The actions for the SIGNificant Client Signature Capture App for Windows."
        },
        "KioskSdk": {
          "$ref": "#/$defs/DraftCreateKioskFinishAction",
          "description": "The actions for the SIGNificant Kiosk SDK."
        }
      }
    },
    "DraftCreateFullName": {
      "description": "The configuration of the predefined element.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateGeneralPoliciesForP7MAction": {
      "description": "Define the general policies allowed for P7M action.",
      "type": "object",
      "properties": {
        "AllowSaveDocument": {
          "description": "If true, the client is allowed to save the workstep document.",
          "type": "boolean"
        },
        "AllowSaveAuditTrail": {
          "description": "If true, the client is allowed to save the audittrail document.",
          "type": "boolean"
        },
        "AllowPrintDocument": {
          "description": "If true, the client is allowed to print the workstep document.",
          "type": "boolean"
        },
        "AllowAdhocPdfAttachments": {
          "description": "If true, the client is allowed to append adhoc documents.",
          "type": "boolean"
        },
        "AllowRejectWorkstep": {
          "description": "If true, the client is allowed to reject the workstep.",
          "type": "boolean"
        },
        "AllowUndoLastAction": {
          "description": "If true, the client is allowed to undo actions.",
          "type": "boolean"
        },
        "AllowDownloadOfSignedP7MFiles": {
          "description": "If true, the client is allowed to download signed p7m files.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateGeneralPoliciesForSignAction": {
      "description": "Define the general policies allowed for sign action.",
      "type": "object",
      "properties": {
        "AllowSaveDocument": {
          "description": "If true, the client is allowed to save the workstep document.",
          "type": "boolean"
        },
        "AllowSaveAuditTrail": {
          "description": "If true, the client is allowed to save the audittrail document.",
          "type": "boolean"
        },
        "AllowPrintDocument": {
          "description": "If true, the client is allowed to print the workstep document.",
          "type": "boolean"
        },
        "AllowAdhocPdfAttachments": {
          "description": "If true, the client is allowed to append adhoc documents.",
          "type": "boolean"
        },
        "AllowRejectWorkstep": {
          "description": "If true, the client is allowed to reject the workstep.",
          "type": "boolean"
        },
        "AllowUndoLastAction": {
          "description": "If true, the client is allowed to undo actions.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateGeneralPoliciesForViewAction": {
      "description": "Define the general policies allowed for view action.",
      "type": "object",
      "properties": {
        "AllowSaveDocument": {
          "description": "If true, the client is allowed to save the workstep document.",
          "type": "boolean"
        },
        "AllowSaveAuditTrail": {
          "description": "If true, the client is allowed to save the audittrail document.",
          "type": "boolean"
        },
        "AllowPrintDocument": {
          "description": "If true, the client is allowed to print the workstep document.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateGivenName": {
      "description": "The configuration of the predefined element.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateHyperLink": {
      "description": "The definition of the hyperlink element.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Uri": {
          "description": "The URI of the hyperlink.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateLinkDefinition",
          "description": "The definition of the hyperlink element.\nIt must be specified when the hyperlink element is added.\nIt must not be specified when the hyperlink element already exists."
        }
      }
    },
    "DraftCreateInitials": {
      "description": "The configuration of the predefined element showing the initials.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "IncludeMiddleNameInitials": {
          "description": "If true, the initials from the middle names are included as well. \nThe initials are read from the given name. Additional names are expected to be separated by a space.",
          "type": "boolean"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateKioskFinishAction": {
      "description": "Define actions for different clients that will trigger after an action has been finished.",
      "type": "object",
      "properties": {
        "RedirectUri": {
          "description": "The redirect uri.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateLinkConfiguration": {
      "description": "The configuration of the link elements.",
      "type": "object",
      "properties": {
        "HyperLinks": {
          "description": "The list of hyperlink elements.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateHyperLink"
          }
        }
      }
    },
    "DraftCreateLinkDefinition": {
      "description": "The settings of a positionable element.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateListBox": {
      "description": "The configuration of the list box.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "PreSelectedItems": {
          "description": "The export values of the items which should be initially selected.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "maxLength": 500,
            "type": "string"
          }
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateListBoxDefinition",
          "description": "The definition of the list box field.\nIt must be specified when the list box is added.\nIt must not be specified when the list box already exists."
        }
      }
    },
    "DraftCreateListBoxDefinition": {
      "description": "The configuration of the list box.",
      "required": [
        "Items",
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "TextFormat": {
          "$ref": "#/$defs/DraftCreateTextFormat",
          "description": "The configuration of the text format."
        },
        "Items": {
          "description": "A list of items that can be selected for the element.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateChoiceItem"
          }
        },
        "IsMultiSelect": {
          "description": "If true, multiple values of the list box can be selected.",
          "type": "boolean"
        },
        "ReadOnly": {
          "description": "If true, the element is readonly.",
          "type": "boolean"
        },
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateLocalCertificateSignatureType": {
      "description": "The configuration of the LocalCertificate signature.",
      "type": "object",
      "properties": {
        "EnforcePreferredHashAlgorithm": {
          "description": "If true, the usage of the preferred hash algorithm is enforced.",
          "type": "boolean"
        },
        "PreferredHashAlgorithm": {
          "description": "The preferred hash algorithm.",
          "enum": [
            "Sha256",
            "Sha512"
          ],
          "type": "string"
        },
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateLocalCertificateStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateLocalCertificateStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateNumberValidationConfiguration": {
      "description": "The validation rules for numbers.",
      "type": "object",
      "properties": {
        "DecimalDigits": {
          "description": "The expected amount of decimal digits.",
          "type": "integer"
        },
        "Symbol": {
          "description": "The expected symbol.",
          "maxLength": 5,
          "minLength": 0,
          "type": "string"
        },
        "SymbolLocation": {
          "description": "The defined symbol location.",
          "enum": [
            "Start",
            "StartWithBlank",
            "End",
            "EndWithBlank"
          ],
          "type": "string"
        },
        "GroupSeparator": {
          "description": "The expected thousands separator.",
          "enum": [
            "Comma",
            "Point",
            "Apostrophe",
            "Blank",
            "None"
          ],
          "type": "string"
        },
        "DecimalSeparator": {
          "description": "The expected decimal separator.",
          "enum": [
            "Comma",
            "Point",
            "Apostrophe",
            "None"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "DecimalSeparatorType",
            "modelAsString": false
          }
        },
        "Range": {
          "$ref": "#/$defs/DraftCreateFieldValidationRange",
          "description": "The range of the values."
        }
      }
    },
    "DraftCreateOAuthAuthentication": {
      "description": "The configuration for authentication with an OAuth provider.",
      "type": "object",
      "properties": {
        "ProviderName": {
          "description": "The name of the OAuth provider.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Validations": {
          "description": "The validation rules for the OAuth response.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateAuthenticationValidation"
          }
        }
      }
    },
    "DraftCreateOneTimePasswordSignatureType": {
      "description": "The configuration of the OneTimePassword signature.",
      "type": "object",
      "properties": {
        "ValidityInSeconds": {
          "description": "The validity of the password in seconds.",
          "type": "integer"
        },
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateOneTimePasswordStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateOneTimePasswordStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayTransactionId": {
          "description": "If true, the transaction identifier is displayed.",
          "type": "boolean"
        },
        "DisplayTransactionToken": {
          "description": "If true, the transaction token is displayed.",
          "type": "boolean"
        },
        "DisplayPhoneNumber": {
          "description": "If true, the phone number of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateP7MSignatureMethods": {
      "description": "The recipient configuration for signing with P7M.",
      "type": "object",
      "properties": {
        "LocalCertificate": {
          "description": "If true, a local certificate can be used.",
          "type": "boolean"
        },
        "DisposableCertificate": {
          "$ref": "#/$defs/DraftCreateDisposableCertificateSignatureData",
          "description": "The disposable certificate configuration for the action."
        },
        "RemoteCertificate": {
          "$ref": "#/$defs/DraftCreateRemoteCertificateSignatureData",
          "description": "The remote certificate configuration for the action."
        },
        "SignaturePluginData": {
          "description": "The signature plugin configurations for the action.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSignaturePluginSignatureData"
          }
        }
      }
    },
    "DraftCreatePhoneValidationConfiguration": {
      "description": "The validation rules for phone numbers.",
      "type": "object",
      "properties": {
        "Type": {
          "description": "The format of the phone numbers.",
          "enum": [
            "International",
            "InternationalLeadingZeros",
            "InternationalLeadingPlus"
          ],
          "type": "string"
        }
      }
    },
    "DraftCreatePluginStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayEmail": {
          "description": "If true, the email address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreatePosition": {
      "description": "The position of an element on the document.",
      "required": [
        "X",
        "Y"
      ],
      "type": "object",
      "properties": {
        "PageNumber": {
          "format": "int32",
          "description": "The number of the page where the element is located. It starts with 1.",
          "type": "integer"
        },
        "X": {
          "format": "double",
          "description": "The X coordinate in points. It starts from the left.",
          "type": "number"
        },
        "Y": {
          "format": "double",
          "description": "The Y coordinate in points. It starts from the bottom.",
          "type": "number"
        }
      }
    },
    "DraftCreatePredefinedElementDefinition": {
      "description": "The configuration of the predefined element.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "TextFormat": {
          "$ref": "#/$defs/DraftCreateTextFormat",
          "description": "The configuration of the text format."
        },
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreatePredefinedFieldElements": {
      "description": "Define the predefined fields which will be added and filled by the system.",
      "type": "object",
      "properties": {
        "TextFields": {
          "description": "The predefined text fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreatePredefinedText"
          }
        },
        "EmailFields": {
          "description": "The recipient's email fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateEmail"
          }
        },
        "InitialsFields": {
          "description": "The recipient's initials fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateInitials"
          }
        },
        "GivenNameFields": {
          "description": "The recipient's given name fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateGivenName"
          }
        },
        "SurnameFields": {
          "description": "The recipient's surname fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSurname"
          }
        },
        "FullNameFields": {
          "description": "The recipient's full name fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateFullName"
          }
        },
        "DateFields": {
          "description": "The current date fields.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateDate"
          }
        }
      }
    },
    "DraftCreatePredefinedText": {
      "description": "The configuration of the element showing the predefined text.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "Value": {
          "description": "The value of the predefined text.",
          "maxLength": 1000,
          "minLength": 0,
          "type": "string"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateRadioButtonGroup": {
      "description": "The configuration of the radio button group.",
      "type": "object",
      "properties": {
        "GroupName": {
          "description": "The name of the radio button group.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "SelectedItem": {
          "description": "The export value of the selected item of the radio button group.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateRadioButtonGroupDefinition",
          "description": "The definition of the radio button group.\nIt must be specified when the radio button group is added.\nIt must not be specified when the radio button group already exists."
        }
      }
    },
    "DraftCreateRadioButtonGroupDefinition": {
      "description": "The configuration of the radio button group definition.",
      "type": "object",
      "properties": {
        "IsSelectUnison": {
          "description": "If true, radiobuttons with the same <code>ExportValue</code> are checked and unchecked together.",
          "type": "boolean"
        },
        "Items": {
          "description": "The list of radio buttons that belong to the same group.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateRadioButtonItemDefinition"
          }
        }
      }
    },
    "DraftCreateRadioButtonItemDefinition": {
      "description": "The configuration of the radio button.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "ExportValue": {
          "description": "The value of the element when the radio button is checked.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "IsChecked": {
          "description": "If true, the radio button is checked by default.",
          "type": "boolean"
        },
        "ReadOnly": {
          "description": "If true, the element is readonly.",
          "type": "boolean"
        },
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateReadAreaConfirmation": {
      "description": "The area that has to be read.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "DisplayName": {
          "description": "The displayed name.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "Definition": {
          "$ref": "#/$defs/DraftCreateReadingAreaDefinition",
          "description": "The definition of the area.\nWhen adding a new element, it has to be specified .\nWhen the field already exists, it must not be specified."
        }
      }
    },
    "DraftCreateReadDocumentConfirmation": {
      "description": "The document which has to be read.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "DisplayName": {
          "description": "The displayed name.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        }
      }
    },
    "DraftCreateReadPagesConfirmation": {
      "description": "The page which has to be read.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "DisplayName": {
          "description": "The displayed name.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "PageNumber": {
          "format": "int32",
          "description": "The number of the page that needs to be read. Starting with 1.",
          "type": "integer"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        }
      }
    },
    "DraftCreateReadingAreaDefinition": {
      "description": "The settings of a positionable element.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateRecipientConfiguration": {
      "description": "The configuration of the recipient.",
      "type": "object",
      "properties": {
        "ContactInformation": {
          "$ref": "#/$defs/DraftCreateContactInformation",
          "description": "The contact information of the recipient."
        },
        "PersonalMessage": {
          "description": "The personal message for the recipient.",
          "maxLength": 204800,
          "minLength": 0,
          "type": "string"
        },
        "AuthenticationConfiguration": {
          "$ref": "#/$defs/DraftCreateAuthenticationConfiguration",
          "description": "The configuration for the authentication of the recipient."
        },
        "SendEmails": {
          "description": "Obsolete: If true, emails will be sent out for this recipient.\nUse NotificationChannel property instead, which also allows sending with other notification channels than Email.\nNotificationChannel.None is the equivalent of sending false.\nNotificationChannel.Email is the equivalent of sending true.\nIf the NotificationChannel property is used/sent this property will be ignored.",
          "type": "boolean"
        },
        "NotificationChannel": {
          "description": "Which channel is used for sending notifications to the recipient.\nDefault Email if not specified.",
          "enum": [
            "None",
            "Email",
            "Sms",
            "WhatsApp"
          ],
          "type": "string"
        },
        "AllowAccessAfterFinish": {
          "description": "If true, the recipient is allowed to access the action after it has been finished.\nIt is required that the organization has the AllowAccessFinishedWorkstep feature enabled.\nThe default value is taken from the OrganizationSettings.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateRedirectConfiguration": {
      "description": "The configuration of the draft redirect URLs.",
      "type": "object",
      "properties": {
        "AfterSendRedirectUrl": {
          "description": "The URL to redirect to after the envelope was sent successfully.\nThis is only applicable when using the eSAW UI.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        },
        "BeforeSendRedirectUrl": {
          "description": "The URL to redirect to before the envelope is sent.\nThis is only applicable when using the eSAW UI.",
          "maxLength": 8000,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateReminderConfiguration": {
      "description": "The configuration for reminders.",
      "type": "object",
      "properties": {
        "Enabled": {
          "description": "If true, reminders are sent.",
          "type": "boolean"
        },
        "FirstReminderInDays": {
          "description": "The amount of days until a reminder is sent to a signer or a viewer after the initial notification.",
          "type": "integer"
        },
        "ReminderResendIntervalInDays": {
          "description": "The amount of days until a reminder is sent again to a signer or a viewer.",
          "type": "integer"
        },
        "BeforeExpirationInDays": {
          "description": "The amount of days before the envelope expires and a reminder should be sent.",
          "type": "integer"
        }
      }
    },
    "DraftCreateRemoteCertificateSignatureData": {
      "description": "The recipient configuration for signing with a remote certificate.",
      "type": "object",
      "properties": {
        "UserId": {
          "description": "The identifier of the user.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DeviceId": {
          "description": "The identifier of the device.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateRemoteCertificateSignatureType": {
      "description": "The configuration of the RemoteCertificate signature.",
      "type": "object",
      "properties": {
        "ValidityInSeconds": {
          "description": "The validity of the certificate in seconds.",
          "type": "integer"
        },
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateRemoteCertificateStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateRemoteCertificateStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateSamlAuthentication": {
      "description": "The configuration for authentication with a SAML provider.",
      "type": "object",
      "properties": {
        "ProviderName": {
          "description": "The name of the SAML provider.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Validations": {
          "description": "The validation rules for the SAML response.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateAuthenticationValidation"
          }
        }
      }
    },
    "DraftCreateSealingConfiguration": {
      "description": "The sealing configuration for the envelope",
      "type": "object",
      "properties": {
        "CertificateId": {
          "description": "Custom Sealing certificate identifier.",
          "maxLength": 36,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateSendCopy": {
      "description": "An action to send a copy of the documents to the recipient.",
      "type": "object",
      "properties": {
        "RecipientConfiguration": {
          "$ref": "#/$defs/DraftCreateBasicRecipientConfiguration",
          "description": "The configuration of the recipient."
        },
        "CopyingGroup": {
          "description": "The group for defining parallel copy actions.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateSign": {
      "description": "A sign action for the recipient.",
      "type": "object",
      "properties": {
        "RecipientConfiguration": {
          "$ref": "#/$defs/DraftCreateAdvancedRecipientConfiguration",
          "description": "The configuration of the recipient."
        },
        "SequenceMode": {
          "description": "The sequence mode.",
          "enum": [
            "NoSequenceEnforced",
            "SequenceEnforced"
          ],
          "type": "string"
        },
        "Elements": {
          "$ref": "#/$defs/DraftCreateElements",
          "description": "The elements in the document (e.g. form fields) assigned to the recipient."
        },
        "FinishActionConfiguration": {
          "$ref": "#/$defs/DraftCreateFinishAction",
          "description": "Defines what happens in the signing clients, after an action has been finished."
        },
        "SignatureDataConfiguration": {
          "$ref": "#/$defs/DraftCreateSignatureDataConfiguration",
          "description": "The configuration of recipient data for special signatures."
        },
        "BatchConfiguration": {
          "$ref": "#/$defs/DraftCreateBatchConfiguration",
          "description": "The configuration of a signing batch."
        },
        "SigningGroup": {
          "description": "The group for defining parallel sign actions.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GeneralPoliciesOverrides": {
          "$ref": "#/$defs/DraftCreateGeneralPoliciesForSignAction",
          "description": "Viewer policy settings for override."
        }
      }
    },
    "DraftCreateSignAsP7M": {
      "description": "An action to sign the documents with P7M.",
      "type": "object",
      "properties": {
        "RecipientConfiguration": {
          "$ref": "#/$defs/DraftCreateAdvancedRecipientConfiguration",
          "description": "The configuration of the recipient."
        },
        "SignatureMethods": {
          "$ref": "#/$defs/DraftCreateP7MSignatureMethods",
          "description": "The configuration of recipient data for P7M signatures."
        },
        "SignAsP7MGroup": {
          "description": "The group for defining parallel P7M actions.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GeneralPoliciesOverrides": {
          "$ref": "#/$defs/DraftCreateGeneralPoliciesForP7MAction",
          "description": "Viewer policy settings for override."
        }
      }
    },
    "DraftCreateSignAutomatic": {
      "description": "An automatic signing action.",
      "type": "object",
      "properties": {
        "ProfileId": {
          "description": "The identifier of the profile for the automatic signatures.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "RenderingLanguageCode": {
          "description": "The rendering language for the automatic signatures.",
          "enum": [
            "AF",
            "AF_ZA",
            "AR",
            "AR_AE",
            "AR_BH",
            "AR_DZ",
            "AR_EG",
            "AR_IQ",
            "AR_JO",
            "AR_KW",
            "AR_LB",
            "AR_LY",
            "AR_MA",
            "AR_OM",
            "AR_QA",
            "AR_SA",
            "AR_SY",
            "AR_TN",
            "AR_YE",
            "AZ",
            "BE",
            "BE_BY",
            "BG",
            "BG_BG",
            "CA",
            "CA_ES",
            "CS",
            "CS_CZ",
            "CY",
            "CY_GB",
            "DA",
            "DA_DK",
            "DE",
            "DE_AT",
            "DE_CH",
            "DE_DE",
            "DE_LI",
            "DE_LU",
            "DV",
            "DV_MV",
            "EL",
            "EL_GR",
            "EN",
            "EN_AU",
            "EN_BZ",
            "EN_CA",
            "EN_GB",
            "EN_IE",
            "EN_JM",
            "EN_NZ",
            "EN_PH",
            "EN_TT",
            "EN_US",
            "EN_ZA",
            "EN_ZW",
            "ES",
            "ES_AR",
            "ES_BO",
            "ES_CL",
            "ES_CO",
            "ES_CR",
            "ES_DO",
            "ES_EC",
            "ES_ES",
            "ES_GT",
            "ES_HN",
            "ES_MX",
            "ES_NI",
            "ES_PA",
            "ES_PE",
            "ES_PR",
            "ES_PY",
            "ES_SV",
            "ES_UY",
            "ES_VE",
            "ET",
            "ET_EE",
            "EU",
            "EU_ES",
            "FA",
            "FA_IR",
            "FI",
            "FI_FI",
            "FO",
            "FO_FO",
            "FR",
            "FR_BE",
            "FR_CA",
            "FR_CH",
            "FR_FR",
            "FR_LU",
            "FR_MC",
            "GL",
            "GL_ES",
            "GU",
            "GU_IN",
            "HE",
            "HE_IL",
            "HI",
            "HI_IN",
            "HR",
            "HR_BA",
            "HR_HR",
            "HU",
            "HU_HU",
            "HY",
            "HY_AM",
            "ID",
            "ID_ID",
            "IS",
            "IS_IS",
            "IT",
            "IT_CH",
            "IT_IT",
            "JA",
            "JA_JP",
            "KA",
            "KA_GE",
            "KK",
            "KK_KZ",
            "KN",
            "KN_IN",
            "KO",
            "KO_KR",
            "KOK",
            "KOK_IN",
            "KY",
            "KY_KG",
            "LT",
            "LT_LT",
            "LV",
            "LV_LV",
            "MI",
            "MI_NZ",
            "MK",
            "MK_MK",
            "MN",
            "MN_MN",
            "MR",
            "MR_IN",
            "MS",
            "MS_BN",
            "MS_MY",
            "MT",
            "MT_MT",
            "NB",
            "NB_NO",
            "NL",
            "NL_BE",
            "NL_NL",
            "NN_NO",
            "PA",
            "PA_IN",
            "PL",
            "PL_PL",
            "PS",
            "PT",
            "PT_BR",
            "PT_PT",
            "RO",
            "RO_RO",
            "RU",
            "RU_RU",
            "SA",
            "SA_IN",
            "SE",
            "SE_FI",
            "SE_NO",
            "SE_SE",
            "SK",
            "SK_SK",
            "SL",
            "SL_SI",
            "SQ",
            "SQ_AL",
            "SV",
            "SV_FI",
            "SV_SE",
            "SW",
            "SW_KE",
            "SYR",
            "SYR_SY",
            "TA",
            "TA_IN",
            "TE",
            "TE_IN",
            "TH",
            "TH_TH",
            "TN",
            "TN_ZA",
            "TR",
            "TR_TR",
            "TT",
            "TT_RU",
            "TS",
            "UK",
            "UK_UA",
            "UR",
            "UR_PK",
            "UZ",
            "VI",
            "VI_VN",
            "XH",
            "XH_ZA",
            "ZH",
            "ZH_CN",
            "ZH_HK",
            "ZH_MO",
            "ZH_SG",
            "ZH_TW",
            "ZU",
            "ZU_ZA",
            "AM",
            "AM_ET",
            "ARN",
            "ARN_CL",
            "AS",
            "AS_IN",
            "AZ_CYRL",
            "AZ_CYRL_AZ",
            "AZ_LATN",
            "AZ_LATN_AZ",
            "BA",
            "BA_RU",
            "BN",
            "BN_BD",
            "BN_IN",
            "BO",
            "BO_CN",
            "BR",
            "BR_FR",
            "BS",
            "BS_CYRL",
            "BS_CYRL_BA",
            "BS_LATN",
            "BS_LATN_BA",
            "CA_ES_VALENCIA",
            "CHR",
            "CHR_CHER",
            "CHR_CHER_US",
            "CO",
            "CO_FR",
            "DSB",
            "DSB_DE",
            "EN_029",
            "EN_HK",
            "EN_IN",
            "EN_MY",
            "EN_SG",
            "ES_419",
            "ES_US",
            "FF",
            "FF_LATN",
            "FF_LATN_SN",
            "FIL",
            "FIL_PH",
            "FR_CD",
            "FR_CI",
            "FR_CM",
            "FR_HT",
            "FR_MA",
            "FR_ML",
            "FR_RE",
            "FR_SN",
            "FY",
            "FY_NL",
            "GA",
            "GA_IE",
            "GD",
            "GD_GB",
            "GN",
            "GN_PY",
            "GSW",
            "GSW_FR",
            "HA",
            "HA_LATN",
            "HA_LATN_NG",
            "HAW",
            "HAW_US",
            "HSB",
            "HSB_DE",
            "IG",
            "IG_NG",
            "II",
            "II_CN",
            "IU",
            "IU_CANS",
            "IU_CANS_CA",
            "IU_LATN",
            "IU_LATN_CA",
            "JV",
            "JV_LATN",
            "JV_LATN_ID",
            "KL",
            "KL_GL",
            "KM",
            "KM_KH",
            "KU",
            "KU_ARAB",
            "KU_ARAB_IQ",
            "LB",
            "LB_LU",
            "LO",
            "LO_LA",
            "MG",
            "MG_MG",
            "ML",
            "ML_IN",
            "MN_CYRL",
            "MN_MONG",
            "MN_MONG_CN",
            "MN_MONG_MN",
            "MOH",
            "MOH_CA",
            "MY",
            "MY_MM",
            "NE",
            "NE_IN",
            "NE_NP",
            "NN",
            "NO",
            "NQO",
            "NQO_GN",
            "NSO",
            "NSO_ZA",
            "OC",
            "OC_FR",
            "OM",
            "OM_ET",
            "OR",
            "OR_IN",
            "PA_ARAB",
            "PA_ARAB_PK",
            "PRS",
            "PRS_AF",
            "PS_AF",
            "PT_AO",
            "QUT",
            "QUT_GT",
            "QUZ",
            "QUZ_BO",
            "QUZ_EC",
            "QUZ_PE",
            "RM",
            "RM_CH",
            "RO_MD",
            "RW",
            "RW_RW",
            "SAH",
            "SAH_RU",
            "SD",
            "SD_ARAB",
            "SD_ARAB_PK",
            "SI",
            "SI_LK",
            "SMA",
            "SMA_NO",
            "SMA_SE",
            "SMJ",
            "SMJ_NO",
            "SMJ_SE",
            "SMN",
            "SMN_FI",
            "SMS",
            "SMS_FI",
            "SN",
            "SN_LATN",
            "SN_LATN_ZW",
            "SO",
            "SO_SO",
            "SR",
            "SR_CYRL",
            "SR_CYRL_BA",
            "SR_CYRL_CS",
            "SR_CYRL_ME",
            "SR_CYRL_RS",
            "SR_LATN",
            "SR_LATN_BA",
            "SR_LATN_CS",
            "SR_LATN_ME",
            "SR_LATN_RS",
            "ST",
            "ST_ZA",
            "TA_LK",
            "TG",
            "TG_CYRL",
            "TG_CYRL_TJ",
            "TI",
            "TI_ER",
            "TI_ET",
            "TK",
            "TK_TM",
            "TN_BW",
            "TS_ZA",
            "TZM",
            "TZM_LATN",
            "TZM_LATN_DZ",
            "TZM_TFNG",
            "TZM_TFNG_MA",
            "UG",
            "UG_CN",
            "UR_IN",
            "UZ_CYRL",
            "UZ_CYRL_UZ",
            "UZ_LATN",
            "UZ_LATN_UZ",
            "WO",
            "WO_SN",
            "YO",
            "YO_NG",
            "ZGH",
            "ZGH_TFNG",
            "ZGH_TFNG_MA",
            "ZH_HANS",
            "ZH_HANT",
            "ZH_CHS",
            "ZH_CHT"
          ],
          "type": "string"
        },
        "VisibleSignatures": {
          "description": "The visible signatures define the optional visual representations for automatic signatures.\nIf none are defined, the automatic signatures are applied to the documents without a visual element.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateVisibleSignature"
          }
        }
      }
    },
    "DraftCreateSignBulk": {
      "description": "A sign action for multiple recipients.",
      "type": "object",
      "properties": {
        "BulkRecipients": {
          "description": "The recipients that are part of the bulk.",
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateBulkRecipient"
          }
        },
        "SequenceMode": {
          "description": "The sequence mode.",
          "enum": [
            "NoSequenceEnforced",
            "SequenceEnforced"
          ],
          "type": "string"
        },
        "Elements": {
          "$ref": "#/$defs/DraftCreateElements",
          "description": "The elements in the document (e.g. form fields) assigned to the recipient."
        },
        "FinishActionConfiguration": {
          "$ref": "#/$defs/DraftCreateFinishAction",
          "description": "Defines what happens in the signing clients, after an action has been finished."
        },
        "BatchConfiguration": {
          "$ref": "#/$defs/DraftCreateBatchConfiguration",
          "description": "The configuration of a signing batch."
        },
        "GeneralPoliciesOverrides": {
          "$ref": "#/$defs/DraftCreateGeneralPoliciesForSignAction",
          "description": "Viewer policy settings for override."
        }
      }
    },
    "DraftCreateSignatureDataConfiguration": {
      "description": "The recipient configuration for signing.",
      "type": "object",
      "properties": {
        "DisposableCertificate": {
          "$ref": "#/$defs/DraftCreateDisposableCertificateSignatureData",
          "description": "The disposable certificate configuration for the action."
        },
        "RemoteCertificate": {
          "$ref": "#/$defs/DraftCreateRemoteCertificateSignatureData",
          "description": "The remote certificate configuration for the action."
        },
        "SwissComOnDemand": {
          "$ref": "#/$defs/DraftCreateSwissComOnDemandSignatureData",
          "description": "The Swisscom On-Demand certificate configuration for the action."
        },
        "SmsOneTimePassword": {
          "$ref": "#/$defs/DraftCreateSmsOneTimePasswordSignatureData",
          "description": "The one time password configuration for the action (SMS-OTP)."
        },
        "ATrustCertificate": {
          "$ref": "#/$defs/DraftCreateATrustCertificateSignatureData",
          "description": "The A-Trust certificate configuration for the action."
        },
        "SwedishBankId": {
          "$ref": "#/$defs/DraftCreateSwedishBankIdSignatureData",
          "description": "The Swedish BankID configuration for the action."
        },
        "SignaturePluginData": {
          "description": "The signature plugin configurations for the action.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSignaturePluginSignatureData"
          }
        }
      }
    },
    "DraftCreateSignatureField": {
      "description": "The configuration of the signature field.",
      "required": [
        "ElementId"
      ],
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the signature.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "DisplayName": {
          "description": "The displayed name.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FieldDescription": {
          "description": "The description of the signature.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "UseExternalTimestampServer": {
          "description": "If true, a timestamp from an external server is embedded into the signature.",
          "type": "boolean"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "AllowedSignatureTypes": {
          "$ref": "#/$defs/DraftCreateAllowedSignatureTypes",
          "description": "The allowed types for the signature."
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateSignatureFieldDefinition",
          "description": "The definition of the signature field.\nIt must be specified when the signature field is added.\nIt must not be specified when the signature field already exists."
        },
        "TaskConfiguration": {
          "$ref": "#/$defs/DraftCreateSignatureTaskConfiguration",
          "description": "The configuration of the task."
        }
      }
    },
    "DraftCreateSignatureFieldDefinition": {
      "description": "The settings of a positionable element.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateSignaturePluginParameter": {
      "description": "The definition of a signature plugin parameter.",
      "type": "object",
      "properties": {
        "Key": {
          "description": "The identifier of the parameter.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Value": {
          "description": "The value of the parameter.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateSignaturePluginSignatureData": {
      "description": "The recipient configuration for signing with a signature plugin.",
      "type": "object",
      "properties": {
        "PluginId": {
          "description": "The identifier of the signature plugin.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Fields": {
          "description": "The plugin parameters referred to as the GSP sender data fields.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DraftCreateSignaturePluginParameter"
          }
        }
      }
    },
    "DraftCreateSignaturePluginSignatureType": {
      "description": "The configuration of the signature plugin.",
      "type": "object",
      "properties": {
        "PluginId": {
          "description": "The identifier of the plugin.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreatePluginStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateSignatureTaskConfiguration": {
      "description": "The configuration of the signature task.",
      "type": "object",
      "properties": {
        "StampImprintDateConfiguration": {
          "$ref": "#/$defs/DraftCreateStampImprintDateConfiguration",
          "description": "The configuration of the stamp imprint date."
        },
        "BatchGroup": {
          "description": "The batch group.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateSize": {
      "description": "The definition of the size of an element.",
      "required": [
        "Width",
        "Height"
      ],
      "type": "object",
      "properties": {
        "Width": {
          "format": "double",
          "description": "The width of the element in points.",
          "type": "number"
        },
        "Height": {
          "format": "double",
          "description": "The height of the element in points.",
          "type": "number"
        }
      }
    },
    "DraftCreateSmsOneTimePasswordAuthentication": {
      "description": "The configuration for authentication with a one time password sent over SMS.",
      "type": "object",
      "properties": {
        "PhoneNumber": {
          "description": "The phone number to which the one time password will be sent.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^(\\+|00){1}\\(?([0-9]{2,})\\)?([\\-. ]?([0-9]{2,})){1,}$",
          "type": "string"
        }
      }
    },
    "DraftCreateSmsOneTimePasswordSignatureData": {
      "description": "The recipient configuration for signing with a one time password sent via SMS.",
      "type": "object",
      "properties": {
        "PhoneNumber": {
          "description": "The phone number to which the one time password will be sent.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^(\\+|00){1}\\(?([0-9]{2,})\\)?([\\-. ]?([0-9]{2,})){1,}$",
          "type": "string"
        }
      }
    },
    "DraftCreateStampImprintDateConfiguration": {
      "description": "The configuration of the stamp imprint date.",
      "type": "object",
      "properties": {
        "UseLocalTimezone": {
          "description": "If true, the local timezone is used.",
          "type": "boolean"
        },
        "DateTimeFormat": {
          "description": "The format of the timestamp.",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateSurname": {
      "description": "The configuration of the predefined element.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreatePredefinedElementDefinition",
          "description": "The definition of the predefined element.\nIt must be specified when the predefined element is added.\nIt must not be specified when the predefined element already exists."
        }
      }
    },
    "DraftCreateSwedishBankIdAuthentication": {
      "description": "The configuration for Swedish BankID authentication.",
      "type": "object",
      "properties": {
        "PersonalNumber": {
          "description": "The personal number for the authentication.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "AllowAnyPersonalNumber": {
          "description": "If true, the personal number can be edited by the recipient.\nIf the personal number is empty and can be edited, a QR code for scanning is provided.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateSwedishBankIdSignatureData": {
      "description": "The recipient configuration for signing with Swedish BankID.",
      "type": "object",
      "properties": {
        "PersonalNumber": {
          "description": "The personal number for signing.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "AllowAnyPersonalNumber": {
          "description": "If true, the personal number can be edited by the recipient.\nIf the personal number is empty and can be edited, a QR code for scanning is provided.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateSwedishBankIdSignatureType": {
      "description": "The configuration of the signature.",
      "type": "object",
      "properties": {
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateSwedishBankIdStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateSwedishBankIdStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayTransactionId": {
          "description": "If true, the transaction identifier is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateSwissComOnDemandSignatureData": {
      "description": "The recipient configuration for signing with a Swisscom On-Demand certificate.",
      "type": "object",
      "properties": {
        "PhoneNumber": {
          "description": "The phone number.",
          "maxLength": 250,
          "minLength": 0,
          "pattern": "^(\\+|00){1}\\(?([0-9]{2,})\\)?([\\-. ]?([0-9]{2,})){1,}$",
          "type": "string"
        },
        "CommonName": {
          "description": "The name of the certificate that is created or checked.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Country": {
          "description": "The country.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Locality": {
          "description": "The locality.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "OrganizationUnits": {
          "description": "The organizational units.",
          "maxItems": 228,
          "type": "array",
          "items": {
            "maxLength": 500,
            "type": "string"
          }
        },
        "Organization": {
          "description": "The organization.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "SerialNumber": {
          "description": "The serial number.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "StateOrProvince": {
          "description": "The state or province.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Pseudonym": {
          "description": "A name or key that uniquely identifies the user.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "DraftCreateSwissComOnDemandSignatureType": {
      "description": "The configuration of the Swisscom On-Demand signature.",
      "type": "object",
      "properties": {
        "ValidityInSeconds": {
          "description": "The validity of the certificate in seconds.",
          "type": "integer"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateSwissComOnDemandStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateSwissComOnDemandStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateTextBox": {
      "description": "The configuration of the text box.",
      "type": "object",
      "properties": {
        "ElementId": {
          "description": "The identifier of the element.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Required": {
          "description": "If true, the element is required.",
          "type": "boolean"
        },
        "Value": {
          "description": "The value of the text box.",
          "maxLength": 204800,
          "minLength": 0,
          "type": "string"
        },
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "GuidingOrder": {
          "description": "The order of the element.",
          "type": "integer"
        },
        "Validation": {
          "$ref": "#/$defs/DraftCreateFieldValidation",
          "description": "The configuration of the validation rules for the text box value."
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateTextBoxDefinition",
          "description": "The definition of the text box.\nIt must be specified when the check box is added.\nIt must not be specified when the check box already exists."
        }
      }
    },
    "DraftCreateTextBoxDefinition": {
      "description": "The configuration of the text box.",
      "required": [
        "Position",
        "Size"
      ],
      "type": "object",
      "properties": {
        "ReadOnly": {
          "description": "If true, the element is readonly.",
          "type": "boolean"
        },
        "MaxLength": {
          "description": "The maximum length of the text.",
          "type": "integer"
        },
        "IsMultiline": {
          "description": "If true, the text box can have multiple lines.",
          "type": "boolean"
        },
        "IsPassword": {
          "description": "If true, the text box behaves like a password input field and does not show the actually entered characters.",
          "type": "boolean"
        },
        "TextFormat": {
          "$ref": "#/$defs/DraftCreateTextFormat",
          "description": "The configuration of the text format."
        },
        "Position": {
          "$ref": "#/$defs/DraftCreatePosition",
          "description": "The position of the element within the document."
        },
        "Size": {
          "$ref": "#/$defs/DraftCreateSize",
          "description": "The size of the element."
        }
      }
    },
    "DraftCreateTextFormat": {
      "description": "The configuration of the text format.",
      "type": "object",
      "properties": {
        "TextColor": {
          "description": "The color of the text. The default color is black.\nSix digit hexadecimal color that starts with # in #RRGGBB format according to CSS Color Module Level 4, paragraph 5.2.",
          "maxLength": 7,
          "minLength": 7,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "number"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "Bold": {
          "description": "If true, the bold font is used.",
          "type": "boolean"
        },
        "Italic": {
          "description": "If true, the italic font is used.",
          "type": "boolean"
        },
        "TextAlign": {
          "description": "The alignment of the text. The default alignment is left.",
          "enum": [
            "Left",
            "Center",
            "Right"
          ],
          "type": "string"
        }
      }
    },
    "DraftCreateTimeValidationConfiguration": {
      "description": "The validation rules for time values.",
      "type": "object",
      "properties": {
        "TimeFormat": {
          "description": "The format of the time values.",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "Range": {
          "$ref": "#/$defs/DraftCreateFieldValidationRange",
          "description": "The range of the values."
        }
      }
    },
    "DraftCreateTypeToSignSignatureType": {
      "description": "The configuration of the signature image.",
      "type": "object",
      "properties": {
        "UseExternalSignatureImage": {
          "description": "The external signature image mode.",
          "enum": [
            "Optional",
            "Required",
            "Disabled"
          ],
          "type": "string"
        },
        "Preferred": {
          "description": "If true, the signature type is set as preferred.\nOnly one signature type may be marked.",
          "type": "boolean"
        },
        "StampImprintConfiguration": {
          "$ref": "#/$defs/DraftCreateTypeToSignStampImprint",
          "description": "The configuration of the stamp imprint of the signature."
        }
      }
    },
    "DraftCreateTypeToSignStampImprint": {
      "description": "The configuration of the stamp imprint used by multiple signature types.",
      "type": "object",
      "properties": {
        "DisplayExtraInformation": {
          "description": "If true, the extra information is displayed.",
          "type": "boolean"
        },
        "FontName": {
          "description": "The name of the font. The font needs to be installed on the server. \nIf it is not available on the server, a fallback font is used.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "FontSizeInPt": {
          "description": "The size of the font in points.",
          "type": "integer"
        },
        "DisplayEmail": {
          "description": "If true, the email address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayIp": {
          "description": "If true, the IP address of the signer is displayed.",
          "type": "boolean"
        },
        "DisplayName": {
          "description": "If true, the name of the signer is displayed.",
          "type": "boolean"
        },
        "DisplaySignatureDate": {
          "description": "If true, the timestamp of signing is displayed.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateView": {
      "description": "An action to view and acknowledge the documents.",
      "type": "object",
      "properties": {
        "RecipientConfiguration": {
          "$ref": "#/$defs/DraftCreateRecipientConfiguration",
          "description": "The configuration of the recipient."
        },
        "ViewingGroup": {
          "description": "The group for defining parallel view actions.",
          "maxLength": 500,
          "minLength": 0,
          "type": "string"
        },
        "GeneralPoliciesOverrides": {
          "$ref": "#/$defs/DraftCreateGeneralPoliciesForViewAction",
          "description": "Viewer policy settings for override."
        }
      }
    },
    "DraftCreateVisibilityOption": {
      "description": "The options defining the document visibility.",
      "type": "object",
      "properties": {
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "IsHidden": {
          "description": "If true, the referenced document is hidden for the activity.",
          "type": "boolean"
        }
      }
    },
    "DraftCreateVisibleSignature": {
      "description": "A signature with a visual appearance on the document.",
      "required": [
        "FieldDefinition"
      ],
      "type": "object",
      "properties": {
        "DocumentNumber": {
          "format": "int32",
          "description": "The reference number of the containing document. It starts with 1.",
          "type": "integer"
        },
        "UseExternalTimestampServer": {
          "description": "If true, a timestamp from an external server is embedded into the signature.",
          "type": "boolean"
        },
        "FieldDefinition": {
          "$ref": "#/$defs/DraftCreateSignatureFieldDefinition",
          "description": "The definition of the signature field.\nIt must be specified when the signature field is added.\nIt must not be specified when the signature field already exists."
        }
      }
    }
  }
}