{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "backstageInsights": {
      "type": "object",
      "properties": {
        "experimentalFlags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Flags for toggling experimental features.",
          "visibility": "frontend"
        },
        "debug": {
          "type": "boolean",
          "description": "Controls whether data is collected and sent to the service and will appear in the Insights dashboard. This property is intended for use in local and pre-production environments.\n\nA value of `true` will switch to console logging instead, a value of `false` will collect and send events (default).",
          "visibility": "frontend"
        },
        "salt": {
          "type": "string",
          "description": "A salt value that's concatenated with the userEntityRef when it's being hashed. This is not meant to be cryptographically secure; it is merely here for peace of mind that Spotify is unable to unmask hashed userEntityRef values from adopters.\n\nNote: Changing this value after deploying the app would inflate or otherwise affect metrics like MAU/WAU/DAU and retention.",
          "visibility": "frontend"
        },
        "useProxy": {
          "type": "boolean",
          "description": "Use the Backstage proxy to communicate with the Analytics service",
          "deprecated": "Set to `false` or remove. Support for sending events through\nthe Backstage Proxy backend will be removed in a future release.",
          "visibility": "frontend"
        }
      },
      "required": [
        "salt"
      ],
      "description": "Configuration options for the backstage insights plugin.",
      "visibility": "frontend"
    },
    "app": {
      "type": "object",
      "properties": {
        "analytics": {
          "type": "object",
          "properties": {
            "backstageInsights": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "debug": {
                      "type": "boolean",
                      "description": "Controls whether data is collected and sent to the service and will appear in the Insights dashboard. This property is intended for use in local and pre-production environments.\n\nA value of `true` will switch to console logging instead, a value of `false` will collect and send events (default).",
                      "deprecated": "Use `backstageInsights.debug` instead.",
                      "visibility": "frontend"
                    },
                    "salt": {
                      "type": "string",
                      "description": "A salt value that's concatenated with the userEntityRef when it's being hashed. This is not meant to be cryptographically secure; it is merely here for peace of mind that Spotify is unable to unmask hashed userEntityRef values from adopters.\n\nNote: Changing this value after deploying the app would inflate or otherwise affect metrics like MAU/WAU/DAU and retention.",
                      "deprecated": "Use `backstageInsights.salt` instead.",
                      "visibility": "frontend"
                    },
                    "useProxy": {
                      "type": "boolean",
                      "description": "Use the Backstage proxy to communicate with the Analytics service",
                      "deprecated": "Set to `false` or remove. Support for sending events\nthrough the Backstage Proxy backend will be removed in a\nfuture release.",
                      "visibility": "frontend"
                    }
                  },
                  "required": [
                    "salt"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "debug": {
                      "type": "boolean",
                      "description": "Controls whether data is collected and sent to the service and will appear in the Insights dashboard. This property is intended for use in local and pre-production environments.\n\nA value of `true` will switch to console logging instead, a value of `false` will collect and send events (default).",
                      "deprecated": "Use `backstageInsights.debug` instead.",
                      "visibility": "frontend"
                    },
                    "ish": {
                      "type": "string",
                      "deprecated": "Use `backstageInsights.salt` instead.",
                      "visibility": "frontend"
                    }
                  },
                  "required": [
                    "ish"
                  ]
                }
              ]
            }
          }
        }
      }
    }
  }
}
