{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://capp.local/schemas/capp.solana-operation.v2.schema.json",
  "title": "capp.solana-operation.v2",
  "type": "object",
  "required": [
    "protocol",
    "operationId",
    "state",
    "attempts",
    "timeline"
  ],
  "properties": {
    "protocol": {
      "const": "capp.solana-operation.v2"
    },
    "operationId": {
      "type": "string",
      "minLength": 1
    },
    "scopeKey": {
      "type": "string"
    },
    "legKey": {
      "type": "string"
    },
    "intentDigest": {
      "type": "string"
    },
    "operationDigest": {
      "type": "string"
    },
    "clientPositionId": {
      "type": "string"
    },
    "positionId": {
      "type": "string"
    },
    "positionSlot": {
      "type": "string"
    },
    "positionKey": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "observedState": {
      "type": "string"
    },
    "attempts": {
      "type": "array",
      "maxItems": 256,
      "items": {
        "type": "object"
      }
    },
    "timeline": {
      "type": "array",
      "maxItems": 1024,
      "items": {
        "type": "object"
      }
    },
    "createdAt": {
      "type": "number"
    },
    "updatedAt": {
      "type": "number"
    },
    "idempotent": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
