{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/averray-com/json-schema/averray-com-compact-job-list-response-schema.json",
  "title": "CompactJobListResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/averray-com-openapi.json#/components/schemas/CompactJobListResponse",
  "type": "object",
  "required": [
    "jobs",
    "count",
    "total",
    "limit",
    "offset",
    "nextOffset",
    "filters",
    "meta",
    "compact"
  ],
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CompactJobRow"
      }
    },
    "count": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "nextOffset": {
      "type": [
        "integer",
        "null"
      ]
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "filters": {
      "type": "object",
      "additionalProperties": true
    },
    "meta": {
      "type": "object",
      "required": [
        "newSince"
      ],
      "properties": {
        "newSince": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "compact": {
      "type": "boolean",
      "const": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CompactJobRow": {
      "type": "object",
      "required": [
        "id",
        "title",
        "state",
        "source",
        "sourceType",
        "category",
        "jobType",
        "tier",
        "stake",
        "reward",
        "listedAt",
        "createdAt",
        "summary",
        "definitionUrl"
      ],
      "properties": {
        "listingStatus": {
          "type": "string",
          "enum": [
            "listed",
            "not_claimable"
          ]
        },
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "claimState": {
          "type": "string"
        },
        "effectiveState": {
          "type": "string"
        },
        "claimable": {
          "type": "boolean"
        },
        "currentWalletCanClaim": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "retryLimit": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Maximum delivered submissions or terminal submit-revert attempts before the job is exhausted. A no-show claim that expires without any submit attempt does not count."
        },
        "claimAttemptCount": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Delivered submission attempts counted against retryLimit; excludes unsubmitted expired claims."
        },
        "remainingClaimAttempts": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Delivered submission attempts remaining, or null when retryLimit is unlimited."
        },
        "claimNumber": {
          "type": [
            "integer",
            "null"
          ]
        },
        "claimedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "claimedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "claimExpiresAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "sessionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": "string"
        },
        "sourceType": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "jobType": {
          "type": [
            "string",
            "null"
          ]
        },
        "tier": {
          "type": [
            "string",
            "null"
          ]
        },
        "stake": {
          "type": [
            "number",
            "string",
            "null"
          ]
        },
        "reward": {
          "type": "object",
          "required": [
            "asset",
            "amount"
          ],
          "properties": {
            "asset": {
              "type": [
                "string",
                "null"
              ]
            },
            "amount": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "additionalProperties": false
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "listedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "summary": {
          "type": "string"
        },
        "definitionUrl": {
          "type": "string"
        },
        "sourceDetails": {
          "$ref": "#/$defs/WikipediaCompactSourceDetails"
        }
      },
      "additionalProperties": false
    },
    "WikipediaCompactSourceDetails": {
      "type": "object",
      "properties": {
        "taskType": {
          "type": [
            "string",
            "null"
          ]
        },
        "pageTitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "lang": {
          "type": [
            "string",
            "null"
          ]
        },
        "revisionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "articleUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "pinnedRevisionUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "proposalOnly": {
          "type": "boolean"
        },
        "attributionPolicy": {
          "type": [
            "string",
            "null"
          ]
        },
        "outputSchemaUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}