{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daon/json-schema/daon-page-process-token-light-schema.json",
  "title": "PageProcessTokenLight",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daon-process-tokens-api-openapi.yml#/components/schemas/PageProcessTokenLight",
  "type": "object",
  "properties": {
    "totalElements": {
      "type": "integer",
      "format": "int64"
    },
    "totalPages": {
      "type": "integer",
      "format": "int32"
    },
    "first": {
      "type": "boolean"
    },
    "sort": {
      "$ref": "#/$defs/SortObject"
    },
    "number": {
      "type": "integer",
      "format": "int32"
    },
    "last": {
      "type": "boolean"
    },
    "numberOfElements": {
      "type": "integer",
      "format": "int32"
    },
    "pageable": {
      "$ref": "#/$defs/PageableObject"
    },
    "size": {
      "type": "integer",
      "format": "int32"
    },
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProcessTokenLight"
      }
    },
    "empty": {
      "type": "boolean"
    }
  },
  "$defs": {
    "PageableObject": {
      "type": "object",
      "properties": {
        "sort": {
          "$ref": "#/$defs/SortObject"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32"
        },
        "pageNumber": {
          "type": "integer",
          "format": "int32"
        },
        "paged": {
          "type": "boolean"
        },
        "unpaged": {
          "type": "boolean"
        },
        "offset": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "ProcessTokenLight": {
      "type": "object",
      "properties": {
        "createdDtm": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "lastUpdatedDtm": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "createdBy": {
          "type": "string",
          "readOnly": true
        },
        "lastUpdatedBy": {
          "type": "string",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 50,
          "minLength": 0
        },
        "description": {
          "type": "string",
          "maxLength": 2000,
          "minLength": 0
        },
        "processDefnName": {
          "type": "string",
          "description": "Process Definition Name. When creating a process token either the Process Definition Tag or the Process Definition Name & Version should be supplied.",
          "maxLength": 50,
          "minLength": 0
        },
        "processDefnVersion": {
          "type": "integer",
          "format": "int32",
          "description": "Process Definition Version. When creating a process token either the Process Definition Tag or the Process Definition Name & Version should be supplied."
        },
        "processDefnTag": {
          "type": "string",
          "description": "Process Definition Tag. When creating a process token either the Process Definition Tag or the Process Definition Name & Version should be supplied. Using a tag is a more flexible approach - it allows a Process Token to be refer to a newer version of a Process Definition if the tag is moved from one version to another."
        },
        "uiUrl": {
          "type": "string",
          "maxLength": 500,
          "minLength": 0
        },
        "status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "UNLIMITED",
            "MULTI_USE_COUNT_LIMITED",
            "MULTI_USE_TIME_LIMITED"
          ]
        },
        "notBeforeDtm": {
          "type": "string",
          "format": "date-time"
        },
        "notAfterDtm": {
          "type": "string",
          "format": "date-time"
        },
        "maxCount": {
          "type": "integer",
          "format": "int32"
        },
        "counter": {
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "maxProcessDuration": {
          "type": "string",
          "deprecated": true,
          "description": "This field is deprecated and will be removed in future versions. Deprecated since Aug 2025."
        },
        "forTest": {
          "type": "boolean",
          "deprecated": true
        },
        "startProcessAddress": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "name",
        "status",
        "type"
      ]
    },
    "SortObject": {
      "type": "object",
      "properties": {
        "sorted": {
          "type": "boolean"
        },
        "unsorted": {
          "type": "boolean"
        },
        "empty": {
          "type": "boolean"
        }
      }
    }
  }
}