{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ClientAddonLayer",
  "title": "ClientAddonLayer",
  "type": "object",
  "description": "Layer addon configuration.",
  "additionalProperties": true,
  "required": [
    "providerId",
    "keyId",
    "privateKey"
  ],
  "properties": {
    "providerId": {
      "type": "string",
      "description": "Provider ID of your Layer account"
    },
    "keyId": {
      "type": "string",
      "description": "Authentication Key identifier used to sign the Layer token."
    },
    "privateKey": {
      "type": "string",
      "description": "Private key for signing the Layer token."
    },
    "principal": {
      "type": "string",
      "description": "Name of the property used as the unique user id in Layer. If not specified `user_id` is used."
    },
    "expiration": {
      "type": "integer",
      "description": "Optional expiration in minutes for the generated token. Defaults to 5 minutes.",
      "minimum": 0
    }
  }
}