{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "SupaMoto Agent Revocation",
    "description": "Record the removal of an agent from a Supa Operator. Only the Agent ID and the Operator ID they are being removed from are needed to identify them - both link to the registration and all the history behind it. This claim must be approved by SupaMoto HQ before it takes effect.",
    "pages": [
      {
        "name": "revocation",
        "elements": [
          {
            "type": "text",
            "name": "ecs:agentId",
            "title": "Agent ID",
            "description": "The SupaMoto Agent ID (e.g. A21009802).",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "ecs:agentDid",
            "visible": false,
            "title": "Agent Entity DID"
          },
          {
            "type": "text",
            "name": "ecs:supaOperators_removalFrom",
            "title": "Select operators for removal from",
            "description": "The Supa Operator(s) this agent is being removed from. An agent can belong to more than one - list each of them.",
            "isRequired": true
          },
          {
            "type": "comment",
            "name": "ecs:revocationReason",
            "title": "Reason for removal",
            "description": "Describe why this agent is being removed from this Supa Operator.",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "schema:endDate",
            "title": "Requested effective date of removal",
            "description": "Optional. The removal takes effect on this date only if the claim has been approved by then. If approval comes later, it takes effect on the date it is approved.",
            "inputType": "date"
          },
          {
            "type": "file",
            "name": "ecs:revocationEvidence",
            "title": "Upload supporting evidence",
            "description": "Correspondence or other supporting documents.",
            "allowMultiple": true,
            "acceptedTypes": "image/jpeg, image/png, application/pdf",
            "waitForUpload": true,
            "maxSize": 10000000,
            "sourceType": "file-camera"
          }
        ],
        "title": "Agent Removal Details"
      },
      {
        "name": "reviewAndSubmit",
        "elements": [
          {
            "type": "html",
            "name": "reviewMessage",
            "html": "<h3>Thank you for completing this removal record!</h3><p>Please review your answers below before submitting.</p>"
          }
        ],
        "title": "Thank You"
      }
    ],
    "checkErrorsMode": "onValueChanged",
    "validateVisitedEmptyFields": true,
    "textUpdateMode": "onTyping",
    "showPreviewBeforeComplete": true
  }
}
