UserApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        userControllerAssignRole(id: string, roleId: string, userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        userControllerCreate(userCreateInputDTO?: UserCreateInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>;
        userControllerDeleteSelectedDomainCookie(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        userControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>;
        userControllerInvite(inviteCreateDTO?: InviteCreateDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>;
        userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        userControllerLogin(loginDTO?: LoginDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginOutputDTOAPI>)>;
        userControllerLogout(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        userControllerMe(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeOutoutDTOAPI>)>;
        userControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        userControllerRemoveRole(id: string, roleId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        userControllerSearch(userSearchInputDTO?: UserSearchInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputArrayDTOAPI>)>;
        userControllerSetSelectedDomain(domainId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        userControllerUpdate(id: string, userUpdateDTO?: UserUpdateDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>;
    }

    • userControllerAssignRole:function
      • Required permissions: MANAGE_USERS, MANAGE_ROLES

        Parameters

        • id: string
        • roleId: string
        • OptionaluserRoleAssignChangeDTO: UserRoleAssignChangeDTO

          UserRoleAssignChangeDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Assign role

    • userControllerCreate:function
    • userControllerDeleteSelectedDomainCookie:function
      • Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again.

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Unset the selected domain for the user

    • userControllerGetOne:function
      • Required permissions: READ_USERS

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>

        Get one

    • userControllerInvite:function
      • Required permissions: MANAGE_USERS

        Parameters

        • OptionalinviteCreateDTO: InviteCreateDTO

          InviteCreateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>

        Invite

    • userControllerLinkPlayerProfile:function
      • Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.

        Parameters

        • OptionallinkPlayerUnauthedInputDTO: LinkPlayerUnauthedInputDTO

          LinkPlayerUnauthedInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Link player profile

    • userControllerLogin:function
    • userControllerLogout:function
      • Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Logout

    • userControllerMe:function
      • Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeOutoutDTOAPI>)>

        Get the current logged in user

    • userControllerRemove:function
      • Required permissions: MANAGE_USERS

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Remove

    • userControllerRemoveRole:function
      • Required permissions: MANAGE_USERS, MANAGE_ROLES

        Parameters

        • id: string
        • roleId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Remove role

    • userControllerSearch:function
    • userControllerSetSelectedDomain:function
      • One user can have multiple domains, this endpoint is a helper to set the selected domain for the user

        Parameters

        • domainId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Set the selected domain for the user

    • userControllerUpdate:function
      • Required permissions: MANAGE_USERS

        Parameters

        • id: string
        • OptionaluserUpdateDTO: UserUpdateDTO

          UserUpdateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputDTOAPI>)>

        Update