Interface UpdateAccountInfoPayload

interface UpdateAccountInfoPayload {
    approvedSignInMethods?: {
        discord?: {
            discriminator?: string;
            id: string;
            scopes: string[];
            username: string;
        };
        github?: {
            id: string;
            scopes: string[];
            username: string;
        };
        google?: {
            id: string;
            scopes: string[];
            username: string;
        };
        twitter?: {
            id: string;
            scopes: string[];
            username: string;
        };
    };
    customLinks?: iCustomLink[];
    customPages?: {
        badges: iCustomPage<NumberType>[];
        lists: iCustomListPage[];
    };
    discord?: string;
    github?: string;
    hiddenBadges?: iBatchBadgeDetails<NumberType>[];
    hiddenLists?: string[];
    notifications?: {
        antiPhishingCode?: string;
        discord?: {
            discriminator: undefined | string;
            id: string;
            username: string;
        };
        email?: string;
        preferences?: {
            claimAlerts?: boolean;
            ignoreIfInitiator?: boolean;
            listActivity?: boolean;
            transferActivity?: boolean;
        };
    };
    profilePicImageFile?: any;
    profilePicUrl?: string;
    readme?: string;
    seenActivity?: NumberType;
    socialConnections?: iSocialConnections<NumberType>;
    telegram?: string;
    twitter?: string;
    username?: string;
    watchlists?: {
        badges: iCustomPage<NumberType>[];
        lists: iCustomListPage[];
    };
}

Properties

approvedSignInMethods?: {
    discord?: {
        discriminator?: string;
        id: string;
        scopes: string[];
        username: string;
    };
    github?: {
        id: string;
        scopes: string[];
        username: string;
    };
    google?: {
        id: string;
        scopes: string[];
        username: string;
    };
    twitter?: {
        id: string;
        scopes: string[];
        username: string;
    };
}

Approved sign in methods. Only returned if user is authenticated with full access.

Type declaration

  • Optional discord?: {
        discriminator?: string;
        id: string;
        scopes: string[];
        username: string;
    }
    • Optional discriminator?: string
    • id: string
    • scopes: string[]
    • username: string
  • Optional github?: {
        id: string;
        scopes: string[];
        username: string;
    }
    • id: string
    • scopes: string[]
    • username: string
  • Optional google?: {
        id: string;
        scopes: string[];
        username: string;
    }
    • id: string
    • scopes: string[]
    • username: string
  • Optional twitter?: {
        id: string;
        scopes: string[];
        username: string;
    }
    • id: string
    • scopes: string[]
    • username: string
customLinks?: iCustomLink[]

Custom URL links to display on the user's portfolio.

customPages?: {
    badges: iCustomPage<NumberType>[];
    lists: iCustomListPage[];
}

An array of custom pages on the user's portolio. Used to customize, sort, and group badges / lists into pages.

Type declaration

discord?: string

The Discord username.

github?: string

The GitHub username.

hiddenBadges?: iBatchBadgeDetails<NumberType>[]

The badges to hide and not view for this profile's portfolio

hiddenLists?: string[]

The lists to hide and not view for this profile's portfolio

notifications?: {
    antiPhishingCode?: string;
    discord?: {
        discriminator: undefined | string;
        id: string;
        username: string;
    };
    email?: string;
    preferences?: {
        claimAlerts?: boolean;
        ignoreIfInitiator?: boolean;
        listActivity?: boolean;
        transferActivity?: boolean;
    };
}

The notification preferences for the user. Will only be returned if user is authenticated with full access.

Type declaration

  • Optional antiPhishingCode?: string
  • Optional discord?: {
        discriminator: undefined | string;
        id: string;
        username: string;
    }
    • discriminator: undefined | string
    • id: string
    • username: string
  • Optional email?: string
  • Optional preferences?: {
        claimAlerts?: boolean;
        ignoreIfInitiator?: boolean;
        listActivity?: boolean;
        transferActivity?: boolean;
    }
    • Optional claimAlerts?: boolean
    • Optional ignoreIfInitiator?: boolean
    • Optional listActivity?: boolean
    • Optional transferActivity?: boolean
profilePicImageFile?: any

The profile picture image file to set. We will then upload to our CDN.

profilePicUrl?: string

The profile picture URL.

readme?: string

The README details (markdown supported).

seenActivity?: NumberType

The last seen activity timestamp.

socialConnections?: iSocialConnections<NumberType>

The social connections for the user. Only returned if user is authenticated with full access.

telegram?: string

The Telegram username.

twitter?: string

The Twitter username.

username?: string

The username.

watchlists?: {
    badges: iCustomPage<NumberType>[];
    lists: iCustomListPage[];
}

The watchlist of badges / lists

Type declaration