{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/delinea/main/json-schema/delinea-secret-access-pending-request-model-schema.json",
  "title": "SecretAccessPendingRequestModel",
  "description": "The Secret Access Pending model object",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/delinea-secretaccessrequests-api-openapi.yml#/components/schemas/SecretAccessPendingRequestModel",
  "properties": {
    "accessRequestWorkflowMapId": {
      "description": "The Id of the Access Request Workflow Map.",
      "type": "integer",
      "format": "int32"
    },
    "approverDisplayName": {
      "description": "The Display Name of the Approver of the request",
      "type": "string"
    },
    "completed": {
      "description": "Indicating if request has been completed",
      "type": "boolean"
    },
    "currentStepApprovers": {
      "description": "The List of approving reviewers for the current approval step.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "currentStepReviewers": {
      "description": "The List of reviewers for the current approval step.",
      "items": {
        "$ref": "#/$defs/SecretAccessReviewer"
      },
      "type": "array"
    },
    "currentUserRestrictedFromReviewing": {
      "description": "Indicating if current user is restricted from viewing the request",
      "type": [
        "boolean",
        "null"
      ]
    },
    "expirationDate": {
      "description": "The Expiration Date of the request",
      "type": "string",
      "format": "date-time"
    },
    "folderId": {
      "description": "The Folder Id of the Secret associated to the access request.",
      "type": "integer",
      "format": "int32"
    },
    "hasWorkflow": {
      "description": "Indicating if request is associated to a Work Flow",
      "type": "boolean"
    },
    "requestComment": {
      "description": "The Comment of the request.",
      "type": "string"
    },
    "requestDate": {
      "description": "The Date of the request.",
      "type": "string",
      "format": "date-time"
    },
    "requestingUserId": {
      "description": "The Id of the User requesting access.",
      "type": "integer",
      "format": "int32"
    },
    "requestUsername": {
      "description": "The Username of the User requesting access.",
      "type": "string"
    },
    "responseComment": {
      "description": "The Comment of the response to the request",
      "type": "string"
    },
    "responseDate": {
      "description": "The Date of the response to the request",
      "type": "string",
      "format": "date-time"
    },
    "reviewStatusMessage": {
      "description": "The Review Status Message of the request",
      "type": "string"
    },
    "secretAccessRequestId": {
      "description": "The Id of the Secret Access Request.",
      "type": "integer",
      "format": "int32"
    },
    "secretId": {
      "description": "The Id of the Secret associated to the access request.",
      "type": "integer",
      "format": "int32"
    },
    "secretName": {
      "description": "The Name of the Secret associated to the access request.",
      "type": "string"
    },
    "startDate": {
      "description": "The Start Date of the request.",
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "description": "The Status of the request",
      "type": "string"
    },
    "statusDescription": {
      "description": "The Status Description of the request",
      "type": "string"
    },
    "ticketNumber": {
      "description": "The Ticket Number of the request",
      "type": "string"
    },
    "ticketSystemId": {
      "description": "The Ticket System Id of the request",
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    }
  },
  "type": "object",
  "$defs": {
    "SecretAccessReviewer": {
      "description": "The Secret Access Approver model object",
      "properties": {
        "displayName": {
          "description": "The Displayname of Id of the Secret Access Approver.",
          "type": "string"
        },
        "groupId": {
          "description": "The Id of the approver group.",
          "type": "integer",
          "format": "int32"
        },
        "isUser": {
          "description": "Indication if the approver is an individual user.",
          "type": "boolean"
        }
      },
      "type": "object"
    }
  }
}