{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/timelodge-com/json-schema/timelodge-com-time-entry-collection-schema.json",
  "title": "TimeEntryCollection",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/timelodge-com-openapi.yml#/components/schemas/TimeEntryCollection",
  "type": "object",
  "required": [
    "data",
    "meta",
    "links"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TimeEntry"
      }
    },
    "meta": {
      "$ref": "#/$defs/PaginationMeta"
    },
    "links": {
      "$ref": "#/$defs/PaginationLinks"
    }
  },
  "$defs": {
    "PaginationLinks": {
      "type": "object",
      "properties": {
        "first": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "last": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "previous": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      }
    },
    "PaginationMeta": {
      "type": "object",
      "required": [
        "current_page",
        "per_page",
        "total",
        "last_page"
      ],
      "properties": {
        "current_page": {
          "type": "integer"
        },
        "per_page": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "last_page": {
          "type": "integer"
        }
      }
    },
    "TimeEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "user_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "project_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "task_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "entry_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "started_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "ended_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "duration_seconds": {
          "type": [
            "integer",
            "null"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "billable": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "entry_source": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_locked": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "bill_rate": {
          "type": [
            "integer",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "version": {
          "type": "string",
          "readOnly": true,
          "description": "Opaque representation version used for optimistic concurrency."
        }
      },
      "additionalProperties": false
    }
  }
}