83 lines
2.2 KiB
TypeScript
83 lines
2.2 KiB
TypeScript
|
/* tslint:disable */
|
||
|
/* eslint-disable */
|
||
|
/**
|
||
|
* Jellyfin API
|
||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||
|
*
|
||
|
* The version of the OpenAPI document: 10.8.9
|
||
|
*
|
||
|
*
|
||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||
|
* https://openapi-generator.tech
|
||
|
* Do not edit the class manually.
|
||
|
*/
|
||
|
|
||
|
import { exists, mapValues } from '../runtime';
|
||
|
/**
|
||
|
* The authenticate user by name request body.
|
||
|
* @export
|
||
|
* @interface AuthenticateUserByNameRequest
|
||
|
*/
|
||
|
export interface AuthenticateUserByNameRequest {
|
||
|
/**
|
||
|
* Gets or sets the username.
|
||
|
* @type {string}
|
||
|
* @memberof AuthenticateUserByNameRequest
|
||
|
*/
|
||
|
username?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the plain text password.
|
||
|
* @type {string}
|
||
|
* @memberof AuthenticateUserByNameRequest
|
||
|
*/
|
||
|
pw?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the sha1-hashed password.
|
||
|
* @type {string}
|
||
|
* @memberof AuthenticateUserByNameRequest
|
||
|
* @deprecated
|
||
|
*/
|
||
|
password?: string | null;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the AuthenticateUserByNameRequest interface.
|
||
|
*/
|
||
|
export function instanceOfAuthenticateUserByNameRequest(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function AuthenticateUserByNameRequestFromJSON(json: any): AuthenticateUserByNameRequest {
|
||
|
return AuthenticateUserByNameRequestFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function AuthenticateUserByNameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateUserByNameRequest {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'username': !exists(json, 'Username') ? undefined : json['Username'],
|
||
|
'pw': !exists(json, 'Pw') ? undefined : json['Pw'],
|
||
|
'password': !exists(json, 'Password') ? undefined : json['Password'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function AuthenticateUserByNameRequestToJSON(value?: AuthenticateUserByNameRequest | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Username': value.username,
|
||
|
'Pw': value.pw,
|
||
|
'Password': value.password,
|
||
|
};
|
||
|
}
|
||
|
|