{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-realtime-task-list-request-schema.json",
  "title": "RealtimeTaskListRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-realtimetask-api-openapi.yml#/components/schemas/RealtimeTaskListRequest",
  "type": "object",
  "properties": {
    "pageIndex": {
      "type": "integer",
      "default": 1
    },
    "pageSize": {
      "type": "integer",
      "default": 10
    },
    "orderBy": {
      "type": "string",
      "title": "DESC/ASC"
    },
    "sortBy": {
      "type": "string",
      "title": "排序字段"
    },
    "workspace": {
      "type": "string"
    },
    "instance": {
      "type": "string"
    },
    "taskNameLike": {
      "type": "string"
    },
    "taskTypes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RtTaskType"
      }
    }
  },
  "required": [
    "pageIndex",
    "pageSize",
    "workspace",
    "instance"
  ],
  "$defs": {
    "RtTaskType": {
      "type": "object",
      "properties": {
        "taskType": {
          "type": "string",
          "title": "流批实时任务类型",
          "enum": [
            "CDC",
            "CDC_REALTIME",
            "STREAMING_INTEGRATION",
            "SNAPSHOT_SYNCHRONIZATION",
            "INCREMENTAL_SYNCHRONIZATION",
            "DYNAMIC_TABLE",
            "CONTINUOUS_JOB"
          ]
        }
      },
      "required": [
        "taskType"
      ]
    }
  }
}