{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "@context": [
    "https://schemas.meta-aiml.org/v3.0.0/context.jsonld"
  ],
  "@id": "https://schemas.meta-aiml.org/v3.0.0/entity/streaming_platform.json",
  "$id": "https://schemas.meta-aiml.org/v3.0.0/entity/streaming_platform.json",
  "@type": "StreamingPlatform",
  "schemaVersion": "3.0.0",
  "aimlVersion": "3.0.0",
  "title": "Streaming Platform Entity Schema",
  "description": "v3 schema for subscription and ad-supported streaming platforms where the primary value is curated audiovisual content broadcast to audience segments.",
  "examples": [
    {
      "description": "Subscription video streaming service with licensed and original catalog",
      "reference": "streaming_platform_example_subscription_catalog"
    },
    {
      "description": "Ad-supported streaming platform with live channels and on-demand library",
      "reference": "streaming_platform_example_avod_live"
    }
  ],
  "type": "object",
  "additionalProperties": false,
  "allOf": [
    {
      "$ref": "../ontology/digital_entity.json"
    },
    {
      "$ref": "../archetypes/broadcast_publisher.json"
    }
  ],
  "properties": {
    "@type": {
      "const": "StreamingPlatform"
    },
    "ontologicalMode": {
      "const": "DigitalEntity"
    },
    "interactionArchetype": {
      "type": "array",
      "contains": {
        "const": "BroadcastPublisher"
      },
      "items": {
        "type": "string",
        "enum": [
          "BroadcastPublisher"
        ]
      }
    },
    "domain": {
      "const": "Entertainment"
    },
    "businessModel": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Subscription",
          "Advertising",
          "Transactional"
        ]
      }
    },
    "deliveryFormat": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "WebApp",
          "MobileApp",
          "API"
        ]
      }
    },
    "name": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "description": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "shortDescription": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "foundingDate": {
      "type": "string",
      "format": "date"
    },
    "properties": {
      "type": "object",
      "properties": {
        "catalogComposition": {
          "type": "string",
          "enum": [
            "licensed",
            "originals",
            "hybrid"
          ]
        },
        "supportsLiveChannels": {
          "type": "boolean"
        },
        "supportsOfflineDownloads": {
          "type": "boolean"
        },
        "drmTier": {
          "type": "string",
          "enum": [
            "basic",
            "standard",
            "strict"
          ]
        },
        "releaseWindowStrategy": {
          "type": "string",
          "enum": [
            "weekly",
            "full_season_drop",
            "mixed"
          ]
        }
      }
    },
    "capabilities": {
      "type": "object",
      "required": [
        "content"
      ],
      "properties": {
        "content": {
          "$ref": "../components/capability_groups.json#/$defs/ContentCapabilities"
        },
        "interaction": {
          "$ref": "../components/capability_groups.json#/$defs/InteractionCapabilities"
        },
        "financial": {
          "$ref": "../components/capability_groups.json#/$defs/FinancialCapabilities"
        },
        "community": {
          "$ref": "../components/capability_groups.json#/$defs/CommunityCapabilities"
        }
      }
    },
    "modules": {
      "type": "object",
      "properties": {
        "playback": {
          "type": "object",
          "properties": {
            "adaptiveBitrateEnabled": {
              "type": "boolean"
            },
            "multiAudioTracksEnabled": {
              "type": "boolean"
            },
            "subtitleLocalizationEnabled": {
              "type": "boolean"
            }
          }
        },
        "recommendations": {
          "type": "object",
          "properties": {
            "personalizedRankingEnabled": {
              "type": "boolean"
            },
            "continueWatchingEnabled": {
              "type": "boolean"
            },
            "editorialCollectionsEnabled": {
              "type": "boolean"
            }
          }
        },
        "rightsManagement": {
          "type": "object",
          "properties": {
            "geoRestrictionEnabled": {
              "type": "boolean"
            },
            "licenseExpiryEnforcementEnabled": {
              "type": "boolean"
            },
            "contentWindowingEnabled": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "structuralMetadata": {
      "type": "object",
      "properties": {
        "topology": {
          "const": "hub_and_spoke"
        },
        "roles": {
          "const": [
            "publisher",
            "audience"
          ]
        },
        "valueSource": {
          "const": "content_creation"
        },
        "transactionFlow": {
          "const": "one_to_many"
        },
        "networkEffects": {
          "const": "none"
        },
        "contentOwnership": {
          "type": "string",
          "enum": [
            "platform_owned",
            "licensed",
            "mixed"
          ]
        }
      }
    },
    "targetAudience": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "siteCapabilities": {
      "type": "object",
      "properties": {
        "supportedDevices": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ]
          }
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "accessibilityFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": [
    "@type",
    "ontologicalMode",
    "interactionArchetype",
    "domain",
    "name",
    "description",
    "deliveryFormat",
    "capabilities",
    "structuralMetadata",
    "modules"
  ],
  "validationMetadata": {
    "schemaVersion": "3.0.0",
    "phase": "entity",
    "status": "draft",
    "lastValidated": "2026-02-20T12:00:00Z",
    "validator": "META-AIML QA"
  },
  "semanticAnnotations": {
    "classificationRationale": "StreamingPlatform is modeled as DigitalEntity + BroadcastPublisher for content-first delivery where the platform curates and broadcasts media to audience cohorts.",
    "disambiguationNotes": "If primary value shifts to user-generated social graph interactions, a separate schema should be modeled under NetworkGraph."
  },
  "governanceMetadata": {
    "entityVersion": "3.0.0",
    "introducedIn": "META-AIML v3.0.0",
    "stabilityLevel": "draft",
    "sdkValidationRules": [
      "RULE-STRM-001: @type MUST equal \"StreamingPlatform\"",
      "RULE-STRM-002: ontologicalMode MUST equal \"DigitalEntity\"",
      "RULE-STRM-003: interactionArchetype MUST contain \"BroadcastPublisher\"",
      "RULE-STRM-004: capabilities.content MUST be present",
      "RULE-STRM-005: structuralMetadata.topology MUST equal \"hub_and_spoke\"",
      "RULE-STRM-006: structuralMetadata.contentOwnership MUST be declared"
    ]
  }
}
