{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-things-network/json-schema/the-things-network-v3-application-package-association-schema.json",
  "title": "v3ApplicationPackageAssociation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-things-network-applicationpackageregistry-api-openapi.yml#/components/schemas/v3ApplicationPackageAssociation",
  "type": "object",
  "properties": {
    "ids": {
      "$ref": "#/$defs/v3ApplicationPackageAssociationIdentifiers"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "package_name": {
      "type": "string"
    },
    "data": {
      "type": "object"
    }
  },
  "$defs": {
    "v3ApplicationIdentifiers": {
      "type": "object",
      "properties": {
        "application_id": {
          "type": "string"
        }
      }
    },
    "v3ApplicationPackageAssociationIdentifiers": {
      "type": "object",
      "properties": {
        "end_device_ids": {
          "$ref": "#/$defs/v3EndDeviceIdentifiers"
        },
        "f_port": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "v3EndDeviceIdentifiers": {
      "type": "object",
      "properties": {
        "device_id": {
          "type": "string"
        },
        "application_ids": {
          "$ref": "#/$defs/v3ApplicationIdentifiers"
        },
        "dev_eui": {
          "type": "string",
          "format": "string",
          "description": "The LoRaWAN DevEUI."
        },
        "join_eui": {
          "type": "string",
          "format": "string",
          "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)."
        },
        "dev_addr": {
          "type": "string",
          "format": "string",
          "description": "The LoRaWAN DevAddr."
        }
      }
    }
  }
}