{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/streem-com/json-schema/streem-com-streem-api-get-user-by-external-user-id-response-schema.json",
  "title": "streem.api.GetUserByExternalUserIdResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/streem-com-users-api-openapi.yml#/components/schemas/streem.api.GetUserByExternalUserIdResponse",
  "type": "object",
  "properties": {
    "external_user": {
      "$ref": "#/$defs/streem.api.ExternalUser"
    },
    "user": {
      "$ref": "#/$defs/streem.api.User"
    }
  },
  "$defs": {
    "streem.api.ExternalUser": {
      "type": "object",
      "properties": {
        "user_sid": {
          "type": "string"
        },
        "external_user_id": {
          "type": "string"
        }
      }
    },
    "streem.api.User": {
      "type": "object",
      "properties": {
        "sid": {
          "type": "string"
        },
        "company_sid": {
          "type": "string"
        },
        "external_user_id": {
          "type": "string"
        },
        "is_expert": {
          "type": "boolean"
        },
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "avatar_url": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "active_status_modified_at": {
          "type": "string",
          "format": "date-time"
        },
        "user_types": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "USER_TYPE_UNSPECIFIED",
              "USER_TYPE_LOGIN",
              "USER_TYPE_SDK",
              "USER_TYPE_INVITED"
            ]
          }
        },
        "deleted": {
          "type": "boolean"
        },
        "deleted_at": {
          "type": "string",
          "format": "date-time"
        },
        "bio": {
          "type": "string"
        },
        "availability_status": {
          "type": "string",
          "enum": [
            "AVAILABILITY_STATUS_AVAILABLE",
            "AVAILABILITY_STATUS_NOT_AVAILABLE",
            "AVAILABILITY_STATUS_RESERVED",
            "AVAILABILITY_STATUS_IN_CALL",
            "AVAILABILITY_STATUS_CONFIRMING",
            "AVAILABILITY_STATUS_OFFLINE",
            "AVAILABILITY_STATUS_INVALID"
          ]
        }
      }
    }
  }
}