{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/namirial/main/json-schema/namirial-get-process-response-schema.json",
  "title": "GetProcessResponse",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namirial-connectors-openapi.yml#/components/schemas/GetProcessResponse",
  "type": "object",
  "properties": {
    "auditDocument": {
      "type": "string",
      "description": "The Audit document of the sign process"
    },
    "envelopeJsonStatus": {
      "type": "string",
      "description": "The envelope status in Json"
    },
    "status": {
      "type": "string",
      "description": "The envelope status"
    },
    "completedDocuments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CompletedDocuments"
      }
    },
    "recipientsStatus": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecipientsStatus"
      }
    }
  },
  "$defs": {
    "CompletedDocuments": {
      "type": "object",
      "properties": {
        "auditDocument": {
          "type": "string",
          "description": "Audit document"
        },
        "documentId": {
          "type": "string",
          "description": "The document identifier"
        },
        "fileName": {
          "type": "string",
          "description": "The file name"
        }
      }
    },
    "RecipientsStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The recipient identifier"
        },
        "email": {
          "type": "string",
          "description": "The recipient email"
        },
        "firstName": {
          "type": "string",
          "description": "The recipient first name"
        },
        "lastName": {
          "type": "string",
          "description": "The recipient last name"
        },
        "orderIndex": {
          "type": "integer",
          "description": "The recipient order index"
        },
        "signedDate": {
          "type": "string",
          "description": "The recipient signed date"
        },
        "status": {
          "type": "string",
          "description": "The recipient status"
        },
        "workstepRedirectUrl": {
          "type": "string",
          "description": "The recipient workstep redirect url"
        }
      }
    }
  }
}