{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "receipts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Resource identifier returned by the operation."
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Workspace that owns this record."
          },
          "project_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Project that owns this record."
          },
          "format_version": {
            "type": "number",
            "const": 1
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "stored_active_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "effective_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "byte_length": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "collection_revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "source_revisions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "Resource identifier returned by the operation."
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Optimistic concurrency revision; supply it as expectedRevision on the next write."
                }
              },
              "required": [
                "id",
                "revision"
              ],
              "additionalProperties": false
            }
          },
          "created_by": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "created_at": {
            "type": "string",
            "description": "UTC timestamp when the record was created."
          }
        },
        "required": [
          "id",
          "workspace_id",
          "project_id",
          "format_version",
          "sha256",
          "stored_active_count",
          "effective_count",
          "byte_length",
          "collection_revision",
          "source_revisions",
          "created_by",
          "created_at"
        ],
        "additionalProperties": false
      }
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "receipts",
    "cursor"
  ],
  "additionalProperties": {}
}
