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
        OperationId: UserControllerAssignRole

        Parameters

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

          UserRoleAssignChangeDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerCreate:function
      • Required permissions: MANAGE_USERS
        OperationId: UserControllerCreate

        Parameters

        • OptionaluserCreateInputDTO: UserCreateInputDTO

          UserCreateInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • 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.
        OperationId: UserControllerDeleteSelectedDomainCookie

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerGetOne:function
      • Required permissions: READ_USERS
        OperationId: UserControllerGetOne

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerInvite:function
      • Required permissions: MANAGE_USERS
        OperationId: UserControllerInvite

        Parameters

        • OptionalinviteCreateDTO: InviteCreateDTO

          InviteCreateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • 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.
        OperationId: UserControllerLinkPlayerProfile

        Parameters

        • OptionallinkPlayerUnauthedInputDTO: LinkPlayerUnauthedInputDTO

          LinkPlayerUnauthedInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerLogin:function

      • OperationId: UserControllerLogin

        Parameters

        • OptionalloginDTO: LoginDTO

          LoginDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerLogout:function

      • OperationId: UserControllerLogout

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • 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
        OperationId: UserControllerMe

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerRemove:function
      • Required permissions: MANAGE_USERS
        OperationId: UserControllerRemove

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerRemoveRole:function
      • Required permissions: MANAGE_USERS, MANAGE_ROLES
        OperationId: UserControllerRemoveRole

        Parameters

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

          Override http request option.

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

    • userControllerSearch:function
      • Required permissions: READ_USERS
        OperationId: UserControllerSearch

        Parameters

        • OptionaluserSearchInputDTO: UserSearchInputDTO

          UserSearchInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

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

        Parameters

        • domainId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • userControllerUpdate:function
      • Required permissions: MANAGE_USERS
        OperationId: UserControllerUpdate

        Parameters

        • id: string
        • OptionaluserUpdateDTO: UserUpdateDTO

          UserUpdateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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