{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moments-lab/json-schema/moments-lab-media-schema.json",
  "title": "Media",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moments-lab-openapi.yml#/components/schemas/Media",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique media identifier"
    },
    "type": {
      "type": "string",
      "description": "The media type (e.g., video or image)"
    },
    "basename": {
      "type": "string",
      "description": "The base name of the file"
    },
    "title": {
      "description": "The title of the media",
      "type": "string"
    },
    "summary": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      },
      "description": "overview of the media"
    },
    "duration": {
      "description": "The media's duration in seconds",
      "type": "number"
    },
    "event_uids": {
      "description": "Associated event identifiers",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "organization_uids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Associated organization identifiers"
    },
    "organisation_uids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Associated organization identifiers"
    },
    "recorded_at": {
      "description": "The recording timestamp",
      "type": "string"
    },
    "external_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "description": "The creation timestamp"
    },
    "updated_at": {
      "type": "string",
      "description": "The last updated timestamp"
    },
    "customer_storage_path": {
      "description": "Path in your own storage where this media can be found.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "type",
    "basename",
    "summary",
    "organization_uids",
    "organisation_uids",
    "created_at",
    "updated_at"
  ]
}