{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/istreamplanet/main/json-schema/istreamplanet-segment-schema.json",
  "title": "Segment",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/istreamplanet-aventus-channels-openapi.yml#/components/schemas/Segment",
  "additionalProperties": false,
  "properties": {
    "end": {
      "description": "The program time when the segment ends (or ended).",
      "format": "date-time",
      "type": "string"
    },
    "event_id": {
      "description": "The event_id used in the Signal START that resulted in this signaling segment.",
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "segment_id": {
      "description": "Uniquely identifies the signaling segment for a channel. This is assigned by the transcoder when the segment is created.",
      "format": "int64",
      "minimum": 0,
      "type": "integer"
    },
    "slate_url": {
      "description": "When set, contains the URL to the slate media asset that will play for the duration of the segment.",
      "type": "string"
    },
    "start": {
      "description": "The program time when the segment starts (or started).",
      "format": "date-time",
      "type": "string"
    },
    "timed_metadata_payload": {
      "description": "Timed metadata opaque payload data.",
      "type": "string"
    },
    "timed_metadata_type": {
      "description": "The timed metadata signal's type.",
      "type": "string"
    },
    "type": {
      "enum": [
        "SPLICE_INSERT",
        "CONTENT_ID",
        "PROGRAM",
        "PROGRAM_BLACKOUT_OVERRIDE",
        "PROGRAM_BREAKAWAY",
        "CHAPTER",
        "BREAK",
        "OPENING_CREDIT",
        "CLOSING_CREDIT",
        "PROVIDER_PLACEMENT_OP",
        "DISTRIBUTOR_PLACEMENT_OP",
        "PROVIDER_OVERLAY_OP",
        "DISTRIBUTOR_OVERLAY_OP",
        "PROVIDER_AD",
        "DISTRIBUTOR_AD",
        "UNSCHEDULED_EVENT",
        "NETWORK",
        "SLATE",
        "NOT_INDICATED",
        "TIMED_METADATA",
        "TIMED_METADATA_MARKER_OVER_SLATE"
      ],
      "type": "string"
    }
  },
  "type": "object"
}