{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aurinko/json-schema/aurinko-sync-tasks-page-schema.json",
  "title": "SyncTasksPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aurinko-tasksync-api-openapi.yml#/components/schemas/SyncTasksPage",
  "type": "object",
  "properties": {
    "nextPageToken": {
      "type": "string",
      "description": "A token received as nextPageToken from a previous page request"
    },
    "nextDeltaToken": {
      "type": "string",
      "description": "A token received as nextDeltaToken from a previous sync request or a start sync request"
    },
    "length": {
      "type": "integer"
    },
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Task"
      }
    }
  },
  "$defs": {
    "Task": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "etag": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time"
        },
        "parentId": {
          "type": "string"
        },
        "position": {
          "type": "string"
        },
        "notes": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/TaskStatus"
        },
        "importance": {
          "$ref": "#/$defs/TaskImportance"
        },
        "due": {
          "type": "string",
          "format": "date-time"
        },
        "completed": {
          "type": "string",
          "format": "date-time"
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaskLink"
          }
        },
        "startDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "owner": {
          "type": "string"
        },
        "omitted": {
          "type": "array",
          "readOnly": true,
          "items": {
            "type": "string",
            "enum": [
              "notes"
            ]
          }
        }
      }
    },
    "TaskImportance": {
      "type": "string",
      "enum": [
        "low",
        "normal",
        "high"
      ]
    },
    "TaskLink": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "link": {
          "type": "string"
        }
      }
    },
    "TaskStatus": {
      "type": "string",
      "enum": [
        "notStarted",
        "inProgress",
        "completed",
        "waitingOnOthers",
        "deferred"
      ]
    }
  }
}