PlayerApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        banControllerCreate(
            banCreateDTO?: BanCreateDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BanOutputDTOAPI>,
        >;
        banControllerDelete(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        banControllerGetOne(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BanOutputDTOAPI>,
        >;
        banControllerSearch(
            banSearchInputDTO?: BanSearchInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BanOutputArrayDTOAPI>,
        >;
        banControllerUpdate(
            id: string,
            banUpdateDTO?: BanUpdateDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BanOutputDTOAPI>,
        >;
        playerControllerAssignRole(
            id: string,
            roleId: string,
            playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        playerControllerGetMe(
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<PlayerMeOutputDTO>,
        >;
        playerControllerGetOne(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<PlayerOutputWithRolesDTOAPI>,
        >;
        playerControllerRemoveRole(
            id: string,
            roleId: string,
            playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        playerControllerSearch(
            playerSearchInputDTO?: PlayerSearchInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<PlayerOutputArrayDTOAPI>,
        >;
    }

    • banControllerCreate:function
      • Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: MANAGE_PLAYERS
        OperationId: BanControllerCreate

        Parameters

        • OptionalbanCreateDTO: BanCreateDTO

          BanCreateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • banControllerDelete:function
      • Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: MANAGE_PLAYERS
        OperationId: BanControllerDelete

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • banControllerGetOne:function
      • Get a single ban Required permissions: READ_PLAYERS
        OperationId: BanControllerGetOne

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • banControllerSearch:function
      • Search for bans Required permissions: READ_PLAYERS
        OperationId: BanControllerSearch

        Parameters

        • OptionalbanSearchInputDTO: BanSearchInputDTO

          BanSearchInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • banControllerUpdate:function
      • Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: MANAGE_PLAYERS
        OperationId: BanControllerUpdate

        Parameters

        • id: string
        • OptionalbanUpdateDTO: BanUpdateDTO

          BanUpdateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • playerControllerAssignRole:function
      • Required permissions: MANAGE_PLAYERS, MANAGE_ROLES
        OperationId: PlayerControllerAssignRole

        Parameters

        • id: string
        • roleId: string
        • OptionalplayerRoleAssignChangeDTO: PlayerRoleAssignChangeDTO

          PlayerRoleAssignChangeDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • playerControllerGetMe:function
      • Get the player that is currently authenticated. This is a low-privilege route, returning limited data.
        OperationId: PlayerControllerGetMe

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • playerControllerGetOne:function
      • Required permissions: READ_PLAYERS
        OperationId: PlayerControllerGetOne

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • playerControllerRemoveRole:function
      • Required permissions: MANAGE_PLAYERS, MANAGE_ROLES
        OperationId: PlayerControllerRemoveRole

        Parameters

        • id: string
        • roleId: string
        • OptionalplayerRoleAssignChangeDTO: PlayerRoleAssignChangeDTO

          PlayerRoleAssignChangeDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • playerControllerSearch:function
      • Required permissions: READ_PLAYERS
        OperationId: PlayerControllerSearch

        Parameters

        • OptionalplayerSearchInputDTO: PlayerSearchInputDTO

          PlayerSearchInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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