{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-checkpoint-tuple-response-schema.json",
  "title": "CheckpointTupleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-checkpoints-api-openapi.yml#/components/schemas/CheckpointTupleResponse",
  "properties": {
    "thread_id": {
      "type": "string",
      "title": "Thread Id"
    },
    "checkpoint_ns": {
      "type": "string",
      "title": "Checkpoint Ns"
    },
    "checkpoint_id": {
      "type": "string",
      "title": "Checkpoint Id"
    },
    "parent_checkpoint_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Checkpoint Id"
    },
    "checkpoint": {
      "additionalProperties": true,
      "type": "object",
      "title": "Checkpoint"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "blobs": {
      "items": {
        "$ref": "#/$defs/BlobResponse"
      },
      "type": "array",
      "title": "Blobs"
    },
    "pending_writes": {
      "items": {
        "$ref": "#/$defs/WriteResponse"
      },
      "type": "array",
      "title": "Pending Writes"
    }
  },
  "type": "object",
  "required": [
    "thread_id",
    "checkpoint_ns",
    "checkpoint_id",
    "checkpoint",
    "metadata"
  ],
  "$defs": {
    "BlobResponse": {
      "properties": {
        "channel": {
          "type": "string",
          "title": "Channel"
        },
        "version": {
          "type": "string",
          "title": "Version"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "blob": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blob"
        }
      },
      "type": "object",
      "required": [
        "channel",
        "version",
        "type"
      ],
      "title": "BlobResponse"
    },
    "WriteResponse": {
      "properties": {
        "task_id": {
          "type": "string",
          "title": "Task Id"
        },
        "idx": {
          "type": "integer",
          "title": "Idx"
        },
        "channel": {
          "type": "string",
          "title": "Channel"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "blob": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blob"
        }
      },
      "type": "object",
      "required": [
        "task_id",
        "idx",
        "channel"
      ],
      "title": "WriteResponse"
    }
  }
}