{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deputy/json-schema/deputy-contract-list-get-contract-list-response-schema.json",
  "title": "ContractListGetContractListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deputy-compliance-api-openapi.yml#/components/schemas/ContractListGetContractListResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "nextPageToken": {
      "type": "string"
    },
    "totalCount": {
      "type": "integer",
      "format": "int64"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/modelContractListItem"
      }
    }
  },
  "$defs": {
    "modelContractListItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "ppid": {
          "type": "string"
        },
        "employeeCount": {
          "type": "integer",
          "format": "int64"
        },
        "employmentType": {
          "$ref": "#/$defs/tenantcompliancev2modelEmploymentType"
        },
        "status": {
          "$ref": "#/$defs/modelContractStatus"
        },
        "type": {
          "$ref": "#/$defs/modelContractType"
        }
      }
    },
    "modelContractStatus": {
      "type": "string",
      "enum": [
        "INACTIVE",
        "ACTIVE",
        "DRAFT"
      ],
      "default": "INACTIVE"
    },
    "modelContractType": {
      "type": "string",
      "enum": [
        "LIBRARY",
        "CUSTOM"
      ],
      "default": "LIBRARY"
    },
    "tenantcompliancev2modelEmploymentType": {
      "type": "string",
      "enum": [
        "EMPLOYMENT_TYPE_UNKNOWN",
        "EMPLOYMENT_TYPE_FULL_TIME",
        "EMPLOYMENT_TYPE_PART_TIME",
        "EMPLOYMENT_TYPE_CASUAL",
        "EMPLOYMENT_TYPE_CONTRACTOR",
        "EMPLOYMENT_TYPE_HOURLY",
        "EMPLOYMENT_TYPE_SALARY",
        "EMPLOYMENT_TYPE_GENERIC"
      ],
      "default": "EMPLOYMENT_TYPE_UNKNOWN",
      "description": "In the code this is also referred to as employment status\n(employment_status DB table column)."
    }
  }
}