{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AliasCall",
  "title": "AliasCall",
  "type": "object",
  "required": [
    "previousId",
    "userId"
  ],
  "description": "An alias call merges two user identities.",
  "properties": {
    "userId": {
      "type": "string",
      "description": "The new user ID to associate."
    },
    "previousId": {
      "type": "string",
      "description": "The previous ID to be merged with the user ID."
    },
    "context": {
      "$ref": "#/components/schemas/Context"
    },
    "integrations": {
      "$ref": "#/components/schemas/Integrations"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 date string when the message was originally sent."
    },
    "messageId": {
      "type": "string",
      "description": "Unique identifier for the message to deduplicate."
    }
  }
}