{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "SupaMoto Operator Revocation",
    "description": "Record the revocation or removal of a registered Supa Operator. Only the Operator ID is required to identify the operator - it links to the registration, the agents and all the history behind it. This claim must be approved by SupaMoto HQ before it takes effect.",
    "pages": [
      {
        "name": "subject",
        "elements": [
          {
            "type": "text",
            "name": "ecs:operatorId",
            "title": "Operator ID",
            "description": "The Supa Operator's ID (e.g. O21009802).",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "ecs:supaOperatorDid",
            "visible": false,
            "title": "Supa Operator Entity DID"
          }
        ],
        "title": "Supa Operator Being Revoked"
      },
      {
        "name": "revocation",
        "elements": [
          {
            "type": "comment",
            "name": "ecs:revocationReason",
            "title": "Reason for revocation",
            "description": "Describe why this Supa Operator is being revoked or removed.",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "schema:endDate",
            "title": "Requested effective date of revocation",
            "description": "Optional. The revocation 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"
          },
          {
            "type": "text",
            "name": "ecs:additionalConfirmingPerson",
            "title": "Additional confirming person",
            "description": "Optional. A second person who can confirm this request - someone SupaMoto HQ can contact when reviewing it, alongside whoever submitted it. This does not authorise the revocation on its own: the claim must still be approved by SupaMoto HQ."
          }
        ],
        "title": "Revocation Details"
      },
      {
        "name": "reviewAndSubmit",
        "elements": [
          {
            "type": "html",
            "name": "reviewMessage",
            "html": "<h3>Thank you for completing this revocation record!</h3><p>Please review your answers below before submitting.</p>"
          }
        ],
        "title": "Thank You"
      }
    ],
    "checkErrorsMode": "onValueChanged",
    "validateVisitedEmptyFields": true,
    "textUpdateMode": "onTyping",
    "showPreviewBeforeComplete": true
  }
}
