{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-application-profile-schema.json",
  "title": "ApplicationProfile",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-application-profiles-api-openapi.yml#/components/schemas/ApplicationProfile",
  "type": "object",
  "required": [
    "applicationProfileId",
    "networkQualityThresholds"
  ],
  "properties": {
    "applicationProfileId": {
      "type": "string",
      "format": "uuid"
    },
    "networkQualityThresholds": {
      "$ref": "#/$defs/NetworkQualityThresholds"
    }
  },
  "$defs": {
    "Duration": {
      "type": "object",
      "properties": {
        "value": {
          "type": "integer",
          "format": "int32",
          "minimum": 1
        },
        "unit": {
          "allOf": [
            {
              "$ref": "#/$defs/TimeUnitEnum"
            },
            {}
          ]
        }
      }
    },
    "NetworkQualityThresholds": {
      "type": "object",
      "properties": {
        "packetDelayBudget": {
          "$ref": "#/$defs/packetDelayBudget"
        },
        "targetMinDownstreamRate": {
          "$ref": "#/$defs/targetMinDownstreamRate"
        },
        "targetMinUpstreamRate": {
          "$ref": "#/$defs/targetMinUpstreamRate"
        },
        "packetlossErrorRate": {
          "$ref": "#/$defs/packetErrorLossRate"
        },
        "jitter": {
          "$ref": "#/$defs/jitter"
        }
      }
    },
    "Rate": {
      "type": "object",
      "properties": {
        "value": {
          "type": "integer",
          "format": "int32",
          "minimum": 0,
          "maximum": 1024
        },
        "unit": {
          "$ref": "#/$defs/RateUnitEnum"
        }
      }
    },
    "RateUnitEnum": {
      "type": "string",
      "enum": [
        "bps",
        "kbps",
        "Mbps",
        "Gbps",
        "Tbps"
      ]
    },
    "TimeUnitEnum": {
      "type": "string",
      "enum": [
        "Days",
        "Hours",
        "Minutes",
        "Seconds",
        "Milliseconds",
        "Microseconds",
        "Nanoseconds"
      ]
    },
    "jitter": {
      "description": "The jitter requirement aims to limit the maximum variation in\nround-trip packet delay for the 99th percentile of traffic, following\nITU Y.1540 standards. It considers only acknowledged packets in a\nsession, which are packets that receive a confirmation of receipt from\nthe recipient (e.g., using TCP). This requirement helps maintain\nconsistent latency, essential for real-time applications such as VoIP,\nvideo calls, and gaming.\n",
      "allOf": [
        {
          "$ref": "#/$defs/Duration"
        }
      ]
    },
    "packetDelayBudget": {
      "description": "The packet delay budget is the maximum allowable one-way latency\nbetween the customer's device and the gateway from the operator's\nnetwork to other networks. By limiting the delay, the network\ncan provide an acceptable level of performance for various services,\nsuch as voice calls, video streaming, and data. The end-to-end or\nround trip latency will be about two times this value plus the latency\nnot controlled by the operator\n",
      "allOf": [
        {
          "$ref": "#/$defs/Duration"
        }
      ]
    },
    "packetErrorLossRate": {
      "type": "integer",
      "description": "The exponential power of the allowable error loss rate 10^(-N).\nFor instance 3 would be an error loss rate of 10 to the power of -3\n(0.001)\n\nFor 5G network the 3GPP specification TS 23.203 defines the packet\nerror loss rate QCI attribute. It describes the Quality of Service\n(QoS) Class Identifier (QCI) parameters used to differentiate traffic\nclasses in mobile networks, ensuring appropriate resource\nallocation and performance for various services.\n\nThe packet error loss rate is one of the QCI attributes, providing\ninformation on the acceptable packet loss rate for a specific traffic\nclass. This attribute helps maintain the desired performance level for\nservices like voice calls, video streaming, or data transfers within\nthe 3GPP mobile network.\n",
      "format": "int32",
      "minimum": 1,
      "maximum": 10
    },
    "targetMinDownstreamRate": {
      "description": "This is the target minimum downstream rate.\n",
      "allOf": [
        {
          "$ref": "#/$defs/Rate"
        }
      ]
    },
    "targetMinUpstreamRate": {
      "description": "This is the target minimum upstream rate.\n",
      "allOf": [
        {
          "$ref": "#/$defs/Rate"
        }
      ]
    }
  }
}