{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-things-network/json-schema/the-things-network-v3-application-activation-settings-schema.json",
  "title": "v3ApplicationActivationSettings",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-things-network-applicationactivationsettingregistry-api-openapi.yml#/components/schemas/v3ApplicationActivationSettings",
  "type": "object",
  "properties": {
    "kek_label": {
      "type": "string",
      "description": "The KEK label to use for wrapping application keys."
    },
    "kek": {
      "$ref": "#/$defs/v3KeyEnvelope",
      "description": "The (encrypted) Key Encryption Key."
    },
    "home_net_id": {
      "type": "string",
      "format": "string",
      "description": "Home NetID."
    },
    "application_server_id": {
      "type": "string",
      "description": "The AS-ID of the Application Server to use."
    }
  },
  "$defs": {
    "v3KeyEnvelope": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "format": "string",
          "description": "The unencrypted AES key."
        },
        "kek_label": {
          "type": "string",
          "description": "The label of the RFC 3394 key-encryption-key (KEK) that was used to encrypt the key."
        },
        "encrypted_key": {
          "type": "string",
          "format": "byte"
        }
      }
    }
  }
}