{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-artifact-out-schema.json",
  "title": "ArtifactOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-seed-gen-api-openapi.yml#/components/schemas/ArtifactOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "key": {
      "type": "string",
      "title": "Key"
    },
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kind"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "owner_team_id": {
      "type": "string",
      "title": "Owner Team Id"
    },
    "owner_user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner User Id"
    },
    "current_version_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Version Id"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "current_version": {
      "anyOf": [
        {
          "$ref": "#/$defs/VersionOut"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "key",
    "owner_team_id",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "ManifestEntry": {
      "properties": {
        "path": {
          "type": "string",
          "minLength": 1,
          "title": "Path"
        },
        "sha256": {
          "type": "string",
          "minLength": 1,
          "title": "Sha256"
        },
        "storage_key": {
          "type": "string",
          "minLength": 1,
          "title": "Storage Key"
        },
        "size_bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Size Bytes"
        }
      },
      "type": "object",
      "required": [
        "path",
        "sha256",
        "storage_key"
      ],
      "title": "ManifestEntry",
      "description": "One folded path. ``storage_key`` and ``sha256`` are plain values\n(never an FK) — the \"points never copies\" invariant."
    },
    "VersionOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "artifact_id": {
          "type": "string",
          "title": "Artifact Id"
        },
        "version_index": {
          "type": "integer",
          "title": "Version Index"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "channel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channel"
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Labels"
        },
        "manifest": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ManifestEntry"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Manifest"
        },
        "location": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Location"
        },
        "pinned_event_seq": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pinned Event Seq"
        },
        "produced_by_operation_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Produced By Operation Id"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "artifact_id",
        "version_index",
        "status",
        "created_at"
      ],
      "title": "VersionOut"
    }
  }
}