{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/activepieces/refs/heads/main/json-schema/activepieces-user-schema.json",
  "title": "User",
  "description": "An Activepieces platform user",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "User ID",
      "example": "user-abc123"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "updated": {
      "type": "string",
      "format": "date-time"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "User email",
      "example": "user@example.com"
    },
    "firstName": {
      "type": "string",
      "description": "First name",
      "example": "Jane"
    },
    "lastName": {
      "type": "string",
      "description": "Last name",
      "example": "Smith"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "SHADOW"
      ],
      "description": "User status"
    },
    "platformRole": {
      "type": "string",
      "enum": [
        "ADMIN",
        "MEMBER"
      ],
      "description": "Platform role"
    }
  }
}