{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bamf-ai/json-schema/bamf-ai-agent-media-list-operation-response-schema.json",
  "title": "AgentMediaListOperationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bamf-ai-agent-api-openapi.yml#/components/schemas/AgentMediaListOperationResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "operation_ref",
    "data",
    "receipt"
  ],
  "properties": {
    "schema": {
      "const": "bamf.operation-result/v1"
    },
    "operation_ref": {
      "const": "bamf.media.list/v1"
    },
    "data": {
      "$ref": "#/$defs/AgentMediaListData"
    },
    "receipt": {
      "type": "null"
    }
  },
  "$defs": {
    "AgentMediaAsset": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "creator_id",
        "visual_type",
        "source",
        "url",
        "folder_id",
        "folder",
        "is_favorite",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "creator_id": {
          "type": "string"
        },
        "visual_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "folder_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "folder": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          ]
        },
        "is_favorite": {
          "type": "boolean"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "AgentMediaListData": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items",
        "page"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentMediaAsset"
          }
        },
        "page": {
          "$ref": "#/$defs/AgentReadPage"
        }
      }
    },
    "AgentReadPage": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "limit",
        "returned"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "returned": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  }
}