UserApi - functional programming interface

  • Parameters

    Returns {
        authenticateUserByName(authenticateUserByName: AuthenticateUserByName, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationResult>)>;
        authenticateWithQuickConnect(quickConnectDto: QuickConnectDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationResult>)>;
        createUserByName(createUserByName: CreateUserByName, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto>)>;
        deleteUser(userId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        forgotPassword(forgotPasswordDto: ForgotPasswordDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResult>)>;
        forgotPasswordPin(forgotPasswordPinDto: ForgotPasswordPinDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PinRedeemResult>)>;
        getCurrentUser(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto>)>;
        getPublicUsers(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto[]>)>;
        getUserById(userId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto>)>;
        getUsers(isHidden?: boolean, isDisabled?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto[]>)>;
        updateUser(userDto: UserDto, userId?: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updateUserConfiguration(userConfiguration: UserConfiguration, userId?: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updateUserPassword(updateUserPassword: UpdateUserPassword, userId?: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updateUserPolicy(userId: string, userPolicy: UserPolicy, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
    }

    • authenticateUserByName:function
      • Parameters

        • authenticateUserByName: AuthenticateUserByName

          The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Authenticates a user by name.

    • authenticateWithQuickConnect:function
      • Parameters

        • quickConnectDto: QuickConnectDto

          The Jellyfin.Api.Models.UserDtos.QuickConnectDto request.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Authenticates a user with quick connect.

    • createUserByName:function
      • Parameters

        • createUserByName: CreateUserByName

          The create user by name request body.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Creates a user.

    • deleteUser:function
      • Parameters

        • userId: string

          The user id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Deletes a user.

    • forgotPassword:function
      • Parameters

        • forgotPasswordDto: ForgotPasswordDto

          The forgot password request containing the entered username.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Initiates the forgot password process for a local user.

    • forgotPasswordPin:function
      • Parameters

        • forgotPasswordPinDto: ForgotPasswordPinDto

          The forgot password pin request containing the entered pin.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Redeems a forgot password pin.

    • getCurrentUser:function
      • Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets the user based on auth token.

    • getPublicUsers:function
      • Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto[]>)>

        Gets a list of publicly visible users for display on a login screen.

    • getUserById:function
      • Parameters

        • userId: string

          The user id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets a user by Id.

    • getUsers:function
      • Parameters

        • OptionalisHidden: boolean

          Optional filter by IsHidden=true or false.

        • OptionalisDisabled: boolean

          Optional filter by IsDisabled=true or false.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto[]>)>

        Gets a list of users.

    • updateUser:function
      • Parameters

        • userDto: UserDto

          The updated user model.

        • OptionaluserId: string

          The user id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Updates a user.

    • updateUserConfiguration:function
      • Parameters

        • userConfiguration: UserConfiguration

          The new user configuration.

        • OptionaluserId: string

          The user id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Updates a user configuration.

    • updateUserPassword:function
      • Parameters

        • updateUserPassword: UpdateUserPassword

          The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.

        • OptionaluserId: string

          The user id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Updates a user's password.

    • updateUserPolicy:function
      • Parameters

        • userId: string

          The user id.

        • userPolicy: UserPolicy

          The new user policy.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Updates a user policy.