jellyfin api -> fetch
This commit is contained in:
103
server/jellyfin/models/AccessSchedule.ts
Normal file
103
server/jellyfin/models/AccessSchedule.ts
Normal file
@ -0,0 +1,103 @@
|
||||
/* 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';
|
||||
import type { DynamicDayOfWeek } from './DynamicDayOfWeek';
|
||||
import {
|
||||
DynamicDayOfWeekFromJSON,
|
||||
DynamicDayOfWeekFromJSONTyped,
|
||||
DynamicDayOfWeekToJSON,
|
||||
} from './DynamicDayOfWeek';
|
||||
|
||||
/**
|
||||
* An entity representing a user's access schedule.
|
||||
* @export
|
||||
* @interface AccessSchedule
|
||||
*/
|
||||
export interface AccessSchedule {
|
||||
/**
|
||||
* Gets the id of this instance.
|
||||
* @type {number}
|
||||
* @memberof AccessSchedule
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
* Gets the id of the associated user.
|
||||
* @type {string}
|
||||
* @memberof AccessSchedule
|
||||
*/
|
||||
userId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {DynamicDayOfWeek}
|
||||
* @memberof AccessSchedule
|
||||
*/
|
||||
dayOfWeek?: DynamicDayOfWeek;
|
||||
/**
|
||||
* Gets or sets the start hour.
|
||||
* @type {number}
|
||||
* @memberof AccessSchedule
|
||||
*/
|
||||
startHour?: number;
|
||||
/**
|
||||
* Gets or sets the end hour.
|
||||
* @type {number}
|
||||
* @memberof AccessSchedule
|
||||
*/
|
||||
endHour?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AccessSchedule interface.
|
||||
*/
|
||||
export function instanceOfAccessSchedule(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AccessScheduleFromJSON(json: any): AccessSchedule {
|
||||
return AccessScheduleFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AccessScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessSchedule {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'dayOfWeek': !exists(json, 'DayOfWeek') ? undefined : DynamicDayOfWeekFromJSON(json['DayOfWeek']),
|
||||
'startHour': !exists(json, 'StartHour') ? undefined : json['StartHour'],
|
||||
'endHour': !exists(json, 'EndHour') ? undefined : json['EndHour'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AccessScheduleToJSON(value?: AccessSchedule | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'UserId': value.userId,
|
||||
'DayOfWeek': DynamicDayOfWeekToJSON(value.dayOfWeek),
|
||||
'StartHour': value.startHour,
|
||||
'EndHour': value.endHour,
|
||||
};
|
||||
}
|
||||
|
145
server/jellyfin/models/ActivityLogEntry.ts
Normal file
145
server/jellyfin/models/ActivityLogEntry.ts
Normal file
@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
import type { LogLevel } from './LogLevel';
|
||||
import {
|
||||
LogLevelFromJSON,
|
||||
LogLevelFromJSONTyped,
|
||||
LogLevelToJSON,
|
||||
} from './LogLevel';
|
||||
|
||||
/**
|
||||
* An activity log entry.
|
||||
* @export
|
||||
* @interface ActivityLogEntry
|
||||
*/
|
||||
export interface ActivityLogEntry {
|
||||
/**
|
||||
* Gets or sets the identifier.
|
||||
* @type {number}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Gets or sets the overview.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
overview?: string | null;
|
||||
/**
|
||||
* Gets or sets the short overview.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
shortOverview?: string | null;
|
||||
/**
|
||||
* Gets or sets the type.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* Gets or sets the item identifier.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
itemId?: string | null;
|
||||
/**
|
||||
* Gets or sets the date.
|
||||
* @type {Date}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
date?: Date;
|
||||
/**
|
||||
* Gets or sets the user identifier.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
userId?: string;
|
||||
/**
|
||||
* Gets or sets the user primary image tag.
|
||||
* @type {string}
|
||||
* @memberof ActivityLogEntry
|
||||
* @deprecated
|
||||
*/
|
||||
userPrimaryImageTag?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {LogLevel}
|
||||
* @memberof ActivityLogEntry
|
||||
*/
|
||||
severity?: LogLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ActivityLogEntry interface.
|
||||
*/
|
||||
export function instanceOfActivityLogEntry(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ActivityLogEntryFromJSON(json: any): ActivityLogEntry {
|
||||
return ActivityLogEntryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ActivityLogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivityLogEntry {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'overview': !exists(json, 'Overview') ? undefined : json['Overview'],
|
||||
'shortOverview': !exists(json, 'ShortOverview') ? undefined : json['ShortOverview'],
|
||||
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||||
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||||
'date': !exists(json, 'Date') ? undefined : (new Date(json['Date'])),
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'userPrimaryImageTag': !exists(json, 'UserPrimaryImageTag') ? undefined : json['UserPrimaryImageTag'],
|
||||
'severity': !exists(json, 'Severity') ? undefined : LogLevelFromJSON(json['Severity']),
|
||||
};
|
||||
}
|
||||
|
||||
export function ActivityLogEntryToJSON(value?: ActivityLogEntry | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'Name': value.name,
|
||||
'Overview': value.overview,
|
||||
'ShortOverview': value.shortOverview,
|
||||
'Type': value.type,
|
||||
'ItemId': value.itemId,
|
||||
'Date': value.date === undefined ? undefined : (value.date.toISOString()),
|
||||
'UserId': value.userId,
|
||||
'UserPrimaryImageTag': value.userPrimaryImageTag,
|
||||
'Severity': LogLevelToJSON(value.severity),
|
||||
};
|
||||
}
|
||||
|
88
server/jellyfin/models/ActivityLogEntryQueryResult.ts
Normal file
88
server/jellyfin/models/ActivityLogEntryQueryResult.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { ActivityLogEntry } from './ActivityLogEntry';
|
||||
import {
|
||||
ActivityLogEntryFromJSON,
|
||||
ActivityLogEntryFromJSONTyped,
|
||||
ActivityLogEntryToJSON,
|
||||
} from './ActivityLogEntry';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ActivityLogEntryQueryResult
|
||||
*/
|
||||
export interface ActivityLogEntryQueryResult {
|
||||
/**
|
||||
* Gets or sets the items.
|
||||
* @type {Array<ActivityLogEntry>}
|
||||
* @memberof ActivityLogEntryQueryResult
|
||||
*/
|
||||
items?: Array<ActivityLogEntry> | null;
|
||||
/**
|
||||
* Gets or sets the total number of records available.
|
||||
* @type {number}
|
||||
* @memberof ActivityLogEntryQueryResult
|
||||
*/
|
||||
totalRecordCount?: number;
|
||||
/**
|
||||
* Gets or sets the index of the first record in Items.
|
||||
* @type {number}
|
||||
* @memberof ActivityLogEntryQueryResult
|
||||
*/
|
||||
startIndex?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ActivityLogEntryQueryResult interface.
|
||||
*/
|
||||
export function instanceOfActivityLogEntryQueryResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ActivityLogEntryQueryResultFromJSON(json: any): ActivityLogEntryQueryResult {
|
||||
return ActivityLogEntryQueryResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ActivityLogEntryQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivityLogEntryQueryResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(ActivityLogEntryFromJSON)),
|
||||
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
|
||||
'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ActivityLogEntryQueryResultToJSON(value?: ActivityLogEntryQueryResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array<any>).map(ActivityLogEntryToJSON)),
|
||||
'TotalRecordCount': value.totalRecordCount,
|
||||
'StartIndex': value.startIndex,
|
||||
};
|
||||
}
|
||||
|
208
server/jellyfin/models/AddListingProviderRequest.ts
Normal file
208
server/jellyfin/models/AddListingProviderRequest.ts
Normal file
@ -0,0 +1,208 @@
|
||||
/* 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';
|
||||
import type { NameValuePair } from './NameValuePair';
|
||||
import {
|
||||
NameValuePairFromJSON,
|
||||
NameValuePairFromJSONTyped,
|
||||
NameValuePairToJSON,
|
||||
} from './NameValuePair';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AddListingProviderRequest
|
||||
*/
|
||||
export interface AddListingProviderRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
password?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
listingsId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
zipCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
path?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
enabledTuners?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
enableAllTuners?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
newsCategories?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
sportsCategories?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
kidsCategories?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
movieCategories?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<NameValuePair>}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
channelMappings?: Array<NameValuePair> | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
moviePrefix?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
preferredLanguage?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddListingProviderRequest
|
||||
*/
|
||||
userAgent?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddListingProviderRequest interface.
|
||||
*/
|
||||
export function instanceOfAddListingProviderRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AddListingProviderRequestFromJSON(json: any): AddListingProviderRequest {
|
||||
return AddListingProviderRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddListingProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddListingProviderRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||||
'username': !exists(json, 'Username') ? undefined : json['Username'],
|
||||
'password': !exists(json, 'Password') ? undefined : json['Password'],
|
||||
'listingsId': !exists(json, 'ListingsId') ? undefined : json['ListingsId'],
|
||||
'zipCode': !exists(json, 'ZipCode') ? undefined : json['ZipCode'],
|
||||
'country': !exists(json, 'Country') ? undefined : json['Country'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'enabledTuners': !exists(json, 'EnabledTuners') ? undefined : json['EnabledTuners'],
|
||||
'enableAllTuners': !exists(json, 'EnableAllTuners') ? undefined : json['EnableAllTuners'],
|
||||
'newsCategories': !exists(json, 'NewsCategories') ? undefined : json['NewsCategories'],
|
||||
'sportsCategories': !exists(json, 'SportsCategories') ? undefined : json['SportsCategories'],
|
||||
'kidsCategories': !exists(json, 'KidsCategories') ? undefined : json['KidsCategories'],
|
||||
'movieCategories': !exists(json, 'MovieCategories') ? undefined : json['MovieCategories'],
|
||||
'channelMappings': !exists(json, 'ChannelMappings') ? undefined : (json['ChannelMappings'] === null ? null : (json['ChannelMappings'] as Array<any>).map(NameValuePairFromJSON)),
|
||||
'moviePrefix': !exists(json, 'MoviePrefix') ? undefined : json['MoviePrefix'],
|
||||
'preferredLanguage': !exists(json, 'PreferredLanguage') ? undefined : json['PreferredLanguage'],
|
||||
'userAgent': !exists(json, 'UserAgent') ? undefined : json['UserAgent'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AddListingProviderRequestToJSON(value?: AddListingProviderRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'Type': value.type,
|
||||
'Username': value.username,
|
||||
'Password': value.password,
|
||||
'ListingsId': value.listingsId,
|
||||
'ZipCode': value.zipCode,
|
||||
'Country': value.country,
|
||||
'Path': value.path,
|
||||
'EnabledTuners': value.enabledTuners,
|
||||
'EnableAllTuners': value.enableAllTuners,
|
||||
'NewsCategories': value.newsCategories,
|
||||
'SportsCategories': value.sportsCategories,
|
||||
'KidsCategories': value.kidsCategories,
|
||||
'MovieCategories': value.movieCategories,
|
||||
'ChannelMappings': value.channelMappings === undefined ? undefined : (value.channelMappings === null ? null : (value.channelMappings as Array<any>).map(NameValuePairToJSON)),
|
||||
'MoviePrefix': value.moviePrefix,
|
||||
'PreferredLanguage': value.preferredLanguage,
|
||||
'UserAgent': value.userAgent,
|
||||
};
|
||||
}
|
||||
|
89
server/jellyfin/models/AddMediaPathRequest.ts
Normal file
89
server/jellyfin/models/AddMediaPathRequest.ts
Normal file
@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
import type { MediaPathDtoPathInfo } from './MediaPathDtoPathInfo';
|
||||
import {
|
||||
MediaPathDtoPathInfoFromJSON,
|
||||
MediaPathDtoPathInfoFromJSONTyped,
|
||||
MediaPathDtoPathInfoToJSON,
|
||||
} from './MediaPathDtoPathInfo';
|
||||
|
||||
/**
|
||||
* Media Path dto.
|
||||
* @export
|
||||
* @interface AddMediaPathRequest
|
||||
*/
|
||||
export interface AddMediaPathRequest {
|
||||
/**
|
||||
* Gets or sets the name of the library.
|
||||
* @type {string}
|
||||
* @memberof AddMediaPathRequest
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Gets or sets the path to add.
|
||||
* @type {string}
|
||||
* @memberof AddMediaPathRequest
|
||||
*/
|
||||
path?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {MediaPathDtoPathInfo}
|
||||
* @memberof AddMediaPathRequest
|
||||
*/
|
||||
pathInfo?: MediaPathDtoPathInfo | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddMediaPathRequest interface.
|
||||
*/
|
||||
export function instanceOfAddMediaPathRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "name" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AddMediaPathRequestFromJSON(json: any): AddMediaPathRequest {
|
||||
return AddMediaPathRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddMediaPathRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddMediaPathRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': json['Name'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'pathInfo': !exists(json, 'PathInfo') ? undefined : MediaPathDtoPathInfoFromJSON(json['PathInfo']),
|
||||
};
|
||||
}
|
||||
|
||||
export function AddMediaPathRequestToJSON(value?: AddMediaPathRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Path': value.path,
|
||||
'PathInfo': MediaPathDtoPathInfoToJSON(value.pathInfo),
|
||||
};
|
||||
}
|
||||
|
145
server/jellyfin/models/AddTunerHostRequest.ts
Normal file
145
server/jellyfin/models/AddTunerHostRequest.ts
Normal file
@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AddTunerHostRequest
|
||||
*/
|
||||
export interface AddTunerHostRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
url?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
deviceId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
friendlyName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
importFavoritesOnly?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
allowHWTranscoding?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
enableStreamLooping?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
source?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
tunerCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddTunerHostRequest
|
||||
*/
|
||||
userAgent?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddTunerHostRequest interface.
|
||||
*/
|
||||
export function instanceOfAddTunerHostRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AddTunerHostRequestFromJSON(json: any): AddTunerHostRequest {
|
||||
return AddTunerHostRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddTunerHostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddTunerHostRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'url': !exists(json, 'Url') ? undefined : json['Url'],
|
||||
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||||
'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'importFavoritesOnly': !exists(json, 'ImportFavoritesOnly') ? undefined : json['ImportFavoritesOnly'],
|
||||
'allowHWTranscoding': !exists(json, 'AllowHWTranscoding') ? undefined : json['AllowHWTranscoding'],
|
||||
'enableStreamLooping': !exists(json, 'EnableStreamLooping') ? undefined : json['EnableStreamLooping'],
|
||||
'source': !exists(json, 'Source') ? undefined : json['Source'],
|
||||
'tunerCount': !exists(json, 'TunerCount') ? undefined : json['TunerCount'],
|
||||
'userAgent': !exists(json, 'UserAgent') ? undefined : json['UserAgent'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AddTunerHostRequestToJSON(value?: AddTunerHostRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'Url': value.url,
|
||||
'Type': value.type,
|
||||
'DeviceId': value.deviceId,
|
||||
'FriendlyName': value.friendlyName,
|
||||
'ImportFavoritesOnly': value.importFavoritesOnly,
|
||||
'AllowHWTranscoding': value.allowHWTranscoding,
|
||||
'EnableStreamLooping': value.enableStreamLooping,
|
||||
'Source': value.source,
|
||||
'TunerCount': value.tunerCount,
|
||||
'UserAgent': value.userAgent,
|
||||
};
|
||||
}
|
||||
|
72
server/jellyfin/models/AddVirtualFolderDto.ts
Normal file
72
server/jellyfin/models/AddVirtualFolderDto.ts
Normal file
@ -0,0 +1,72 @@
|
||||
/* 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';
|
||||
import type { AddVirtualFolderDtoLibraryOptions } from './AddVirtualFolderDtoLibraryOptions';
|
||||
import {
|
||||
AddVirtualFolderDtoLibraryOptionsFromJSON,
|
||||
AddVirtualFolderDtoLibraryOptionsFromJSONTyped,
|
||||
AddVirtualFolderDtoLibraryOptionsToJSON,
|
||||
} from './AddVirtualFolderDtoLibraryOptions';
|
||||
|
||||
/**
|
||||
* Add virtual folder dto.
|
||||
* @export
|
||||
* @interface AddVirtualFolderDto
|
||||
*/
|
||||
export interface AddVirtualFolderDto {
|
||||
/**
|
||||
*
|
||||
* @type {AddVirtualFolderDtoLibraryOptions}
|
||||
* @memberof AddVirtualFolderDto
|
||||
*/
|
||||
libraryOptions?: AddVirtualFolderDtoLibraryOptions | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddVirtualFolderDto interface.
|
||||
*/
|
||||
export function instanceOfAddVirtualFolderDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AddVirtualFolderDtoFromJSON(json: any): AddVirtualFolderDto {
|
||||
return AddVirtualFolderDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddVirtualFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddVirtualFolderDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'libraryOptions': !exists(json, 'LibraryOptions') ? undefined : AddVirtualFolderDtoLibraryOptionsFromJSON(json['LibraryOptions']),
|
||||
};
|
||||
}
|
||||
|
||||
export function AddVirtualFolderDtoToJSON(value?: AddVirtualFolderDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'LibraryOptions': AddVirtualFolderDtoLibraryOptionsToJSON(value.libraryOptions),
|
||||
};
|
||||
}
|
||||
|
293
server/jellyfin/models/AddVirtualFolderDtoLibraryOptions.ts
Normal file
293
server/jellyfin/models/AddVirtualFolderDtoLibraryOptions.ts
Normal file
@ -0,0 +1,293 @@
|
||||
/* 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';
|
||||
import type { EmbeddedSubtitleOptions } from './EmbeddedSubtitleOptions';
|
||||
import {
|
||||
EmbeddedSubtitleOptionsFromJSON,
|
||||
EmbeddedSubtitleOptionsFromJSONTyped,
|
||||
EmbeddedSubtitleOptionsToJSON,
|
||||
} from './EmbeddedSubtitleOptions';
|
||||
import type { MediaPathInfo } from './MediaPathInfo';
|
||||
import {
|
||||
MediaPathInfoFromJSON,
|
||||
MediaPathInfoFromJSONTyped,
|
||||
MediaPathInfoToJSON,
|
||||
} from './MediaPathInfo';
|
||||
import type { TypeOptions } from './TypeOptions';
|
||||
import {
|
||||
TypeOptionsFromJSON,
|
||||
TypeOptionsFromJSONTyped,
|
||||
TypeOptionsToJSON,
|
||||
} from './TypeOptions';
|
||||
|
||||
/**
|
||||
* Gets or sets library options.
|
||||
* @export
|
||||
* @interface AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
export interface AddVirtualFolderDtoLibraryOptions {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
enablePhotos?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
enableRealtimeMonitor?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
enableChapterImageExtraction?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
extractChapterImagesDuringLibraryScan?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MediaPathInfo>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
pathInfos?: Array<MediaPathInfo>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
saveLocalMetadata?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
* @deprecated
|
||||
*/
|
||||
enableInternetProviders?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
enableAutomaticSeriesGrouping?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
enableEmbeddedTitles?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
enableEmbeddedEpisodeInfos?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
automaticRefreshIntervalDays?: number;
|
||||
/**
|
||||
* Gets or sets the preferred metadata language.
|
||||
* @type {string}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
preferredMetadataLanguage?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata country code.
|
||||
* @type {string}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
metadataCountryCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
seasonZeroDisplayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
metadataSavers?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
disabledLocalMetadataReaders?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
localMetadataReaderOrder?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
disabledSubtitleFetchers?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
subtitleFetcherOrder?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
skipSubtitlesIfEmbeddedSubtitlesPresent?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
skipSubtitlesIfAudioTrackMatches?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
subtitleDownloadLanguages?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
requirePerfectSubtitleMatch?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
saveSubtitlesWithMedia?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
automaticallyAddToCollection?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {EmbeddedSubtitleOptions}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
allowEmbeddedSubtitles?: EmbeddedSubtitleOptions;
|
||||
/**
|
||||
*
|
||||
* @type {Array<TypeOptions>}
|
||||
* @memberof AddVirtualFolderDtoLibraryOptions
|
||||
*/
|
||||
typeOptions?: Array<TypeOptions>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddVirtualFolderDtoLibraryOptions interface.
|
||||
*/
|
||||
export function instanceOfAddVirtualFolderDtoLibraryOptions(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AddVirtualFolderDtoLibraryOptionsFromJSON(json: any): AddVirtualFolderDtoLibraryOptions {
|
||||
return AddVirtualFolderDtoLibraryOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddVirtualFolderDtoLibraryOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddVirtualFolderDtoLibraryOptions {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'enablePhotos': !exists(json, 'EnablePhotos') ? undefined : json['EnablePhotos'],
|
||||
'enableRealtimeMonitor': !exists(json, 'EnableRealtimeMonitor') ? undefined : json['EnableRealtimeMonitor'],
|
||||
'enableChapterImageExtraction': !exists(json, 'EnableChapterImageExtraction') ? undefined : json['EnableChapterImageExtraction'],
|
||||
'extractChapterImagesDuringLibraryScan': !exists(json, 'ExtractChapterImagesDuringLibraryScan') ? undefined : json['ExtractChapterImagesDuringLibraryScan'],
|
||||
'pathInfos': !exists(json, 'PathInfos') ? undefined : ((json['PathInfos'] as Array<any>).map(MediaPathInfoFromJSON)),
|
||||
'saveLocalMetadata': !exists(json, 'SaveLocalMetadata') ? undefined : json['SaveLocalMetadata'],
|
||||
'enableInternetProviders': !exists(json, 'EnableInternetProviders') ? undefined : json['EnableInternetProviders'],
|
||||
'enableAutomaticSeriesGrouping': !exists(json, 'EnableAutomaticSeriesGrouping') ? undefined : json['EnableAutomaticSeriesGrouping'],
|
||||
'enableEmbeddedTitles': !exists(json, 'EnableEmbeddedTitles') ? undefined : json['EnableEmbeddedTitles'],
|
||||
'enableEmbeddedEpisodeInfos': !exists(json, 'EnableEmbeddedEpisodeInfos') ? undefined : json['EnableEmbeddedEpisodeInfos'],
|
||||
'automaticRefreshIntervalDays': !exists(json, 'AutomaticRefreshIntervalDays') ? undefined : json['AutomaticRefreshIntervalDays'],
|
||||
'preferredMetadataLanguage': !exists(json, 'PreferredMetadataLanguage') ? undefined : json['PreferredMetadataLanguage'],
|
||||
'metadataCountryCode': !exists(json, 'MetadataCountryCode') ? undefined : json['MetadataCountryCode'],
|
||||
'seasonZeroDisplayName': !exists(json, 'SeasonZeroDisplayName') ? undefined : json['SeasonZeroDisplayName'],
|
||||
'metadataSavers': !exists(json, 'MetadataSavers') ? undefined : json['MetadataSavers'],
|
||||
'disabledLocalMetadataReaders': !exists(json, 'DisabledLocalMetadataReaders') ? undefined : json['DisabledLocalMetadataReaders'],
|
||||
'localMetadataReaderOrder': !exists(json, 'LocalMetadataReaderOrder') ? undefined : json['LocalMetadataReaderOrder'],
|
||||
'disabledSubtitleFetchers': !exists(json, 'DisabledSubtitleFetchers') ? undefined : json['DisabledSubtitleFetchers'],
|
||||
'subtitleFetcherOrder': !exists(json, 'SubtitleFetcherOrder') ? undefined : json['SubtitleFetcherOrder'],
|
||||
'skipSubtitlesIfEmbeddedSubtitlesPresent': !exists(json, 'SkipSubtitlesIfEmbeddedSubtitlesPresent') ? undefined : json['SkipSubtitlesIfEmbeddedSubtitlesPresent'],
|
||||
'skipSubtitlesIfAudioTrackMatches': !exists(json, 'SkipSubtitlesIfAudioTrackMatches') ? undefined : json['SkipSubtitlesIfAudioTrackMatches'],
|
||||
'subtitleDownloadLanguages': !exists(json, 'SubtitleDownloadLanguages') ? undefined : json['SubtitleDownloadLanguages'],
|
||||
'requirePerfectSubtitleMatch': !exists(json, 'RequirePerfectSubtitleMatch') ? undefined : json['RequirePerfectSubtitleMatch'],
|
||||
'saveSubtitlesWithMedia': !exists(json, 'SaveSubtitlesWithMedia') ? undefined : json['SaveSubtitlesWithMedia'],
|
||||
'automaticallyAddToCollection': !exists(json, 'AutomaticallyAddToCollection') ? undefined : json['AutomaticallyAddToCollection'],
|
||||
'allowEmbeddedSubtitles': !exists(json, 'AllowEmbeddedSubtitles') ? undefined : EmbeddedSubtitleOptionsFromJSON(json['AllowEmbeddedSubtitles']),
|
||||
'typeOptions': !exists(json, 'TypeOptions') ? undefined : ((json['TypeOptions'] as Array<any>).map(TypeOptionsFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function AddVirtualFolderDtoLibraryOptionsToJSON(value?: AddVirtualFolderDtoLibraryOptions | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'EnablePhotos': value.enablePhotos,
|
||||
'EnableRealtimeMonitor': value.enableRealtimeMonitor,
|
||||
'EnableChapterImageExtraction': value.enableChapterImageExtraction,
|
||||
'ExtractChapterImagesDuringLibraryScan': value.extractChapterImagesDuringLibraryScan,
|
||||
'PathInfos': value.pathInfos === undefined ? undefined : ((value.pathInfos as Array<any>).map(MediaPathInfoToJSON)),
|
||||
'SaveLocalMetadata': value.saveLocalMetadata,
|
||||
'EnableInternetProviders': value.enableInternetProviders,
|
||||
'EnableAutomaticSeriesGrouping': value.enableAutomaticSeriesGrouping,
|
||||
'EnableEmbeddedTitles': value.enableEmbeddedTitles,
|
||||
'EnableEmbeddedEpisodeInfos': value.enableEmbeddedEpisodeInfos,
|
||||
'AutomaticRefreshIntervalDays': value.automaticRefreshIntervalDays,
|
||||
'PreferredMetadataLanguage': value.preferredMetadataLanguage,
|
||||
'MetadataCountryCode': value.metadataCountryCode,
|
||||
'SeasonZeroDisplayName': value.seasonZeroDisplayName,
|
||||
'MetadataSavers': value.metadataSavers,
|
||||
'DisabledLocalMetadataReaders': value.disabledLocalMetadataReaders,
|
||||
'LocalMetadataReaderOrder': value.localMetadataReaderOrder,
|
||||
'DisabledSubtitleFetchers': value.disabledSubtitleFetchers,
|
||||
'SubtitleFetcherOrder': value.subtitleFetcherOrder,
|
||||
'SkipSubtitlesIfEmbeddedSubtitlesPresent': value.skipSubtitlesIfEmbeddedSubtitlesPresent,
|
||||
'SkipSubtitlesIfAudioTrackMatches': value.skipSubtitlesIfAudioTrackMatches,
|
||||
'SubtitleDownloadLanguages': value.subtitleDownloadLanguages,
|
||||
'RequirePerfectSubtitleMatch': value.requirePerfectSubtitleMatch,
|
||||
'SaveSubtitlesWithMedia': value.saveSubtitlesWithMedia,
|
||||
'AutomaticallyAddToCollection': value.automaticallyAddToCollection,
|
||||
'AllowEmbeddedSubtitles': EmbeddedSubtitleOptionsToJSON(value.allowEmbeddedSubtitles),
|
||||
'TypeOptions': value.typeOptions === undefined ? undefined : ((value.typeOptions as Array<any>).map(TypeOptionsToJSON)),
|
||||
};
|
||||
}
|
||||
|
72
server/jellyfin/models/AddVirtualFolderRequest.ts
Normal file
72
server/jellyfin/models/AddVirtualFolderRequest.ts
Normal file
@ -0,0 +1,72 @@
|
||||
/* 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';
|
||||
import type { AddVirtualFolderDtoLibraryOptions } from './AddVirtualFolderDtoLibraryOptions';
|
||||
import {
|
||||
AddVirtualFolderDtoLibraryOptionsFromJSON,
|
||||
AddVirtualFolderDtoLibraryOptionsFromJSONTyped,
|
||||
AddVirtualFolderDtoLibraryOptionsToJSON,
|
||||
} from './AddVirtualFolderDtoLibraryOptions';
|
||||
|
||||
/**
|
||||
* Add virtual folder dto.
|
||||
* @export
|
||||
* @interface AddVirtualFolderRequest
|
||||
*/
|
||||
export interface AddVirtualFolderRequest {
|
||||
/**
|
||||
*
|
||||
* @type {AddVirtualFolderDtoLibraryOptions}
|
||||
* @memberof AddVirtualFolderRequest
|
||||
*/
|
||||
libraryOptions?: AddVirtualFolderDtoLibraryOptions | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddVirtualFolderRequest interface.
|
||||
*/
|
||||
export function instanceOfAddVirtualFolderRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AddVirtualFolderRequestFromJSON(json: any): AddVirtualFolderRequest {
|
||||
return AddVirtualFolderRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddVirtualFolderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddVirtualFolderRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'libraryOptions': !exists(json, 'LibraryOptions') ? undefined : AddVirtualFolderDtoLibraryOptionsFromJSON(json['LibraryOptions']),
|
||||
};
|
||||
}
|
||||
|
||||
export function AddVirtualFolderRequestToJSON(value?: AddVirtualFolderRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'LibraryOptions': AddVirtualFolderDtoLibraryOptionsToJSON(value.libraryOptions),
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/AdminNotificationDto.ts
Normal file
96
server/jellyfin/models/AdminNotificationDto.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { NotificationLevel } from './NotificationLevel';
|
||||
import {
|
||||
NotificationLevelFromJSON,
|
||||
NotificationLevelFromJSONTyped,
|
||||
NotificationLevelToJSON,
|
||||
} from './NotificationLevel';
|
||||
|
||||
/**
|
||||
* The admin notification dto.
|
||||
* @export
|
||||
* @interface AdminNotificationDto
|
||||
*/
|
||||
export interface AdminNotificationDto {
|
||||
/**
|
||||
* Gets or sets the notification name.
|
||||
* @type {string}
|
||||
* @memberof AdminNotificationDto
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the notification description.
|
||||
* @type {string}
|
||||
* @memberof AdminNotificationDto
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {NotificationLevel}
|
||||
* @memberof AdminNotificationDto
|
||||
*/
|
||||
notificationLevel?: NotificationLevel | null;
|
||||
/**
|
||||
* Gets or sets the notification url.
|
||||
* @type {string}
|
||||
* @memberof AdminNotificationDto
|
||||
*/
|
||||
url?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AdminNotificationDto interface.
|
||||
*/
|
||||
export function instanceOfAdminNotificationDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AdminNotificationDtoFromJSON(json: any): AdminNotificationDto {
|
||||
return AdminNotificationDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AdminNotificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNotificationDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'description': !exists(json, 'Description') ? undefined : json['Description'],
|
||||
'notificationLevel': !exists(json, 'NotificationLevel') ? undefined : NotificationLevelFromJSON(json['NotificationLevel']),
|
||||
'url': !exists(json, 'Url') ? undefined : json['Url'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AdminNotificationDtoToJSON(value?: AdminNotificationDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Description': value.description,
|
||||
'NotificationLevel': NotificationLevelToJSON(value.notificationLevel),
|
||||
'Url': value.url,
|
||||
};
|
||||
}
|
||||
|
176
server/jellyfin/models/AlbumInfo.ts
Normal file
176
server/jellyfin/models/AlbumInfo.ts
Normal file
@ -0,0 +1,176 @@
|
||||
/* 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';
|
||||
import type { SongInfo } from './SongInfo';
|
||||
import {
|
||||
SongInfoFromJSON,
|
||||
SongInfoFromJSONTyped,
|
||||
SongInfoToJSON,
|
||||
} from './SongInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AlbumInfo
|
||||
*/
|
||||
export interface AlbumInfo {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the original title.
|
||||
* @type {string}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
originalTitle?: string | null;
|
||||
/**
|
||||
* Gets or sets the path.
|
||||
* @type {string}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
path?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata language.
|
||||
* @type {string}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
metadataLanguage?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata country code.
|
||||
* @type {string}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
metadataCountryCode?: string | null;
|
||||
/**
|
||||
* Gets or sets the provider ids.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
providerIds?: { [key: string]: string; } | null;
|
||||
/**
|
||||
* Gets or sets the year.
|
||||
* @type {number}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
year?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
indexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
parentIndexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
premiereDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
isAutomated?: boolean;
|
||||
/**
|
||||
* Gets or sets the album artist.
|
||||
* @type {Array<string>}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
albumArtists?: Array<string>;
|
||||
/**
|
||||
* Gets or sets the artist provider ids.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
artistProviderIds?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<SongInfo>}
|
||||
* @memberof AlbumInfo
|
||||
*/
|
||||
songInfos?: Array<SongInfo>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AlbumInfo interface.
|
||||
*/
|
||||
export function instanceOfAlbumInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AlbumInfoFromJSON(json: any): AlbumInfo {
|
||||
return AlbumInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AlbumInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlbumInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'originalTitle': !exists(json, 'OriginalTitle') ? undefined : json['OriginalTitle'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'metadataLanguage': !exists(json, 'MetadataLanguage') ? undefined : json['MetadataLanguage'],
|
||||
'metadataCountryCode': !exists(json, 'MetadataCountryCode') ? undefined : json['MetadataCountryCode'],
|
||||
'providerIds': !exists(json, 'ProviderIds') ? undefined : json['ProviderIds'],
|
||||
'year': !exists(json, 'Year') ? undefined : json['Year'],
|
||||
'indexNumber': !exists(json, 'IndexNumber') ? undefined : json['IndexNumber'],
|
||||
'parentIndexNumber': !exists(json, 'ParentIndexNumber') ? undefined : json['ParentIndexNumber'],
|
||||
'premiereDate': !exists(json, 'PremiereDate') ? undefined : (json['PremiereDate'] === null ? null : new Date(json['PremiereDate'])),
|
||||
'isAutomated': !exists(json, 'IsAutomated') ? undefined : json['IsAutomated'],
|
||||
'albumArtists': !exists(json, 'AlbumArtists') ? undefined : json['AlbumArtists'],
|
||||
'artistProviderIds': !exists(json, 'ArtistProviderIds') ? undefined : json['ArtistProviderIds'],
|
||||
'songInfos': !exists(json, 'SongInfos') ? undefined : ((json['SongInfos'] as Array<any>).map(SongInfoFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function AlbumInfoToJSON(value?: AlbumInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'OriginalTitle': value.originalTitle,
|
||||
'Path': value.path,
|
||||
'MetadataLanguage': value.metadataLanguage,
|
||||
'MetadataCountryCode': value.metadataCountryCode,
|
||||
'ProviderIds': value.providerIds,
|
||||
'Year': value.year,
|
||||
'IndexNumber': value.indexNumber,
|
||||
'ParentIndexNumber': value.parentIndexNumber,
|
||||
'PremiereDate': value.premiereDate === undefined ? undefined : (value.premiereDate === null ? null : value.premiereDate.toISOString()),
|
||||
'IsAutomated': value.isAutomated,
|
||||
'AlbumArtists': value.albumArtists,
|
||||
'ArtistProviderIds': value.artistProviderIds,
|
||||
'SongInfos': value.songInfos === undefined ? undefined : ((value.songInfos as Array<any>).map(SongInfoToJSON)),
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/AlbumInfoRemoteSearchQuery.ts
Normal file
96
server/jellyfin/models/AlbumInfoRemoteSearchQuery.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { AlbumInfo } from './AlbumInfo';
|
||||
import {
|
||||
AlbumInfoFromJSON,
|
||||
AlbumInfoFromJSONTyped,
|
||||
AlbumInfoToJSON,
|
||||
} from './AlbumInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AlbumInfoRemoteSearchQuery
|
||||
*/
|
||||
export interface AlbumInfoRemoteSearchQuery {
|
||||
/**
|
||||
*
|
||||
* @type {AlbumInfo}
|
||||
* @memberof AlbumInfoRemoteSearchQuery
|
||||
*/
|
||||
searchInfo?: AlbumInfo | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AlbumInfoRemoteSearchQuery
|
||||
*/
|
||||
itemId?: string;
|
||||
/**
|
||||
* Gets or sets the provider name to search within if set.
|
||||
* @type {string}
|
||||
* @memberof AlbumInfoRemoteSearchQuery
|
||||
*/
|
||||
searchProviderName?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether disabled providers should be included.
|
||||
* @type {boolean}
|
||||
* @memberof AlbumInfoRemoteSearchQuery
|
||||
*/
|
||||
includeDisabledProviders?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AlbumInfoRemoteSearchQuery interface.
|
||||
*/
|
||||
export function instanceOfAlbumInfoRemoteSearchQuery(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AlbumInfoRemoteSearchQueryFromJSON(json: any): AlbumInfoRemoteSearchQuery {
|
||||
return AlbumInfoRemoteSearchQueryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AlbumInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlbumInfoRemoteSearchQuery {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'searchInfo': !exists(json, 'SearchInfo') ? undefined : AlbumInfoFromJSON(json['SearchInfo']),
|
||||
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||||
'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'],
|
||||
'includeDisabledProviders': !exists(json, 'IncludeDisabledProviders') ? undefined : json['IncludeDisabledProviders'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AlbumInfoRemoteSearchQueryToJSON(value?: AlbumInfoRemoteSearchQuery | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'SearchInfo': AlbumInfoToJSON(value.searchInfo),
|
||||
'ItemId': value.itemId,
|
||||
'SearchProviderName': value.searchProviderName,
|
||||
'IncludeDisabledProviders': value.includeDisabledProviders,
|
||||
};
|
||||
}
|
||||
|
88
server/jellyfin/models/AllThemeMediaResult.ts
Normal file
88
server/jellyfin/models/AllThemeMediaResult.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { AllThemeMediaResultThemeVideosResult } from './AllThemeMediaResultThemeVideosResult';
|
||||
import {
|
||||
AllThemeMediaResultThemeVideosResultFromJSON,
|
||||
AllThemeMediaResultThemeVideosResultFromJSONTyped,
|
||||
AllThemeMediaResultThemeVideosResultToJSON,
|
||||
} from './AllThemeMediaResultThemeVideosResult';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AllThemeMediaResult
|
||||
*/
|
||||
export interface AllThemeMediaResult {
|
||||
/**
|
||||
*
|
||||
* @type {AllThemeMediaResultThemeVideosResult}
|
||||
* @memberof AllThemeMediaResult
|
||||
*/
|
||||
themeVideosResult?: AllThemeMediaResultThemeVideosResult | null;
|
||||
/**
|
||||
*
|
||||
* @type {AllThemeMediaResultThemeVideosResult}
|
||||
* @memberof AllThemeMediaResult
|
||||
*/
|
||||
themeSongsResult?: AllThemeMediaResultThemeVideosResult | null;
|
||||
/**
|
||||
*
|
||||
* @type {AllThemeMediaResultThemeVideosResult}
|
||||
* @memberof AllThemeMediaResult
|
||||
*/
|
||||
soundtrackSongsResult?: AllThemeMediaResultThemeVideosResult | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AllThemeMediaResult interface.
|
||||
*/
|
||||
export function instanceOfAllThemeMediaResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AllThemeMediaResultFromJSON(json: any): AllThemeMediaResult {
|
||||
return AllThemeMediaResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AllThemeMediaResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllThemeMediaResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'themeVideosResult': !exists(json, 'ThemeVideosResult') ? undefined : AllThemeMediaResultThemeVideosResultFromJSON(json['ThemeVideosResult']),
|
||||
'themeSongsResult': !exists(json, 'ThemeSongsResult') ? undefined : AllThemeMediaResultThemeVideosResultFromJSON(json['ThemeSongsResult']),
|
||||
'soundtrackSongsResult': !exists(json, 'SoundtrackSongsResult') ? undefined : AllThemeMediaResultThemeVideosResultFromJSON(json['SoundtrackSongsResult']),
|
||||
};
|
||||
}
|
||||
|
||||
export function AllThemeMediaResultToJSON(value?: AllThemeMediaResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'ThemeVideosResult': AllThemeMediaResultThemeVideosResultToJSON(value.themeVideosResult),
|
||||
'ThemeSongsResult': AllThemeMediaResultThemeVideosResultToJSON(value.themeSongsResult),
|
||||
'SoundtrackSongsResult': AllThemeMediaResultThemeVideosResultToJSON(value.soundtrackSongsResult),
|
||||
};
|
||||
}
|
||||
|
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { BaseItemDto } from './BaseItemDto';
|
||||
import {
|
||||
BaseItemDtoFromJSON,
|
||||
BaseItemDtoFromJSONTyped,
|
||||
BaseItemDtoToJSON,
|
||||
} from './BaseItemDto';
|
||||
|
||||
/**
|
||||
* Class ThemeMediaResult.
|
||||
* @export
|
||||
* @interface AllThemeMediaResultThemeVideosResult
|
||||
*/
|
||||
export interface AllThemeMediaResultThemeVideosResult {
|
||||
/**
|
||||
* Gets or sets the items.
|
||||
* @type {Array<BaseItemDto>}
|
||||
* @memberof AllThemeMediaResultThemeVideosResult
|
||||
*/
|
||||
items?: Array<BaseItemDto> | null;
|
||||
/**
|
||||
* Gets or sets the total number of records available.
|
||||
* @type {number}
|
||||
* @memberof AllThemeMediaResultThemeVideosResult
|
||||
*/
|
||||
totalRecordCount?: number;
|
||||
/**
|
||||
* Gets or sets the index of the first record in Items.
|
||||
* @type {number}
|
||||
* @memberof AllThemeMediaResultThemeVideosResult
|
||||
*/
|
||||
startIndex?: number;
|
||||
/**
|
||||
* Gets or sets the owner id.
|
||||
* @type {string}
|
||||
* @memberof AllThemeMediaResultThemeVideosResult
|
||||
*/
|
||||
ownerId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AllThemeMediaResultThemeVideosResult interface.
|
||||
*/
|
||||
export function instanceOfAllThemeMediaResultThemeVideosResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AllThemeMediaResultThemeVideosResultFromJSON(json: any): AllThemeMediaResultThemeVideosResult {
|
||||
return AllThemeMediaResultThemeVideosResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AllThemeMediaResultThemeVideosResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllThemeMediaResultThemeVideosResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(BaseItemDtoFromJSON)),
|
||||
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
|
||||
'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
|
||||
'ownerId': !exists(json, 'OwnerId') ? undefined : json['OwnerId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AllThemeMediaResultThemeVideosResultToJSON(value?: AllThemeMediaResultThemeVideosResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array<any>).map(BaseItemDtoToJSON)),
|
||||
'TotalRecordCount': value.totalRecordCount,
|
||||
'StartIndex': value.startIndex,
|
||||
'OwnerId': value.ownerId,
|
||||
};
|
||||
}
|
||||
|
160
server/jellyfin/models/ApplySearchCriteriaRequest.ts
Normal file
160
server/jellyfin/models/ApplySearchCriteriaRequest.ts
Normal file
@ -0,0 +1,160 @@
|
||||
/* 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';
|
||||
import type { RemoteSearchResult } from './RemoteSearchResult';
|
||||
import {
|
||||
RemoteSearchResultFromJSON,
|
||||
RemoteSearchResultFromJSONTyped,
|
||||
RemoteSearchResultToJSON,
|
||||
} from './RemoteSearchResult';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ApplySearchCriteriaRequest
|
||||
*/
|
||||
export interface ApplySearchCriteriaRequest {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the provider ids.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
providerIds?: { [key: string]: string; } | null;
|
||||
/**
|
||||
* Gets or sets the year.
|
||||
* @type {number}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
productionYear?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
indexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
indexNumberEnd?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
parentIndexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
premiereDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
imageUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
searchProviderName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
overview?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {RemoteSearchResult}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
albumArtist?: RemoteSearchResult | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RemoteSearchResult>}
|
||||
* @memberof ApplySearchCriteriaRequest
|
||||
*/
|
||||
artists?: Array<RemoteSearchResult> | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ApplySearchCriteriaRequest interface.
|
||||
*/
|
||||
export function instanceOfApplySearchCriteriaRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ApplySearchCriteriaRequestFromJSON(json: any): ApplySearchCriteriaRequest {
|
||||
return ApplySearchCriteriaRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ApplySearchCriteriaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplySearchCriteriaRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'providerIds': !exists(json, 'ProviderIds') ? undefined : json['ProviderIds'],
|
||||
'productionYear': !exists(json, 'ProductionYear') ? undefined : json['ProductionYear'],
|
||||
'indexNumber': !exists(json, 'IndexNumber') ? undefined : json['IndexNumber'],
|
||||
'indexNumberEnd': !exists(json, 'IndexNumberEnd') ? undefined : json['IndexNumberEnd'],
|
||||
'parentIndexNumber': !exists(json, 'ParentIndexNumber') ? undefined : json['ParentIndexNumber'],
|
||||
'premiereDate': !exists(json, 'PremiereDate') ? undefined : (json['PremiereDate'] === null ? null : new Date(json['PremiereDate'])),
|
||||
'imageUrl': !exists(json, 'ImageUrl') ? undefined : json['ImageUrl'],
|
||||
'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'],
|
||||
'overview': !exists(json, 'Overview') ? undefined : json['Overview'],
|
||||
'albumArtist': !exists(json, 'AlbumArtist') ? undefined : RemoteSearchResultFromJSON(json['AlbumArtist']),
|
||||
'artists': !exists(json, 'Artists') ? undefined : (json['Artists'] === null ? null : (json['Artists'] as Array<any>).map(RemoteSearchResultFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ApplySearchCriteriaRequestToJSON(value?: ApplySearchCriteriaRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'ProviderIds': value.providerIds,
|
||||
'ProductionYear': value.productionYear,
|
||||
'IndexNumber': value.indexNumber,
|
||||
'IndexNumberEnd': value.indexNumberEnd,
|
||||
'ParentIndexNumber': value.parentIndexNumber,
|
||||
'PremiereDate': value.premiereDate === undefined ? undefined : (value.premiereDate === null ? null : value.premiereDate.toISOString()),
|
||||
'ImageUrl': value.imageUrl,
|
||||
'SearchProviderName': value.searchProviderName,
|
||||
'Overview': value.overview,
|
||||
'AlbumArtist': RemoteSearchResultToJSON(value.albumArtist),
|
||||
'Artists': value.artists === undefined ? undefined : (value.artists === null ? null : (value.artists as Array<any>).map(RemoteSearchResultToJSON)),
|
||||
};
|
||||
}
|
||||
|
42
server/jellyfin/models/Architecture.ts
Normal file
42
server/jellyfin/models/Architecture.ts
Normal file
@ -0,0 +1,42 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const Architecture = {
|
||||
X86: 'X86',
|
||||
X64: 'X64',
|
||||
Arm: 'Arm',
|
||||
Arm64: 'Arm64',
|
||||
Wasm: 'Wasm',
|
||||
S390x: 'S390x'
|
||||
} as const;
|
||||
export type Architecture = typeof Architecture[keyof typeof Architecture];
|
||||
|
||||
|
||||
export function ArchitectureFromJSON(json: any): Architecture {
|
||||
return ArchitectureFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ArchitectureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Architecture {
|
||||
return json as Architecture;
|
||||
}
|
||||
|
||||
export function ArchitectureToJSON(value?: Architecture | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
160
server/jellyfin/models/ArtistInfo.ts
Normal file
160
server/jellyfin/models/ArtistInfo.ts
Normal file
@ -0,0 +1,160 @@
|
||||
/* 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';
|
||||
import type { SongInfo } from './SongInfo';
|
||||
import {
|
||||
SongInfoFromJSON,
|
||||
SongInfoFromJSONTyped,
|
||||
SongInfoToJSON,
|
||||
} from './SongInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ArtistInfo
|
||||
*/
|
||||
export interface ArtistInfo {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the original title.
|
||||
* @type {string}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
originalTitle?: string | null;
|
||||
/**
|
||||
* Gets or sets the path.
|
||||
* @type {string}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
path?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata language.
|
||||
* @type {string}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
metadataLanguage?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata country code.
|
||||
* @type {string}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
metadataCountryCode?: string | null;
|
||||
/**
|
||||
* Gets or sets the provider ids.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
providerIds?: { [key: string]: string; } | null;
|
||||
/**
|
||||
* Gets or sets the year.
|
||||
* @type {number}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
year?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
indexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
parentIndexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
premiereDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
isAutomated?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SongInfo>}
|
||||
* @memberof ArtistInfo
|
||||
*/
|
||||
songInfos?: Array<SongInfo>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ArtistInfo interface.
|
||||
*/
|
||||
export function instanceOfArtistInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ArtistInfoFromJSON(json: any): ArtistInfo {
|
||||
return ArtistInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ArtistInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtistInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'originalTitle': !exists(json, 'OriginalTitle') ? undefined : json['OriginalTitle'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'metadataLanguage': !exists(json, 'MetadataLanguage') ? undefined : json['MetadataLanguage'],
|
||||
'metadataCountryCode': !exists(json, 'MetadataCountryCode') ? undefined : json['MetadataCountryCode'],
|
||||
'providerIds': !exists(json, 'ProviderIds') ? undefined : json['ProviderIds'],
|
||||
'year': !exists(json, 'Year') ? undefined : json['Year'],
|
||||
'indexNumber': !exists(json, 'IndexNumber') ? undefined : json['IndexNumber'],
|
||||
'parentIndexNumber': !exists(json, 'ParentIndexNumber') ? undefined : json['ParentIndexNumber'],
|
||||
'premiereDate': !exists(json, 'PremiereDate') ? undefined : (json['PremiereDate'] === null ? null : new Date(json['PremiereDate'])),
|
||||
'isAutomated': !exists(json, 'IsAutomated') ? undefined : json['IsAutomated'],
|
||||
'songInfos': !exists(json, 'SongInfos') ? undefined : ((json['SongInfos'] as Array<any>).map(SongInfoFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ArtistInfoToJSON(value?: ArtistInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'OriginalTitle': value.originalTitle,
|
||||
'Path': value.path,
|
||||
'MetadataLanguage': value.metadataLanguage,
|
||||
'MetadataCountryCode': value.metadataCountryCode,
|
||||
'ProviderIds': value.providerIds,
|
||||
'Year': value.year,
|
||||
'IndexNumber': value.indexNumber,
|
||||
'ParentIndexNumber': value.parentIndexNumber,
|
||||
'PremiereDate': value.premiereDate === undefined ? undefined : (value.premiereDate === null ? null : value.premiereDate.toISOString()),
|
||||
'IsAutomated': value.isAutomated,
|
||||
'SongInfos': value.songInfos === undefined ? undefined : ((value.songInfos as Array<any>).map(SongInfoToJSON)),
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/ArtistInfoRemoteSearchQuery.ts
Normal file
96
server/jellyfin/models/ArtistInfoRemoteSearchQuery.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { ArtistInfo } from './ArtistInfo';
|
||||
import {
|
||||
ArtistInfoFromJSON,
|
||||
ArtistInfoFromJSONTyped,
|
||||
ArtistInfoToJSON,
|
||||
} from './ArtistInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ArtistInfoRemoteSearchQuery
|
||||
*/
|
||||
export interface ArtistInfoRemoteSearchQuery {
|
||||
/**
|
||||
*
|
||||
* @type {ArtistInfo}
|
||||
* @memberof ArtistInfoRemoteSearchQuery
|
||||
*/
|
||||
searchInfo?: ArtistInfo | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ArtistInfoRemoteSearchQuery
|
||||
*/
|
||||
itemId?: string;
|
||||
/**
|
||||
* Gets or sets the provider name to search within if set.
|
||||
* @type {string}
|
||||
* @memberof ArtistInfoRemoteSearchQuery
|
||||
*/
|
||||
searchProviderName?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether disabled providers should be included.
|
||||
* @type {boolean}
|
||||
* @memberof ArtistInfoRemoteSearchQuery
|
||||
*/
|
||||
includeDisabledProviders?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ArtistInfoRemoteSearchQuery interface.
|
||||
*/
|
||||
export function instanceOfArtistInfoRemoteSearchQuery(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ArtistInfoRemoteSearchQueryFromJSON(json: any): ArtistInfoRemoteSearchQuery {
|
||||
return ArtistInfoRemoteSearchQueryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ArtistInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtistInfoRemoteSearchQuery {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'searchInfo': !exists(json, 'SearchInfo') ? undefined : ArtistInfoFromJSON(json['SearchInfo']),
|
||||
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||||
'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'],
|
||||
'includeDisabledProviders': !exists(json, 'IncludeDisabledProviders') ? undefined : json['IncludeDisabledProviders'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ArtistInfoRemoteSearchQueryToJSON(value?: ArtistInfoRemoteSearchQuery | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'SearchInfo': ArtistInfoToJSON(value.searchInfo),
|
||||
'ItemId': value.itemId,
|
||||
'SearchProviderName': value.searchProviderName,
|
||||
'IncludeDisabledProviders': value.includeDisabledProviders,
|
||||
};
|
||||
}
|
||||
|
82
server/jellyfin/models/AuthenticateUserByName.ts
Normal file
82
server/jellyfin/models/AuthenticateUserByName.ts
Normal file
@ -0,0 +1,82 @@
|
||||
/* 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 AuthenticateUserByName
|
||||
*/
|
||||
export interface AuthenticateUserByName {
|
||||
/**
|
||||
* Gets or sets the username.
|
||||
* @type {string}
|
||||
* @memberof AuthenticateUserByName
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
* Gets or sets the plain text password.
|
||||
* @type {string}
|
||||
* @memberof AuthenticateUserByName
|
||||
*/
|
||||
pw?: string | null;
|
||||
/**
|
||||
* Gets or sets the sha1-hashed password.
|
||||
* @type {string}
|
||||
* @memberof AuthenticateUserByName
|
||||
* @deprecated
|
||||
*/
|
||||
password?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticateUserByName interface.
|
||||
*/
|
||||
export function instanceOfAuthenticateUserByName(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticateUserByNameFromJSON(json: any): AuthenticateUserByName {
|
||||
return AuthenticateUserByNameFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticateUserByNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateUserByName {
|
||||
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 AuthenticateUserByNameToJSON(value?: AuthenticateUserByName | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Username': value.username,
|
||||
'Pw': value.pw,
|
||||
'Password': value.password,
|
||||
};
|
||||
}
|
||||
|
82
server/jellyfin/models/AuthenticateUserByNameRequest.ts
Normal file
82
server/jellyfin/models/AuthenticateUserByNameRequest.ts
Normal file
@ -0,0 +1,82 @@
|
||||
/* 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,
|
||||
};
|
||||
}
|
||||
|
@ -0,0 +1,66 @@
|
||||
/* 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 quick connect request body.
|
||||
* @export
|
||||
* @interface AuthenticateWithQuickConnectRequest
|
||||
*/
|
||||
export interface AuthenticateWithQuickConnectRequest {
|
||||
/**
|
||||
* Gets or sets the quick connect secret.
|
||||
* @type {string}
|
||||
* @memberof AuthenticateWithQuickConnectRequest
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticateWithQuickConnectRequest interface.
|
||||
*/
|
||||
export function instanceOfAuthenticateWithQuickConnectRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "secret" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticateWithQuickConnectRequestFromJSON(json: any): AuthenticateWithQuickConnectRequest {
|
||||
return AuthenticateWithQuickConnectRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticateWithQuickConnectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWithQuickConnectRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'secret': json['Secret'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticateWithQuickConnectRequestToJSON(value?: AuthenticateWithQuickConnectRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Secret': value.secret,
|
||||
};
|
||||
}
|
||||
|
153
server/jellyfin/models/AuthenticationInfo.ts
Normal file
153
server/jellyfin/models/AuthenticationInfo.ts
Normal file
@ -0,0 +1,153 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationInfo
|
||||
*/
|
||||
export interface AuthenticationInfo {
|
||||
/**
|
||||
* Gets or sets the identifier.
|
||||
* @type {number}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Gets or sets the access token.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
* Gets or sets the device identifier.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
deviceId?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the application.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
appName?: string | null;
|
||||
/**
|
||||
* Gets or sets the application version.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
appVersion?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the device.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
deviceName?: string | null;
|
||||
/**
|
||||
* Gets or sets the user identifier.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
userId?: string;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance is active.
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
isActive?: boolean;
|
||||
/**
|
||||
* Gets or sets the date created.
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
dateCreated?: Date;
|
||||
/**
|
||||
* Gets or sets the date revoked.
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
dateRevoked?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
dateLastActivity?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationInfo
|
||||
*/
|
||||
userName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticationInfo interface.
|
||||
*/
|
||||
export function instanceOfAuthenticationInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticationInfoFromJSON(json: any): AuthenticationInfo {
|
||||
return AuthenticationInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'accessToken': !exists(json, 'AccessToken') ? undefined : json['AccessToken'],
|
||||
'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
|
||||
'appName': !exists(json, 'AppName') ? undefined : json['AppName'],
|
||||
'appVersion': !exists(json, 'AppVersion') ? undefined : json['AppVersion'],
|
||||
'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'isActive': !exists(json, 'IsActive') ? undefined : json['IsActive'],
|
||||
'dateCreated': !exists(json, 'DateCreated') ? undefined : (new Date(json['DateCreated'])),
|
||||
'dateRevoked': !exists(json, 'DateRevoked') ? undefined : (json['DateRevoked'] === null ? null : new Date(json['DateRevoked'])),
|
||||
'dateLastActivity': !exists(json, 'DateLastActivity') ? undefined : (new Date(json['DateLastActivity'])),
|
||||
'userName': !exists(json, 'UserName') ? undefined : json['UserName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationInfoToJSON(value?: AuthenticationInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'AccessToken': value.accessToken,
|
||||
'DeviceId': value.deviceId,
|
||||
'AppName': value.appName,
|
||||
'AppVersion': value.appVersion,
|
||||
'DeviceName': value.deviceName,
|
||||
'UserId': value.userId,
|
||||
'IsActive': value.isActive,
|
||||
'DateCreated': value.dateCreated === undefined ? undefined : (value.dateCreated.toISOString()),
|
||||
'DateRevoked': value.dateRevoked === undefined ? undefined : (value.dateRevoked === null ? null : value.dateRevoked.toISOString()),
|
||||
'DateLastActivity': value.dateLastActivity === undefined ? undefined : (value.dateLastActivity.toISOString()),
|
||||
'UserName': value.userName,
|
||||
};
|
||||
}
|
||||
|
88
server/jellyfin/models/AuthenticationInfoQueryResult.ts
Normal file
88
server/jellyfin/models/AuthenticationInfoQueryResult.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { AuthenticationInfo } from './AuthenticationInfo';
|
||||
import {
|
||||
AuthenticationInfoFromJSON,
|
||||
AuthenticationInfoFromJSONTyped,
|
||||
AuthenticationInfoToJSON,
|
||||
} from './AuthenticationInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationInfoQueryResult
|
||||
*/
|
||||
export interface AuthenticationInfoQueryResult {
|
||||
/**
|
||||
* Gets or sets the items.
|
||||
* @type {Array<AuthenticationInfo>}
|
||||
* @memberof AuthenticationInfoQueryResult
|
||||
*/
|
||||
items?: Array<AuthenticationInfo> | null;
|
||||
/**
|
||||
* Gets or sets the total number of records available.
|
||||
* @type {number}
|
||||
* @memberof AuthenticationInfoQueryResult
|
||||
*/
|
||||
totalRecordCount?: number;
|
||||
/**
|
||||
* Gets or sets the index of the first record in Items.
|
||||
* @type {number}
|
||||
* @memberof AuthenticationInfoQueryResult
|
||||
*/
|
||||
startIndex?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticationInfoQueryResult interface.
|
||||
*/
|
||||
export function instanceOfAuthenticationInfoQueryResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticationInfoQueryResultFromJSON(json: any): AuthenticationInfoQueryResult {
|
||||
return AuthenticationInfoQueryResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationInfoQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationInfoQueryResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(AuthenticationInfoFromJSON)),
|
||||
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
|
||||
'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationInfoQueryResultToJSON(value?: AuthenticationInfoQueryResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array<any>).map(AuthenticationInfoToJSON)),
|
||||
'TotalRecordCount': value.totalRecordCount,
|
||||
'StartIndex': value.startIndex,
|
||||
};
|
||||
}
|
||||
|
102
server/jellyfin/models/AuthenticationResult.ts
Normal file
102
server/jellyfin/models/AuthenticationResult.ts
Normal file
@ -0,0 +1,102 @@
|
||||
/* 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';
|
||||
import type { AuthenticationResultSessionInfo } from './AuthenticationResultSessionInfo';
|
||||
import {
|
||||
AuthenticationResultSessionInfoFromJSON,
|
||||
AuthenticationResultSessionInfoFromJSONTyped,
|
||||
AuthenticationResultSessionInfoToJSON,
|
||||
} from './AuthenticationResultSessionInfo';
|
||||
import type { AuthenticationResultUser } from './AuthenticationResultUser';
|
||||
import {
|
||||
AuthenticationResultUserFromJSON,
|
||||
AuthenticationResultUserFromJSONTyped,
|
||||
AuthenticationResultUserToJSON,
|
||||
} from './AuthenticationResultUser';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationResult
|
||||
*/
|
||||
export interface AuthenticationResult {
|
||||
/**
|
||||
*
|
||||
* @type {AuthenticationResultUser}
|
||||
* @memberof AuthenticationResult
|
||||
*/
|
||||
user?: AuthenticationResultUser | null;
|
||||
/**
|
||||
*
|
||||
* @type {AuthenticationResultSessionInfo}
|
||||
* @memberof AuthenticationResult
|
||||
*/
|
||||
sessionInfo?: AuthenticationResultSessionInfo | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResult
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResult
|
||||
*/
|
||||
serverId?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticationResult interface.
|
||||
*/
|
||||
export function instanceOfAuthenticationResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticationResultFromJSON(json: any): AuthenticationResult {
|
||||
return AuthenticationResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'user': !exists(json, 'User') ? undefined : AuthenticationResultUserFromJSON(json['User']),
|
||||
'sessionInfo': !exists(json, 'SessionInfo') ? undefined : AuthenticationResultSessionInfoFromJSON(json['SessionInfo']),
|
||||
'accessToken': !exists(json, 'AccessToken') ? undefined : json['AccessToken'],
|
||||
'serverId': !exists(json, 'ServerId') ? undefined : json['ServerId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationResultToJSON(value?: AuthenticationResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'User': AuthenticationResultUserToJSON(value.user),
|
||||
'SessionInfo': AuthenticationResultSessionInfoToJSON(value.sessionInfo),
|
||||
'AccessToken': value.accessToken,
|
||||
'ServerId': value.serverId,
|
||||
};
|
||||
}
|
||||
|
339
server/jellyfin/models/AuthenticationResultSessionInfo.ts
Normal file
339
server/jellyfin/models/AuthenticationResultSessionInfo.ts
Normal file
@ -0,0 +1,339 @@
|
||||
/* 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';
|
||||
import type { BaseItemDto } from './BaseItemDto';
|
||||
import {
|
||||
BaseItemDtoFromJSON,
|
||||
BaseItemDtoFromJSONTyped,
|
||||
BaseItemDtoToJSON,
|
||||
} from './BaseItemDto';
|
||||
import type { ClientCapabilities } from './ClientCapabilities';
|
||||
import {
|
||||
ClientCapabilitiesFromJSON,
|
||||
ClientCapabilitiesFromJSONTyped,
|
||||
ClientCapabilitiesToJSON,
|
||||
} from './ClientCapabilities';
|
||||
import type { GeneralCommandType } from './GeneralCommandType';
|
||||
import {
|
||||
GeneralCommandTypeFromJSON,
|
||||
GeneralCommandTypeFromJSONTyped,
|
||||
GeneralCommandTypeToJSON,
|
||||
} from './GeneralCommandType';
|
||||
import type { PlayerStateInfo } from './PlayerStateInfo';
|
||||
import {
|
||||
PlayerStateInfoFromJSON,
|
||||
PlayerStateInfoFromJSONTyped,
|
||||
PlayerStateInfoToJSON,
|
||||
} from './PlayerStateInfo';
|
||||
import type { QueueItem } from './QueueItem';
|
||||
import {
|
||||
QueueItemFromJSON,
|
||||
QueueItemFromJSONTyped,
|
||||
QueueItemToJSON,
|
||||
} from './QueueItem';
|
||||
import type { SessionInfoFullNowPlayingItem } from './SessionInfoFullNowPlayingItem';
|
||||
import {
|
||||
SessionInfoFullNowPlayingItemFromJSON,
|
||||
SessionInfoFullNowPlayingItemFromJSONTyped,
|
||||
SessionInfoFullNowPlayingItemToJSON,
|
||||
} from './SessionInfoFullNowPlayingItem';
|
||||
import type { SessionInfoNowPlayingItem } from './SessionInfoNowPlayingItem';
|
||||
import {
|
||||
SessionInfoNowPlayingItemFromJSON,
|
||||
SessionInfoNowPlayingItemFromJSONTyped,
|
||||
SessionInfoNowPlayingItemToJSON,
|
||||
} from './SessionInfoNowPlayingItem';
|
||||
import type { SessionUserInfo } from './SessionUserInfo';
|
||||
import {
|
||||
SessionUserInfoFromJSON,
|
||||
SessionUserInfoFromJSONTyped,
|
||||
SessionUserInfoToJSON,
|
||||
} from './SessionUserInfo';
|
||||
import type { TranscodingInfo } from './TranscodingInfo';
|
||||
import {
|
||||
TranscodingInfoFromJSON,
|
||||
TranscodingInfoFromJSONTyped,
|
||||
TranscodingInfoToJSON,
|
||||
} from './TranscodingInfo';
|
||||
|
||||
/**
|
||||
* Class SessionInfo.
|
||||
* @export
|
||||
* @interface AuthenticationResultSessionInfo
|
||||
*/
|
||||
export interface AuthenticationResultSessionInfo {
|
||||
/**
|
||||
*
|
||||
* @type {PlayerStateInfo}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
playState?: PlayerStateInfo | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SessionUserInfo>}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
additionalUsers?: Array<SessionUserInfo> | null;
|
||||
/**
|
||||
*
|
||||
* @type {ClientCapabilities}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
capabilities?: ClientCapabilities | null;
|
||||
/**
|
||||
* Gets or sets the remote end point.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
remoteEndPoint?: string | null;
|
||||
/**
|
||||
* Gets the playable media types.
|
||||
* @type {Array<string>}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
readonly playableMediaTypes?: Array<string> | null;
|
||||
/**
|
||||
* Gets or sets the id.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Gets or sets the user id.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
userId?: string;
|
||||
/**
|
||||
* Gets or sets the username.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
userName?: string | null;
|
||||
/**
|
||||
* Gets or sets the type of the client.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
client?: string | null;
|
||||
/**
|
||||
* Gets or sets the last activity date.
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
lastActivityDate?: Date;
|
||||
/**
|
||||
* Gets or sets the last playback check in.
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
lastPlaybackCheckIn?: Date;
|
||||
/**
|
||||
* Gets or sets the name of the device.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
deviceName?: string | null;
|
||||
/**
|
||||
* Gets or sets the type of the device.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
deviceType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {SessionInfoNowPlayingItem}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
nowPlayingItem?: SessionInfoNowPlayingItem | null;
|
||||
/**
|
||||
*
|
||||
* @type {SessionInfoFullNowPlayingItem}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
fullNowPlayingItem?: SessionInfoFullNowPlayingItem | null;
|
||||
/**
|
||||
*
|
||||
* @type {SessionInfoNowPlayingItem}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
nowViewingItem?: SessionInfoNowPlayingItem | null;
|
||||
/**
|
||||
* Gets or sets the device id.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
deviceId?: string | null;
|
||||
/**
|
||||
* Gets or sets the application version.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
applicationVersion?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {TranscodingInfo}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
transcodingInfo?: TranscodingInfo | null;
|
||||
/**
|
||||
* Gets a value indicating whether this instance is active.
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
readonly isActive?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
readonly supportsMediaControl?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
readonly supportsRemoteControl?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<QueueItem>}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
nowPlayingQueue?: Array<QueueItem> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BaseItemDto>}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
nowPlayingQueueFullItems?: Array<BaseItemDto> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
hasCustomDeviceName?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
playlistItemId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
serverId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
userPrimaryImageTag?: string | null;
|
||||
/**
|
||||
* Gets the supported commands.
|
||||
* @type {Array<GeneralCommandType>}
|
||||
* @memberof AuthenticationResultSessionInfo
|
||||
*/
|
||||
readonly supportedCommands?: Array<GeneralCommandType> | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticationResultSessionInfo interface.
|
||||
*/
|
||||
export function instanceOfAuthenticationResultSessionInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticationResultSessionInfoFromJSON(json: any): AuthenticationResultSessionInfo {
|
||||
return AuthenticationResultSessionInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationResultSessionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationResultSessionInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'playState': !exists(json, 'PlayState') ? undefined : PlayerStateInfoFromJSON(json['PlayState']),
|
||||
'additionalUsers': !exists(json, 'AdditionalUsers') ? undefined : (json['AdditionalUsers'] === null ? null : (json['AdditionalUsers'] as Array<any>).map(SessionUserInfoFromJSON)),
|
||||
'capabilities': !exists(json, 'Capabilities') ? undefined : ClientCapabilitiesFromJSON(json['Capabilities']),
|
||||
'remoteEndPoint': !exists(json, 'RemoteEndPoint') ? undefined : json['RemoteEndPoint'],
|
||||
'playableMediaTypes': !exists(json, 'PlayableMediaTypes') ? undefined : json['PlayableMediaTypes'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'userName': !exists(json, 'UserName') ? undefined : json['UserName'],
|
||||
'client': !exists(json, 'Client') ? undefined : json['Client'],
|
||||
'lastActivityDate': !exists(json, 'LastActivityDate') ? undefined : (new Date(json['LastActivityDate'])),
|
||||
'lastPlaybackCheckIn': !exists(json, 'LastPlaybackCheckIn') ? undefined : (new Date(json['LastPlaybackCheckIn'])),
|
||||
'deviceName': !exists(json, 'DeviceName') ? undefined : json['DeviceName'],
|
||||
'deviceType': !exists(json, 'DeviceType') ? undefined : json['DeviceType'],
|
||||
'nowPlayingItem': !exists(json, 'NowPlayingItem') ? undefined : SessionInfoNowPlayingItemFromJSON(json['NowPlayingItem']),
|
||||
'fullNowPlayingItem': !exists(json, 'FullNowPlayingItem') ? undefined : SessionInfoFullNowPlayingItemFromJSON(json['FullNowPlayingItem']),
|
||||
'nowViewingItem': !exists(json, 'NowViewingItem') ? undefined : SessionInfoNowPlayingItemFromJSON(json['NowViewingItem']),
|
||||
'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
|
||||
'applicationVersion': !exists(json, 'ApplicationVersion') ? undefined : json['ApplicationVersion'],
|
||||
'transcodingInfo': !exists(json, 'TranscodingInfo') ? undefined : TranscodingInfoFromJSON(json['TranscodingInfo']),
|
||||
'isActive': !exists(json, 'IsActive') ? undefined : json['IsActive'],
|
||||
'supportsMediaControl': !exists(json, 'SupportsMediaControl') ? undefined : json['SupportsMediaControl'],
|
||||
'supportsRemoteControl': !exists(json, 'SupportsRemoteControl') ? undefined : json['SupportsRemoteControl'],
|
||||
'nowPlayingQueue': !exists(json, 'NowPlayingQueue') ? undefined : (json['NowPlayingQueue'] === null ? null : (json['NowPlayingQueue'] as Array<any>).map(QueueItemFromJSON)),
|
||||
'nowPlayingQueueFullItems': !exists(json, 'NowPlayingQueueFullItems') ? undefined : (json['NowPlayingQueueFullItems'] === null ? null : (json['NowPlayingQueueFullItems'] as Array<any>).map(BaseItemDtoFromJSON)),
|
||||
'hasCustomDeviceName': !exists(json, 'HasCustomDeviceName') ? undefined : json['HasCustomDeviceName'],
|
||||
'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'],
|
||||
'serverId': !exists(json, 'ServerId') ? undefined : json['ServerId'],
|
||||
'userPrimaryImageTag': !exists(json, 'UserPrimaryImageTag') ? undefined : json['UserPrimaryImageTag'],
|
||||
'supportedCommands': !exists(json, 'SupportedCommands') ? undefined : (json['SupportedCommands'] === null ? null : (json['SupportedCommands'] as Array<any>).map(GeneralCommandTypeFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationResultSessionInfoToJSON(value?: AuthenticationResultSessionInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'PlayState': PlayerStateInfoToJSON(value.playState),
|
||||
'AdditionalUsers': value.additionalUsers === undefined ? undefined : (value.additionalUsers === null ? null : (value.additionalUsers as Array<any>).map(SessionUserInfoToJSON)),
|
||||
'Capabilities': ClientCapabilitiesToJSON(value.capabilities),
|
||||
'RemoteEndPoint': value.remoteEndPoint,
|
||||
'Id': value.id,
|
||||
'UserId': value.userId,
|
||||
'UserName': value.userName,
|
||||
'Client': value.client,
|
||||
'LastActivityDate': value.lastActivityDate === undefined ? undefined : (value.lastActivityDate.toISOString()),
|
||||
'LastPlaybackCheckIn': value.lastPlaybackCheckIn === undefined ? undefined : (value.lastPlaybackCheckIn.toISOString()),
|
||||
'DeviceName': value.deviceName,
|
||||
'DeviceType': value.deviceType,
|
||||
'NowPlayingItem': SessionInfoNowPlayingItemToJSON(value.nowPlayingItem),
|
||||
'FullNowPlayingItem': SessionInfoFullNowPlayingItemToJSON(value.fullNowPlayingItem),
|
||||
'NowViewingItem': SessionInfoNowPlayingItemToJSON(value.nowViewingItem),
|
||||
'DeviceId': value.deviceId,
|
||||
'ApplicationVersion': value.applicationVersion,
|
||||
'TranscodingInfo': TranscodingInfoToJSON(value.transcodingInfo),
|
||||
'NowPlayingQueue': value.nowPlayingQueue === undefined ? undefined : (value.nowPlayingQueue === null ? null : (value.nowPlayingQueue as Array<any>).map(QueueItemToJSON)),
|
||||
'NowPlayingQueueFullItems': value.nowPlayingQueueFullItems === undefined ? undefined : (value.nowPlayingQueueFullItems === null ? null : (value.nowPlayingQueueFullItems as Array<any>).map(BaseItemDtoToJSON)),
|
||||
'HasCustomDeviceName': value.hasCustomDeviceName,
|
||||
'PlaylistItemId': value.playlistItemId,
|
||||
'ServerId': value.serverId,
|
||||
'UserPrimaryImageTag': value.userPrimaryImageTag,
|
||||
};
|
||||
}
|
||||
|
183
server/jellyfin/models/AuthenticationResultUser.ts
Normal file
183
server/jellyfin/models/AuthenticationResultUser.ts
Normal file
@ -0,0 +1,183 @@
|
||||
/* 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';
|
||||
import type { UserDtoConfiguration } from './UserDtoConfiguration';
|
||||
import {
|
||||
UserDtoConfigurationFromJSON,
|
||||
UserDtoConfigurationFromJSONTyped,
|
||||
UserDtoConfigurationToJSON,
|
||||
} from './UserDtoConfiguration';
|
||||
import type { UserDtoPolicy } from './UserDtoPolicy';
|
||||
import {
|
||||
UserDtoPolicyFromJSON,
|
||||
UserDtoPolicyFromJSONTyped,
|
||||
UserDtoPolicyToJSON,
|
||||
} from './UserDtoPolicy';
|
||||
|
||||
/**
|
||||
* Class UserDto.
|
||||
* @export
|
||||
* @interface AuthenticationResultUser
|
||||
*/
|
||||
export interface AuthenticationResultUser {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the server identifier.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
serverId?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the server.
|
||||
* This is not used by the server and is for client-side usage only.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
serverName?: string | null;
|
||||
/**
|
||||
* Gets or sets the id.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Gets or sets the primary image tag.
|
||||
* @type {string}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
primaryImageTag?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance has password.
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
hasPassword?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance has configured password.
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
hasConfiguredPassword?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance has configured easy password.
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
hasConfiguredEasyPassword?: boolean;
|
||||
/**
|
||||
* Gets or sets whether async login is enabled or not.
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
enableAutoLogin?: boolean | null;
|
||||
/**
|
||||
* Gets or sets the last login date.
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
lastLoginDate?: Date | null;
|
||||
/**
|
||||
* Gets or sets the last activity date.
|
||||
* @type {Date}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
lastActivityDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {UserDtoConfiguration}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
_configuration?: UserDtoConfiguration | null;
|
||||
/**
|
||||
*
|
||||
* @type {UserDtoPolicy}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
policy?: UserDtoPolicy | null;
|
||||
/**
|
||||
* Gets or sets the primary image aspect ratio.
|
||||
* @type {number}
|
||||
* @memberof AuthenticationResultUser
|
||||
*/
|
||||
primaryImageAspectRatio?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthenticationResultUser interface.
|
||||
*/
|
||||
export function instanceOfAuthenticationResultUser(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function AuthenticationResultUserFromJSON(json: any): AuthenticationResultUser {
|
||||
return AuthenticationResultUserFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationResultUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationResultUser {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'serverId': !exists(json, 'ServerId') ? undefined : json['ServerId'],
|
||||
'serverName': !exists(json, 'ServerName') ? undefined : json['ServerName'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'primaryImageTag': !exists(json, 'PrimaryImageTag') ? undefined : json['PrimaryImageTag'],
|
||||
'hasPassword': !exists(json, 'HasPassword') ? undefined : json['HasPassword'],
|
||||
'hasConfiguredPassword': !exists(json, 'HasConfiguredPassword') ? undefined : json['HasConfiguredPassword'],
|
||||
'hasConfiguredEasyPassword': !exists(json, 'HasConfiguredEasyPassword') ? undefined : json['HasConfiguredEasyPassword'],
|
||||
'enableAutoLogin': !exists(json, 'EnableAutoLogin') ? undefined : json['EnableAutoLogin'],
|
||||
'lastLoginDate': !exists(json, 'LastLoginDate') ? undefined : (json['LastLoginDate'] === null ? null : new Date(json['LastLoginDate'])),
|
||||
'lastActivityDate': !exists(json, 'LastActivityDate') ? undefined : (json['LastActivityDate'] === null ? null : new Date(json['LastActivityDate'])),
|
||||
'_configuration': !exists(json, 'Configuration') ? undefined : UserDtoConfigurationFromJSON(json['Configuration']),
|
||||
'policy': !exists(json, 'Policy') ? undefined : UserDtoPolicyFromJSON(json['Policy']),
|
||||
'primaryImageAspectRatio': !exists(json, 'PrimaryImageAspectRatio') ? undefined : json['PrimaryImageAspectRatio'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationResultUserToJSON(value?: AuthenticationResultUser | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'ServerId': value.serverId,
|
||||
'ServerName': value.serverName,
|
||||
'Id': value.id,
|
||||
'PrimaryImageTag': value.primaryImageTag,
|
||||
'HasPassword': value.hasPassword,
|
||||
'HasConfiguredPassword': value.hasConfiguredPassword,
|
||||
'HasConfiguredEasyPassword': value.hasConfiguredEasyPassword,
|
||||
'EnableAutoLogin': value.enableAutoLogin,
|
||||
'LastLoginDate': value.lastLoginDate === undefined ? undefined : (value.lastLoginDate === null ? null : value.lastLoginDate.toISOString()),
|
||||
'LastActivityDate': value.lastActivityDate === undefined ? undefined : (value.lastActivityDate === null ? null : value.lastActivityDate.toISOString()),
|
||||
'Configuration': UserDtoConfigurationToJSON(value._configuration),
|
||||
'Policy': UserDtoPolicyToJSON(value.policy),
|
||||
'PrimaryImageAspectRatio': value.primaryImageAspectRatio,
|
||||
};
|
||||
}
|
||||
|
150
server/jellyfin/models/BaseItem.ts
Normal file
150
server/jellyfin/models/BaseItem.ts
Normal file
@ -0,0 +1,150 @@
|
||||
/* 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';
|
||||
import type { MediaUrl } from './MediaUrl';
|
||||
import {
|
||||
MediaUrlFromJSON,
|
||||
MediaUrlFromJSONTyped,
|
||||
MediaUrlToJSON,
|
||||
} from './MediaUrl';
|
||||
|
||||
/**
|
||||
* Class BaseItem.
|
||||
* @export
|
||||
* @interface BaseItem
|
||||
*/
|
||||
export interface BaseItem {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
size?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
container?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
readonly isHD?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
isShortcut?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
shortcutPath?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
width?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
extraIds?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
dateLastSaved?: Date;
|
||||
/**
|
||||
* Gets or sets the remote trailers.
|
||||
* @type {Array<MediaUrl>}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
remoteTrailers?: Array<MediaUrl> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BaseItem
|
||||
*/
|
||||
readonly supportsExternalTransfer?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BaseItem interface.
|
||||
*/
|
||||
export function instanceOfBaseItem(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BaseItemFromJSON(json: any): BaseItem {
|
||||
return BaseItemFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItem {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'size': !exists(json, 'Size') ? undefined : json['Size'],
|
||||
'container': !exists(json, 'Container') ? undefined : json['Container'],
|
||||
'isHD': !exists(json, 'IsHD') ? undefined : json['IsHD'],
|
||||
'isShortcut': !exists(json, 'IsShortcut') ? undefined : json['IsShortcut'],
|
||||
'shortcutPath': !exists(json, 'ShortcutPath') ? undefined : json['ShortcutPath'],
|
||||
'width': !exists(json, 'Width') ? undefined : json['Width'],
|
||||
'height': !exists(json, 'Height') ? undefined : json['Height'],
|
||||
'extraIds': !exists(json, 'ExtraIds') ? undefined : json['ExtraIds'],
|
||||
'dateLastSaved': !exists(json, 'DateLastSaved') ? undefined : (new Date(json['DateLastSaved'])),
|
||||
'remoteTrailers': !exists(json, 'RemoteTrailers') ? undefined : (json['RemoteTrailers'] === null ? null : (json['RemoteTrailers'] as Array<any>).map(MediaUrlFromJSON)),
|
||||
'supportsExternalTransfer': !exists(json, 'SupportsExternalTransfer') ? undefined : json['SupportsExternalTransfer'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BaseItemToJSON(value?: BaseItem | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Size': value.size,
|
||||
'Container': value.container,
|
||||
'IsShortcut': value.isShortcut,
|
||||
'ShortcutPath': value.shortcutPath,
|
||||
'Width': value.width,
|
||||
'Height': value.height,
|
||||
'ExtraIds': value.extraIds,
|
||||
'DateLastSaved': value.dateLastSaved === undefined ? undefined : (value.dateLastSaved.toISOString()),
|
||||
'RemoteTrailers': value.remoteTrailers === undefined ? undefined : (value.remoteTrailers === null ? null : (value.remoteTrailers as Array<any>).map(MediaUrlToJSON)),
|
||||
};
|
||||
}
|
||||
|
1393
server/jellyfin/models/BaseItemDto.ts
Normal file
1393
server/jellyfin/models/BaseItemDto.ts
Normal file
File diff suppressed because it is too large
Load Diff
1386
server/jellyfin/models/BaseItemDtoCurrentProgram.ts
Normal file
1386
server/jellyfin/models/BaseItemDtoCurrentProgram.ts
Normal file
File diff suppressed because it is too large
Load Diff
162
server/jellyfin/models/BaseItemDtoImageBlurHashes.ts
Normal file
162
server/jellyfin/models/BaseItemDtoImageBlurHashes.ts
Normal file
@ -0,0 +1,162 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Gets or sets the blurhashes for the image tags.
|
||||
* Maps image type to dictionary mapping image tag to blurhash value.
|
||||
* @export
|
||||
* @interface BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
export interface BaseItemDtoImageBlurHashes {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
primary?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
art?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
backdrop?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
banner?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
logo?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
thumb?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
disc?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
box?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
screenshot?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
menu?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
chapter?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
boxRear?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemDtoImageBlurHashes
|
||||
*/
|
||||
profile?: { [key: string]: string; };
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BaseItemDtoImageBlurHashes interface.
|
||||
*/
|
||||
export function instanceOfBaseItemDtoImageBlurHashes(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BaseItemDtoImageBlurHashesFromJSON(json: any): BaseItemDtoImageBlurHashes {
|
||||
return BaseItemDtoImageBlurHashesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemDtoImageBlurHashesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemDtoImageBlurHashes {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'primary': !exists(json, 'Primary') ? undefined : json['Primary'],
|
||||
'art': !exists(json, 'Art') ? undefined : json['Art'],
|
||||
'backdrop': !exists(json, 'Backdrop') ? undefined : json['Backdrop'],
|
||||
'banner': !exists(json, 'Banner') ? undefined : json['Banner'],
|
||||
'logo': !exists(json, 'Logo') ? undefined : json['Logo'],
|
||||
'thumb': !exists(json, 'Thumb') ? undefined : json['Thumb'],
|
||||
'disc': !exists(json, 'Disc') ? undefined : json['Disc'],
|
||||
'box': !exists(json, 'Box') ? undefined : json['Box'],
|
||||
'screenshot': !exists(json, 'Screenshot') ? undefined : json['Screenshot'],
|
||||
'menu': !exists(json, 'Menu') ? undefined : json['Menu'],
|
||||
'chapter': !exists(json, 'Chapter') ? undefined : json['Chapter'],
|
||||
'boxRear': !exists(json, 'BoxRear') ? undefined : json['BoxRear'],
|
||||
'profile': !exists(json, 'Profile') ? undefined : json['Profile'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BaseItemDtoImageBlurHashesToJSON(value?: BaseItemDtoImageBlurHashes | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Primary': value.primary,
|
||||
'Art': value.art,
|
||||
'Backdrop': value.backdrop,
|
||||
'Banner': value.banner,
|
||||
'Logo': value.logo,
|
||||
'Thumb': value.thumb,
|
||||
'Disc': value.disc,
|
||||
'Box': value.box,
|
||||
'Screenshot': value.screenshot,
|
||||
'Menu': value.menu,
|
||||
'Chapter': value.chapter,
|
||||
'BoxRear': value.boxRear,
|
||||
'Profile': value.profile,
|
||||
};
|
||||
}
|
||||
|
88
server/jellyfin/models/BaseItemDtoQueryResult.ts
Normal file
88
server/jellyfin/models/BaseItemDtoQueryResult.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { BaseItemDto } from './BaseItemDto';
|
||||
import {
|
||||
BaseItemDtoFromJSON,
|
||||
BaseItemDtoFromJSONTyped,
|
||||
BaseItemDtoToJSON,
|
||||
} from './BaseItemDto';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BaseItemDtoQueryResult
|
||||
*/
|
||||
export interface BaseItemDtoQueryResult {
|
||||
/**
|
||||
* Gets or sets the items.
|
||||
* @type {Array<BaseItemDto>}
|
||||
* @memberof BaseItemDtoQueryResult
|
||||
*/
|
||||
items?: Array<BaseItemDto> | null;
|
||||
/**
|
||||
* Gets or sets the total number of records available.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoQueryResult
|
||||
*/
|
||||
totalRecordCount?: number;
|
||||
/**
|
||||
* Gets or sets the index of the first record in Items.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoQueryResult
|
||||
*/
|
||||
startIndex?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BaseItemDtoQueryResult interface.
|
||||
*/
|
||||
export function instanceOfBaseItemDtoQueryResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BaseItemDtoQueryResultFromJSON(json: any): BaseItemDtoQueryResult {
|
||||
return BaseItemDtoQueryResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemDtoQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemDtoQueryResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(BaseItemDtoFromJSON)),
|
||||
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
|
||||
'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BaseItemDtoQueryResultToJSON(value?: BaseItemDtoQueryResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array<any>).map(BaseItemDtoToJSON)),
|
||||
'TotalRecordCount': value.totalRecordCount,
|
||||
'StartIndex': value.startIndex,
|
||||
};
|
||||
}
|
||||
|
145
server/jellyfin/models/BaseItemDtoUserData.ts
Normal file
145
server/jellyfin/models/BaseItemDtoUserData.ts
Normal file
@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Gets or sets the user data for this item based on the user it's being requested for.
|
||||
* @export
|
||||
* @interface BaseItemDtoUserData
|
||||
*/
|
||||
export interface BaseItemDtoUserData {
|
||||
/**
|
||||
* Gets or sets the rating.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
rating?: number | null;
|
||||
/**
|
||||
* Gets or sets the played percentage.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
playedPercentage?: number | null;
|
||||
/**
|
||||
* Gets or sets the unplayed item count.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
unplayedItemCount?: number | null;
|
||||
/**
|
||||
* Gets or sets the playback position ticks.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
playbackPositionTicks?: number;
|
||||
/**
|
||||
* Gets or sets the play count.
|
||||
* @type {number}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
playCount?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance is favorite.
|
||||
* @type {boolean}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
isFavorite?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
|
||||
* @type {boolean}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
likes?: boolean | null;
|
||||
/**
|
||||
* Gets or sets the last played date.
|
||||
* @type {Date}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
lastPlayedDate?: Date | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
|
||||
* @type {boolean}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
played?: boolean;
|
||||
/**
|
||||
* Gets or sets the key.
|
||||
* @type {string}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
key?: string | null;
|
||||
/**
|
||||
* Gets or sets the item identifier.
|
||||
* @type {string}
|
||||
* @memberof BaseItemDtoUserData
|
||||
*/
|
||||
itemId?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BaseItemDtoUserData interface.
|
||||
*/
|
||||
export function instanceOfBaseItemDtoUserData(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BaseItemDtoUserDataFromJSON(json: any): BaseItemDtoUserData {
|
||||
return BaseItemDtoUserDataFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemDtoUserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemDtoUserData {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'rating': !exists(json, 'Rating') ? undefined : json['Rating'],
|
||||
'playedPercentage': !exists(json, 'PlayedPercentage') ? undefined : json['PlayedPercentage'],
|
||||
'unplayedItemCount': !exists(json, 'UnplayedItemCount') ? undefined : json['UnplayedItemCount'],
|
||||
'playbackPositionTicks': !exists(json, 'PlaybackPositionTicks') ? undefined : json['PlaybackPositionTicks'],
|
||||
'playCount': !exists(json, 'PlayCount') ? undefined : json['PlayCount'],
|
||||
'isFavorite': !exists(json, 'IsFavorite') ? undefined : json['IsFavorite'],
|
||||
'likes': !exists(json, 'Likes') ? undefined : json['Likes'],
|
||||
'lastPlayedDate': !exists(json, 'LastPlayedDate') ? undefined : (json['LastPlayedDate'] === null ? null : new Date(json['LastPlayedDate'])),
|
||||
'played': !exists(json, 'Played') ? undefined : json['Played'],
|
||||
'key': !exists(json, 'Key') ? undefined : json['Key'],
|
||||
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BaseItemDtoUserDataToJSON(value?: BaseItemDtoUserData | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Rating': value.rating,
|
||||
'PlayedPercentage': value.playedPercentage,
|
||||
'UnplayedItemCount': value.unplayedItemCount,
|
||||
'PlaybackPositionTicks': value.playbackPositionTicks,
|
||||
'PlayCount': value.playCount,
|
||||
'IsFavorite': value.isFavorite,
|
||||
'Likes': value.likes,
|
||||
'LastPlayedDate': value.lastPlayedDate === undefined ? undefined : (value.lastPlayedDate === null ? null : value.lastPlayedDate.toISOString()),
|
||||
'Played': value.played,
|
||||
'Key': value.key,
|
||||
'ItemId': value.itemId,
|
||||
};
|
||||
}
|
||||
|
73
server/jellyfin/models/BaseItemKind.ts
Normal file
73
server/jellyfin/models/BaseItemKind.ts
Normal file
@ -0,0 +1,73 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The base item kind.
|
||||
* @export
|
||||
*/
|
||||
export const BaseItemKind = {
|
||||
AggregateFolder: 'AggregateFolder',
|
||||
Audio: 'Audio',
|
||||
AudioBook: 'AudioBook',
|
||||
BasePluginFolder: 'BasePluginFolder',
|
||||
Book: 'Book',
|
||||
BoxSet: 'BoxSet',
|
||||
Channel: 'Channel',
|
||||
ChannelFolderItem: 'ChannelFolderItem',
|
||||
CollectionFolder: 'CollectionFolder',
|
||||
Episode: 'Episode',
|
||||
Folder: 'Folder',
|
||||
Genre: 'Genre',
|
||||
ManualPlaylistsFolder: 'ManualPlaylistsFolder',
|
||||
Movie: 'Movie',
|
||||
LiveTvChannel: 'LiveTvChannel',
|
||||
LiveTvProgram: 'LiveTvProgram',
|
||||
MusicAlbum: 'MusicAlbum',
|
||||
MusicArtist: 'MusicArtist',
|
||||
MusicGenre: 'MusicGenre',
|
||||
MusicVideo: 'MusicVideo',
|
||||
Person: 'Person',
|
||||
Photo: 'Photo',
|
||||
PhotoAlbum: 'PhotoAlbum',
|
||||
Playlist: 'Playlist',
|
||||
PlaylistsFolder: 'PlaylistsFolder',
|
||||
Program: 'Program',
|
||||
Recording: 'Recording',
|
||||
Season: 'Season',
|
||||
Series: 'Series',
|
||||
Studio: 'Studio',
|
||||
Trailer: 'Trailer',
|
||||
TvChannel: 'TvChannel',
|
||||
TvProgram: 'TvProgram',
|
||||
UserRootFolder: 'UserRootFolder',
|
||||
UserView: 'UserView',
|
||||
Video: 'Video',
|
||||
Year: 'Year'
|
||||
} as const;
|
||||
export type BaseItemKind = typeof BaseItemKind[keyof typeof BaseItemKind];
|
||||
|
||||
|
||||
export function BaseItemKindFromJSON(json: any): BaseItemKind {
|
||||
return BaseItemKindFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemKind {
|
||||
return json as BaseItemKind;
|
||||
}
|
||||
|
||||
export function BaseItemKindToJSON(value?: BaseItemKind | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
112
server/jellyfin/models/BaseItemPerson.ts
Normal file
112
server/jellyfin/models/BaseItemPerson.ts
Normal file
@ -0,0 +1,112 @@
|
||||
/* 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';
|
||||
import type { BaseItemPersonImageBlurHashes } from './BaseItemPersonImageBlurHashes';
|
||||
import {
|
||||
BaseItemPersonImageBlurHashesFromJSON,
|
||||
BaseItemPersonImageBlurHashesFromJSONTyped,
|
||||
BaseItemPersonImageBlurHashesToJSON,
|
||||
} from './BaseItemPersonImageBlurHashes';
|
||||
|
||||
/**
|
||||
* This is used by the api to get information about a Person within a BaseItem.
|
||||
* @export
|
||||
* @interface BaseItemPerson
|
||||
*/
|
||||
export interface BaseItemPerson {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof BaseItemPerson
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the identifier.
|
||||
* @type {string}
|
||||
* @memberof BaseItemPerson
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Gets or sets the role.
|
||||
* @type {string}
|
||||
* @memberof BaseItemPerson
|
||||
*/
|
||||
role?: string | null;
|
||||
/**
|
||||
* Gets or sets the type.
|
||||
* @type {string}
|
||||
* @memberof BaseItemPerson
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
* Gets or sets the primary image tag.
|
||||
* @type {string}
|
||||
* @memberof BaseItemPerson
|
||||
*/
|
||||
primaryImageTag?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {BaseItemPersonImageBlurHashes}
|
||||
* @memberof BaseItemPerson
|
||||
*/
|
||||
imageBlurHashes?: BaseItemPersonImageBlurHashes | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BaseItemPerson interface.
|
||||
*/
|
||||
export function instanceOfBaseItemPerson(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BaseItemPersonFromJSON(json: any): BaseItemPerson {
|
||||
return BaseItemPersonFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemPerson {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'role': !exists(json, 'Role') ? undefined : json['Role'],
|
||||
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||||
'primaryImageTag': !exists(json, 'PrimaryImageTag') ? undefined : json['PrimaryImageTag'],
|
||||
'imageBlurHashes': !exists(json, 'ImageBlurHashes') ? undefined : BaseItemPersonImageBlurHashesFromJSON(json['ImageBlurHashes']),
|
||||
};
|
||||
}
|
||||
|
||||
export function BaseItemPersonToJSON(value?: BaseItemPerson | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Id': value.id,
|
||||
'Role': value.role,
|
||||
'Type': value.type,
|
||||
'PrimaryImageTag': value.primaryImageTag,
|
||||
'ImageBlurHashes': BaseItemPersonImageBlurHashesToJSON(value.imageBlurHashes),
|
||||
};
|
||||
}
|
||||
|
161
server/jellyfin/models/BaseItemPersonImageBlurHashes.ts
Normal file
161
server/jellyfin/models/BaseItemPersonImageBlurHashes.ts
Normal file
@ -0,0 +1,161 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Gets or sets the primary image blurhash.
|
||||
* @export
|
||||
* @interface BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
export interface BaseItemPersonImageBlurHashes {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
primary?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
art?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
backdrop?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
banner?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
logo?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
thumb?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
disc?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
box?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
screenshot?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
menu?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
chapter?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
boxRear?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BaseItemPersonImageBlurHashes
|
||||
*/
|
||||
profile?: { [key: string]: string; };
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BaseItemPersonImageBlurHashes interface.
|
||||
*/
|
||||
export function instanceOfBaseItemPersonImageBlurHashes(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BaseItemPersonImageBlurHashesFromJSON(json: any): BaseItemPersonImageBlurHashes {
|
||||
return BaseItemPersonImageBlurHashesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BaseItemPersonImageBlurHashesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemPersonImageBlurHashes {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'primary': !exists(json, 'Primary') ? undefined : json['Primary'],
|
||||
'art': !exists(json, 'Art') ? undefined : json['Art'],
|
||||
'backdrop': !exists(json, 'Backdrop') ? undefined : json['Backdrop'],
|
||||
'banner': !exists(json, 'Banner') ? undefined : json['Banner'],
|
||||
'logo': !exists(json, 'Logo') ? undefined : json['Logo'],
|
||||
'thumb': !exists(json, 'Thumb') ? undefined : json['Thumb'],
|
||||
'disc': !exists(json, 'Disc') ? undefined : json['Disc'],
|
||||
'box': !exists(json, 'Box') ? undefined : json['Box'],
|
||||
'screenshot': !exists(json, 'Screenshot') ? undefined : json['Screenshot'],
|
||||
'menu': !exists(json, 'Menu') ? undefined : json['Menu'],
|
||||
'chapter': !exists(json, 'Chapter') ? undefined : json['Chapter'],
|
||||
'boxRear': !exists(json, 'BoxRear') ? undefined : json['BoxRear'],
|
||||
'profile': !exists(json, 'Profile') ? undefined : json['Profile'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BaseItemPersonImageBlurHashesToJSON(value?: BaseItemPersonImageBlurHashes | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Primary': value.primary,
|
||||
'Art': value.art,
|
||||
'Backdrop': value.backdrop,
|
||||
'Banner': value.banner,
|
||||
'Logo': value.logo,
|
||||
'Thumb': value.thumb,
|
||||
'Disc': value.disc,
|
||||
'Box': value.box,
|
||||
'Screenshot': value.screenshot,
|
||||
'Menu': value.menu,
|
||||
'Chapter': value.chapter,
|
||||
'BoxRear': value.boxRear,
|
||||
'Profile': value.profile,
|
||||
};
|
||||
}
|
||||
|
153
server/jellyfin/models/BookInfo.ts
Normal file
153
server/jellyfin/models/BookInfo.ts
Normal file
@ -0,0 +1,153 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BookInfo
|
||||
*/
|
||||
export interface BookInfo {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the original title.
|
||||
* @type {string}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
originalTitle?: string | null;
|
||||
/**
|
||||
* Gets or sets the path.
|
||||
* @type {string}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
path?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata language.
|
||||
* @type {string}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
metadataLanguage?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata country code.
|
||||
* @type {string}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
metadataCountryCode?: string | null;
|
||||
/**
|
||||
* Gets or sets the provider ids.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
providerIds?: { [key: string]: string; } | null;
|
||||
/**
|
||||
* Gets or sets the year.
|
||||
* @type {number}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
year?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
indexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
parentIndexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
premiereDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
isAutomated?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BookInfo
|
||||
*/
|
||||
seriesName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BookInfo interface.
|
||||
*/
|
||||
export function instanceOfBookInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BookInfoFromJSON(json: any): BookInfo {
|
||||
return BookInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BookInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'originalTitle': !exists(json, 'OriginalTitle') ? undefined : json['OriginalTitle'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'metadataLanguage': !exists(json, 'MetadataLanguage') ? undefined : json['MetadataLanguage'],
|
||||
'metadataCountryCode': !exists(json, 'MetadataCountryCode') ? undefined : json['MetadataCountryCode'],
|
||||
'providerIds': !exists(json, 'ProviderIds') ? undefined : json['ProviderIds'],
|
||||
'year': !exists(json, 'Year') ? undefined : json['Year'],
|
||||
'indexNumber': !exists(json, 'IndexNumber') ? undefined : json['IndexNumber'],
|
||||
'parentIndexNumber': !exists(json, 'ParentIndexNumber') ? undefined : json['ParentIndexNumber'],
|
||||
'premiereDate': !exists(json, 'PremiereDate') ? undefined : (json['PremiereDate'] === null ? null : new Date(json['PremiereDate'])),
|
||||
'isAutomated': !exists(json, 'IsAutomated') ? undefined : json['IsAutomated'],
|
||||
'seriesName': !exists(json, 'SeriesName') ? undefined : json['SeriesName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BookInfoToJSON(value?: BookInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'OriginalTitle': value.originalTitle,
|
||||
'Path': value.path,
|
||||
'MetadataLanguage': value.metadataLanguage,
|
||||
'MetadataCountryCode': value.metadataCountryCode,
|
||||
'ProviderIds': value.providerIds,
|
||||
'Year': value.year,
|
||||
'IndexNumber': value.indexNumber,
|
||||
'ParentIndexNumber': value.parentIndexNumber,
|
||||
'PremiereDate': value.premiereDate === undefined ? undefined : (value.premiereDate === null ? null : value.premiereDate.toISOString()),
|
||||
'IsAutomated': value.isAutomated,
|
||||
'SeriesName': value.seriesName,
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/BookInfoRemoteSearchQuery.ts
Normal file
96
server/jellyfin/models/BookInfoRemoteSearchQuery.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { BookInfo } from './BookInfo';
|
||||
import {
|
||||
BookInfoFromJSON,
|
||||
BookInfoFromJSONTyped,
|
||||
BookInfoToJSON,
|
||||
} from './BookInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BookInfoRemoteSearchQuery
|
||||
*/
|
||||
export interface BookInfoRemoteSearchQuery {
|
||||
/**
|
||||
*
|
||||
* @type {BookInfo}
|
||||
* @memberof BookInfoRemoteSearchQuery
|
||||
*/
|
||||
searchInfo?: BookInfo | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BookInfoRemoteSearchQuery
|
||||
*/
|
||||
itemId?: string;
|
||||
/**
|
||||
* Gets or sets the provider name to search within if set.
|
||||
* @type {string}
|
||||
* @memberof BookInfoRemoteSearchQuery
|
||||
*/
|
||||
searchProviderName?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether disabled providers should be included.
|
||||
* @type {boolean}
|
||||
* @memberof BookInfoRemoteSearchQuery
|
||||
*/
|
||||
includeDisabledProviders?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BookInfoRemoteSearchQuery interface.
|
||||
*/
|
||||
export function instanceOfBookInfoRemoteSearchQuery(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BookInfoRemoteSearchQueryFromJSON(json: any): BookInfoRemoteSearchQuery {
|
||||
return BookInfoRemoteSearchQueryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BookInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookInfoRemoteSearchQuery {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'searchInfo': !exists(json, 'SearchInfo') ? undefined : BookInfoFromJSON(json['SearchInfo']),
|
||||
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||||
'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'],
|
||||
'includeDisabledProviders': !exists(json, 'IncludeDisabledProviders') ? undefined : json['IncludeDisabledProviders'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BookInfoRemoteSearchQueryToJSON(value?: BookInfoRemoteSearchQuery | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'SearchInfo': BookInfoToJSON(value.searchInfo),
|
||||
'ItemId': value.itemId,
|
||||
'SearchProviderName': value.searchProviderName,
|
||||
'IncludeDisabledProviders': value.includeDisabledProviders,
|
||||
};
|
||||
}
|
||||
|
145
server/jellyfin/models/BoxSetInfo.ts
Normal file
145
server/jellyfin/models/BoxSetInfo.ts
Normal file
@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BoxSetInfo
|
||||
*/
|
||||
export interface BoxSetInfo {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the original title.
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
originalTitle?: string | null;
|
||||
/**
|
||||
* Gets or sets the path.
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
path?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata language.
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
metadataLanguage?: string | null;
|
||||
/**
|
||||
* Gets or sets the metadata country code.
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
metadataCountryCode?: string | null;
|
||||
/**
|
||||
* Gets or sets the provider ids.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
providerIds?: { [key: string]: string; } | null;
|
||||
/**
|
||||
* Gets or sets the year.
|
||||
* @type {number}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
year?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
indexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
parentIndexNumber?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
premiereDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof BoxSetInfo
|
||||
*/
|
||||
isAutomated?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BoxSetInfo interface.
|
||||
*/
|
||||
export function instanceOfBoxSetInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BoxSetInfoFromJSON(json: any): BoxSetInfo {
|
||||
return BoxSetInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BoxSetInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxSetInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'originalTitle': !exists(json, 'OriginalTitle') ? undefined : json['OriginalTitle'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'metadataLanguage': !exists(json, 'MetadataLanguage') ? undefined : json['MetadataLanguage'],
|
||||
'metadataCountryCode': !exists(json, 'MetadataCountryCode') ? undefined : json['MetadataCountryCode'],
|
||||
'providerIds': !exists(json, 'ProviderIds') ? undefined : json['ProviderIds'],
|
||||
'year': !exists(json, 'Year') ? undefined : json['Year'],
|
||||
'indexNumber': !exists(json, 'IndexNumber') ? undefined : json['IndexNumber'],
|
||||
'parentIndexNumber': !exists(json, 'ParentIndexNumber') ? undefined : json['ParentIndexNumber'],
|
||||
'premiereDate': !exists(json, 'PremiereDate') ? undefined : (json['PremiereDate'] === null ? null : new Date(json['PremiereDate'])),
|
||||
'isAutomated': !exists(json, 'IsAutomated') ? undefined : json['IsAutomated'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BoxSetInfoToJSON(value?: BoxSetInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'OriginalTitle': value.originalTitle,
|
||||
'Path': value.path,
|
||||
'MetadataLanguage': value.metadataLanguage,
|
||||
'MetadataCountryCode': value.metadataCountryCode,
|
||||
'ProviderIds': value.providerIds,
|
||||
'Year': value.year,
|
||||
'IndexNumber': value.indexNumber,
|
||||
'ParentIndexNumber': value.parentIndexNumber,
|
||||
'PremiereDate': value.premiereDate === undefined ? undefined : (value.premiereDate === null ? null : value.premiereDate.toISOString()),
|
||||
'IsAutomated': value.isAutomated,
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/BoxSetInfoRemoteSearchQuery.ts
Normal file
96
server/jellyfin/models/BoxSetInfoRemoteSearchQuery.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { BoxSetInfo } from './BoxSetInfo';
|
||||
import {
|
||||
BoxSetInfoFromJSON,
|
||||
BoxSetInfoFromJSONTyped,
|
||||
BoxSetInfoToJSON,
|
||||
} from './BoxSetInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface BoxSetInfoRemoteSearchQuery
|
||||
*/
|
||||
export interface BoxSetInfoRemoteSearchQuery {
|
||||
/**
|
||||
*
|
||||
* @type {BoxSetInfo}
|
||||
* @memberof BoxSetInfoRemoteSearchQuery
|
||||
*/
|
||||
searchInfo?: BoxSetInfo | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfoRemoteSearchQuery
|
||||
*/
|
||||
itemId?: string;
|
||||
/**
|
||||
* Gets or sets the provider name to search within if set.
|
||||
* @type {string}
|
||||
* @memberof BoxSetInfoRemoteSearchQuery
|
||||
*/
|
||||
searchProviderName?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether disabled providers should be included.
|
||||
* @type {boolean}
|
||||
* @memberof BoxSetInfoRemoteSearchQuery
|
||||
*/
|
||||
includeDisabledProviders?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BoxSetInfoRemoteSearchQuery interface.
|
||||
*/
|
||||
export function instanceOfBoxSetInfoRemoteSearchQuery(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BoxSetInfoRemoteSearchQueryFromJSON(json: any): BoxSetInfoRemoteSearchQuery {
|
||||
return BoxSetInfoRemoteSearchQueryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BoxSetInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxSetInfoRemoteSearchQuery {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'searchInfo': !exists(json, 'SearchInfo') ? undefined : BoxSetInfoFromJSON(json['SearchInfo']),
|
||||
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||||
'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'],
|
||||
'includeDisabledProviders': !exists(json, 'IncludeDisabledProviders') ? undefined : json['IncludeDisabledProviders'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BoxSetInfoRemoteSearchQueryToJSON(value?: BoxSetInfoRemoteSearchQuery | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'SearchInfo': BoxSetInfoToJSON(value.searchInfo),
|
||||
'ItemId': value.itemId,
|
||||
'SearchProviderName': value.searchProviderName,
|
||||
'IncludeDisabledProviders': value.includeDisabledProviders,
|
||||
};
|
||||
}
|
||||
|
81
server/jellyfin/models/BrandingOptions.ts
Normal file
81
server/jellyfin/models/BrandingOptions.ts
Normal file
@ -0,0 +1,81 @@
|
||||
/* 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 branding options.
|
||||
* @export
|
||||
* @interface BrandingOptions
|
||||
*/
|
||||
export interface BrandingOptions {
|
||||
/**
|
||||
* Gets or sets the login disclaimer.
|
||||
* @type {string}
|
||||
* @memberof BrandingOptions
|
||||
*/
|
||||
loginDisclaimer?: string | null;
|
||||
/**
|
||||
* Gets or sets the custom CSS.
|
||||
* @type {string}
|
||||
* @memberof BrandingOptions
|
||||
*/
|
||||
customCss?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether to enable the splashscreen.
|
||||
* @type {boolean}
|
||||
* @memberof BrandingOptions
|
||||
*/
|
||||
splashscreenEnabled?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BrandingOptions interface.
|
||||
*/
|
||||
export function instanceOfBrandingOptions(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BrandingOptionsFromJSON(json: any): BrandingOptions {
|
||||
return BrandingOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BrandingOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandingOptions {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'loginDisclaimer': !exists(json, 'LoginDisclaimer') ? undefined : json['LoginDisclaimer'],
|
||||
'customCss': !exists(json, 'CustomCss') ? undefined : json['CustomCss'],
|
||||
'splashscreenEnabled': !exists(json, 'SplashscreenEnabled') ? undefined : json['SplashscreenEnabled'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BrandingOptionsToJSON(value?: BrandingOptions | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'LoginDisclaimer': value.loginDisclaimer,
|
||||
'CustomCss': value.customCss,
|
||||
'SplashscreenEnabled': value.splashscreenEnabled,
|
||||
};
|
||||
}
|
||||
|
89
server/jellyfin/models/BufferRequestDto.ts
Normal file
89
server/jellyfin/models/BufferRequestDto.ts
Normal file
@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Class BufferRequestDto.
|
||||
* @export
|
||||
* @interface BufferRequestDto
|
||||
*/
|
||||
export interface BufferRequestDto {
|
||||
/**
|
||||
* Gets or sets when the request has been made by the client.
|
||||
* @type {Date}
|
||||
* @memberof BufferRequestDto
|
||||
*/
|
||||
when?: Date;
|
||||
/**
|
||||
* Gets or sets the position ticks.
|
||||
* @type {number}
|
||||
* @memberof BufferRequestDto
|
||||
*/
|
||||
positionTicks?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether the client playback is unpaused.
|
||||
* @type {boolean}
|
||||
* @memberof BufferRequestDto
|
||||
*/
|
||||
isPlaying?: boolean;
|
||||
/**
|
||||
* Gets or sets the playlist item identifier of the playing item.
|
||||
* @type {string}
|
||||
* @memberof BufferRequestDto
|
||||
*/
|
||||
playlistItemId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the BufferRequestDto interface.
|
||||
*/
|
||||
export function instanceOfBufferRequestDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function BufferRequestDtoFromJSON(json: any): BufferRequestDto {
|
||||
return BufferRequestDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function BufferRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BufferRequestDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'when': !exists(json, 'When') ? undefined : (new Date(json['When'])),
|
||||
'positionTicks': !exists(json, 'PositionTicks') ? undefined : json['PositionTicks'],
|
||||
'isPlaying': !exists(json, 'IsPlaying') ? undefined : json['IsPlaying'],
|
||||
'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function BufferRequestDtoToJSON(value?: BufferRequestDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'When': value.when === undefined ? undefined : (value.when.toISOString()),
|
||||
'PositionTicks': value.positionTicks,
|
||||
'IsPlaying': value.isPlaying,
|
||||
'PlaylistItemId': value.playlistItemId,
|
||||
};
|
||||
}
|
||||
|
172
server/jellyfin/models/ChannelFeatures.ts
Normal file
172
server/jellyfin/models/ChannelFeatures.ts
Normal file
@ -0,0 +1,172 @@
|
||||
/* 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';
|
||||
import type { ChannelItemSortField } from './ChannelItemSortField';
|
||||
import {
|
||||
ChannelItemSortFieldFromJSON,
|
||||
ChannelItemSortFieldFromJSONTyped,
|
||||
ChannelItemSortFieldToJSON,
|
||||
} from './ChannelItemSortField';
|
||||
import type { ChannelMediaContentType } from './ChannelMediaContentType';
|
||||
import {
|
||||
ChannelMediaContentTypeFromJSON,
|
||||
ChannelMediaContentTypeFromJSONTyped,
|
||||
ChannelMediaContentTypeToJSON,
|
||||
} from './ChannelMediaContentType';
|
||||
import type { ChannelMediaType } from './ChannelMediaType';
|
||||
import {
|
||||
ChannelMediaTypeFromJSON,
|
||||
ChannelMediaTypeFromJSONTyped,
|
||||
ChannelMediaTypeToJSON,
|
||||
} from './ChannelMediaType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ChannelFeatures
|
||||
*/
|
||||
export interface ChannelFeatures {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Gets or sets the identifier.
|
||||
* @type {string}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance can search.
|
||||
* @type {boolean}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
canSearch?: boolean;
|
||||
/**
|
||||
* Gets or sets the media types.
|
||||
* @type {Array<ChannelMediaType>}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
mediaTypes?: Array<ChannelMediaType>;
|
||||
/**
|
||||
* Gets or sets the content types.
|
||||
* @type {Array<ChannelMediaContentType>}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
contentTypes?: Array<ChannelMediaContentType>;
|
||||
/**
|
||||
* Gets or sets the maximum number of records the channel allows retrieving at a time.
|
||||
* @type {number}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
maxPageSize?: number | null;
|
||||
/**
|
||||
* Gets or sets the automatic refresh levels.
|
||||
* @type {number}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
autoRefreshLevels?: number | null;
|
||||
/**
|
||||
* Gets or sets the default sort orders.
|
||||
* @type {Array<ChannelItemSortField>}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
defaultSortFields?: Array<ChannelItemSortField>;
|
||||
/**
|
||||
* Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
|
||||
* @type {boolean}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
supportsSortOrderToggle?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [supports latest media].
|
||||
* @type {boolean}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
supportsLatestMedia?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance can filter.
|
||||
* @type {boolean}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
canFilter?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [supports content downloading].
|
||||
* @type {boolean}
|
||||
* @memberof ChannelFeatures
|
||||
*/
|
||||
supportsContentDownloading?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ChannelFeatures interface.
|
||||
*/
|
||||
export function instanceOfChannelFeatures(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ChannelFeaturesFromJSON(json: any): ChannelFeatures {
|
||||
return ChannelFeaturesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChannelFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelFeatures {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'canSearch': !exists(json, 'CanSearch') ? undefined : json['CanSearch'],
|
||||
'mediaTypes': !exists(json, 'MediaTypes') ? undefined : ((json['MediaTypes'] as Array<any>).map(ChannelMediaTypeFromJSON)),
|
||||
'contentTypes': !exists(json, 'ContentTypes') ? undefined : ((json['ContentTypes'] as Array<any>).map(ChannelMediaContentTypeFromJSON)),
|
||||
'maxPageSize': !exists(json, 'MaxPageSize') ? undefined : json['MaxPageSize'],
|
||||
'autoRefreshLevels': !exists(json, 'AutoRefreshLevels') ? undefined : json['AutoRefreshLevels'],
|
||||
'defaultSortFields': !exists(json, 'DefaultSortFields') ? undefined : ((json['DefaultSortFields'] as Array<any>).map(ChannelItemSortFieldFromJSON)),
|
||||
'supportsSortOrderToggle': !exists(json, 'SupportsSortOrderToggle') ? undefined : json['SupportsSortOrderToggle'],
|
||||
'supportsLatestMedia': !exists(json, 'SupportsLatestMedia') ? undefined : json['SupportsLatestMedia'],
|
||||
'canFilter': !exists(json, 'CanFilter') ? undefined : json['CanFilter'],
|
||||
'supportsContentDownloading': !exists(json, 'SupportsContentDownloading') ? undefined : json['SupportsContentDownloading'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ChannelFeaturesToJSON(value?: ChannelFeatures | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Id': value.id,
|
||||
'CanSearch': value.canSearch,
|
||||
'MediaTypes': value.mediaTypes === undefined ? undefined : ((value.mediaTypes as Array<any>).map(ChannelMediaTypeToJSON)),
|
||||
'ContentTypes': value.contentTypes === undefined ? undefined : ((value.contentTypes as Array<any>).map(ChannelMediaContentTypeToJSON)),
|
||||
'MaxPageSize': value.maxPageSize,
|
||||
'AutoRefreshLevels': value.autoRefreshLevels,
|
||||
'DefaultSortFields': value.defaultSortFields === undefined ? undefined : ((value.defaultSortFields as Array<any>).map(ChannelItemSortFieldToJSON)),
|
||||
'SupportsSortOrderToggle': value.supportsSortOrderToggle,
|
||||
'SupportsLatestMedia': value.supportsLatestMedia,
|
||||
'CanFilter': value.canFilter,
|
||||
'SupportsContentDownloading': value.supportsContentDownloading,
|
||||
};
|
||||
}
|
||||
|
43
server/jellyfin/models/ChannelItemSortField.ts
Normal file
43
server/jellyfin/models/ChannelItemSortField.ts
Normal file
@ -0,0 +1,43 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const ChannelItemSortField = {
|
||||
Name: 'Name',
|
||||
CommunityRating: 'CommunityRating',
|
||||
PremiereDate: 'PremiereDate',
|
||||
DateCreated: 'DateCreated',
|
||||
Runtime: 'Runtime',
|
||||
PlayCount: 'PlayCount',
|
||||
CommunityPlayCount: 'CommunityPlayCount'
|
||||
} as const;
|
||||
export type ChannelItemSortField = typeof ChannelItemSortField[keyof typeof ChannelItemSortField];
|
||||
|
||||
|
||||
export function ChannelItemSortFieldFromJSON(json: any): ChannelItemSortField {
|
||||
return ChannelItemSortFieldFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChannelItemSortFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelItemSortField {
|
||||
return json as ChannelItemSortField;
|
||||
}
|
||||
|
||||
export function ChannelItemSortFieldToJSON(value?: ChannelItemSortField | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
108
server/jellyfin/models/ChannelMappingOptionsDto.ts
Normal file
108
server/jellyfin/models/ChannelMappingOptionsDto.ts
Normal file
@ -0,0 +1,108 @@
|
||||
/* 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';
|
||||
import type { NameIdPair } from './NameIdPair';
|
||||
import {
|
||||
NameIdPairFromJSON,
|
||||
NameIdPairFromJSONTyped,
|
||||
NameIdPairToJSON,
|
||||
} from './NameIdPair';
|
||||
import type { NameValuePair } from './NameValuePair';
|
||||
import {
|
||||
NameValuePairFromJSON,
|
||||
NameValuePairFromJSONTyped,
|
||||
NameValuePairToJSON,
|
||||
} from './NameValuePair';
|
||||
import type { TunerChannelMapping } from './TunerChannelMapping';
|
||||
import {
|
||||
TunerChannelMappingFromJSON,
|
||||
TunerChannelMappingFromJSONTyped,
|
||||
TunerChannelMappingToJSON,
|
||||
} from './TunerChannelMapping';
|
||||
|
||||
/**
|
||||
* Channel mapping options dto.
|
||||
* @export
|
||||
* @interface ChannelMappingOptionsDto
|
||||
*/
|
||||
export interface ChannelMappingOptionsDto {
|
||||
/**
|
||||
* Gets or sets list of tuner channels.
|
||||
* @type {Array<TunerChannelMapping>}
|
||||
* @memberof ChannelMappingOptionsDto
|
||||
*/
|
||||
tunerChannels?: Array<TunerChannelMapping>;
|
||||
/**
|
||||
* Gets or sets list of provider channels.
|
||||
* @type {Array<NameIdPair>}
|
||||
* @memberof ChannelMappingOptionsDto
|
||||
*/
|
||||
providerChannels?: Array<NameIdPair>;
|
||||
/**
|
||||
* Gets or sets list of mappings.
|
||||
* @type {Array<NameValuePair>}
|
||||
* @memberof ChannelMappingOptionsDto
|
||||
*/
|
||||
mappings?: Array<NameValuePair>;
|
||||
/**
|
||||
* Gets or sets provider name.
|
||||
* @type {string}
|
||||
* @memberof ChannelMappingOptionsDto
|
||||
*/
|
||||
providerName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ChannelMappingOptionsDto interface.
|
||||
*/
|
||||
export function instanceOfChannelMappingOptionsDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ChannelMappingOptionsDtoFromJSON(json: any): ChannelMappingOptionsDto {
|
||||
return ChannelMappingOptionsDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChannelMappingOptionsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelMappingOptionsDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'tunerChannels': !exists(json, 'TunerChannels') ? undefined : ((json['TunerChannels'] as Array<any>).map(TunerChannelMappingFromJSON)),
|
||||
'providerChannels': !exists(json, 'ProviderChannels') ? undefined : ((json['ProviderChannels'] as Array<any>).map(NameIdPairFromJSON)),
|
||||
'mappings': !exists(json, 'Mappings') ? undefined : ((json['Mappings'] as Array<any>).map(NameValuePairFromJSON)),
|
||||
'providerName': !exists(json, 'ProviderName') ? undefined : json['ProviderName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ChannelMappingOptionsDtoToJSON(value?: ChannelMappingOptionsDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'TunerChannels': value.tunerChannels === undefined ? undefined : ((value.tunerChannels as Array<any>).map(TunerChannelMappingToJSON)),
|
||||
'ProviderChannels': value.providerChannels === undefined ? undefined : ((value.providerChannels as Array<any>).map(NameIdPairToJSON)),
|
||||
'Mappings': value.mappings === undefined ? undefined : ((value.mappings as Array<any>).map(NameValuePairToJSON)),
|
||||
'ProviderName': value.providerName,
|
||||
};
|
||||
}
|
||||
|
44
server/jellyfin/models/ChannelMediaContentType.ts
Normal file
44
server/jellyfin/models/ChannelMediaContentType.ts
Normal file
@ -0,0 +1,44 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const ChannelMediaContentType = {
|
||||
Clip: 'Clip',
|
||||
Podcast: 'Podcast',
|
||||
Trailer: 'Trailer',
|
||||
Movie: 'Movie',
|
||||
Episode: 'Episode',
|
||||
Song: 'Song',
|
||||
MovieExtra: 'MovieExtra',
|
||||
TvExtra: 'TvExtra'
|
||||
} as const;
|
||||
export type ChannelMediaContentType = typeof ChannelMediaContentType[keyof typeof ChannelMediaContentType];
|
||||
|
||||
|
||||
export function ChannelMediaContentTypeFromJSON(json: any): ChannelMediaContentType {
|
||||
return ChannelMediaContentTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChannelMediaContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelMediaContentType {
|
||||
return json as ChannelMediaContentType;
|
||||
}
|
||||
|
||||
export function ChannelMediaContentTypeToJSON(value?: ChannelMediaContentType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
39
server/jellyfin/models/ChannelMediaType.ts
Normal file
39
server/jellyfin/models/ChannelMediaType.ts
Normal file
@ -0,0 +1,39 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const ChannelMediaType = {
|
||||
Audio: 'Audio',
|
||||
Video: 'Video',
|
||||
Photo: 'Photo'
|
||||
} as const;
|
||||
export type ChannelMediaType = typeof ChannelMediaType[keyof typeof ChannelMediaType];
|
||||
|
||||
|
||||
export function ChannelMediaTypeFromJSON(json: any): ChannelMediaType {
|
||||
return ChannelMediaTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChannelMediaTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelMediaType {
|
||||
return json as ChannelMediaType;
|
||||
}
|
||||
|
||||
export function ChannelMediaTypeToJSON(value?: ChannelMediaType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
38
server/jellyfin/models/ChannelType.ts
Normal file
38
server/jellyfin/models/ChannelType.ts
Normal file
@ -0,0 +1,38 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Enum ChannelType.
|
||||
* @export
|
||||
*/
|
||||
export const ChannelType = {
|
||||
Tv: 'TV',
|
||||
Radio: 'Radio'
|
||||
} as const;
|
||||
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
||||
|
||||
|
||||
export function ChannelTypeFromJSON(json: any): ChannelType {
|
||||
return ChannelTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChannelTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelType {
|
||||
return json as ChannelType;
|
||||
}
|
||||
|
||||
export function ChannelTypeToJSON(value?: ChannelType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
97
server/jellyfin/models/ChapterInfo.ts
Normal file
97
server/jellyfin/models/ChapterInfo.ts
Normal file
@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Class ChapterInfo.
|
||||
* @export
|
||||
* @interface ChapterInfo
|
||||
*/
|
||||
export interface ChapterInfo {
|
||||
/**
|
||||
* Gets or sets the start position ticks.
|
||||
* @type {number}
|
||||
* @memberof ChapterInfo
|
||||
*/
|
||||
startPositionTicks?: number;
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ChapterInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the image path.
|
||||
* @type {string}
|
||||
* @memberof ChapterInfo
|
||||
*/
|
||||
imagePath?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ChapterInfo
|
||||
*/
|
||||
imageDateModified?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ChapterInfo
|
||||
*/
|
||||
imageTag?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ChapterInfo interface.
|
||||
*/
|
||||
export function instanceOfChapterInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ChapterInfoFromJSON(json: any): ChapterInfo {
|
||||
return ChapterInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChapterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChapterInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'startPositionTicks': !exists(json, 'StartPositionTicks') ? undefined : json['StartPositionTicks'],
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'imagePath': !exists(json, 'ImagePath') ? undefined : json['ImagePath'],
|
||||
'imageDateModified': !exists(json, 'ImageDateModified') ? undefined : (new Date(json['ImageDateModified'])),
|
||||
'imageTag': !exists(json, 'ImageTag') ? undefined : json['ImageTag'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ChapterInfoToJSON(value?: ChapterInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'StartPositionTicks': value.startPositionTicks,
|
||||
'Name': value.name,
|
||||
'ImagePath': value.imagePath,
|
||||
'ImageDateModified': value.imageDateModified === undefined ? undefined : (value.imageDateModified.toISOString()),
|
||||
'ImageTag': value.imageTag,
|
||||
};
|
||||
}
|
||||
|
150
server/jellyfin/models/ClientCapabilities.ts
Normal file
150
server/jellyfin/models/ClientCapabilities.ts
Normal file
@ -0,0 +1,150 @@
|
||||
/* 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';
|
||||
import type { ClientCapabilitiesDeviceProfile } from './ClientCapabilitiesDeviceProfile';
|
||||
import {
|
||||
ClientCapabilitiesDeviceProfileFromJSON,
|
||||
ClientCapabilitiesDeviceProfileFromJSONTyped,
|
||||
ClientCapabilitiesDeviceProfileToJSON,
|
||||
} from './ClientCapabilitiesDeviceProfile';
|
||||
import type { GeneralCommandType } from './GeneralCommandType';
|
||||
import {
|
||||
GeneralCommandTypeFromJSON,
|
||||
GeneralCommandTypeFromJSONTyped,
|
||||
GeneralCommandTypeToJSON,
|
||||
} from './GeneralCommandType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientCapabilities
|
||||
*/
|
||||
export interface ClientCapabilities {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
playableMediaTypes?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<GeneralCommandType>}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
supportedCommands?: Array<GeneralCommandType> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
supportsMediaControl?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
supportsContentUploading?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
messageCallbackUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
supportsPersistentIdentifier?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
supportsSync?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {ClientCapabilitiesDeviceProfile}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
deviceProfile?: ClientCapabilitiesDeviceProfile | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
appStoreUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilities
|
||||
*/
|
||||
iconUrl?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientCapabilities interface.
|
||||
*/
|
||||
export function instanceOfClientCapabilities(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesFromJSON(json: any): ClientCapabilities {
|
||||
return ClientCapabilitiesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientCapabilities {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'playableMediaTypes': !exists(json, 'PlayableMediaTypes') ? undefined : json['PlayableMediaTypes'],
|
||||
'supportedCommands': !exists(json, 'SupportedCommands') ? undefined : (json['SupportedCommands'] === null ? null : (json['SupportedCommands'] as Array<any>).map(GeneralCommandTypeFromJSON)),
|
||||
'supportsMediaControl': !exists(json, 'SupportsMediaControl') ? undefined : json['SupportsMediaControl'],
|
||||
'supportsContentUploading': !exists(json, 'SupportsContentUploading') ? undefined : json['SupportsContentUploading'],
|
||||
'messageCallbackUrl': !exists(json, 'MessageCallbackUrl') ? undefined : json['MessageCallbackUrl'],
|
||||
'supportsPersistentIdentifier': !exists(json, 'SupportsPersistentIdentifier') ? undefined : json['SupportsPersistentIdentifier'],
|
||||
'supportsSync': !exists(json, 'SupportsSync') ? undefined : json['SupportsSync'],
|
||||
'deviceProfile': !exists(json, 'DeviceProfile') ? undefined : ClientCapabilitiesDeviceProfileFromJSON(json['DeviceProfile']),
|
||||
'appStoreUrl': !exists(json, 'AppStoreUrl') ? undefined : json['AppStoreUrl'],
|
||||
'iconUrl': !exists(json, 'IconUrl') ? undefined : json['IconUrl'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesToJSON(value?: ClientCapabilities | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'PlayableMediaTypes': value.playableMediaTypes,
|
||||
'SupportedCommands': value.supportedCommands === undefined ? undefined : (value.supportedCommands === null ? null : (value.supportedCommands as Array<any>).map(GeneralCommandTypeToJSON)),
|
||||
'SupportsMediaControl': value.supportsMediaControl,
|
||||
'SupportsContentUploading': value.supportsContentUploading,
|
||||
'MessageCallbackUrl': value.messageCallbackUrl,
|
||||
'SupportsPersistentIdentifier': value.supportsPersistentIdentifier,
|
||||
'SupportsSync': value.supportsSync,
|
||||
'DeviceProfile': ClientCapabilitiesDeviceProfileToJSON(value.deviceProfile),
|
||||
'AppStoreUrl': value.appStoreUrl,
|
||||
'IconUrl': value.iconUrl,
|
||||
};
|
||||
}
|
||||
|
423
server/jellyfin/models/ClientCapabilitiesDeviceProfile.ts
Normal file
423
server/jellyfin/models/ClientCapabilitiesDeviceProfile.ts
Normal file
@ -0,0 +1,423 @@
|
||||
/* 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';
|
||||
import type { CodecProfile } from './CodecProfile';
|
||||
import {
|
||||
CodecProfileFromJSON,
|
||||
CodecProfileFromJSONTyped,
|
||||
CodecProfileToJSON,
|
||||
} from './CodecProfile';
|
||||
import type { ContainerProfile } from './ContainerProfile';
|
||||
import {
|
||||
ContainerProfileFromJSON,
|
||||
ContainerProfileFromJSONTyped,
|
||||
ContainerProfileToJSON,
|
||||
} from './ContainerProfile';
|
||||
import type { DeviceProfileIdentification } from './DeviceProfileIdentification';
|
||||
import {
|
||||
DeviceProfileIdentificationFromJSON,
|
||||
DeviceProfileIdentificationFromJSONTyped,
|
||||
DeviceProfileIdentificationToJSON,
|
||||
} from './DeviceProfileIdentification';
|
||||
import type { DirectPlayProfile } from './DirectPlayProfile';
|
||||
import {
|
||||
DirectPlayProfileFromJSON,
|
||||
DirectPlayProfileFromJSONTyped,
|
||||
DirectPlayProfileToJSON,
|
||||
} from './DirectPlayProfile';
|
||||
import type { ResponseProfile } from './ResponseProfile';
|
||||
import {
|
||||
ResponseProfileFromJSON,
|
||||
ResponseProfileFromJSONTyped,
|
||||
ResponseProfileToJSON,
|
||||
} from './ResponseProfile';
|
||||
import type { SubtitleProfile } from './SubtitleProfile';
|
||||
import {
|
||||
SubtitleProfileFromJSON,
|
||||
SubtitleProfileFromJSONTyped,
|
||||
SubtitleProfileToJSON,
|
||||
} from './SubtitleProfile';
|
||||
import type { TranscodingProfile } from './TranscodingProfile';
|
||||
import {
|
||||
TranscodingProfileFromJSON,
|
||||
TranscodingProfileFromJSONTyped,
|
||||
TranscodingProfileToJSON,
|
||||
} from './TranscodingProfile';
|
||||
import type { XmlAttribute } from './XmlAttribute';
|
||||
import {
|
||||
XmlAttributeFromJSON,
|
||||
XmlAttributeFromJSONTyped,
|
||||
XmlAttributeToJSON,
|
||||
} from './XmlAttribute';
|
||||
|
||||
/**
|
||||
* A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
|
||||
* <br />
|
||||
* Specifically, it defines the supported <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles">containers</see> and
|
||||
* <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
|
||||
* the device is able to direct play (without transcoding or remuxing),
|
||||
* as well as which <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
|
||||
* @export
|
||||
* @interface ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
export interface ClientCapabilitiesDeviceProfile {
|
||||
/**
|
||||
* Gets or sets the name of this device profile.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the Id.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {DeviceProfileIdentification}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
identification?: DeviceProfileIdentification | null;
|
||||
/**
|
||||
* Gets or sets the friendly name of the device profile, which can be shown to users.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
friendlyName?: string | null;
|
||||
/**
|
||||
* Gets or sets the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
manufacturer?: string | null;
|
||||
/**
|
||||
* Gets or sets an url for the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
manufacturerUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the model name of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
modelName?: string | null;
|
||||
/**
|
||||
* Gets or sets the model description of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
modelDescription?: string | null;
|
||||
/**
|
||||
* Gets or sets the model number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
modelNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets the ModelUrl.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
modelUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the serial number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
serialNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableAlbumArtInDidl.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
enableAlbumArtInDidl?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleAlbumArtLimit.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
enableSingleAlbumArtLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleSubtitleLimit.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
enableSingleSubtitleLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets the SupportedMediaTypes.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
supportedMediaTypes?: string;
|
||||
/**
|
||||
* Gets or sets the UserId.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
userId?: string | null;
|
||||
/**
|
||||
* Gets or sets the AlbumArtPn.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
albumArtPn?: string | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtWidth.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxAlbumArtWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtHeight.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxAlbumArtHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed width of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxIconWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed height of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxIconHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for all streamed content.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxStreamingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxStaticBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for transcoded music streams.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
musicStreamingTranscodingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
maxStaticMusicBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
sonyAggregationFlags?: string | null;
|
||||
/**
|
||||
* Gets or sets the ProtocolInfo.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
protocolInfo?: string | null;
|
||||
/**
|
||||
* Gets or sets the TimelineOffsetSeconds.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
timelineOffsetSeconds?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainVideoItems.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
requiresPlainVideoItems?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainFolders.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
requiresPlainFolders?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
enableMSMediaReceiverRegistrar?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
ignoreTranscodeByteRangeRequests?: boolean;
|
||||
/**
|
||||
* Gets or sets the XmlRootAttributes.
|
||||
* @type {Array<XmlAttribute>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
xmlRootAttributes?: Array<XmlAttribute>;
|
||||
/**
|
||||
* Gets or sets the direct play profiles.
|
||||
* @type {Array<DirectPlayProfile>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
directPlayProfiles?: Array<DirectPlayProfile>;
|
||||
/**
|
||||
* Gets or sets the transcoding profiles.
|
||||
* @type {Array<TranscodingProfile>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
transcodingProfiles?: Array<TranscodingProfile>;
|
||||
/**
|
||||
* Gets or sets the container profiles.
|
||||
* @type {Array<ContainerProfile>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
containerProfiles?: Array<ContainerProfile>;
|
||||
/**
|
||||
* Gets or sets the codec profiles.
|
||||
* @type {Array<CodecProfile>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
codecProfiles?: Array<CodecProfile>;
|
||||
/**
|
||||
* Gets or sets the ResponseProfiles.
|
||||
* @type {Array<ResponseProfile>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
responseProfiles?: Array<ResponseProfile>;
|
||||
/**
|
||||
* Gets or sets the subtitle profiles.
|
||||
* @type {Array<SubtitleProfile>}
|
||||
* @memberof ClientCapabilitiesDeviceProfile
|
||||
*/
|
||||
subtitleProfiles?: Array<SubtitleProfile>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientCapabilitiesDeviceProfile interface.
|
||||
*/
|
||||
export function instanceOfClientCapabilitiesDeviceProfile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDeviceProfileFromJSON(json: any): ClientCapabilitiesDeviceProfile {
|
||||
return ClientCapabilitiesDeviceProfileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDeviceProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientCapabilitiesDeviceProfile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'identification': !exists(json, 'Identification') ? undefined : DeviceProfileIdentificationFromJSON(json['Identification']),
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
|
||||
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
|
||||
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
|
||||
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
|
||||
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
|
||||
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
|
||||
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
|
||||
'enableAlbumArtInDidl': !exists(json, 'EnableAlbumArtInDidl') ? undefined : json['EnableAlbumArtInDidl'],
|
||||
'enableSingleAlbumArtLimit': !exists(json, 'EnableSingleAlbumArtLimit') ? undefined : json['EnableSingleAlbumArtLimit'],
|
||||
'enableSingleSubtitleLimit': !exists(json, 'EnableSingleSubtitleLimit') ? undefined : json['EnableSingleSubtitleLimit'],
|
||||
'supportedMediaTypes': !exists(json, 'SupportedMediaTypes') ? undefined : json['SupportedMediaTypes'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'albumArtPn': !exists(json, 'AlbumArtPn') ? undefined : json['AlbumArtPn'],
|
||||
'maxAlbumArtWidth': !exists(json, 'MaxAlbumArtWidth') ? undefined : json['MaxAlbumArtWidth'],
|
||||
'maxAlbumArtHeight': !exists(json, 'MaxAlbumArtHeight') ? undefined : json['MaxAlbumArtHeight'],
|
||||
'maxIconWidth': !exists(json, 'MaxIconWidth') ? undefined : json['MaxIconWidth'],
|
||||
'maxIconHeight': !exists(json, 'MaxIconHeight') ? undefined : json['MaxIconHeight'],
|
||||
'maxStreamingBitrate': !exists(json, 'MaxStreamingBitrate') ? undefined : json['MaxStreamingBitrate'],
|
||||
'maxStaticBitrate': !exists(json, 'MaxStaticBitrate') ? undefined : json['MaxStaticBitrate'],
|
||||
'musicStreamingTranscodingBitrate': !exists(json, 'MusicStreamingTranscodingBitrate') ? undefined : json['MusicStreamingTranscodingBitrate'],
|
||||
'maxStaticMusicBitrate': !exists(json, 'MaxStaticMusicBitrate') ? undefined : json['MaxStaticMusicBitrate'],
|
||||
'sonyAggregationFlags': !exists(json, 'SonyAggregationFlags') ? undefined : json['SonyAggregationFlags'],
|
||||
'protocolInfo': !exists(json, 'ProtocolInfo') ? undefined : json['ProtocolInfo'],
|
||||
'timelineOffsetSeconds': !exists(json, 'TimelineOffsetSeconds') ? undefined : json['TimelineOffsetSeconds'],
|
||||
'requiresPlainVideoItems': !exists(json, 'RequiresPlainVideoItems') ? undefined : json['RequiresPlainVideoItems'],
|
||||
'requiresPlainFolders': !exists(json, 'RequiresPlainFolders') ? undefined : json['RequiresPlainFolders'],
|
||||
'enableMSMediaReceiverRegistrar': !exists(json, 'EnableMSMediaReceiverRegistrar') ? undefined : json['EnableMSMediaReceiverRegistrar'],
|
||||
'ignoreTranscodeByteRangeRequests': !exists(json, 'IgnoreTranscodeByteRangeRequests') ? undefined : json['IgnoreTranscodeByteRangeRequests'],
|
||||
'xmlRootAttributes': !exists(json, 'XmlRootAttributes') ? undefined : ((json['XmlRootAttributes'] as Array<any>).map(XmlAttributeFromJSON)),
|
||||
'directPlayProfiles': !exists(json, 'DirectPlayProfiles') ? undefined : ((json['DirectPlayProfiles'] as Array<any>).map(DirectPlayProfileFromJSON)),
|
||||
'transcodingProfiles': !exists(json, 'TranscodingProfiles') ? undefined : ((json['TranscodingProfiles'] as Array<any>).map(TranscodingProfileFromJSON)),
|
||||
'containerProfiles': !exists(json, 'ContainerProfiles') ? undefined : ((json['ContainerProfiles'] as Array<any>).map(ContainerProfileFromJSON)),
|
||||
'codecProfiles': !exists(json, 'CodecProfiles') ? undefined : ((json['CodecProfiles'] as Array<any>).map(CodecProfileFromJSON)),
|
||||
'responseProfiles': !exists(json, 'ResponseProfiles') ? undefined : ((json['ResponseProfiles'] as Array<any>).map(ResponseProfileFromJSON)),
|
||||
'subtitleProfiles': !exists(json, 'SubtitleProfiles') ? undefined : ((json['SubtitleProfiles'] as Array<any>).map(SubtitleProfileFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDeviceProfileToJSON(value?: ClientCapabilitiesDeviceProfile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Id': value.id,
|
||||
'Identification': DeviceProfileIdentificationToJSON(value.identification),
|
||||
'FriendlyName': value.friendlyName,
|
||||
'Manufacturer': value.manufacturer,
|
||||
'ManufacturerUrl': value.manufacturerUrl,
|
||||
'ModelName': value.modelName,
|
||||
'ModelDescription': value.modelDescription,
|
||||
'ModelNumber': value.modelNumber,
|
||||
'ModelUrl': value.modelUrl,
|
||||
'SerialNumber': value.serialNumber,
|
||||
'EnableAlbumArtInDidl': value.enableAlbumArtInDidl,
|
||||
'EnableSingleAlbumArtLimit': value.enableSingleAlbumArtLimit,
|
||||
'EnableSingleSubtitleLimit': value.enableSingleSubtitleLimit,
|
||||
'SupportedMediaTypes': value.supportedMediaTypes,
|
||||
'UserId': value.userId,
|
||||
'AlbumArtPn': value.albumArtPn,
|
||||
'MaxAlbumArtWidth': value.maxAlbumArtWidth,
|
||||
'MaxAlbumArtHeight': value.maxAlbumArtHeight,
|
||||
'MaxIconWidth': value.maxIconWidth,
|
||||
'MaxIconHeight': value.maxIconHeight,
|
||||
'MaxStreamingBitrate': value.maxStreamingBitrate,
|
||||
'MaxStaticBitrate': value.maxStaticBitrate,
|
||||
'MusicStreamingTranscodingBitrate': value.musicStreamingTranscodingBitrate,
|
||||
'MaxStaticMusicBitrate': value.maxStaticMusicBitrate,
|
||||
'SonyAggregationFlags': value.sonyAggregationFlags,
|
||||
'ProtocolInfo': value.protocolInfo,
|
||||
'TimelineOffsetSeconds': value.timelineOffsetSeconds,
|
||||
'RequiresPlainVideoItems': value.requiresPlainVideoItems,
|
||||
'RequiresPlainFolders': value.requiresPlainFolders,
|
||||
'EnableMSMediaReceiverRegistrar': value.enableMSMediaReceiverRegistrar,
|
||||
'IgnoreTranscodeByteRangeRequests': value.ignoreTranscodeByteRangeRequests,
|
||||
'XmlRootAttributes': value.xmlRootAttributes === undefined ? undefined : ((value.xmlRootAttributes as Array<any>).map(XmlAttributeToJSON)),
|
||||
'DirectPlayProfiles': value.directPlayProfiles === undefined ? undefined : ((value.directPlayProfiles as Array<any>).map(DirectPlayProfileToJSON)),
|
||||
'TranscodingProfiles': value.transcodingProfiles === undefined ? undefined : ((value.transcodingProfiles as Array<any>).map(TranscodingProfileToJSON)),
|
||||
'ContainerProfiles': value.containerProfiles === undefined ? undefined : ((value.containerProfiles as Array<any>).map(ContainerProfileToJSON)),
|
||||
'CodecProfiles': value.codecProfiles === undefined ? undefined : ((value.codecProfiles as Array<any>).map(CodecProfileToJSON)),
|
||||
'ResponseProfiles': value.responseProfiles === undefined ? undefined : ((value.responseProfiles as Array<any>).map(ResponseProfileToJSON)),
|
||||
'SubtitleProfiles': value.subtitleProfiles === undefined ? undefined : ((value.subtitleProfiles as Array<any>).map(SubtitleProfileToJSON)),
|
||||
};
|
||||
}
|
||||
|
150
server/jellyfin/models/ClientCapabilitiesDto.ts
Normal file
150
server/jellyfin/models/ClientCapabilitiesDto.ts
Normal file
@ -0,0 +1,150 @@
|
||||
/* 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';
|
||||
import type { ClientCapabilitiesDtoDeviceProfile } from './ClientCapabilitiesDtoDeviceProfile';
|
||||
import {
|
||||
ClientCapabilitiesDtoDeviceProfileFromJSON,
|
||||
ClientCapabilitiesDtoDeviceProfileFromJSONTyped,
|
||||
ClientCapabilitiesDtoDeviceProfileToJSON,
|
||||
} from './ClientCapabilitiesDtoDeviceProfile';
|
||||
import type { GeneralCommandType } from './GeneralCommandType';
|
||||
import {
|
||||
GeneralCommandTypeFromJSON,
|
||||
GeneralCommandTypeFromJSONTyped,
|
||||
GeneralCommandTypeToJSON,
|
||||
} from './GeneralCommandType';
|
||||
|
||||
/**
|
||||
* Client capabilities dto.
|
||||
* @export
|
||||
* @interface ClientCapabilitiesDto
|
||||
*/
|
||||
export interface ClientCapabilitiesDto {
|
||||
/**
|
||||
* Gets or sets the list of playable media types.
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
playableMediaTypes?: Array<string>;
|
||||
/**
|
||||
* Gets or sets the list of supported commands.
|
||||
* @type {Array<GeneralCommandType>}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
supportedCommands?: Array<GeneralCommandType>;
|
||||
/**
|
||||
* Gets or sets a value indicating whether session supports media control.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
supportsMediaControl?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether session supports content uploading.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
supportsContentUploading?: boolean;
|
||||
/**
|
||||
* Gets or sets the message callback url.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
messageCallbackUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether session supports a persistent identifier.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
supportsPersistentIdentifier?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether session supports sync.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
supportsSync?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {ClientCapabilitiesDtoDeviceProfile}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
deviceProfile?: ClientCapabilitiesDtoDeviceProfile | null;
|
||||
/**
|
||||
* Gets or sets the app store url.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
appStoreUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the icon url.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDto
|
||||
*/
|
||||
iconUrl?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientCapabilitiesDto interface.
|
||||
*/
|
||||
export function instanceOfClientCapabilitiesDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDtoFromJSON(json: any): ClientCapabilitiesDto {
|
||||
return ClientCapabilitiesDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientCapabilitiesDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'playableMediaTypes': !exists(json, 'PlayableMediaTypes') ? undefined : json['PlayableMediaTypes'],
|
||||
'supportedCommands': !exists(json, 'SupportedCommands') ? undefined : ((json['SupportedCommands'] as Array<any>).map(GeneralCommandTypeFromJSON)),
|
||||
'supportsMediaControl': !exists(json, 'SupportsMediaControl') ? undefined : json['SupportsMediaControl'],
|
||||
'supportsContentUploading': !exists(json, 'SupportsContentUploading') ? undefined : json['SupportsContentUploading'],
|
||||
'messageCallbackUrl': !exists(json, 'MessageCallbackUrl') ? undefined : json['MessageCallbackUrl'],
|
||||
'supportsPersistentIdentifier': !exists(json, 'SupportsPersistentIdentifier') ? undefined : json['SupportsPersistentIdentifier'],
|
||||
'supportsSync': !exists(json, 'SupportsSync') ? undefined : json['SupportsSync'],
|
||||
'deviceProfile': !exists(json, 'DeviceProfile') ? undefined : ClientCapabilitiesDtoDeviceProfileFromJSON(json['DeviceProfile']),
|
||||
'appStoreUrl': !exists(json, 'AppStoreUrl') ? undefined : json['AppStoreUrl'],
|
||||
'iconUrl': !exists(json, 'IconUrl') ? undefined : json['IconUrl'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDtoToJSON(value?: ClientCapabilitiesDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'PlayableMediaTypes': value.playableMediaTypes,
|
||||
'SupportedCommands': value.supportedCommands === undefined ? undefined : ((value.supportedCommands as Array<any>).map(GeneralCommandTypeToJSON)),
|
||||
'SupportsMediaControl': value.supportsMediaControl,
|
||||
'SupportsContentUploading': value.supportsContentUploading,
|
||||
'MessageCallbackUrl': value.messageCallbackUrl,
|
||||
'SupportsPersistentIdentifier': value.supportsPersistentIdentifier,
|
||||
'SupportsSync': value.supportsSync,
|
||||
'DeviceProfile': ClientCapabilitiesDtoDeviceProfileToJSON(value.deviceProfile),
|
||||
'AppStoreUrl': value.appStoreUrl,
|
||||
'IconUrl': value.iconUrl,
|
||||
};
|
||||
}
|
||||
|
418
server/jellyfin/models/ClientCapabilitiesDtoDeviceProfile.ts
Normal file
418
server/jellyfin/models/ClientCapabilitiesDtoDeviceProfile.ts
Normal file
@ -0,0 +1,418 @@
|
||||
/* 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';
|
||||
import type { CodecProfile } from './CodecProfile';
|
||||
import {
|
||||
CodecProfileFromJSON,
|
||||
CodecProfileFromJSONTyped,
|
||||
CodecProfileToJSON,
|
||||
} from './CodecProfile';
|
||||
import type { ContainerProfile } from './ContainerProfile';
|
||||
import {
|
||||
ContainerProfileFromJSON,
|
||||
ContainerProfileFromJSONTyped,
|
||||
ContainerProfileToJSON,
|
||||
} from './ContainerProfile';
|
||||
import type { DeviceProfileIdentification } from './DeviceProfileIdentification';
|
||||
import {
|
||||
DeviceProfileIdentificationFromJSON,
|
||||
DeviceProfileIdentificationFromJSONTyped,
|
||||
DeviceProfileIdentificationToJSON,
|
||||
} from './DeviceProfileIdentification';
|
||||
import type { DirectPlayProfile } from './DirectPlayProfile';
|
||||
import {
|
||||
DirectPlayProfileFromJSON,
|
||||
DirectPlayProfileFromJSONTyped,
|
||||
DirectPlayProfileToJSON,
|
||||
} from './DirectPlayProfile';
|
||||
import type { ResponseProfile } from './ResponseProfile';
|
||||
import {
|
||||
ResponseProfileFromJSON,
|
||||
ResponseProfileFromJSONTyped,
|
||||
ResponseProfileToJSON,
|
||||
} from './ResponseProfile';
|
||||
import type { SubtitleProfile } from './SubtitleProfile';
|
||||
import {
|
||||
SubtitleProfileFromJSON,
|
||||
SubtitleProfileFromJSONTyped,
|
||||
SubtitleProfileToJSON,
|
||||
} from './SubtitleProfile';
|
||||
import type { TranscodingProfile } from './TranscodingProfile';
|
||||
import {
|
||||
TranscodingProfileFromJSON,
|
||||
TranscodingProfileFromJSONTyped,
|
||||
TranscodingProfileToJSON,
|
||||
} from './TranscodingProfile';
|
||||
import type { XmlAttribute } from './XmlAttribute';
|
||||
import {
|
||||
XmlAttributeFromJSON,
|
||||
XmlAttributeFromJSONTyped,
|
||||
XmlAttributeToJSON,
|
||||
} from './XmlAttribute';
|
||||
|
||||
/**
|
||||
* Gets or sets the device profile.
|
||||
* @export
|
||||
* @interface ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
export interface ClientCapabilitiesDtoDeviceProfile {
|
||||
/**
|
||||
* Gets or sets the name of this device profile.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the Id.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {DeviceProfileIdentification}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
identification?: DeviceProfileIdentification | null;
|
||||
/**
|
||||
* Gets or sets the friendly name of the device profile, which can be shown to users.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
friendlyName?: string | null;
|
||||
/**
|
||||
* Gets or sets the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
manufacturer?: string | null;
|
||||
/**
|
||||
* Gets or sets an url for the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
manufacturerUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the model name of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
modelName?: string | null;
|
||||
/**
|
||||
* Gets or sets the model description of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
modelDescription?: string | null;
|
||||
/**
|
||||
* Gets or sets the model number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
modelNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets the ModelUrl.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
modelUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the serial number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
serialNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableAlbumArtInDidl.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
enableAlbumArtInDidl?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleAlbumArtLimit.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
enableSingleAlbumArtLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleSubtitleLimit.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
enableSingleSubtitleLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets the SupportedMediaTypes.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
supportedMediaTypes?: string;
|
||||
/**
|
||||
* Gets or sets the UserId.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
userId?: string | null;
|
||||
/**
|
||||
* Gets or sets the AlbumArtPn.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
albumArtPn?: string | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtWidth.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxAlbumArtWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtHeight.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxAlbumArtHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed width of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxIconWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed height of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxIconHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for all streamed content.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxStreamingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxStaticBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for transcoded music streams.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
musicStreamingTranscodingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
maxStaticMusicBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
sonyAggregationFlags?: string | null;
|
||||
/**
|
||||
* Gets or sets the ProtocolInfo.
|
||||
* @type {string}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
protocolInfo?: string | null;
|
||||
/**
|
||||
* Gets or sets the TimelineOffsetSeconds.
|
||||
* @type {number}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
timelineOffsetSeconds?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainVideoItems.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
requiresPlainVideoItems?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainFolders.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
requiresPlainFolders?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
enableMSMediaReceiverRegistrar?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests.
|
||||
* @type {boolean}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
ignoreTranscodeByteRangeRequests?: boolean;
|
||||
/**
|
||||
* Gets or sets the XmlRootAttributes.
|
||||
* @type {Array<XmlAttribute>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
xmlRootAttributes?: Array<XmlAttribute>;
|
||||
/**
|
||||
* Gets or sets the direct play profiles.
|
||||
* @type {Array<DirectPlayProfile>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
directPlayProfiles?: Array<DirectPlayProfile>;
|
||||
/**
|
||||
* Gets or sets the transcoding profiles.
|
||||
* @type {Array<TranscodingProfile>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
transcodingProfiles?: Array<TranscodingProfile>;
|
||||
/**
|
||||
* Gets or sets the container profiles.
|
||||
* @type {Array<ContainerProfile>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
containerProfiles?: Array<ContainerProfile>;
|
||||
/**
|
||||
* Gets or sets the codec profiles.
|
||||
* @type {Array<CodecProfile>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
codecProfiles?: Array<CodecProfile>;
|
||||
/**
|
||||
* Gets or sets the ResponseProfiles.
|
||||
* @type {Array<ResponseProfile>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
responseProfiles?: Array<ResponseProfile>;
|
||||
/**
|
||||
* Gets or sets the subtitle profiles.
|
||||
* @type {Array<SubtitleProfile>}
|
||||
* @memberof ClientCapabilitiesDtoDeviceProfile
|
||||
*/
|
||||
subtitleProfiles?: Array<SubtitleProfile>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientCapabilitiesDtoDeviceProfile interface.
|
||||
*/
|
||||
export function instanceOfClientCapabilitiesDtoDeviceProfile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDtoDeviceProfileFromJSON(json: any): ClientCapabilitiesDtoDeviceProfile {
|
||||
return ClientCapabilitiesDtoDeviceProfileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDtoDeviceProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientCapabilitiesDtoDeviceProfile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'identification': !exists(json, 'Identification') ? undefined : DeviceProfileIdentificationFromJSON(json['Identification']),
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
|
||||
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
|
||||
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
|
||||
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
|
||||
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
|
||||
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
|
||||
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
|
||||
'enableAlbumArtInDidl': !exists(json, 'EnableAlbumArtInDidl') ? undefined : json['EnableAlbumArtInDidl'],
|
||||
'enableSingleAlbumArtLimit': !exists(json, 'EnableSingleAlbumArtLimit') ? undefined : json['EnableSingleAlbumArtLimit'],
|
||||
'enableSingleSubtitleLimit': !exists(json, 'EnableSingleSubtitleLimit') ? undefined : json['EnableSingleSubtitleLimit'],
|
||||
'supportedMediaTypes': !exists(json, 'SupportedMediaTypes') ? undefined : json['SupportedMediaTypes'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'albumArtPn': !exists(json, 'AlbumArtPn') ? undefined : json['AlbumArtPn'],
|
||||
'maxAlbumArtWidth': !exists(json, 'MaxAlbumArtWidth') ? undefined : json['MaxAlbumArtWidth'],
|
||||
'maxAlbumArtHeight': !exists(json, 'MaxAlbumArtHeight') ? undefined : json['MaxAlbumArtHeight'],
|
||||
'maxIconWidth': !exists(json, 'MaxIconWidth') ? undefined : json['MaxIconWidth'],
|
||||
'maxIconHeight': !exists(json, 'MaxIconHeight') ? undefined : json['MaxIconHeight'],
|
||||
'maxStreamingBitrate': !exists(json, 'MaxStreamingBitrate') ? undefined : json['MaxStreamingBitrate'],
|
||||
'maxStaticBitrate': !exists(json, 'MaxStaticBitrate') ? undefined : json['MaxStaticBitrate'],
|
||||
'musicStreamingTranscodingBitrate': !exists(json, 'MusicStreamingTranscodingBitrate') ? undefined : json['MusicStreamingTranscodingBitrate'],
|
||||
'maxStaticMusicBitrate': !exists(json, 'MaxStaticMusicBitrate') ? undefined : json['MaxStaticMusicBitrate'],
|
||||
'sonyAggregationFlags': !exists(json, 'SonyAggregationFlags') ? undefined : json['SonyAggregationFlags'],
|
||||
'protocolInfo': !exists(json, 'ProtocolInfo') ? undefined : json['ProtocolInfo'],
|
||||
'timelineOffsetSeconds': !exists(json, 'TimelineOffsetSeconds') ? undefined : json['TimelineOffsetSeconds'],
|
||||
'requiresPlainVideoItems': !exists(json, 'RequiresPlainVideoItems') ? undefined : json['RequiresPlainVideoItems'],
|
||||
'requiresPlainFolders': !exists(json, 'RequiresPlainFolders') ? undefined : json['RequiresPlainFolders'],
|
||||
'enableMSMediaReceiverRegistrar': !exists(json, 'EnableMSMediaReceiverRegistrar') ? undefined : json['EnableMSMediaReceiverRegistrar'],
|
||||
'ignoreTranscodeByteRangeRequests': !exists(json, 'IgnoreTranscodeByteRangeRequests') ? undefined : json['IgnoreTranscodeByteRangeRequests'],
|
||||
'xmlRootAttributes': !exists(json, 'XmlRootAttributes') ? undefined : ((json['XmlRootAttributes'] as Array<any>).map(XmlAttributeFromJSON)),
|
||||
'directPlayProfiles': !exists(json, 'DirectPlayProfiles') ? undefined : ((json['DirectPlayProfiles'] as Array<any>).map(DirectPlayProfileFromJSON)),
|
||||
'transcodingProfiles': !exists(json, 'TranscodingProfiles') ? undefined : ((json['TranscodingProfiles'] as Array<any>).map(TranscodingProfileFromJSON)),
|
||||
'containerProfiles': !exists(json, 'ContainerProfiles') ? undefined : ((json['ContainerProfiles'] as Array<any>).map(ContainerProfileFromJSON)),
|
||||
'codecProfiles': !exists(json, 'CodecProfiles') ? undefined : ((json['CodecProfiles'] as Array<any>).map(CodecProfileFromJSON)),
|
||||
'responseProfiles': !exists(json, 'ResponseProfiles') ? undefined : ((json['ResponseProfiles'] as Array<any>).map(ResponseProfileFromJSON)),
|
||||
'subtitleProfiles': !exists(json, 'SubtitleProfiles') ? undefined : ((json['SubtitleProfiles'] as Array<any>).map(SubtitleProfileFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientCapabilitiesDtoDeviceProfileToJSON(value?: ClientCapabilitiesDtoDeviceProfile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Id': value.id,
|
||||
'Identification': DeviceProfileIdentificationToJSON(value.identification),
|
||||
'FriendlyName': value.friendlyName,
|
||||
'Manufacturer': value.manufacturer,
|
||||
'ManufacturerUrl': value.manufacturerUrl,
|
||||
'ModelName': value.modelName,
|
||||
'ModelDescription': value.modelDescription,
|
||||
'ModelNumber': value.modelNumber,
|
||||
'ModelUrl': value.modelUrl,
|
||||
'SerialNumber': value.serialNumber,
|
||||
'EnableAlbumArtInDidl': value.enableAlbumArtInDidl,
|
||||
'EnableSingleAlbumArtLimit': value.enableSingleAlbumArtLimit,
|
||||
'EnableSingleSubtitleLimit': value.enableSingleSubtitleLimit,
|
||||
'SupportedMediaTypes': value.supportedMediaTypes,
|
||||
'UserId': value.userId,
|
||||
'AlbumArtPn': value.albumArtPn,
|
||||
'MaxAlbumArtWidth': value.maxAlbumArtWidth,
|
||||
'MaxAlbumArtHeight': value.maxAlbumArtHeight,
|
||||
'MaxIconWidth': value.maxIconWidth,
|
||||
'MaxIconHeight': value.maxIconHeight,
|
||||
'MaxStreamingBitrate': value.maxStreamingBitrate,
|
||||
'MaxStaticBitrate': value.maxStaticBitrate,
|
||||
'MusicStreamingTranscodingBitrate': value.musicStreamingTranscodingBitrate,
|
||||
'MaxStaticMusicBitrate': value.maxStaticMusicBitrate,
|
||||
'SonyAggregationFlags': value.sonyAggregationFlags,
|
||||
'ProtocolInfo': value.protocolInfo,
|
||||
'TimelineOffsetSeconds': value.timelineOffsetSeconds,
|
||||
'RequiresPlainVideoItems': value.requiresPlainVideoItems,
|
||||
'RequiresPlainFolders': value.requiresPlainFolders,
|
||||
'EnableMSMediaReceiverRegistrar': value.enableMSMediaReceiverRegistrar,
|
||||
'IgnoreTranscodeByteRangeRequests': value.ignoreTranscodeByteRangeRequests,
|
||||
'XmlRootAttributes': value.xmlRootAttributes === undefined ? undefined : ((value.xmlRootAttributes as Array<any>).map(XmlAttributeToJSON)),
|
||||
'DirectPlayProfiles': value.directPlayProfiles === undefined ? undefined : ((value.directPlayProfiles as Array<any>).map(DirectPlayProfileToJSON)),
|
||||
'TranscodingProfiles': value.transcodingProfiles === undefined ? undefined : ((value.transcodingProfiles as Array<any>).map(TranscodingProfileToJSON)),
|
||||
'ContainerProfiles': value.containerProfiles === undefined ? undefined : ((value.containerProfiles as Array<any>).map(ContainerProfileToJSON)),
|
||||
'CodecProfiles': value.codecProfiles === undefined ? undefined : ((value.codecProfiles as Array<any>).map(CodecProfileToJSON)),
|
||||
'ResponseProfiles': value.responseProfiles === undefined ? undefined : ((value.responseProfiles as Array<any>).map(ResponseProfileToJSON)),
|
||||
'SubtitleProfiles': value.subtitleProfiles === undefined ? undefined : ((value.subtitleProfiles as Array<any>).map(SubtitleProfileToJSON)),
|
||||
};
|
||||
}
|
||||
|
65
server/jellyfin/models/ClientLogDocumentResponseDto.ts
Normal file
65
server/jellyfin/models/ClientLogDocumentResponseDto.ts
Normal file
@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Client log document response dto.
|
||||
* @export
|
||||
* @interface ClientLogDocumentResponseDto
|
||||
*/
|
||||
export interface ClientLogDocumentResponseDto {
|
||||
/**
|
||||
* Gets the resulting filename.
|
||||
* @type {string}
|
||||
* @memberof ClientLogDocumentResponseDto
|
||||
*/
|
||||
fileName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ClientLogDocumentResponseDto interface.
|
||||
*/
|
||||
export function instanceOfClientLogDocumentResponseDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ClientLogDocumentResponseDtoFromJSON(json: any): ClientLogDocumentResponseDto {
|
||||
return ClientLogDocumentResponseDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientLogDocumentResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientLogDocumentResponseDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'fileName': !exists(json, 'FileName') ? undefined : json['FileName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientLogDocumentResponseDtoToJSON(value?: ClientLogDocumentResponseDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'FileName': value.fileName,
|
||||
};
|
||||
}
|
||||
|
110
server/jellyfin/models/CodecProfile.ts
Normal file
110
server/jellyfin/models/CodecProfile.ts
Normal file
@ -0,0 +1,110 @@
|
||||
/* 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';
|
||||
import type { CodecType } from './CodecType';
|
||||
import {
|
||||
CodecTypeFromJSON,
|
||||
CodecTypeFromJSONTyped,
|
||||
CodecTypeToJSON,
|
||||
} from './CodecType';
|
||||
import type { ProfileCondition } from './ProfileCondition';
|
||||
import {
|
||||
ProfileConditionFromJSON,
|
||||
ProfileConditionFromJSONTyped,
|
||||
ProfileConditionToJSON,
|
||||
} from './ProfileCondition';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CodecProfile
|
||||
*/
|
||||
export interface CodecProfile {
|
||||
/**
|
||||
*
|
||||
* @type {CodecType}
|
||||
* @memberof CodecProfile
|
||||
*/
|
||||
type?: CodecType;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ProfileCondition>}
|
||||
* @memberof CodecProfile
|
||||
*/
|
||||
conditions?: Array<ProfileCondition> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ProfileCondition>}
|
||||
* @memberof CodecProfile
|
||||
*/
|
||||
applyConditions?: Array<ProfileCondition> | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodecProfile
|
||||
*/
|
||||
codec?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodecProfile
|
||||
*/
|
||||
container?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CodecProfile interface.
|
||||
*/
|
||||
export function instanceOfCodecProfile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CodecProfileFromJSON(json: any): CodecProfile {
|
||||
return CodecProfileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CodecProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodecProfile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': !exists(json, 'Type') ? undefined : CodecTypeFromJSON(json['Type']),
|
||||
'conditions': !exists(json, 'Conditions') ? undefined : (json['Conditions'] === null ? null : (json['Conditions'] as Array<any>).map(ProfileConditionFromJSON)),
|
||||
'applyConditions': !exists(json, 'ApplyConditions') ? undefined : (json['ApplyConditions'] === null ? null : (json['ApplyConditions'] as Array<any>).map(ProfileConditionFromJSON)),
|
||||
'codec': !exists(json, 'Codec') ? undefined : json['Codec'],
|
||||
'container': !exists(json, 'Container') ? undefined : json['Container'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CodecProfileToJSON(value?: CodecProfile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Type': CodecTypeToJSON(value.type),
|
||||
'Conditions': value.conditions === undefined ? undefined : (value.conditions === null ? null : (value.conditions as Array<any>).map(ProfileConditionToJSON)),
|
||||
'ApplyConditions': value.applyConditions === undefined ? undefined : (value.applyConditions === null ? null : (value.applyConditions as Array<any>).map(ProfileConditionToJSON)),
|
||||
'Codec': value.codec,
|
||||
'Container': value.container,
|
||||
};
|
||||
}
|
||||
|
39
server/jellyfin/models/CodecType.ts
Normal file
39
server/jellyfin/models/CodecType.ts
Normal file
@ -0,0 +1,39 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const CodecType = {
|
||||
Video: 'Video',
|
||||
VideoAudio: 'VideoAudio',
|
||||
Audio: 'Audio'
|
||||
} as const;
|
||||
export type CodecType = typeof CodecType[keyof typeof CodecType];
|
||||
|
||||
|
||||
export function CodecTypeFromJSON(json: any): CodecType {
|
||||
return CodecTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CodecTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodecType {
|
||||
return json as CodecType;
|
||||
}
|
||||
|
||||
export function CodecTypeToJSON(value?: CodecType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
65
server/jellyfin/models/CollectionCreationResult.ts
Normal file
65
server/jellyfin/models/CollectionCreationResult.ts
Normal file
@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CollectionCreationResult
|
||||
*/
|
||||
export interface CollectionCreationResult {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CollectionCreationResult
|
||||
*/
|
||||
id?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CollectionCreationResult interface.
|
||||
*/
|
||||
export function instanceOfCollectionCreationResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CollectionCreationResultFromJSON(json: any): CollectionCreationResult {
|
||||
return CollectionCreationResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CollectionCreationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionCreationResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CollectionCreationResultToJSON(value?: CollectionCreationResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
};
|
||||
}
|
||||
|
44
server/jellyfin/models/CollectionTypeOptions.ts
Normal file
44
server/jellyfin/models/CollectionTypeOptions.ts
Normal file
@ -0,0 +1,44 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const CollectionTypeOptions = {
|
||||
Movies: 'Movies',
|
||||
TvShows: 'TvShows',
|
||||
Music: 'Music',
|
||||
MusicVideos: 'MusicVideos',
|
||||
HomeVideos: 'HomeVideos',
|
||||
BoxSets: 'BoxSets',
|
||||
Books: 'Books',
|
||||
Mixed: 'Mixed'
|
||||
} as const;
|
||||
export type CollectionTypeOptions = typeof CollectionTypeOptions[keyof typeof CollectionTypeOptions];
|
||||
|
||||
|
||||
export function CollectionTypeOptionsFromJSON(json: any): CollectionTypeOptions {
|
||||
return CollectionTypeOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CollectionTypeOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionTypeOptions {
|
||||
return json as CollectionTypeOptions;
|
||||
}
|
||||
|
||||
export function CollectionTypeOptionsToJSON(value?: CollectionTypeOptions | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
113
server/jellyfin/models/ConfigImageTypes.ts
Normal file
113
server/jellyfin/models/ConfigImageTypes.ts
Normal file
@ -0,0 +1,113 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ConfigImageTypes
|
||||
*/
|
||||
export interface ConfigImageTypes {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
backdropSizes?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
baseUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
logoSizes?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
posterSizes?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
profileSizes?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
secureBaseUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ConfigImageTypes
|
||||
*/
|
||||
stillSizes?: Array<string> | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ConfigImageTypes interface.
|
||||
*/
|
||||
export function instanceOfConfigImageTypes(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ConfigImageTypesFromJSON(json: any): ConfigImageTypes {
|
||||
return ConfigImageTypesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ConfigImageTypesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigImageTypes {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'backdropSizes': !exists(json, 'BackdropSizes') ? undefined : json['BackdropSizes'],
|
||||
'baseUrl': !exists(json, 'BaseUrl') ? undefined : json['BaseUrl'],
|
||||
'logoSizes': !exists(json, 'LogoSizes') ? undefined : json['LogoSizes'],
|
||||
'posterSizes': !exists(json, 'PosterSizes') ? undefined : json['PosterSizes'],
|
||||
'profileSizes': !exists(json, 'ProfileSizes') ? undefined : json['ProfileSizes'],
|
||||
'secureBaseUrl': !exists(json, 'SecureBaseUrl') ? undefined : json['SecureBaseUrl'],
|
||||
'stillSizes': !exists(json, 'StillSizes') ? undefined : json['StillSizes'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ConfigImageTypesToJSON(value?: ConfigImageTypes | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'BackdropSizes': value.backdropSizes,
|
||||
'BaseUrl': value.baseUrl,
|
||||
'LogoSizes': value.logoSizes,
|
||||
'PosterSizes': value.posterSizes,
|
||||
'ProfileSizes': value.profileSizes,
|
||||
'SecureBaseUrl': value.secureBaseUrl,
|
||||
'StillSizes': value.stillSizes,
|
||||
};
|
||||
}
|
||||
|
105
server/jellyfin/models/ConfigurationPageInfo.ts
Normal file
105
server/jellyfin/models/ConfigurationPageInfo.ts
Normal file
@ -0,0 +1,105 @@
|
||||
/* 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 configuration page info.
|
||||
* @export
|
||||
* @interface ConfigurationPageInfo
|
||||
*/
|
||||
export interface ConfigurationPageInfo {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ConfigurationPageInfo
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Gets or sets a value indicating whether the configurations page is enabled in the main menu.
|
||||
* @type {boolean}
|
||||
* @memberof ConfigurationPageInfo
|
||||
*/
|
||||
enableInMainMenu?: boolean;
|
||||
/**
|
||||
* Gets or sets the menu section.
|
||||
* @type {string}
|
||||
* @memberof ConfigurationPageInfo
|
||||
*/
|
||||
menuSection?: string | null;
|
||||
/**
|
||||
* Gets or sets the menu icon.
|
||||
* @type {string}
|
||||
* @memberof ConfigurationPageInfo
|
||||
*/
|
||||
menuIcon?: string | null;
|
||||
/**
|
||||
* Gets or sets the display name.
|
||||
* @type {string}
|
||||
* @memberof ConfigurationPageInfo
|
||||
*/
|
||||
displayName?: string | null;
|
||||
/**
|
||||
* Gets or sets the plugin id.
|
||||
* @type {string}
|
||||
* @memberof ConfigurationPageInfo
|
||||
*/
|
||||
pluginId?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ConfigurationPageInfo interface.
|
||||
*/
|
||||
export function instanceOfConfigurationPageInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ConfigurationPageInfoFromJSON(json: any): ConfigurationPageInfo {
|
||||
return ConfigurationPageInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ConfigurationPageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigurationPageInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'enableInMainMenu': !exists(json, 'EnableInMainMenu') ? undefined : json['EnableInMainMenu'],
|
||||
'menuSection': !exists(json, 'MenuSection') ? undefined : json['MenuSection'],
|
||||
'menuIcon': !exists(json, 'MenuIcon') ? undefined : json['MenuIcon'],
|
||||
'displayName': !exists(json, 'DisplayName') ? undefined : json['DisplayName'],
|
||||
'pluginId': !exists(json, 'PluginId') ? undefined : json['PluginId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ConfigurationPageInfoToJSON(value?: ConfigurationPageInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'EnableInMainMenu': value.enableInMainMenu,
|
||||
'MenuSection': value.menuSection,
|
||||
'MenuIcon': value.menuIcon,
|
||||
'DisplayName': value.displayName,
|
||||
'PluginId': value.pluginId,
|
||||
};
|
||||
}
|
||||
|
94
server/jellyfin/models/ContainerProfile.ts
Normal file
94
server/jellyfin/models/ContainerProfile.ts
Normal file
@ -0,0 +1,94 @@
|
||||
/* 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';
|
||||
import type { DlnaProfileType } from './DlnaProfileType';
|
||||
import {
|
||||
DlnaProfileTypeFromJSON,
|
||||
DlnaProfileTypeFromJSONTyped,
|
||||
DlnaProfileTypeToJSON,
|
||||
} from './DlnaProfileType';
|
||||
import type { ProfileCondition } from './ProfileCondition';
|
||||
import {
|
||||
ProfileConditionFromJSON,
|
||||
ProfileConditionFromJSONTyped,
|
||||
ProfileConditionToJSON,
|
||||
} from './ProfileCondition';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ContainerProfile
|
||||
*/
|
||||
export interface ContainerProfile {
|
||||
/**
|
||||
*
|
||||
* @type {DlnaProfileType}
|
||||
* @memberof ContainerProfile
|
||||
*/
|
||||
type?: DlnaProfileType;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ProfileCondition>}
|
||||
* @memberof ContainerProfile
|
||||
*/
|
||||
conditions?: Array<ProfileCondition> | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContainerProfile
|
||||
*/
|
||||
container?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ContainerProfile interface.
|
||||
*/
|
||||
export function instanceOfContainerProfile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ContainerProfileFromJSON(json: any): ContainerProfile {
|
||||
return ContainerProfileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ContainerProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerProfile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': !exists(json, 'Type') ? undefined : DlnaProfileTypeFromJSON(json['Type']),
|
||||
'conditions': !exists(json, 'Conditions') ? undefined : (json['Conditions'] === null ? null : (json['Conditions'] as Array<any>).map(ProfileConditionFromJSON)),
|
||||
'container': !exists(json, 'Container') ? undefined : json['Container'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ContainerProfileToJSON(value?: ContainerProfile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Type': DlnaProfileTypeToJSON(value.type),
|
||||
'Conditions': value.conditions === undefined ? undefined : (value.conditions === null ? null : (value.conditions as Array<any>).map(ProfileConditionToJSON)),
|
||||
'Container': value.container,
|
||||
};
|
||||
}
|
||||
|
80
server/jellyfin/models/ControlResponse.ts
Normal file
80
server/jellyfin/models/ControlResponse.ts
Normal file
@ -0,0 +1,80 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ControlResponse
|
||||
*/
|
||||
export interface ControlResponse {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof ControlResponse
|
||||
*/
|
||||
readonly headers?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ControlResponse
|
||||
*/
|
||||
xml?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ControlResponse
|
||||
*/
|
||||
isSuccessful?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ControlResponse interface.
|
||||
*/
|
||||
export function instanceOfControlResponse(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ControlResponseFromJSON(json: any): ControlResponse {
|
||||
return ControlResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ControlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ControlResponse {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'headers': !exists(json, 'Headers') ? undefined : json['Headers'],
|
||||
'xml': !exists(json, 'Xml') ? undefined : json['Xml'],
|
||||
'isSuccessful': !exists(json, 'IsSuccessful') ? undefined : json['IsSuccessful'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ControlResponseToJSON(value?: ControlResponse | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Xml': value.xml,
|
||||
'IsSuccessful': value.isSuccessful,
|
||||
};
|
||||
}
|
||||
|
89
server/jellyfin/models/CountryInfo.ts
Normal file
89
server/jellyfin/models/CountryInfo.ts
Normal file
@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Class CountryInfo.
|
||||
* @export
|
||||
* @interface CountryInfo
|
||||
*/
|
||||
export interface CountryInfo {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof CountryInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the display name.
|
||||
* @type {string}
|
||||
* @memberof CountryInfo
|
||||
*/
|
||||
displayName?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the two letter ISO region.
|
||||
* @type {string}
|
||||
* @memberof CountryInfo
|
||||
*/
|
||||
twoLetterISORegionName?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the three letter ISO region.
|
||||
* @type {string}
|
||||
* @memberof CountryInfo
|
||||
*/
|
||||
threeLetterISORegionName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CountryInfo interface.
|
||||
*/
|
||||
export function instanceOfCountryInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CountryInfoFromJSON(json: any): CountryInfo {
|
||||
return CountryInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CountryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountryInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'displayName': !exists(json, 'DisplayName') ? undefined : json['DisplayName'],
|
||||
'twoLetterISORegionName': !exists(json, 'TwoLetterISORegionName') ? undefined : json['TwoLetterISORegionName'],
|
||||
'threeLetterISORegionName': !exists(json, 'ThreeLetterISORegionName') ? undefined : json['ThreeLetterISORegionName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CountryInfoToJSON(value?: CountryInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'DisplayName': value.displayName,
|
||||
'TwoLetterISORegionName': value.twoLetterISORegionName,
|
||||
'ThreeLetterISORegionName': value.threeLetterISORegionName,
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/CreateAdminNotificationRequest.ts
Normal file
96
server/jellyfin/models/CreateAdminNotificationRequest.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { NotificationLevel } from './NotificationLevel';
|
||||
import {
|
||||
NotificationLevelFromJSON,
|
||||
NotificationLevelFromJSONTyped,
|
||||
NotificationLevelToJSON,
|
||||
} from './NotificationLevel';
|
||||
|
||||
/**
|
||||
* The admin notification dto.
|
||||
* @export
|
||||
* @interface CreateAdminNotificationRequest
|
||||
*/
|
||||
export interface CreateAdminNotificationRequest {
|
||||
/**
|
||||
* Gets or sets the notification name.
|
||||
* @type {string}
|
||||
* @memberof CreateAdminNotificationRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the notification description.
|
||||
* @type {string}
|
||||
* @memberof CreateAdminNotificationRequest
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {NotificationLevel}
|
||||
* @memberof CreateAdminNotificationRequest
|
||||
*/
|
||||
notificationLevel?: NotificationLevel | null;
|
||||
/**
|
||||
* Gets or sets the notification url.
|
||||
* @type {string}
|
||||
* @memberof CreateAdminNotificationRequest
|
||||
*/
|
||||
url?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateAdminNotificationRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateAdminNotificationRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreateAdminNotificationRequestFromJSON(json: any): CreateAdminNotificationRequest {
|
||||
return CreateAdminNotificationRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateAdminNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminNotificationRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'description': !exists(json, 'Description') ? undefined : json['Description'],
|
||||
'notificationLevel': !exists(json, 'NotificationLevel') ? undefined : NotificationLevelFromJSON(json['NotificationLevel']),
|
||||
'url': !exists(json, 'Url') ? undefined : json['Url'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateAdminNotificationRequestToJSON(value?: CreateAdminNotificationRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Description': value.description,
|
||||
'NotificationLevel': NotificationLevelToJSON(value.notificationLevel),
|
||||
'Url': value.url,
|
||||
};
|
||||
}
|
||||
|
89
server/jellyfin/models/CreatePlaylistDto.ts
Normal file
89
server/jellyfin/models/CreatePlaylistDto.ts
Normal file
@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Create new playlist dto.
|
||||
* @export
|
||||
* @interface CreatePlaylistDto
|
||||
*/
|
||||
export interface CreatePlaylistDto {
|
||||
/**
|
||||
* Gets or sets the name of the new playlist.
|
||||
* @type {string}
|
||||
* @memberof CreatePlaylistDto
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets item ids to add to the playlist.
|
||||
* @type {Array<string>}
|
||||
* @memberof CreatePlaylistDto
|
||||
*/
|
||||
ids?: Array<string>;
|
||||
/**
|
||||
* Gets or sets the user id.
|
||||
* @type {string}
|
||||
* @memberof CreatePlaylistDto
|
||||
*/
|
||||
userId?: string | null;
|
||||
/**
|
||||
* Gets or sets the media type.
|
||||
* @type {string}
|
||||
* @memberof CreatePlaylistDto
|
||||
*/
|
||||
mediaType?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreatePlaylistDto interface.
|
||||
*/
|
||||
export function instanceOfCreatePlaylistDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreatePlaylistDtoFromJSON(json: any): CreatePlaylistDto {
|
||||
return CreatePlaylistDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreatePlaylistDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlaylistDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'ids': !exists(json, 'Ids') ? undefined : json['Ids'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'mediaType': !exists(json, 'MediaType') ? undefined : json['MediaType'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreatePlaylistDtoToJSON(value?: CreatePlaylistDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Ids': value.ids,
|
||||
'UserId': value.userId,
|
||||
'MediaType': value.mediaType,
|
||||
};
|
||||
}
|
||||
|
89
server/jellyfin/models/CreatePlaylistRequest.ts
Normal file
89
server/jellyfin/models/CreatePlaylistRequest.ts
Normal file
@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Create new playlist dto.
|
||||
* @export
|
||||
* @interface CreatePlaylistRequest
|
||||
*/
|
||||
export interface CreatePlaylistRequest {
|
||||
/**
|
||||
* Gets or sets the name of the new playlist.
|
||||
* @type {string}
|
||||
* @memberof CreatePlaylistRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets item ids to add to the playlist.
|
||||
* @type {Array<string>}
|
||||
* @memberof CreatePlaylistRequest
|
||||
*/
|
||||
ids?: Array<string>;
|
||||
/**
|
||||
* Gets or sets the user id.
|
||||
* @type {string}
|
||||
* @memberof CreatePlaylistRequest
|
||||
*/
|
||||
userId?: string | null;
|
||||
/**
|
||||
* Gets or sets the media type.
|
||||
* @type {string}
|
||||
* @memberof CreatePlaylistRequest
|
||||
*/
|
||||
mediaType?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreatePlaylistRequest interface.
|
||||
*/
|
||||
export function instanceOfCreatePlaylistRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreatePlaylistRequestFromJSON(json: any): CreatePlaylistRequest {
|
||||
return CreatePlaylistRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreatePlaylistRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlaylistRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'ids': !exists(json, 'Ids') ? undefined : json['Ids'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'mediaType': !exists(json, 'MediaType') ? undefined : json['MediaType'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreatePlaylistRequestToJSON(value?: CreatePlaylistRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Ids': value.ids,
|
||||
'UserId': value.userId,
|
||||
'MediaType': value.mediaType,
|
||||
};
|
||||
}
|
||||
|
423
server/jellyfin/models/CreateProfileRequest.ts
Normal file
423
server/jellyfin/models/CreateProfileRequest.ts
Normal file
@ -0,0 +1,423 @@
|
||||
/* 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';
|
||||
import type { CodecProfile } from './CodecProfile';
|
||||
import {
|
||||
CodecProfileFromJSON,
|
||||
CodecProfileFromJSONTyped,
|
||||
CodecProfileToJSON,
|
||||
} from './CodecProfile';
|
||||
import type { ContainerProfile } from './ContainerProfile';
|
||||
import {
|
||||
ContainerProfileFromJSON,
|
||||
ContainerProfileFromJSONTyped,
|
||||
ContainerProfileToJSON,
|
||||
} from './ContainerProfile';
|
||||
import type { DeviceProfileIdentification } from './DeviceProfileIdentification';
|
||||
import {
|
||||
DeviceProfileIdentificationFromJSON,
|
||||
DeviceProfileIdentificationFromJSONTyped,
|
||||
DeviceProfileIdentificationToJSON,
|
||||
} from './DeviceProfileIdentification';
|
||||
import type { DirectPlayProfile } from './DirectPlayProfile';
|
||||
import {
|
||||
DirectPlayProfileFromJSON,
|
||||
DirectPlayProfileFromJSONTyped,
|
||||
DirectPlayProfileToJSON,
|
||||
} from './DirectPlayProfile';
|
||||
import type { ResponseProfile } from './ResponseProfile';
|
||||
import {
|
||||
ResponseProfileFromJSON,
|
||||
ResponseProfileFromJSONTyped,
|
||||
ResponseProfileToJSON,
|
||||
} from './ResponseProfile';
|
||||
import type { SubtitleProfile } from './SubtitleProfile';
|
||||
import {
|
||||
SubtitleProfileFromJSON,
|
||||
SubtitleProfileFromJSONTyped,
|
||||
SubtitleProfileToJSON,
|
||||
} from './SubtitleProfile';
|
||||
import type { TranscodingProfile } from './TranscodingProfile';
|
||||
import {
|
||||
TranscodingProfileFromJSON,
|
||||
TranscodingProfileFromJSONTyped,
|
||||
TranscodingProfileToJSON,
|
||||
} from './TranscodingProfile';
|
||||
import type { XmlAttribute } from './XmlAttribute';
|
||||
import {
|
||||
XmlAttributeFromJSON,
|
||||
XmlAttributeFromJSONTyped,
|
||||
XmlAttributeToJSON,
|
||||
} from './XmlAttribute';
|
||||
|
||||
/**
|
||||
* A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
|
||||
* <br />
|
||||
* Specifically, it defines the supported <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles">containers</see> and
|
||||
* <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
|
||||
* the device is able to direct play (without transcoding or remuxing),
|
||||
* as well as which <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
|
||||
* @export
|
||||
* @interface CreateProfileRequest
|
||||
*/
|
||||
export interface CreateProfileRequest {
|
||||
/**
|
||||
* Gets or sets the name of this device profile.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the Id.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {DeviceProfileIdentification}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
identification?: DeviceProfileIdentification | null;
|
||||
/**
|
||||
* Gets or sets the friendly name of the device profile, which can be shown to users.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
friendlyName?: string | null;
|
||||
/**
|
||||
* Gets or sets the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
manufacturer?: string | null;
|
||||
/**
|
||||
* Gets or sets an url for the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
manufacturerUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the model name of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
modelName?: string | null;
|
||||
/**
|
||||
* Gets or sets the model description of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
modelDescription?: string | null;
|
||||
/**
|
||||
* Gets or sets the model number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
modelNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets the ModelUrl.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
modelUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the serial number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
serialNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableAlbumArtInDidl.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
enableAlbumArtInDidl?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleAlbumArtLimit.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
enableSingleAlbumArtLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleSubtitleLimit.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
enableSingleSubtitleLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets the SupportedMediaTypes.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
supportedMediaTypes?: string;
|
||||
/**
|
||||
* Gets or sets the UserId.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
userId?: string | null;
|
||||
/**
|
||||
* Gets or sets the AlbumArtPn.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
albumArtPn?: string | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtWidth.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxAlbumArtWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtHeight.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxAlbumArtHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed width of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxIconWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed height of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxIconHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for all streamed content.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxStreamingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxStaticBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for transcoded music streams.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
musicStreamingTranscodingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
maxStaticMusicBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
sonyAggregationFlags?: string | null;
|
||||
/**
|
||||
* Gets or sets the ProtocolInfo.
|
||||
* @type {string}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
protocolInfo?: string | null;
|
||||
/**
|
||||
* Gets or sets the TimelineOffsetSeconds.
|
||||
* @type {number}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
timelineOffsetSeconds?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainVideoItems.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
requiresPlainVideoItems?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainFolders.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
requiresPlainFolders?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
enableMSMediaReceiverRegistrar?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests.
|
||||
* @type {boolean}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
ignoreTranscodeByteRangeRequests?: boolean;
|
||||
/**
|
||||
* Gets or sets the XmlRootAttributes.
|
||||
* @type {Array<XmlAttribute>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
xmlRootAttributes?: Array<XmlAttribute>;
|
||||
/**
|
||||
* Gets or sets the direct play profiles.
|
||||
* @type {Array<DirectPlayProfile>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
directPlayProfiles?: Array<DirectPlayProfile>;
|
||||
/**
|
||||
* Gets or sets the transcoding profiles.
|
||||
* @type {Array<TranscodingProfile>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
transcodingProfiles?: Array<TranscodingProfile>;
|
||||
/**
|
||||
* Gets or sets the container profiles.
|
||||
* @type {Array<ContainerProfile>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
containerProfiles?: Array<ContainerProfile>;
|
||||
/**
|
||||
* Gets or sets the codec profiles.
|
||||
* @type {Array<CodecProfile>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
codecProfiles?: Array<CodecProfile>;
|
||||
/**
|
||||
* Gets or sets the ResponseProfiles.
|
||||
* @type {Array<ResponseProfile>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
responseProfiles?: Array<ResponseProfile>;
|
||||
/**
|
||||
* Gets or sets the subtitle profiles.
|
||||
* @type {Array<SubtitleProfile>}
|
||||
* @memberof CreateProfileRequest
|
||||
*/
|
||||
subtitleProfiles?: Array<SubtitleProfile>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateProfileRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateProfileRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreateProfileRequestFromJSON(json: any): CreateProfileRequest {
|
||||
return CreateProfileRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProfileRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'identification': !exists(json, 'Identification') ? undefined : DeviceProfileIdentificationFromJSON(json['Identification']),
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
|
||||
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
|
||||
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
|
||||
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
|
||||
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
|
||||
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
|
||||
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
|
||||
'enableAlbumArtInDidl': !exists(json, 'EnableAlbumArtInDidl') ? undefined : json['EnableAlbumArtInDidl'],
|
||||
'enableSingleAlbumArtLimit': !exists(json, 'EnableSingleAlbumArtLimit') ? undefined : json['EnableSingleAlbumArtLimit'],
|
||||
'enableSingleSubtitleLimit': !exists(json, 'EnableSingleSubtitleLimit') ? undefined : json['EnableSingleSubtitleLimit'],
|
||||
'supportedMediaTypes': !exists(json, 'SupportedMediaTypes') ? undefined : json['SupportedMediaTypes'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'albumArtPn': !exists(json, 'AlbumArtPn') ? undefined : json['AlbumArtPn'],
|
||||
'maxAlbumArtWidth': !exists(json, 'MaxAlbumArtWidth') ? undefined : json['MaxAlbumArtWidth'],
|
||||
'maxAlbumArtHeight': !exists(json, 'MaxAlbumArtHeight') ? undefined : json['MaxAlbumArtHeight'],
|
||||
'maxIconWidth': !exists(json, 'MaxIconWidth') ? undefined : json['MaxIconWidth'],
|
||||
'maxIconHeight': !exists(json, 'MaxIconHeight') ? undefined : json['MaxIconHeight'],
|
||||
'maxStreamingBitrate': !exists(json, 'MaxStreamingBitrate') ? undefined : json['MaxStreamingBitrate'],
|
||||
'maxStaticBitrate': !exists(json, 'MaxStaticBitrate') ? undefined : json['MaxStaticBitrate'],
|
||||
'musicStreamingTranscodingBitrate': !exists(json, 'MusicStreamingTranscodingBitrate') ? undefined : json['MusicStreamingTranscodingBitrate'],
|
||||
'maxStaticMusicBitrate': !exists(json, 'MaxStaticMusicBitrate') ? undefined : json['MaxStaticMusicBitrate'],
|
||||
'sonyAggregationFlags': !exists(json, 'SonyAggregationFlags') ? undefined : json['SonyAggregationFlags'],
|
||||
'protocolInfo': !exists(json, 'ProtocolInfo') ? undefined : json['ProtocolInfo'],
|
||||
'timelineOffsetSeconds': !exists(json, 'TimelineOffsetSeconds') ? undefined : json['TimelineOffsetSeconds'],
|
||||
'requiresPlainVideoItems': !exists(json, 'RequiresPlainVideoItems') ? undefined : json['RequiresPlainVideoItems'],
|
||||
'requiresPlainFolders': !exists(json, 'RequiresPlainFolders') ? undefined : json['RequiresPlainFolders'],
|
||||
'enableMSMediaReceiverRegistrar': !exists(json, 'EnableMSMediaReceiverRegistrar') ? undefined : json['EnableMSMediaReceiverRegistrar'],
|
||||
'ignoreTranscodeByteRangeRequests': !exists(json, 'IgnoreTranscodeByteRangeRequests') ? undefined : json['IgnoreTranscodeByteRangeRequests'],
|
||||
'xmlRootAttributes': !exists(json, 'XmlRootAttributes') ? undefined : ((json['XmlRootAttributes'] as Array<any>).map(XmlAttributeFromJSON)),
|
||||
'directPlayProfiles': !exists(json, 'DirectPlayProfiles') ? undefined : ((json['DirectPlayProfiles'] as Array<any>).map(DirectPlayProfileFromJSON)),
|
||||
'transcodingProfiles': !exists(json, 'TranscodingProfiles') ? undefined : ((json['TranscodingProfiles'] as Array<any>).map(TranscodingProfileFromJSON)),
|
||||
'containerProfiles': !exists(json, 'ContainerProfiles') ? undefined : ((json['ContainerProfiles'] as Array<any>).map(ContainerProfileFromJSON)),
|
||||
'codecProfiles': !exists(json, 'CodecProfiles') ? undefined : ((json['CodecProfiles'] as Array<any>).map(CodecProfileFromJSON)),
|
||||
'responseProfiles': !exists(json, 'ResponseProfiles') ? undefined : ((json['ResponseProfiles'] as Array<any>).map(ResponseProfileFromJSON)),
|
||||
'subtitleProfiles': !exists(json, 'SubtitleProfiles') ? undefined : ((json['SubtitleProfiles'] as Array<any>).map(SubtitleProfileFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateProfileRequestToJSON(value?: CreateProfileRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Id': value.id,
|
||||
'Identification': DeviceProfileIdentificationToJSON(value.identification),
|
||||
'FriendlyName': value.friendlyName,
|
||||
'Manufacturer': value.manufacturer,
|
||||
'ManufacturerUrl': value.manufacturerUrl,
|
||||
'ModelName': value.modelName,
|
||||
'ModelDescription': value.modelDescription,
|
||||
'ModelNumber': value.modelNumber,
|
||||
'ModelUrl': value.modelUrl,
|
||||
'SerialNumber': value.serialNumber,
|
||||
'EnableAlbumArtInDidl': value.enableAlbumArtInDidl,
|
||||
'EnableSingleAlbumArtLimit': value.enableSingleAlbumArtLimit,
|
||||
'EnableSingleSubtitleLimit': value.enableSingleSubtitleLimit,
|
||||
'SupportedMediaTypes': value.supportedMediaTypes,
|
||||
'UserId': value.userId,
|
||||
'AlbumArtPn': value.albumArtPn,
|
||||
'MaxAlbumArtWidth': value.maxAlbumArtWidth,
|
||||
'MaxAlbumArtHeight': value.maxAlbumArtHeight,
|
||||
'MaxIconWidth': value.maxIconWidth,
|
||||
'MaxIconHeight': value.maxIconHeight,
|
||||
'MaxStreamingBitrate': value.maxStreamingBitrate,
|
||||
'MaxStaticBitrate': value.maxStaticBitrate,
|
||||
'MusicStreamingTranscodingBitrate': value.musicStreamingTranscodingBitrate,
|
||||
'MaxStaticMusicBitrate': value.maxStaticMusicBitrate,
|
||||
'SonyAggregationFlags': value.sonyAggregationFlags,
|
||||
'ProtocolInfo': value.protocolInfo,
|
||||
'TimelineOffsetSeconds': value.timelineOffsetSeconds,
|
||||
'RequiresPlainVideoItems': value.requiresPlainVideoItems,
|
||||
'RequiresPlainFolders': value.requiresPlainFolders,
|
||||
'EnableMSMediaReceiverRegistrar': value.enableMSMediaReceiverRegistrar,
|
||||
'IgnoreTranscodeByteRangeRequests': value.ignoreTranscodeByteRangeRequests,
|
||||
'XmlRootAttributes': value.xmlRootAttributes === undefined ? undefined : ((value.xmlRootAttributes as Array<any>).map(XmlAttributeToJSON)),
|
||||
'DirectPlayProfiles': value.directPlayProfiles === undefined ? undefined : ((value.directPlayProfiles as Array<any>).map(DirectPlayProfileToJSON)),
|
||||
'TranscodingProfiles': value.transcodingProfiles === undefined ? undefined : ((value.transcodingProfiles as Array<any>).map(TranscodingProfileToJSON)),
|
||||
'ContainerProfiles': value.containerProfiles === undefined ? undefined : ((value.containerProfiles as Array<any>).map(ContainerProfileToJSON)),
|
||||
'CodecProfiles': value.codecProfiles === undefined ? undefined : ((value.codecProfiles as Array<any>).map(CodecProfileToJSON)),
|
||||
'ResponseProfiles': value.responseProfiles === undefined ? undefined : ((value.responseProfiles as Array<any>).map(ResponseProfileToJSON)),
|
||||
'SubtitleProfiles': value.subtitleProfiles === undefined ? undefined : ((value.subtitleProfiles as Array<any>).map(SubtitleProfileToJSON)),
|
||||
};
|
||||
}
|
||||
|
356
server/jellyfin/models/CreateSeriesTimerRequest.ts
Normal file
356
server/jellyfin/models/CreateSeriesTimerRequest.ts
Normal file
@ -0,0 +1,356 @@
|
||||
/* 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';
|
||||
import type { DayOfWeek } from './DayOfWeek';
|
||||
import {
|
||||
DayOfWeekFromJSON,
|
||||
DayOfWeekFromJSONTyped,
|
||||
DayOfWeekToJSON,
|
||||
} from './DayOfWeek';
|
||||
import type { DayPattern } from './DayPattern';
|
||||
import {
|
||||
DayPatternFromJSON,
|
||||
DayPatternFromJSONTyped,
|
||||
DayPatternToJSON,
|
||||
} from './DayPattern';
|
||||
import type { KeepUntil } from './KeepUntil';
|
||||
import {
|
||||
KeepUntilFromJSON,
|
||||
KeepUntilFromJSONTyped,
|
||||
KeepUntilToJSON,
|
||||
} from './KeepUntil';
|
||||
|
||||
/**
|
||||
* Class SeriesTimerInfoDto.
|
||||
* @export
|
||||
* @interface CreateSeriesTimerRequest
|
||||
*/
|
||||
export interface CreateSeriesTimerRequest {
|
||||
/**
|
||||
* Gets or sets the Id of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
* Gets or sets the server identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
serverId?: string | null;
|
||||
/**
|
||||
* Gets or sets the external identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
externalId?: string | null;
|
||||
/**
|
||||
* Gets or sets the channel id of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
channelId?: string;
|
||||
/**
|
||||
* Gets or sets the external channel identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
externalChannelId?: string | null;
|
||||
/**
|
||||
* Gets or sets the channel name of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
channelName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
channelPrimaryImageTag?: string | null;
|
||||
/**
|
||||
* Gets or sets the program identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
programId?: string | null;
|
||||
/**
|
||||
* Gets or sets the external program identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
externalProgramId?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the description of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
overview?: string | null;
|
||||
/**
|
||||
* Gets or sets the start date of the recording, in UTC.
|
||||
* @type {Date}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
* Gets or sets the end date of the recording, in UTC.
|
||||
* @type {Date}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
endDate?: Date;
|
||||
/**
|
||||
* Gets or sets the name of the service.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
serviceName?: string | null;
|
||||
/**
|
||||
* Gets or sets the priority.
|
||||
* @type {number}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
* Gets or sets the pre padding seconds.
|
||||
* @type {number}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
prePaddingSeconds?: number;
|
||||
/**
|
||||
* Gets or sets the post padding seconds.
|
||||
* @type {number}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
postPaddingSeconds?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance is pre padding required.
|
||||
* @type {boolean}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
isPrePaddingRequired?: boolean;
|
||||
/**
|
||||
* Gets or sets the Id of the Parent that has a backdrop if the item does not have one.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
parentBackdropItemId?: string | null;
|
||||
/**
|
||||
* Gets or sets the parent backdrop image tags.
|
||||
* @type {Array<string>}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
parentBackdropImageTags?: Array<string> | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance is post padding required.
|
||||
* @type {boolean}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
isPostPaddingRequired?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {KeepUntil}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
keepUntil?: KeepUntil;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [record any time].
|
||||
* @type {boolean}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
recordAnyTime?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
skipEpisodesInLibrary?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [record any channel].
|
||||
* @type {boolean}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
recordAnyChannel?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
keepUpTo?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [record new only].
|
||||
* @type {boolean}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
recordNewOnly?: boolean;
|
||||
/**
|
||||
* Gets or sets the days.
|
||||
* @type {Array<DayOfWeek>}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
days?: Array<DayOfWeek> | null;
|
||||
/**
|
||||
*
|
||||
* @type {DayPattern}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
dayPattern?: DayPattern | null;
|
||||
/**
|
||||
* Gets or sets the image tags.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
imageTags?: { [key: string]: string; } | null;
|
||||
/**
|
||||
* Gets or sets the parent thumb item id.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
parentThumbItemId?: string | null;
|
||||
/**
|
||||
* Gets or sets the parent thumb image tag.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
parentThumbImageTag?: string | null;
|
||||
/**
|
||||
* Gets or sets the parent primary image item identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
parentPrimaryImageItemId?: string | null;
|
||||
/**
|
||||
* Gets or sets the parent primary image tag.
|
||||
* @type {string}
|
||||
* @memberof CreateSeriesTimerRequest
|
||||
*/
|
||||
parentPrimaryImageTag?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateSeriesTimerRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateSeriesTimerRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreateSeriesTimerRequestFromJSON(json: any): CreateSeriesTimerRequest {
|
||||
return CreateSeriesTimerRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateSeriesTimerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSeriesTimerRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||||
'serverId': !exists(json, 'ServerId') ? undefined : json['ServerId'],
|
||||
'externalId': !exists(json, 'ExternalId') ? undefined : json['ExternalId'],
|
||||
'channelId': !exists(json, 'ChannelId') ? undefined : json['ChannelId'],
|
||||
'externalChannelId': !exists(json, 'ExternalChannelId') ? undefined : json['ExternalChannelId'],
|
||||
'channelName': !exists(json, 'ChannelName') ? undefined : json['ChannelName'],
|
||||
'channelPrimaryImageTag': !exists(json, 'ChannelPrimaryImageTag') ? undefined : json['ChannelPrimaryImageTag'],
|
||||
'programId': !exists(json, 'ProgramId') ? undefined : json['ProgramId'],
|
||||
'externalProgramId': !exists(json, 'ExternalProgramId') ? undefined : json['ExternalProgramId'],
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'overview': !exists(json, 'Overview') ? undefined : json['Overview'],
|
||||
'startDate': !exists(json, 'StartDate') ? undefined : (new Date(json['StartDate'])),
|
||||
'endDate': !exists(json, 'EndDate') ? undefined : (new Date(json['EndDate'])),
|
||||
'serviceName': !exists(json, 'ServiceName') ? undefined : json['ServiceName'],
|
||||
'priority': !exists(json, 'Priority') ? undefined : json['Priority'],
|
||||
'prePaddingSeconds': !exists(json, 'PrePaddingSeconds') ? undefined : json['PrePaddingSeconds'],
|
||||
'postPaddingSeconds': !exists(json, 'PostPaddingSeconds') ? undefined : json['PostPaddingSeconds'],
|
||||
'isPrePaddingRequired': !exists(json, 'IsPrePaddingRequired') ? undefined : json['IsPrePaddingRequired'],
|
||||
'parentBackdropItemId': !exists(json, 'ParentBackdropItemId') ? undefined : json['ParentBackdropItemId'],
|
||||
'parentBackdropImageTags': !exists(json, 'ParentBackdropImageTags') ? undefined : json['ParentBackdropImageTags'],
|
||||
'isPostPaddingRequired': !exists(json, 'IsPostPaddingRequired') ? undefined : json['IsPostPaddingRequired'],
|
||||
'keepUntil': !exists(json, 'KeepUntil') ? undefined : KeepUntilFromJSON(json['KeepUntil']),
|
||||
'recordAnyTime': !exists(json, 'RecordAnyTime') ? undefined : json['RecordAnyTime'],
|
||||
'skipEpisodesInLibrary': !exists(json, 'SkipEpisodesInLibrary') ? undefined : json['SkipEpisodesInLibrary'],
|
||||
'recordAnyChannel': !exists(json, 'RecordAnyChannel') ? undefined : json['RecordAnyChannel'],
|
||||
'keepUpTo': !exists(json, 'KeepUpTo') ? undefined : json['KeepUpTo'],
|
||||
'recordNewOnly': !exists(json, 'RecordNewOnly') ? undefined : json['RecordNewOnly'],
|
||||
'days': !exists(json, 'Days') ? undefined : (json['Days'] === null ? null : (json['Days'] as Array<any>).map(DayOfWeekFromJSON)),
|
||||
'dayPattern': !exists(json, 'DayPattern') ? undefined : DayPatternFromJSON(json['DayPattern']),
|
||||
'imageTags': !exists(json, 'ImageTags') ? undefined : json['ImageTags'],
|
||||
'parentThumbItemId': !exists(json, 'ParentThumbItemId') ? undefined : json['ParentThumbItemId'],
|
||||
'parentThumbImageTag': !exists(json, 'ParentThumbImageTag') ? undefined : json['ParentThumbImageTag'],
|
||||
'parentPrimaryImageItemId': !exists(json, 'ParentPrimaryImageItemId') ? undefined : json['ParentPrimaryImageItemId'],
|
||||
'parentPrimaryImageTag': !exists(json, 'ParentPrimaryImageTag') ? undefined : json['ParentPrimaryImageTag'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateSeriesTimerRequestToJSON(value?: CreateSeriesTimerRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'Type': value.type,
|
||||
'ServerId': value.serverId,
|
||||
'ExternalId': value.externalId,
|
||||
'ChannelId': value.channelId,
|
||||
'ExternalChannelId': value.externalChannelId,
|
||||
'ChannelName': value.channelName,
|
||||
'ChannelPrimaryImageTag': value.channelPrimaryImageTag,
|
||||
'ProgramId': value.programId,
|
||||
'ExternalProgramId': value.externalProgramId,
|
||||
'Name': value.name,
|
||||
'Overview': value.overview,
|
||||
'StartDate': value.startDate === undefined ? undefined : (value.startDate.toISOString()),
|
||||
'EndDate': value.endDate === undefined ? undefined : (value.endDate.toISOString()),
|
||||
'ServiceName': value.serviceName,
|
||||
'Priority': value.priority,
|
||||
'PrePaddingSeconds': value.prePaddingSeconds,
|
||||
'PostPaddingSeconds': value.postPaddingSeconds,
|
||||
'IsPrePaddingRequired': value.isPrePaddingRequired,
|
||||
'ParentBackdropItemId': value.parentBackdropItemId,
|
||||
'ParentBackdropImageTags': value.parentBackdropImageTags,
|
||||
'IsPostPaddingRequired': value.isPostPaddingRequired,
|
||||
'KeepUntil': KeepUntilToJSON(value.keepUntil),
|
||||
'RecordAnyTime': value.recordAnyTime,
|
||||
'SkipEpisodesInLibrary': value.skipEpisodesInLibrary,
|
||||
'RecordAnyChannel': value.recordAnyChannel,
|
||||
'KeepUpTo': value.keepUpTo,
|
||||
'RecordNewOnly': value.recordNewOnly,
|
||||
'Days': value.days === undefined ? undefined : (value.days === null ? null : (value.days as Array<any>).map(DayOfWeekToJSON)),
|
||||
'DayPattern': DayPatternToJSON(value.dayPattern),
|
||||
'ImageTags': value.imageTags,
|
||||
'ParentThumbItemId': value.parentThumbItemId,
|
||||
'ParentThumbImageTag': value.parentThumbImageTag,
|
||||
'ParentPrimaryImageItemId': value.parentPrimaryImageItemId,
|
||||
'ParentPrimaryImageTag': value.parentPrimaryImageTag,
|
||||
};
|
||||
}
|
||||
|
300
server/jellyfin/models/CreateTimerRequest.ts
Normal file
300
server/jellyfin/models/CreateTimerRequest.ts
Normal file
@ -0,0 +1,300 @@
|
||||
/* 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';
|
||||
import type { KeepUntil } from './KeepUntil';
|
||||
import {
|
||||
KeepUntilFromJSON,
|
||||
KeepUntilFromJSONTyped,
|
||||
KeepUntilToJSON,
|
||||
} from './KeepUntil';
|
||||
import type { RecordingStatus } from './RecordingStatus';
|
||||
import {
|
||||
RecordingStatusFromJSON,
|
||||
RecordingStatusFromJSONTyped,
|
||||
RecordingStatusToJSON,
|
||||
} from './RecordingStatus';
|
||||
import type { TimerInfoDtoProgramInfo } from './TimerInfoDtoProgramInfo';
|
||||
import {
|
||||
TimerInfoDtoProgramInfoFromJSON,
|
||||
TimerInfoDtoProgramInfoFromJSONTyped,
|
||||
TimerInfoDtoProgramInfoToJSON,
|
||||
} from './TimerInfoDtoProgramInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CreateTimerRequest
|
||||
*/
|
||||
export interface CreateTimerRequest {
|
||||
/**
|
||||
* Gets or sets the Id of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
* Gets or sets the server identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
serverId?: string | null;
|
||||
/**
|
||||
* Gets or sets the external identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
externalId?: string | null;
|
||||
/**
|
||||
* Gets or sets the channel id of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
channelId?: string;
|
||||
/**
|
||||
* Gets or sets the external channel identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
externalChannelId?: string | null;
|
||||
/**
|
||||
* Gets or sets the channel name of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
channelName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
channelPrimaryImageTag?: string | null;
|
||||
/**
|
||||
* Gets or sets the program identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
programId?: string | null;
|
||||
/**
|
||||
* Gets or sets the external program identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
externalProgramId?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the description of the recording.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
overview?: string | null;
|
||||
/**
|
||||
* Gets or sets the start date of the recording, in UTC.
|
||||
* @type {Date}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
* Gets or sets the end date of the recording, in UTC.
|
||||
* @type {Date}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
endDate?: Date;
|
||||
/**
|
||||
* Gets or sets the name of the service.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
serviceName?: string | null;
|
||||
/**
|
||||
* Gets or sets the priority.
|
||||
* @type {number}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
* Gets or sets the pre padding seconds.
|
||||
* @type {number}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
prePaddingSeconds?: number;
|
||||
/**
|
||||
* Gets or sets the post padding seconds.
|
||||
* @type {number}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
postPaddingSeconds?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance is pre padding required.
|
||||
* @type {boolean}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
isPrePaddingRequired?: boolean;
|
||||
/**
|
||||
* Gets or sets the Id of the Parent that has a backdrop if the item does not have one.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
parentBackdropItemId?: string | null;
|
||||
/**
|
||||
* Gets or sets the parent backdrop image tags.
|
||||
* @type {Array<string>}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
parentBackdropImageTags?: Array<string> | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether this instance is post padding required.
|
||||
* @type {boolean}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
isPostPaddingRequired?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {KeepUntil}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
keepUntil?: KeepUntil;
|
||||
/**
|
||||
*
|
||||
* @type {RecordingStatus}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
status?: RecordingStatus;
|
||||
/**
|
||||
* Gets or sets the series timer identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
seriesTimerId?: string | null;
|
||||
/**
|
||||
* Gets or sets the external series timer identifier.
|
||||
* @type {string}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
externalSeriesTimerId?: string | null;
|
||||
/**
|
||||
* Gets or sets the run time ticks.
|
||||
* @type {number}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
runTimeTicks?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {TimerInfoDtoProgramInfo}
|
||||
* @memberof CreateTimerRequest
|
||||
*/
|
||||
programInfo?: TimerInfoDtoProgramInfo | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateTimerRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateTimerRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreateTimerRequestFromJSON(json: any): CreateTimerRequest {
|
||||
return CreateTimerRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateTimerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTimerRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||||
'serverId': !exists(json, 'ServerId') ? undefined : json['ServerId'],
|
||||
'externalId': !exists(json, 'ExternalId') ? undefined : json['ExternalId'],
|
||||
'channelId': !exists(json, 'ChannelId') ? undefined : json['ChannelId'],
|
||||
'externalChannelId': !exists(json, 'ExternalChannelId') ? undefined : json['ExternalChannelId'],
|
||||
'channelName': !exists(json, 'ChannelName') ? undefined : json['ChannelName'],
|
||||
'channelPrimaryImageTag': !exists(json, 'ChannelPrimaryImageTag') ? undefined : json['ChannelPrimaryImageTag'],
|
||||
'programId': !exists(json, 'ProgramId') ? undefined : json['ProgramId'],
|
||||
'externalProgramId': !exists(json, 'ExternalProgramId') ? undefined : json['ExternalProgramId'],
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'overview': !exists(json, 'Overview') ? undefined : json['Overview'],
|
||||
'startDate': !exists(json, 'StartDate') ? undefined : (new Date(json['StartDate'])),
|
||||
'endDate': !exists(json, 'EndDate') ? undefined : (new Date(json['EndDate'])),
|
||||
'serviceName': !exists(json, 'ServiceName') ? undefined : json['ServiceName'],
|
||||
'priority': !exists(json, 'Priority') ? undefined : json['Priority'],
|
||||
'prePaddingSeconds': !exists(json, 'PrePaddingSeconds') ? undefined : json['PrePaddingSeconds'],
|
||||
'postPaddingSeconds': !exists(json, 'PostPaddingSeconds') ? undefined : json['PostPaddingSeconds'],
|
||||
'isPrePaddingRequired': !exists(json, 'IsPrePaddingRequired') ? undefined : json['IsPrePaddingRequired'],
|
||||
'parentBackdropItemId': !exists(json, 'ParentBackdropItemId') ? undefined : json['ParentBackdropItemId'],
|
||||
'parentBackdropImageTags': !exists(json, 'ParentBackdropImageTags') ? undefined : json['ParentBackdropImageTags'],
|
||||
'isPostPaddingRequired': !exists(json, 'IsPostPaddingRequired') ? undefined : json['IsPostPaddingRequired'],
|
||||
'keepUntil': !exists(json, 'KeepUntil') ? undefined : KeepUntilFromJSON(json['KeepUntil']),
|
||||
'status': !exists(json, 'Status') ? undefined : RecordingStatusFromJSON(json['Status']),
|
||||
'seriesTimerId': !exists(json, 'SeriesTimerId') ? undefined : json['SeriesTimerId'],
|
||||
'externalSeriesTimerId': !exists(json, 'ExternalSeriesTimerId') ? undefined : json['ExternalSeriesTimerId'],
|
||||
'runTimeTicks': !exists(json, 'RunTimeTicks') ? undefined : json['RunTimeTicks'],
|
||||
'programInfo': !exists(json, 'ProgramInfo') ? undefined : TimerInfoDtoProgramInfoFromJSON(json['ProgramInfo']),
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateTimerRequestToJSON(value?: CreateTimerRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'Type': value.type,
|
||||
'ServerId': value.serverId,
|
||||
'ExternalId': value.externalId,
|
||||
'ChannelId': value.channelId,
|
||||
'ExternalChannelId': value.externalChannelId,
|
||||
'ChannelName': value.channelName,
|
||||
'ChannelPrimaryImageTag': value.channelPrimaryImageTag,
|
||||
'ProgramId': value.programId,
|
||||
'ExternalProgramId': value.externalProgramId,
|
||||
'Name': value.name,
|
||||
'Overview': value.overview,
|
||||
'StartDate': value.startDate === undefined ? undefined : (value.startDate.toISOString()),
|
||||
'EndDate': value.endDate === undefined ? undefined : (value.endDate.toISOString()),
|
||||
'ServiceName': value.serviceName,
|
||||
'Priority': value.priority,
|
||||
'PrePaddingSeconds': value.prePaddingSeconds,
|
||||
'PostPaddingSeconds': value.postPaddingSeconds,
|
||||
'IsPrePaddingRequired': value.isPrePaddingRequired,
|
||||
'ParentBackdropItemId': value.parentBackdropItemId,
|
||||
'ParentBackdropImageTags': value.parentBackdropImageTags,
|
||||
'IsPostPaddingRequired': value.isPostPaddingRequired,
|
||||
'KeepUntil': KeepUntilToJSON(value.keepUntil),
|
||||
'Status': RecordingStatusToJSON(value.status),
|
||||
'SeriesTimerId': value.seriesTimerId,
|
||||
'ExternalSeriesTimerId': value.externalSeriesTimerId,
|
||||
'RunTimeTicks': value.runTimeTicks,
|
||||
'ProgramInfo': TimerInfoDtoProgramInfoToJSON(value.programInfo),
|
||||
};
|
||||
}
|
||||
|
73
server/jellyfin/models/CreateUserByName.ts
Normal file
73
server/jellyfin/models/CreateUserByName.ts
Normal file
@ -0,0 +1,73 @@
|
||||
/* 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 create user by name request body.
|
||||
* @export
|
||||
* @interface CreateUserByName
|
||||
*/
|
||||
export interface CreateUserByName {
|
||||
/**
|
||||
* Gets or sets the username.
|
||||
* @type {string}
|
||||
* @memberof CreateUserByName
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the password.
|
||||
* @type {string}
|
||||
* @memberof CreateUserByName
|
||||
*/
|
||||
password?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateUserByName interface.
|
||||
*/
|
||||
export function instanceOfCreateUserByName(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreateUserByNameFromJSON(json: any): CreateUserByName {
|
||||
return CreateUserByNameFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateUserByNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserByName {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'password': !exists(json, 'Password') ? undefined : json['Password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateUserByNameToJSON(value?: CreateUserByName | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Password': value.password,
|
||||
};
|
||||
}
|
||||
|
73
server/jellyfin/models/CreateUserByNameRequest.ts
Normal file
73
server/jellyfin/models/CreateUserByNameRequest.ts
Normal file
@ -0,0 +1,73 @@
|
||||
/* 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 create user by name request body.
|
||||
* @export
|
||||
* @interface CreateUserByNameRequest
|
||||
*/
|
||||
export interface CreateUserByNameRequest {
|
||||
/**
|
||||
* Gets or sets the username.
|
||||
* @type {string}
|
||||
* @memberof CreateUserByNameRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the password.
|
||||
* @type {string}
|
||||
* @memberof CreateUserByNameRequest
|
||||
*/
|
||||
password?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateUserByNameRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateUserByNameRequest(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CreateUserByNameRequestFromJSON(json: any): CreateUserByNameRequest {
|
||||
return CreateUserByNameRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateUserByNameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserByNameRequest {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'password': !exists(json, 'Password') ? undefined : json['Password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateUserByNameRequestToJSON(value?: CreateUserByNameRequest | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Password': value.password,
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/CultureDto.ts
Normal file
96
server/jellyfin/models/CultureDto.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Class CultureDto.
|
||||
* @export
|
||||
* @interface CultureDto
|
||||
*/
|
||||
export interface CultureDto {
|
||||
/**
|
||||
* Gets the name.
|
||||
* @type {string}
|
||||
* @memberof CultureDto
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Gets the display name.
|
||||
* @type {string}
|
||||
* @memberof CultureDto
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Gets the name of the two letter ISO language.
|
||||
* @type {string}
|
||||
* @memberof CultureDto
|
||||
*/
|
||||
twoLetterISOLanguageName?: string;
|
||||
/**
|
||||
* Gets the name of the three letter ISO language.
|
||||
* @type {string}
|
||||
* @memberof CultureDto
|
||||
*/
|
||||
readonly threeLetterISOLanguageName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof CultureDto
|
||||
*/
|
||||
threeLetterISOLanguageNames?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CultureDto interface.
|
||||
*/
|
||||
export function instanceOfCultureDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function CultureDtoFromJSON(json: any): CultureDto {
|
||||
return CultureDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CultureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CultureDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'displayName': !exists(json, 'DisplayName') ? undefined : json['DisplayName'],
|
||||
'twoLetterISOLanguageName': !exists(json, 'TwoLetterISOLanguageName') ? undefined : json['TwoLetterISOLanguageName'],
|
||||
'threeLetterISOLanguageName': !exists(json, 'ThreeLetterISOLanguageName') ? undefined : json['ThreeLetterISOLanguageName'],
|
||||
'threeLetterISOLanguageNames': !exists(json, 'ThreeLetterISOLanguageNames') ? undefined : json['ThreeLetterISOLanguageNames'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CultureDtoToJSON(value?: CultureDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'DisplayName': value.displayName,
|
||||
'TwoLetterISOLanguageName': value.twoLetterISOLanguageName,
|
||||
'ThreeLetterISOLanguageNames': value.threeLetterISOLanguageNames,
|
||||
};
|
||||
}
|
||||
|
43
server/jellyfin/models/DayOfWeek.ts
Normal file
43
server/jellyfin/models/DayOfWeek.ts
Normal file
@ -0,0 +1,43 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const DayOfWeek = {
|
||||
Sunday: 'Sunday',
|
||||
Monday: 'Monday',
|
||||
Tuesday: 'Tuesday',
|
||||
Wednesday: 'Wednesday',
|
||||
Thursday: 'Thursday',
|
||||
Friday: 'Friday',
|
||||
Saturday: 'Saturday'
|
||||
} as const;
|
||||
export type DayOfWeek = typeof DayOfWeek[keyof typeof DayOfWeek];
|
||||
|
||||
|
||||
export function DayOfWeekFromJSON(json: any): DayOfWeek {
|
||||
return DayOfWeekFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DayOfWeekFromJSONTyped(json: any, ignoreDiscriminator: boolean): DayOfWeek {
|
||||
return json as DayOfWeek;
|
||||
}
|
||||
|
||||
export function DayOfWeekToJSON(value?: DayOfWeek | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
39
server/jellyfin/models/DayPattern.ts
Normal file
39
server/jellyfin/models/DayPattern.ts
Normal file
@ -0,0 +1,39 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const DayPattern = {
|
||||
Daily: 'Daily',
|
||||
Weekdays: 'Weekdays',
|
||||
Weekends: 'Weekends'
|
||||
} as const;
|
||||
export type DayPattern = typeof DayPattern[keyof typeof DayPattern];
|
||||
|
||||
|
||||
export function DayPatternFromJSON(json: any): DayPattern {
|
||||
return DayPatternFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DayPatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): DayPattern {
|
||||
return json as DayPattern;
|
||||
}
|
||||
|
||||
export function DayPatternToJSON(value?: DayPattern | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
65
server/jellyfin/models/DefaultDirectoryBrowserInfoDto.ts
Normal file
65
server/jellyfin/models/DefaultDirectoryBrowserInfoDto.ts
Normal file
@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Default directory browser info.
|
||||
* @export
|
||||
* @interface DefaultDirectoryBrowserInfoDto
|
||||
*/
|
||||
export interface DefaultDirectoryBrowserInfoDto {
|
||||
/**
|
||||
* Gets or sets the path.
|
||||
* @type {string}
|
||||
* @memberof DefaultDirectoryBrowserInfoDto
|
||||
*/
|
||||
path?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DefaultDirectoryBrowserInfoDto interface.
|
||||
*/
|
||||
export function instanceOfDefaultDirectoryBrowserInfoDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DefaultDirectoryBrowserInfoDtoFromJSON(json: any): DefaultDirectoryBrowserInfoDto {
|
||||
return DefaultDirectoryBrowserInfoDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DefaultDirectoryBrowserInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefaultDirectoryBrowserInfoDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DefaultDirectoryBrowserInfoDtoToJSON(value?: DefaultDirectoryBrowserInfoDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Path': value.path,
|
||||
};
|
||||
}
|
||||
|
136
server/jellyfin/models/DeviceIdentification.ts
Normal file
136
server/jellyfin/models/DeviceIdentification.ts
Normal file
@ -0,0 +1,136 @@
|
||||
/* 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';
|
||||
import type { HttpHeaderInfo } from './HttpHeaderInfo';
|
||||
import {
|
||||
HttpHeaderInfoFromJSON,
|
||||
HttpHeaderInfoFromJSONTyped,
|
||||
HttpHeaderInfoToJSON,
|
||||
} from './HttpHeaderInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DeviceIdentification
|
||||
*/
|
||||
export interface DeviceIdentification {
|
||||
/**
|
||||
* Gets or sets the name of the friendly.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
friendlyName?: string;
|
||||
/**
|
||||
* Gets or sets the model number.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
modelNumber?: string;
|
||||
/**
|
||||
* Gets or sets the serial number.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
serialNumber?: string;
|
||||
/**
|
||||
* Gets or sets the name of the model.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
modelName?: string;
|
||||
/**
|
||||
* Gets or sets the model description.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
modelDescription?: string;
|
||||
/**
|
||||
* Gets or sets the model URL.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
modelUrl?: string;
|
||||
/**
|
||||
* Gets or sets the manufacturer.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
manufacturer?: string;
|
||||
/**
|
||||
* Gets or sets the manufacturer URL.
|
||||
* @type {string}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
manufacturerUrl?: string;
|
||||
/**
|
||||
* Gets or sets the headers.
|
||||
* @type {Array<HttpHeaderInfo>}
|
||||
* @memberof DeviceIdentification
|
||||
*/
|
||||
headers?: Array<HttpHeaderInfo>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceIdentification interface.
|
||||
*/
|
||||
export function instanceOfDeviceIdentification(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceIdentificationFromJSON(json: any): DeviceIdentification {
|
||||
return DeviceIdentificationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceIdentificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceIdentification {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
|
||||
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
|
||||
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
|
||||
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
|
||||
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
|
||||
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
|
||||
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
|
||||
'headers': !exists(json, 'Headers') ? undefined : ((json['Headers'] as Array<any>).map(HttpHeaderInfoFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceIdentificationToJSON(value?: DeviceIdentification | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'FriendlyName': value.friendlyName,
|
||||
'ModelNumber': value.modelNumber,
|
||||
'SerialNumber': value.serialNumber,
|
||||
'ModelName': value.modelName,
|
||||
'ModelDescription': value.modelDescription,
|
||||
'ModelUrl': value.modelUrl,
|
||||
'Manufacturer': value.manufacturer,
|
||||
'ManufacturerUrl': value.manufacturerUrl,
|
||||
'Headers': value.headers === undefined ? undefined : ((value.headers as Array<any>).map(HttpHeaderInfoToJSON)),
|
||||
};
|
||||
}
|
||||
|
144
server/jellyfin/models/DeviceInfo.ts
Normal file
144
server/jellyfin/models/DeviceInfo.ts
Normal file
@ -0,0 +1,144 @@
|
||||
/* 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';
|
||||
import type { DeviceInfoCapabilities } from './DeviceInfoCapabilities';
|
||||
import {
|
||||
DeviceInfoCapabilitiesFromJSON,
|
||||
DeviceInfoCapabilitiesFromJSONTyped,
|
||||
DeviceInfoCapabilitiesToJSON,
|
||||
} from './DeviceInfoCapabilities';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DeviceInfo
|
||||
*/
|
||||
export interface DeviceInfo {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the access token.
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
* Gets or sets the identifier.
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Gets or sets the last name of the user.
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
lastUserName?: string | null;
|
||||
/**
|
||||
* Gets or sets the name of the application.
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
appName?: string | null;
|
||||
/**
|
||||
* Gets or sets the application version.
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
appVersion?: string | null;
|
||||
/**
|
||||
* Gets or sets the last user identifier.
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
lastUserId?: string;
|
||||
/**
|
||||
* Gets or sets the date last modified.
|
||||
* @type {Date}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
dateLastActivity?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {DeviceInfoCapabilities}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
capabilities?: DeviceInfoCapabilities | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeviceInfo
|
||||
*/
|
||||
iconUrl?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceInfo interface.
|
||||
*/
|
||||
export function instanceOfDeviceInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceInfoFromJSON(json: any): DeviceInfo {
|
||||
return DeviceInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'accessToken': !exists(json, 'AccessToken') ? undefined : json['AccessToken'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'lastUserName': !exists(json, 'LastUserName') ? undefined : json['LastUserName'],
|
||||
'appName': !exists(json, 'AppName') ? undefined : json['AppName'],
|
||||
'appVersion': !exists(json, 'AppVersion') ? undefined : json['AppVersion'],
|
||||
'lastUserId': !exists(json, 'LastUserId') ? undefined : json['LastUserId'],
|
||||
'dateLastActivity': !exists(json, 'DateLastActivity') ? undefined : (new Date(json['DateLastActivity'])),
|
||||
'capabilities': !exists(json, 'Capabilities') ? undefined : DeviceInfoCapabilitiesFromJSON(json['Capabilities']),
|
||||
'iconUrl': !exists(json, 'IconUrl') ? undefined : json['IconUrl'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceInfoToJSON(value?: DeviceInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'AccessToken': value.accessToken,
|
||||
'Id': value.id,
|
||||
'LastUserName': value.lastUserName,
|
||||
'AppName': value.appName,
|
||||
'AppVersion': value.appVersion,
|
||||
'LastUserId': value.lastUserId,
|
||||
'DateLastActivity': value.dateLastActivity === undefined ? undefined : (value.dateLastActivity.toISOString()),
|
||||
'Capabilities': DeviceInfoCapabilitiesToJSON(value.capabilities),
|
||||
'IconUrl': value.iconUrl,
|
||||
};
|
||||
}
|
||||
|
150
server/jellyfin/models/DeviceInfoCapabilities.ts
Normal file
150
server/jellyfin/models/DeviceInfoCapabilities.ts
Normal file
@ -0,0 +1,150 @@
|
||||
/* 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';
|
||||
import type { ClientCapabilitiesDeviceProfile } from './ClientCapabilitiesDeviceProfile';
|
||||
import {
|
||||
ClientCapabilitiesDeviceProfileFromJSON,
|
||||
ClientCapabilitiesDeviceProfileFromJSONTyped,
|
||||
ClientCapabilitiesDeviceProfileToJSON,
|
||||
} from './ClientCapabilitiesDeviceProfile';
|
||||
import type { GeneralCommandType } from './GeneralCommandType';
|
||||
import {
|
||||
GeneralCommandTypeFromJSON,
|
||||
GeneralCommandTypeFromJSONTyped,
|
||||
GeneralCommandTypeToJSON,
|
||||
} from './GeneralCommandType';
|
||||
|
||||
/**
|
||||
* Gets or sets the capabilities.
|
||||
* @export
|
||||
* @interface DeviceInfoCapabilities
|
||||
*/
|
||||
export interface DeviceInfoCapabilities {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
playableMediaTypes?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<GeneralCommandType>}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
supportedCommands?: Array<GeneralCommandType> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
supportsMediaControl?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
supportsContentUploading?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
messageCallbackUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
supportsPersistentIdentifier?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
supportsSync?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {ClientCapabilitiesDeviceProfile}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
deviceProfile?: ClientCapabilitiesDeviceProfile | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
appStoreUrl?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeviceInfoCapabilities
|
||||
*/
|
||||
iconUrl?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceInfoCapabilities interface.
|
||||
*/
|
||||
export function instanceOfDeviceInfoCapabilities(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceInfoCapabilitiesFromJSON(json: any): DeviceInfoCapabilities {
|
||||
return DeviceInfoCapabilitiesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceInfoCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceInfoCapabilities {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'playableMediaTypes': !exists(json, 'PlayableMediaTypes') ? undefined : json['PlayableMediaTypes'],
|
||||
'supportedCommands': !exists(json, 'SupportedCommands') ? undefined : (json['SupportedCommands'] === null ? null : (json['SupportedCommands'] as Array<any>).map(GeneralCommandTypeFromJSON)),
|
||||
'supportsMediaControl': !exists(json, 'SupportsMediaControl') ? undefined : json['SupportsMediaControl'],
|
||||
'supportsContentUploading': !exists(json, 'SupportsContentUploading') ? undefined : json['SupportsContentUploading'],
|
||||
'messageCallbackUrl': !exists(json, 'MessageCallbackUrl') ? undefined : json['MessageCallbackUrl'],
|
||||
'supportsPersistentIdentifier': !exists(json, 'SupportsPersistentIdentifier') ? undefined : json['SupportsPersistentIdentifier'],
|
||||
'supportsSync': !exists(json, 'SupportsSync') ? undefined : json['SupportsSync'],
|
||||
'deviceProfile': !exists(json, 'DeviceProfile') ? undefined : ClientCapabilitiesDeviceProfileFromJSON(json['DeviceProfile']),
|
||||
'appStoreUrl': !exists(json, 'AppStoreUrl') ? undefined : json['AppStoreUrl'],
|
||||
'iconUrl': !exists(json, 'IconUrl') ? undefined : json['IconUrl'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceInfoCapabilitiesToJSON(value?: DeviceInfoCapabilities | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'PlayableMediaTypes': value.playableMediaTypes,
|
||||
'SupportedCommands': value.supportedCommands === undefined ? undefined : (value.supportedCommands === null ? null : (value.supportedCommands as Array<any>).map(GeneralCommandTypeToJSON)),
|
||||
'SupportsMediaControl': value.supportsMediaControl,
|
||||
'SupportsContentUploading': value.supportsContentUploading,
|
||||
'MessageCallbackUrl': value.messageCallbackUrl,
|
||||
'SupportsPersistentIdentifier': value.supportsPersistentIdentifier,
|
||||
'SupportsSync': value.supportsSync,
|
||||
'DeviceProfile': ClientCapabilitiesDeviceProfileToJSON(value.deviceProfile),
|
||||
'AppStoreUrl': value.appStoreUrl,
|
||||
'IconUrl': value.iconUrl,
|
||||
};
|
||||
}
|
||||
|
88
server/jellyfin/models/DeviceInfoQueryResult.ts
Normal file
88
server/jellyfin/models/DeviceInfoQueryResult.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { DeviceInfo } from './DeviceInfo';
|
||||
import {
|
||||
DeviceInfoFromJSON,
|
||||
DeviceInfoFromJSONTyped,
|
||||
DeviceInfoToJSON,
|
||||
} from './DeviceInfo';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DeviceInfoQueryResult
|
||||
*/
|
||||
export interface DeviceInfoQueryResult {
|
||||
/**
|
||||
* Gets or sets the items.
|
||||
* @type {Array<DeviceInfo>}
|
||||
* @memberof DeviceInfoQueryResult
|
||||
*/
|
||||
items?: Array<DeviceInfo> | null;
|
||||
/**
|
||||
* Gets or sets the total number of records available.
|
||||
* @type {number}
|
||||
* @memberof DeviceInfoQueryResult
|
||||
*/
|
||||
totalRecordCount?: number;
|
||||
/**
|
||||
* Gets or sets the index of the first record in Items.
|
||||
* @type {number}
|
||||
* @memberof DeviceInfoQueryResult
|
||||
*/
|
||||
startIndex?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceInfoQueryResult interface.
|
||||
*/
|
||||
export function instanceOfDeviceInfoQueryResult(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceInfoQueryResultFromJSON(json: any): DeviceInfoQueryResult {
|
||||
return DeviceInfoQueryResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceInfoQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceInfoQueryResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(DeviceInfoFromJSON)),
|
||||
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
|
||||
'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceInfoQueryResultToJSON(value?: DeviceInfoQueryResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array<any>).map(DeviceInfoToJSON)),
|
||||
'TotalRecordCount': value.totalRecordCount,
|
||||
'StartIndex': value.startIndex,
|
||||
};
|
||||
}
|
||||
|
80
server/jellyfin/models/DeviceOptions.ts
Normal file
80
server/jellyfin/models/DeviceOptions.ts
Normal file
@ -0,0 +1,80 @@
|
||||
/* 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';
|
||||
/**
|
||||
* An entity representing custom options for a device.
|
||||
* @export
|
||||
* @interface DeviceOptions
|
||||
*/
|
||||
export interface DeviceOptions {
|
||||
/**
|
||||
* Gets the id.
|
||||
* @type {number}
|
||||
* @memberof DeviceOptions
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
* Gets the device id.
|
||||
* @type {string}
|
||||
* @memberof DeviceOptions
|
||||
*/
|
||||
deviceId?: string;
|
||||
/**
|
||||
* Gets or sets the custom name.
|
||||
* @type {string}
|
||||
* @memberof DeviceOptions
|
||||
*/
|
||||
customName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceOptions interface.
|
||||
*/
|
||||
export function instanceOfDeviceOptions(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceOptionsFromJSON(json: any): DeviceOptions {
|
||||
return DeviceOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceOptions {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
|
||||
'customName': !exists(json, 'CustomName') ? undefined : json['CustomName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceOptionsToJSON(value?: DeviceOptions | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'DeviceId': value.deviceId,
|
||||
'CustomName': value.customName,
|
||||
};
|
||||
}
|
||||
|
81
server/jellyfin/models/DeviceOptionsDto.ts
Normal file
81
server/jellyfin/models/DeviceOptionsDto.ts
Normal file
@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
* A dto representing custom options for a device.
|
||||
* @export
|
||||
* @interface DeviceOptionsDto
|
||||
*/
|
||||
export interface DeviceOptionsDto {
|
||||
/**
|
||||
* Gets or sets the id.
|
||||
* @type {number}
|
||||
* @memberof DeviceOptionsDto
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Gets or sets the device id.
|
||||
* @type {string}
|
||||
* @memberof DeviceOptionsDto
|
||||
*/
|
||||
deviceId?: string | null;
|
||||
/**
|
||||
* Gets or sets the custom name.
|
||||
* @type {string}
|
||||
* @memberof DeviceOptionsDto
|
||||
*/
|
||||
customName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceOptionsDto interface.
|
||||
*/
|
||||
export function instanceOfDeviceOptionsDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceOptionsDtoFromJSON(json: any): DeviceOptionsDto {
|
||||
return DeviceOptionsDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceOptionsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceOptionsDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
|
||||
'customName': !exists(json, 'CustomName') ? undefined : json['CustomName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceOptionsDtoToJSON(value?: DeviceOptionsDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'DeviceId': value.deviceId,
|
||||
'CustomName': value.customName,
|
||||
};
|
||||
}
|
||||
|
423
server/jellyfin/models/DeviceProfile.ts
Normal file
423
server/jellyfin/models/DeviceProfile.ts
Normal file
@ -0,0 +1,423 @@
|
||||
/* 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';
|
||||
import type { CodecProfile } from './CodecProfile';
|
||||
import {
|
||||
CodecProfileFromJSON,
|
||||
CodecProfileFromJSONTyped,
|
||||
CodecProfileToJSON,
|
||||
} from './CodecProfile';
|
||||
import type { ContainerProfile } from './ContainerProfile';
|
||||
import {
|
||||
ContainerProfileFromJSON,
|
||||
ContainerProfileFromJSONTyped,
|
||||
ContainerProfileToJSON,
|
||||
} from './ContainerProfile';
|
||||
import type { DeviceProfileIdentification } from './DeviceProfileIdentification';
|
||||
import {
|
||||
DeviceProfileIdentificationFromJSON,
|
||||
DeviceProfileIdentificationFromJSONTyped,
|
||||
DeviceProfileIdentificationToJSON,
|
||||
} from './DeviceProfileIdentification';
|
||||
import type { DirectPlayProfile } from './DirectPlayProfile';
|
||||
import {
|
||||
DirectPlayProfileFromJSON,
|
||||
DirectPlayProfileFromJSONTyped,
|
||||
DirectPlayProfileToJSON,
|
||||
} from './DirectPlayProfile';
|
||||
import type { ResponseProfile } from './ResponseProfile';
|
||||
import {
|
||||
ResponseProfileFromJSON,
|
||||
ResponseProfileFromJSONTyped,
|
||||
ResponseProfileToJSON,
|
||||
} from './ResponseProfile';
|
||||
import type { SubtitleProfile } from './SubtitleProfile';
|
||||
import {
|
||||
SubtitleProfileFromJSON,
|
||||
SubtitleProfileFromJSONTyped,
|
||||
SubtitleProfileToJSON,
|
||||
} from './SubtitleProfile';
|
||||
import type { TranscodingProfile } from './TranscodingProfile';
|
||||
import {
|
||||
TranscodingProfileFromJSON,
|
||||
TranscodingProfileFromJSONTyped,
|
||||
TranscodingProfileToJSON,
|
||||
} from './TranscodingProfile';
|
||||
import type { XmlAttribute } from './XmlAttribute';
|
||||
import {
|
||||
XmlAttributeFromJSON,
|
||||
XmlAttributeFromJSONTyped,
|
||||
XmlAttributeToJSON,
|
||||
} from './XmlAttribute';
|
||||
|
||||
/**
|
||||
* A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
|
||||
* <br />
|
||||
* Specifically, it defines the supported <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles">containers</see> and
|
||||
* <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
|
||||
* the device is able to direct play (without transcoding or remuxing),
|
||||
* as well as which <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
|
||||
* @export
|
||||
* @interface DeviceProfile
|
||||
*/
|
||||
export interface DeviceProfile {
|
||||
/**
|
||||
* Gets or sets the name of this device profile.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the Id.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {DeviceProfileIdentification}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
identification?: DeviceProfileIdentification | null;
|
||||
/**
|
||||
* Gets or sets the friendly name of the device profile, which can be shown to users.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
friendlyName?: string | null;
|
||||
/**
|
||||
* Gets or sets the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
manufacturer?: string | null;
|
||||
/**
|
||||
* Gets or sets an url for the manufacturer of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
manufacturerUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the model name of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
modelName?: string | null;
|
||||
/**
|
||||
* Gets or sets the model description of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
modelDescription?: string | null;
|
||||
/**
|
||||
* Gets or sets the model number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
modelNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets the ModelUrl.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
modelUrl?: string | null;
|
||||
/**
|
||||
* Gets or sets the serial number of the device which this profile represents.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
serialNumber?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableAlbumArtInDidl.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
enableAlbumArtInDidl?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleAlbumArtLimit.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
enableSingleAlbumArtLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableSingleSubtitleLimit.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
enableSingleSubtitleLimit?: boolean;
|
||||
/**
|
||||
* Gets or sets the SupportedMediaTypes.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
supportedMediaTypes?: string;
|
||||
/**
|
||||
* Gets or sets the UserId.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
userId?: string | null;
|
||||
/**
|
||||
* Gets or sets the AlbumArtPn.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
albumArtPn?: string | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtWidth.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxAlbumArtWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the MaxAlbumArtHeight.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxAlbumArtHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed width of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxIconWidth?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed height of embedded icons.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxIconHeight?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for all streamed content.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxStreamingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxStaticBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for transcoded music streams.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
musicStreamingTranscodingBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
maxStaticMusicBitrate?: number | null;
|
||||
/**
|
||||
* Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
sonyAggregationFlags?: string | null;
|
||||
/**
|
||||
* Gets or sets the ProtocolInfo.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
protocolInfo?: string | null;
|
||||
/**
|
||||
* Gets or sets the TimelineOffsetSeconds.
|
||||
* @type {number}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
timelineOffsetSeconds?: number;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainVideoItems.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
requiresPlainVideoItems?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether RequiresPlainFolders.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
requiresPlainFolders?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
enableMSMediaReceiverRegistrar?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests.
|
||||
* @type {boolean}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
ignoreTranscodeByteRangeRequests?: boolean;
|
||||
/**
|
||||
* Gets or sets the XmlRootAttributes.
|
||||
* @type {Array<XmlAttribute>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
xmlRootAttributes?: Array<XmlAttribute>;
|
||||
/**
|
||||
* Gets or sets the direct play profiles.
|
||||
* @type {Array<DirectPlayProfile>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
directPlayProfiles?: Array<DirectPlayProfile>;
|
||||
/**
|
||||
* Gets or sets the transcoding profiles.
|
||||
* @type {Array<TranscodingProfile>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
transcodingProfiles?: Array<TranscodingProfile>;
|
||||
/**
|
||||
* Gets or sets the container profiles.
|
||||
* @type {Array<ContainerProfile>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
containerProfiles?: Array<ContainerProfile>;
|
||||
/**
|
||||
* Gets or sets the codec profiles.
|
||||
* @type {Array<CodecProfile>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
codecProfiles?: Array<CodecProfile>;
|
||||
/**
|
||||
* Gets or sets the ResponseProfiles.
|
||||
* @type {Array<ResponseProfile>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
responseProfiles?: Array<ResponseProfile>;
|
||||
/**
|
||||
* Gets or sets the subtitle profiles.
|
||||
* @type {Array<SubtitleProfile>}
|
||||
* @memberof DeviceProfile
|
||||
*/
|
||||
subtitleProfiles?: Array<SubtitleProfile>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceProfile interface.
|
||||
*/
|
||||
export function instanceOfDeviceProfile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceProfileFromJSON(json: any): DeviceProfile {
|
||||
return DeviceProfileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceProfile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'identification': !exists(json, 'Identification') ? undefined : DeviceProfileIdentificationFromJSON(json['Identification']),
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
|
||||
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
|
||||
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
|
||||
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
|
||||
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
|
||||
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
|
||||
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
|
||||
'enableAlbumArtInDidl': !exists(json, 'EnableAlbumArtInDidl') ? undefined : json['EnableAlbumArtInDidl'],
|
||||
'enableSingleAlbumArtLimit': !exists(json, 'EnableSingleAlbumArtLimit') ? undefined : json['EnableSingleAlbumArtLimit'],
|
||||
'enableSingleSubtitleLimit': !exists(json, 'EnableSingleSubtitleLimit') ? undefined : json['EnableSingleSubtitleLimit'],
|
||||
'supportedMediaTypes': !exists(json, 'SupportedMediaTypes') ? undefined : json['SupportedMediaTypes'],
|
||||
'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
|
||||
'albumArtPn': !exists(json, 'AlbumArtPn') ? undefined : json['AlbumArtPn'],
|
||||
'maxAlbumArtWidth': !exists(json, 'MaxAlbumArtWidth') ? undefined : json['MaxAlbumArtWidth'],
|
||||
'maxAlbumArtHeight': !exists(json, 'MaxAlbumArtHeight') ? undefined : json['MaxAlbumArtHeight'],
|
||||
'maxIconWidth': !exists(json, 'MaxIconWidth') ? undefined : json['MaxIconWidth'],
|
||||
'maxIconHeight': !exists(json, 'MaxIconHeight') ? undefined : json['MaxIconHeight'],
|
||||
'maxStreamingBitrate': !exists(json, 'MaxStreamingBitrate') ? undefined : json['MaxStreamingBitrate'],
|
||||
'maxStaticBitrate': !exists(json, 'MaxStaticBitrate') ? undefined : json['MaxStaticBitrate'],
|
||||
'musicStreamingTranscodingBitrate': !exists(json, 'MusicStreamingTranscodingBitrate') ? undefined : json['MusicStreamingTranscodingBitrate'],
|
||||
'maxStaticMusicBitrate': !exists(json, 'MaxStaticMusicBitrate') ? undefined : json['MaxStaticMusicBitrate'],
|
||||
'sonyAggregationFlags': !exists(json, 'SonyAggregationFlags') ? undefined : json['SonyAggregationFlags'],
|
||||
'protocolInfo': !exists(json, 'ProtocolInfo') ? undefined : json['ProtocolInfo'],
|
||||
'timelineOffsetSeconds': !exists(json, 'TimelineOffsetSeconds') ? undefined : json['TimelineOffsetSeconds'],
|
||||
'requiresPlainVideoItems': !exists(json, 'RequiresPlainVideoItems') ? undefined : json['RequiresPlainVideoItems'],
|
||||
'requiresPlainFolders': !exists(json, 'RequiresPlainFolders') ? undefined : json['RequiresPlainFolders'],
|
||||
'enableMSMediaReceiverRegistrar': !exists(json, 'EnableMSMediaReceiverRegistrar') ? undefined : json['EnableMSMediaReceiverRegistrar'],
|
||||
'ignoreTranscodeByteRangeRequests': !exists(json, 'IgnoreTranscodeByteRangeRequests') ? undefined : json['IgnoreTranscodeByteRangeRequests'],
|
||||
'xmlRootAttributes': !exists(json, 'XmlRootAttributes') ? undefined : ((json['XmlRootAttributes'] as Array<any>).map(XmlAttributeFromJSON)),
|
||||
'directPlayProfiles': !exists(json, 'DirectPlayProfiles') ? undefined : ((json['DirectPlayProfiles'] as Array<any>).map(DirectPlayProfileFromJSON)),
|
||||
'transcodingProfiles': !exists(json, 'TranscodingProfiles') ? undefined : ((json['TranscodingProfiles'] as Array<any>).map(TranscodingProfileFromJSON)),
|
||||
'containerProfiles': !exists(json, 'ContainerProfiles') ? undefined : ((json['ContainerProfiles'] as Array<any>).map(ContainerProfileFromJSON)),
|
||||
'codecProfiles': !exists(json, 'CodecProfiles') ? undefined : ((json['CodecProfiles'] as Array<any>).map(CodecProfileFromJSON)),
|
||||
'responseProfiles': !exists(json, 'ResponseProfiles') ? undefined : ((json['ResponseProfiles'] as Array<any>).map(ResponseProfileFromJSON)),
|
||||
'subtitleProfiles': !exists(json, 'SubtitleProfiles') ? undefined : ((json['SubtitleProfiles'] as Array<any>).map(SubtitleProfileFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceProfileToJSON(value?: DeviceProfile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Id': value.id,
|
||||
'Identification': DeviceProfileIdentificationToJSON(value.identification),
|
||||
'FriendlyName': value.friendlyName,
|
||||
'Manufacturer': value.manufacturer,
|
||||
'ManufacturerUrl': value.manufacturerUrl,
|
||||
'ModelName': value.modelName,
|
||||
'ModelDescription': value.modelDescription,
|
||||
'ModelNumber': value.modelNumber,
|
||||
'ModelUrl': value.modelUrl,
|
||||
'SerialNumber': value.serialNumber,
|
||||
'EnableAlbumArtInDidl': value.enableAlbumArtInDidl,
|
||||
'EnableSingleAlbumArtLimit': value.enableSingleAlbumArtLimit,
|
||||
'EnableSingleSubtitleLimit': value.enableSingleSubtitleLimit,
|
||||
'SupportedMediaTypes': value.supportedMediaTypes,
|
||||
'UserId': value.userId,
|
||||
'AlbumArtPn': value.albumArtPn,
|
||||
'MaxAlbumArtWidth': value.maxAlbumArtWidth,
|
||||
'MaxAlbumArtHeight': value.maxAlbumArtHeight,
|
||||
'MaxIconWidth': value.maxIconWidth,
|
||||
'MaxIconHeight': value.maxIconHeight,
|
||||
'MaxStreamingBitrate': value.maxStreamingBitrate,
|
||||
'MaxStaticBitrate': value.maxStaticBitrate,
|
||||
'MusicStreamingTranscodingBitrate': value.musicStreamingTranscodingBitrate,
|
||||
'MaxStaticMusicBitrate': value.maxStaticMusicBitrate,
|
||||
'SonyAggregationFlags': value.sonyAggregationFlags,
|
||||
'ProtocolInfo': value.protocolInfo,
|
||||
'TimelineOffsetSeconds': value.timelineOffsetSeconds,
|
||||
'RequiresPlainVideoItems': value.requiresPlainVideoItems,
|
||||
'RequiresPlainFolders': value.requiresPlainFolders,
|
||||
'EnableMSMediaReceiverRegistrar': value.enableMSMediaReceiverRegistrar,
|
||||
'IgnoreTranscodeByteRangeRequests': value.ignoreTranscodeByteRangeRequests,
|
||||
'XmlRootAttributes': value.xmlRootAttributes === undefined ? undefined : ((value.xmlRootAttributes as Array<any>).map(XmlAttributeToJSON)),
|
||||
'DirectPlayProfiles': value.directPlayProfiles === undefined ? undefined : ((value.directPlayProfiles as Array<any>).map(DirectPlayProfileToJSON)),
|
||||
'TranscodingProfiles': value.transcodingProfiles === undefined ? undefined : ((value.transcodingProfiles as Array<any>).map(TranscodingProfileToJSON)),
|
||||
'ContainerProfiles': value.containerProfiles === undefined ? undefined : ((value.containerProfiles as Array<any>).map(ContainerProfileToJSON)),
|
||||
'CodecProfiles': value.codecProfiles === undefined ? undefined : ((value.codecProfiles as Array<any>).map(CodecProfileToJSON)),
|
||||
'ResponseProfiles': value.responseProfiles === undefined ? undefined : ((value.responseProfiles as Array<any>).map(ResponseProfileToJSON)),
|
||||
'SubtitleProfiles': value.subtitleProfiles === undefined ? undefined : ((value.subtitleProfiles as Array<any>).map(SubtitleProfileToJSON)),
|
||||
};
|
||||
}
|
||||
|
136
server/jellyfin/models/DeviceProfileIdentification.ts
Normal file
136
server/jellyfin/models/DeviceProfileIdentification.ts
Normal file
@ -0,0 +1,136 @@
|
||||
/* 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';
|
||||
import type { HttpHeaderInfo } from './HttpHeaderInfo';
|
||||
import {
|
||||
HttpHeaderInfoFromJSON,
|
||||
HttpHeaderInfoFromJSONTyped,
|
||||
HttpHeaderInfoToJSON,
|
||||
} from './HttpHeaderInfo';
|
||||
|
||||
/**
|
||||
* Gets or sets the Identification.
|
||||
* @export
|
||||
* @interface DeviceProfileIdentification
|
||||
*/
|
||||
export interface DeviceProfileIdentification {
|
||||
/**
|
||||
* Gets or sets the name of the friendly.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
friendlyName?: string;
|
||||
/**
|
||||
* Gets or sets the model number.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
modelNumber?: string;
|
||||
/**
|
||||
* Gets or sets the serial number.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
serialNumber?: string;
|
||||
/**
|
||||
* Gets or sets the name of the model.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
modelName?: string;
|
||||
/**
|
||||
* Gets or sets the model description.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
modelDescription?: string;
|
||||
/**
|
||||
* Gets or sets the model URL.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
modelUrl?: string;
|
||||
/**
|
||||
* Gets or sets the manufacturer.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
manufacturer?: string;
|
||||
/**
|
||||
* Gets or sets the manufacturer URL.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
manufacturerUrl?: string;
|
||||
/**
|
||||
* Gets or sets the headers.
|
||||
* @type {Array<HttpHeaderInfo>}
|
||||
* @memberof DeviceProfileIdentification
|
||||
*/
|
||||
headers?: Array<HttpHeaderInfo>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceProfileIdentification interface.
|
||||
*/
|
||||
export function instanceOfDeviceProfileIdentification(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceProfileIdentificationFromJSON(json: any): DeviceProfileIdentification {
|
||||
return DeviceProfileIdentificationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceProfileIdentificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceProfileIdentification {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
|
||||
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
|
||||
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
|
||||
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
|
||||
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
|
||||
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
|
||||
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
|
||||
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
|
||||
'headers': !exists(json, 'Headers') ? undefined : ((json['Headers'] as Array<any>).map(HttpHeaderInfoFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceProfileIdentificationToJSON(value?: DeviceProfileIdentification | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'FriendlyName': value.friendlyName,
|
||||
'ModelNumber': value.modelNumber,
|
||||
'SerialNumber': value.serialNumber,
|
||||
'ModelName': value.modelName,
|
||||
'ModelDescription': value.modelDescription,
|
||||
'ModelUrl': value.modelUrl,
|
||||
'Manufacturer': value.manufacturer,
|
||||
'ManufacturerUrl': value.manufacturerUrl,
|
||||
'Headers': value.headers === undefined ? undefined : ((value.headers as Array<any>).map(HttpHeaderInfoToJSON)),
|
||||
};
|
||||
}
|
||||
|
88
server/jellyfin/models/DeviceProfileInfo.ts
Normal file
88
server/jellyfin/models/DeviceProfileInfo.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { DeviceProfileType } from './DeviceProfileType';
|
||||
import {
|
||||
DeviceProfileTypeFromJSON,
|
||||
DeviceProfileTypeFromJSONTyped,
|
||||
DeviceProfileTypeToJSON,
|
||||
} from './DeviceProfileType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DeviceProfileInfo
|
||||
*/
|
||||
export interface DeviceProfileInfo {
|
||||
/**
|
||||
* Gets or sets the identifier.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileInfo
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof DeviceProfileInfo
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {DeviceProfileType}
|
||||
* @memberof DeviceProfileInfo
|
||||
*/
|
||||
type?: DeviceProfileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DeviceProfileInfo interface.
|
||||
*/
|
||||
export function instanceOfDeviceProfileInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DeviceProfileInfoFromJSON(json: any): DeviceProfileInfo {
|
||||
return DeviceProfileInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceProfileInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceProfileInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'type': !exists(json, 'Type') ? undefined : DeviceProfileTypeFromJSON(json['Type']),
|
||||
};
|
||||
}
|
||||
|
||||
export function DeviceProfileInfoToJSON(value?: DeviceProfileInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'Name': value.name,
|
||||
'Type': DeviceProfileTypeToJSON(value.type),
|
||||
};
|
||||
}
|
||||
|
38
server/jellyfin/models/DeviceProfileType.ts
Normal file
38
server/jellyfin/models/DeviceProfileType.ts
Normal file
@ -0,0 +1,38 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const DeviceProfileType = {
|
||||
System: 'System',
|
||||
User: 'User'
|
||||
} as const;
|
||||
export type DeviceProfileType = typeof DeviceProfileType[keyof typeof DeviceProfileType];
|
||||
|
||||
|
||||
export function DeviceProfileTypeFromJSON(json: any): DeviceProfileType {
|
||||
return DeviceProfileTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DeviceProfileTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceProfileType {
|
||||
return json as DeviceProfileType;
|
||||
}
|
||||
|
||||
export function DeviceProfileTypeToJSON(value?: DeviceProfileType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
96
server/jellyfin/models/DirectPlayProfile.ts
Normal file
96
server/jellyfin/models/DirectPlayProfile.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { DlnaProfileType } from './DlnaProfileType';
|
||||
import {
|
||||
DlnaProfileTypeFromJSON,
|
||||
DlnaProfileTypeFromJSONTyped,
|
||||
DlnaProfileTypeToJSON,
|
||||
} from './DlnaProfileType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DirectPlayProfile
|
||||
*/
|
||||
export interface DirectPlayProfile {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DirectPlayProfile
|
||||
*/
|
||||
container?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DirectPlayProfile
|
||||
*/
|
||||
audioCodec?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DirectPlayProfile
|
||||
*/
|
||||
videoCodec?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {DlnaProfileType}
|
||||
* @memberof DirectPlayProfile
|
||||
*/
|
||||
type?: DlnaProfileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DirectPlayProfile interface.
|
||||
*/
|
||||
export function instanceOfDirectPlayProfile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DirectPlayProfileFromJSON(json: any): DirectPlayProfile {
|
||||
return DirectPlayProfileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DirectPlayProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectPlayProfile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'container': !exists(json, 'Container') ? undefined : json['Container'],
|
||||
'audioCodec': !exists(json, 'AudioCodec') ? undefined : json['AudioCodec'],
|
||||
'videoCodec': !exists(json, 'VideoCodec') ? undefined : json['VideoCodec'],
|
||||
'type': !exists(json, 'Type') ? undefined : DlnaProfileTypeFromJSON(json['Type']),
|
||||
};
|
||||
}
|
||||
|
||||
export function DirectPlayProfileToJSON(value?: DirectPlayProfile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Container': value.container,
|
||||
'AudioCodec': value.audioCodec,
|
||||
'VideoCodec': value.videoCodec,
|
||||
'Type': DlnaProfileTypeToJSON(value.type),
|
||||
};
|
||||
}
|
||||
|
182
server/jellyfin/models/DisplayPreferencesDto.ts
Normal file
182
server/jellyfin/models/DisplayPreferencesDto.ts
Normal file
@ -0,0 +1,182 @@
|
||||
/* 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';
|
||||
import type { ScrollDirection } from './ScrollDirection';
|
||||
import {
|
||||
ScrollDirectionFromJSON,
|
||||
ScrollDirectionFromJSONTyped,
|
||||
ScrollDirectionToJSON,
|
||||
} from './ScrollDirection';
|
||||
import type { SortOrder } from './SortOrder';
|
||||
import {
|
||||
SortOrderFromJSON,
|
||||
SortOrderFromJSONTyped,
|
||||
SortOrderToJSON,
|
||||
} from './SortOrder';
|
||||
|
||||
/**
|
||||
* Defines the display preferences for any item that supports them (usually Folders).
|
||||
* @export
|
||||
* @interface DisplayPreferencesDto
|
||||
*/
|
||||
export interface DisplayPreferencesDto {
|
||||
/**
|
||||
* Gets or sets the user id.
|
||||
* @type {string}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Gets or sets the type of the view.
|
||||
* @type {string}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
viewType?: string | null;
|
||||
/**
|
||||
* Gets or sets the sort by.
|
||||
* @type {string}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
sortBy?: string | null;
|
||||
/**
|
||||
* Gets or sets the index by.
|
||||
* @type {string}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
indexBy?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [remember indexing].
|
||||
* @type {boolean}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
rememberIndexing?: boolean;
|
||||
/**
|
||||
* Gets or sets the height of the primary image.
|
||||
* @type {number}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
primaryImageHeight?: number;
|
||||
/**
|
||||
* Gets or sets the width of the primary image.
|
||||
* @type {number}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
primaryImageWidth?: number;
|
||||
/**
|
||||
* Gets or sets the custom prefs.
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
customPrefs?: { [key: string]: string; };
|
||||
/**
|
||||
*
|
||||
* @type {ScrollDirection}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
scrollDirection?: ScrollDirection;
|
||||
/**
|
||||
* Gets or sets a value indicating whether to show backdrops on this item.
|
||||
* @type {boolean}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
showBackdrop?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [remember sorting].
|
||||
* @type {boolean}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
rememberSorting?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {SortOrder}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
sortOrder?: SortOrder;
|
||||
/**
|
||||
* Gets or sets a value indicating whether [show sidebar].
|
||||
* @type {boolean}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
showSidebar?: boolean;
|
||||
/**
|
||||
* Gets or sets the client.
|
||||
* @type {string}
|
||||
* @memberof DisplayPreferencesDto
|
||||
*/
|
||||
client?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DisplayPreferencesDto interface.
|
||||
*/
|
||||
export function instanceOfDisplayPreferencesDto(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DisplayPreferencesDtoFromJSON(json: any): DisplayPreferencesDto {
|
||||
return DisplayPreferencesDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DisplayPreferencesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisplayPreferencesDto {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||||
'viewType': !exists(json, 'ViewType') ? undefined : json['ViewType'],
|
||||
'sortBy': !exists(json, 'SortBy') ? undefined : json['SortBy'],
|
||||
'indexBy': !exists(json, 'IndexBy') ? undefined : json['IndexBy'],
|
||||
'rememberIndexing': !exists(json, 'RememberIndexing') ? undefined : json['RememberIndexing'],
|
||||
'primaryImageHeight': !exists(json, 'PrimaryImageHeight') ? undefined : json['PrimaryImageHeight'],
|
||||
'primaryImageWidth': !exists(json, 'PrimaryImageWidth') ? undefined : json['PrimaryImageWidth'],
|
||||
'customPrefs': !exists(json, 'CustomPrefs') ? undefined : json['CustomPrefs'],
|
||||
'scrollDirection': !exists(json, 'ScrollDirection') ? undefined : ScrollDirectionFromJSON(json['ScrollDirection']),
|
||||
'showBackdrop': !exists(json, 'ShowBackdrop') ? undefined : json['ShowBackdrop'],
|
||||
'rememberSorting': !exists(json, 'RememberSorting') ? undefined : json['RememberSorting'],
|
||||
'sortOrder': !exists(json, 'SortOrder') ? undefined : SortOrderFromJSON(json['SortOrder']),
|
||||
'showSidebar': !exists(json, 'ShowSidebar') ? undefined : json['ShowSidebar'],
|
||||
'client': !exists(json, 'Client') ? undefined : json['Client'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DisplayPreferencesDtoToJSON(value?: DisplayPreferencesDto | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Id': value.id,
|
||||
'ViewType': value.viewType,
|
||||
'SortBy': value.sortBy,
|
||||
'IndexBy': value.indexBy,
|
||||
'RememberIndexing': value.rememberIndexing,
|
||||
'PrimaryImageHeight': value.primaryImageHeight,
|
||||
'PrimaryImageWidth': value.primaryImageWidth,
|
||||
'CustomPrefs': value.customPrefs,
|
||||
'ScrollDirection': ScrollDirectionToJSON(value.scrollDirection),
|
||||
'ShowBackdrop': value.showBackdrop,
|
||||
'RememberSorting': value.rememberSorting,
|
||||
'SortOrder': SortOrderToJSON(value.sortOrder),
|
||||
'ShowSidebar': value.showSidebar,
|
||||
'Client': value.client,
|
||||
};
|
||||
}
|
||||
|
148
server/jellyfin/models/DlnaOptions.ts
Normal file
148
server/jellyfin/models/DlnaOptions.ts
Normal file
@ -0,0 +1,148 @@
|
||||
/* 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 DlnaOptions class contains the user definable parameters for the dlna subsystems.
|
||||
* @export
|
||||
* @interface DlnaOptions
|
||||
*/
|
||||
export interface DlnaOptions {
|
||||
/**
|
||||
* Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna playTo subsystem.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
enablePlayTo?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna server subsystem.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
enableServer?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether detailed dlna server logs are sent to the console/log.
|
||||
* If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
enableDebugLog?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether whether detailed playTo debug logs are sent to the console/log.
|
||||
* If the setting "Emby.Dlna.PlayTo": "Debug" msut be set in logging.default.json for this property to work.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
enablePlayToTracing?: boolean;
|
||||
/**
|
||||
* Gets or sets the ssdp client discovery interval time (in seconds).
|
||||
* This is the time after which the server will send a ssdp search request.
|
||||
* @type {number}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
clientDiscoveryIntervalSeconds?: number;
|
||||
/**
|
||||
* Gets or sets the frequency at which ssdp alive notifications are transmitted.
|
||||
* @type {number}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
aliveMessageIntervalSeconds?: number;
|
||||
/**
|
||||
* Gets or sets the frequency at which ssdp alive notifications are transmitted. MIGRATING - TO BE REMOVED ONCE WEB HAS BEEN ALTERED.
|
||||
* @type {number}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
blastAliveMessageIntervalSeconds?: number;
|
||||
/**
|
||||
* Gets or sets the default user account that the dlna server uses.
|
||||
* @type {string}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
defaultUserId?: string | null;
|
||||
/**
|
||||
* Gets or sets a value indicating whether playTo device profiles should be created.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
autoCreatePlayToProfiles?: boolean;
|
||||
/**
|
||||
* Gets or sets a value indicating whether to blast alive messages.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
blastAliveMessages?: boolean;
|
||||
/**
|
||||
* gets or sets a value indicating whether to send only matched host.
|
||||
* @type {boolean}
|
||||
* @memberof DlnaOptions
|
||||
*/
|
||||
sendOnlyMatchedHost?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DlnaOptions interface.
|
||||
*/
|
||||
export function instanceOfDlnaOptions(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function DlnaOptionsFromJSON(json: any): DlnaOptions {
|
||||
return DlnaOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DlnaOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DlnaOptions {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'enablePlayTo': !exists(json, 'EnablePlayTo') ? undefined : json['EnablePlayTo'],
|
||||
'enableServer': !exists(json, 'EnableServer') ? undefined : json['EnableServer'],
|
||||
'enableDebugLog': !exists(json, 'EnableDebugLog') ? undefined : json['EnableDebugLog'],
|
||||
'enablePlayToTracing': !exists(json, 'EnablePlayToTracing') ? undefined : json['EnablePlayToTracing'],
|
||||
'clientDiscoveryIntervalSeconds': !exists(json, 'ClientDiscoveryIntervalSeconds') ? undefined : json['ClientDiscoveryIntervalSeconds'],
|
||||
'aliveMessageIntervalSeconds': !exists(json, 'AliveMessageIntervalSeconds') ? undefined : json['AliveMessageIntervalSeconds'],
|
||||
'blastAliveMessageIntervalSeconds': !exists(json, 'BlastAliveMessageIntervalSeconds') ? undefined : json['BlastAliveMessageIntervalSeconds'],
|
||||
'defaultUserId': !exists(json, 'DefaultUserId') ? undefined : json['DefaultUserId'],
|
||||
'autoCreatePlayToProfiles': !exists(json, 'AutoCreatePlayToProfiles') ? undefined : json['AutoCreatePlayToProfiles'],
|
||||
'blastAliveMessages': !exists(json, 'BlastAliveMessages') ? undefined : json['BlastAliveMessages'],
|
||||
'sendOnlyMatchedHost': !exists(json, 'SendOnlyMatchedHost') ? undefined : json['SendOnlyMatchedHost'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DlnaOptionsToJSON(value?: DlnaOptions | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'EnablePlayTo': value.enablePlayTo,
|
||||
'EnableServer': value.enableServer,
|
||||
'EnableDebugLog': value.enableDebugLog,
|
||||
'EnablePlayToTracing': value.enablePlayToTracing,
|
||||
'ClientDiscoveryIntervalSeconds': value.clientDiscoveryIntervalSeconds,
|
||||
'AliveMessageIntervalSeconds': value.aliveMessageIntervalSeconds,
|
||||
'BlastAliveMessageIntervalSeconds': value.blastAliveMessageIntervalSeconds,
|
||||
'DefaultUserId': value.defaultUserId,
|
||||
'AutoCreatePlayToProfiles': value.autoCreatePlayToProfiles,
|
||||
'BlastAliveMessages': value.blastAliveMessages,
|
||||
'SendOnlyMatchedHost': value.sendOnlyMatchedHost,
|
||||
};
|
||||
}
|
||||
|
40
server/jellyfin/models/DlnaProfileType.ts
Normal file
40
server/jellyfin/models/DlnaProfileType.ts
Normal file
@ -0,0 +1,40 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const DlnaProfileType = {
|
||||
Audio: 'Audio',
|
||||
Video: 'Video',
|
||||
Photo: 'Photo',
|
||||
Subtitle: 'Subtitle'
|
||||
} as const;
|
||||
export type DlnaProfileType = typeof DlnaProfileType[keyof typeof DlnaProfileType];
|
||||
|
||||
|
||||
export function DlnaProfileTypeFromJSON(json: any): DlnaProfileType {
|
||||
return DlnaProfileTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DlnaProfileTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DlnaProfileType {
|
||||
return json as DlnaProfileType;
|
||||
}
|
||||
|
||||
export function DlnaProfileTypeToJSON(value?: DlnaProfileType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
46
server/jellyfin/models/DynamicDayOfWeek.ts
Normal file
46
server/jellyfin/models/DynamicDayOfWeek.ts
Normal file
@ -0,0 +1,46 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* An enum that represents a day of the week, weekdays, weekends, or all days.
|
||||
* @export
|
||||
*/
|
||||
export const DynamicDayOfWeek = {
|
||||
Sunday: 'Sunday',
|
||||
Monday: 'Monday',
|
||||
Tuesday: 'Tuesday',
|
||||
Wednesday: 'Wednesday',
|
||||
Thursday: 'Thursday',
|
||||
Friday: 'Friday',
|
||||
Saturday: 'Saturday',
|
||||
Everyday: 'Everyday',
|
||||
Weekday: 'Weekday',
|
||||
Weekend: 'Weekend'
|
||||
} as const;
|
||||
export type DynamicDayOfWeek = typeof DynamicDayOfWeek[keyof typeof DynamicDayOfWeek];
|
||||
|
||||
|
||||
export function DynamicDayOfWeekFromJSON(json: any): DynamicDayOfWeek {
|
||||
return DynamicDayOfWeekFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DynamicDayOfWeekFromJSONTyped(json: any, ignoreDiscriminator: boolean): DynamicDayOfWeek {
|
||||
return json as DynamicDayOfWeek;
|
||||
}
|
||||
|
||||
export function DynamicDayOfWeekToJSON(value?: DynamicDayOfWeek | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
40
server/jellyfin/models/EmbeddedSubtitleOptions.ts
Normal file
40
server/jellyfin/models/EmbeddedSubtitleOptions.ts
Normal file
@ -0,0 +1,40 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* An enum representing the options to disable embedded subs.
|
||||
* @export
|
||||
*/
|
||||
export const EmbeddedSubtitleOptions = {
|
||||
AllowAll: 'AllowAll',
|
||||
AllowText: 'AllowText',
|
||||
AllowImage: 'AllowImage',
|
||||
AllowNone: 'AllowNone'
|
||||
} as const;
|
||||
export type EmbeddedSubtitleOptions = typeof EmbeddedSubtitleOptions[keyof typeof EmbeddedSubtitleOptions];
|
||||
|
||||
|
||||
export function EmbeddedSubtitleOptionsFromJSON(json: any): EmbeddedSubtitleOptions {
|
||||
return EmbeddedSubtitleOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EmbeddedSubtitleOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddedSubtitleOptions {
|
||||
return json as EmbeddedSubtitleOptions;
|
||||
}
|
||||
|
||||
export function EmbeddedSubtitleOptionsToJSON(value?: EmbeddedSubtitleOptions | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
38
server/jellyfin/models/EncodingContext.ts
Normal file
38
server/jellyfin/models/EncodingContext.ts
Normal file
@ -0,0 +1,38 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const EncodingContext = {
|
||||
Streaming: 'Streaming',
|
||||
Static: 'Static'
|
||||
} as const;
|
||||
export type EncodingContext = typeof EncodingContext[keyof typeof EncodingContext];
|
||||
|
||||
|
||||
export function EncodingContextFromJSON(json: any): EncodingContext {
|
||||
return EncodingContextFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EncodingContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncodingContext {
|
||||
return json as EncodingContext;
|
||||
}
|
||||
|
||||
export function EncodingContextToJSON(value?: EncodingContext | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
361
server/jellyfin/models/EncodingOptions.ts
Normal file
361
server/jellyfin/models/EncodingOptions.ts
Normal file
@ -0,0 +1,361 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface EncodingOptions
|
||||
*/
|
||||
export interface EncodingOptions {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
encodingThreadCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
transcodingTempPath?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
fallbackFontPath?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableFallbackFont?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
downMixAudioBoost?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
maxMuxingQueueSize?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableThrottling?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
throttleDelaySeconds?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
hardwareAccelerationType?: string | null;
|
||||
/**
|
||||
* Gets or sets the FFmpeg path as set by the user via the UI.
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
encoderAppPath?: string | null;
|
||||
/**
|
||||
* Gets or sets the current FFmpeg path being used by the system and displayed on the transcode page.
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
encoderAppPathDisplay?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
vaapiDevice?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableTonemapping?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableVppTonemapping?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
tonemappingAlgorithm?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
tonemappingRange?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
tonemappingDesat?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
tonemappingThreshold?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
tonemappingPeak?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
tonemappingParam?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
vppTonemappingBrightness?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
vppTonemappingContrast?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
h264Crf?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
h265Crf?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
encoderPreset?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
deinterlaceDoubleRate?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
deinterlaceMethod?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableDecodingColorDepth10Hevc?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableDecodingColorDepth10Vp9?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableEnhancedNvdecDecoder?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
preferSystemNativeHwDecoder?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableIntelLowPowerH264HwEncoder?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableIntelLowPowerHevcHwEncoder?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableHardwareEncoding?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
allowHevcEncoding?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
enableSubtitleExtraction?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
hardwareDecodingCodecs?: Array<string> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof EncodingOptions
|
||||
*/
|
||||
allowOnDemandMetadataBasedKeyframeExtractionForExtensions?: Array<string> | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the EncodingOptions interface.
|
||||
*/
|
||||
export function instanceOfEncodingOptions(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function EncodingOptionsFromJSON(json: any): EncodingOptions {
|
||||
return EncodingOptionsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EncodingOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncodingOptions {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'encodingThreadCount': !exists(json, 'EncodingThreadCount') ? undefined : json['EncodingThreadCount'],
|
||||
'transcodingTempPath': !exists(json, 'TranscodingTempPath') ? undefined : json['TranscodingTempPath'],
|
||||
'fallbackFontPath': !exists(json, 'FallbackFontPath') ? undefined : json['FallbackFontPath'],
|
||||
'enableFallbackFont': !exists(json, 'EnableFallbackFont') ? undefined : json['EnableFallbackFont'],
|
||||
'downMixAudioBoost': !exists(json, 'DownMixAudioBoost') ? undefined : json['DownMixAudioBoost'],
|
||||
'maxMuxingQueueSize': !exists(json, 'MaxMuxingQueueSize') ? undefined : json['MaxMuxingQueueSize'],
|
||||
'enableThrottling': !exists(json, 'EnableThrottling') ? undefined : json['EnableThrottling'],
|
||||
'throttleDelaySeconds': !exists(json, 'ThrottleDelaySeconds') ? undefined : json['ThrottleDelaySeconds'],
|
||||
'hardwareAccelerationType': !exists(json, 'HardwareAccelerationType') ? undefined : json['HardwareAccelerationType'],
|
||||
'encoderAppPath': !exists(json, 'EncoderAppPath') ? undefined : json['EncoderAppPath'],
|
||||
'encoderAppPathDisplay': !exists(json, 'EncoderAppPathDisplay') ? undefined : json['EncoderAppPathDisplay'],
|
||||
'vaapiDevice': !exists(json, 'VaapiDevice') ? undefined : json['VaapiDevice'],
|
||||
'enableTonemapping': !exists(json, 'EnableTonemapping') ? undefined : json['EnableTonemapping'],
|
||||
'enableVppTonemapping': !exists(json, 'EnableVppTonemapping') ? undefined : json['EnableVppTonemapping'],
|
||||
'tonemappingAlgorithm': !exists(json, 'TonemappingAlgorithm') ? undefined : json['TonemappingAlgorithm'],
|
||||
'tonemappingRange': !exists(json, 'TonemappingRange') ? undefined : json['TonemappingRange'],
|
||||
'tonemappingDesat': !exists(json, 'TonemappingDesat') ? undefined : json['TonemappingDesat'],
|
||||
'tonemappingThreshold': !exists(json, 'TonemappingThreshold') ? undefined : json['TonemappingThreshold'],
|
||||
'tonemappingPeak': !exists(json, 'TonemappingPeak') ? undefined : json['TonemappingPeak'],
|
||||
'tonemappingParam': !exists(json, 'TonemappingParam') ? undefined : json['TonemappingParam'],
|
||||
'vppTonemappingBrightness': !exists(json, 'VppTonemappingBrightness') ? undefined : json['VppTonemappingBrightness'],
|
||||
'vppTonemappingContrast': !exists(json, 'VppTonemappingContrast') ? undefined : json['VppTonemappingContrast'],
|
||||
'h264Crf': !exists(json, 'H264Crf') ? undefined : json['H264Crf'],
|
||||
'h265Crf': !exists(json, 'H265Crf') ? undefined : json['H265Crf'],
|
||||
'encoderPreset': !exists(json, 'EncoderPreset') ? undefined : json['EncoderPreset'],
|
||||
'deinterlaceDoubleRate': !exists(json, 'DeinterlaceDoubleRate') ? undefined : json['DeinterlaceDoubleRate'],
|
||||
'deinterlaceMethod': !exists(json, 'DeinterlaceMethod') ? undefined : json['DeinterlaceMethod'],
|
||||
'enableDecodingColorDepth10Hevc': !exists(json, 'EnableDecodingColorDepth10Hevc') ? undefined : json['EnableDecodingColorDepth10Hevc'],
|
||||
'enableDecodingColorDepth10Vp9': !exists(json, 'EnableDecodingColorDepth10Vp9') ? undefined : json['EnableDecodingColorDepth10Vp9'],
|
||||
'enableEnhancedNvdecDecoder': !exists(json, 'EnableEnhancedNvdecDecoder') ? undefined : json['EnableEnhancedNvdecDecoder'],
|
||||
'preferSystemNativeHwDecoder': !exists(json, 'PreferSystemNativeHwDecoder') ? undefined : json['PreferSystemNativeHwDecoder'],
|
||||
'enableIntelLowPowerH264HwEncoder': !exists(json, 'EnableIntelLowPowerH264HwEncoder') ? undefined : json['EnableIntelLowPowerH264HwEncoder'],
|
||||
'enableIntelLowPowerHevcHwEncoder': !exists(json, 'EnableIntelLowPowerHevcHwEncoder') ? undefined : json['EnableIntelLowPowerHevcHwEncoder'],
|
||||
'enableHardwareEncoding': !exists(json, 'EnableHardwareEncoding') ? undefined : json['EnableHardwareEncoding'],
|
||||
'allowHevcEncoding': !exists(json, 'AllowHevcEncoding') ? undefined : json['AllowHevcEncoding'],
|
||||
'enableSubtitleExtraction': !exists(json, 'EnableSubtitleExtraction') ? undefined : json['EnableSubtitleExtraction'],
|
||||
'hardwareDecodingCodecs': !exists(json, 'HardwareDecodingCodecs') ? undefined : json['HardwareDecodingCodecs'],
|
||||
'allowOnDemandMetadataBasedKeyframeExtractionForExtensions': !exists(json, 'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions') ? undefined : json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'],
|
||||
};
|
||||
}
|
||||
|
||||
export function EncodingOptionsToJSON(value?: EncodingOptions | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'EncodingThreadCount': value.encodingThreadCount,
|
||||
'TranscodingTempPath': value.transcodingTempPath,
|
||||
'FallbackFontPath': value.fallbackFontPath,
|
||||
'EnableFallbackFont': value.enableFallbackFont,
|
||||
'DownMixAudioBoost': value.downMixAudioBoost,
|
||||
'MaxMuxingQueueSize': value.maxMuxingQueueSize,
|
||||
'EnableThrottling': value.enableThrottling,
|
||||
'ThrottleDelaySeconds': value.throttleDelaySeconds,
|
||||
'HardwareAccelerationType': value.hardwareAccelerationType,
|
||||
'EncoderAppPath': value.encoderAppPath,
|
||||
'EncoderAppPathDisplay': value.encoderAppPathDisplay,
|
||||
'VaapiDevice': value.vaapiDevice,
|
||||
'EnableTonemapping': value.enableTonemapping,
|
||||
'EnableVppTonemapping': value.enableVppTonemapping,
|
||||
'TonemappingAlgorithm': value.tonemappingAlgorithm,
|
||||
'TonemappingRange': value.tonemappingRange,
|
||||
'TonemappingDesat': value.tonemappingDesat,
|
||||
'TonemappingThreshold': value.tonemappingThreshold,
|
||||
'TonemappingPeak': value.tonemappingPeak,
|
||||
'TonemappingParam': value.tonemappingParam,
|
||||
'VppTonemappingBrightness': value.vppTonemappingBrightness,
|
||||
'VppTonemappingContrast': value.vppTonemappingContrast,
|
||||
'H264Crf': value.h264Crf,
|
||||
'H265Crf': value.h265Crf,
|
||||
'EncoderPreset': value.encoderPreset,
|
||||
'DeinterlaceDoubleRate': value.deinterlaceDoubleRate,
|
||||
'DeinterlaceMethod': value.deinterlaceMethod,
|
||||
'EnableDecodingColorDepth10Hevc': value.enableDecodingColorDepth10Hevc,
|
||||
'EnableDecodingColorDepth10Vp9': value.enableDecodingColorDepth10Vp9,
|
||||
'EnableEnhancedNvdecDecoder': value.enableEnhancedNvdecDecoder,
|
||||
'PreferSystemNativeHwDecoder': value.preferSystemNativeHwDecoder,
|
||||
'EnableIntelLowPowerH264HwEncoder': value.enableIntelLowPowerH264HwEncoder,
|
||||
'EnableIntelLowPowerHevcHwEncoder': value.enableIntelLowPowerHevcHwEncoder,
|
||||
'EnableHardwareEncoding': value.enableHardwareEncoding,
|
||||
'AllowHevcEncoding': value.allowHevcEncoding,
|
||||
'EnableSubtitleExtraction': value.enableSubtitleExtraction,
|
||||
'HardwareDecodingCodecs': value.hardwareDecodingCodecs,
|
||||
'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions': value.allowOnDemandMetadataBasedKeyframeExtractionForExtensions,
|
||||
};
|
||||
}
|
||||
|
73
server/jellyfin/models/EndPointInfo.ts
Normal file
73
server/jellyfin/models/EndPointInfo.ts
Normal file
@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface EndPointInfo
|
||||
*/
|
||||
export interface EndPointInfo {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EndPointInfo
|
||||
*/
|
||||
isLocal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EndPointInfo
|
||||
*/
|
||||
isInNetwork?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the EndPointInfo interface.
|
||||
*/
|
||||
export function instanceOfEndPointInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function EndPointInfoFromJSON(json: any): EndPointInfo {
|
||||
return EndPointInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EndPointInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndPointInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'isLocal': !exists(json, 'IsLocal') ? undefined : json['IsLocal'],
|
||||
'isInNetwork': !exists(json, 'IsInNetwork') ? undefined : json['IsInNetwork'],
|
||||
};
|
||||
}
|
||||
|
||||
export function EndPointInfoToJSON(value?: EndPointInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'IsLocal': value.isLocal,
|
||||
'IsInNetwork': value.isInNetwork,
|
||||
};
|
||||
}
|
||||
|
96
server/jellyfin/models/ExternalIdInfo.ts
Normal file
96
server/jellyfin/models/ExternalIdInfo.ts
Normal file
@ -0,0 +1,96 @@
|
||||
/* 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';
|
||||
import type { ExternalIdMediaType } from './ExternalIdMediaType';
|
||||
import {
|
||||
ExternalIdMediaTypeFromJSON,
|
||||
ExternalIdMediaTypeFromJSONTyped,
|
||||
ExternalIdMediaTypeToJSON,
|
||||
} from './ExternalIdMediaType';
|
||||
|
||||
/**
|
||||
* Represents the external id information for serialization to the client.
|
||||
* @export
|
||||
* @interface ExternalIdInfo
|
||||
*/
|
||||
export interface ExternalIdInfo {
|
||||
/**
|
||||
* Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
|
||||
* @type {string}
|
||||
* @memberof ExternalIdInfo
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Gets or sets the unique key for this id. This key should be unique across all providers.
|
||||
* @type {string}
|
||||
* @memberof ExternalIdInfo
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
*
|
||||
* @type {ExternalIdMediaType}
|
||||
* @memberof ExternalIdInfo
|
||||
*/
|
||||
type?: ExternalIdMediaType | null;
|
||||
/**
|
||||
* Gets or sets the URL format string.
|
||||
* @type {string}
|
||||
* @memberof ExternalIdInfo
|
||||
*/
|
||||
urlFormatString?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ExternalIdInfo interface.
|
||||
*/
|
||||
export function instanceOfExternalIdInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ExternalIdInfoFromJSON(json: any): ExternalIdInfo {
|
||||
return ExternalIdInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ExternalIdInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalIdInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'key': !exists(json, 'Key') ? undefined : json['Key'],
|
||||
'type': !exists(json, 'Type') ? undefined : ExternalIdMediaTypeFromJSON(json['Type']),
|
||||
'urlFormatString': !exists(json, 'UrlFormatString') ? undefined : json['UrlFormatString'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ExternalIdInfoToJSON(value?: ExternalIdInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Key': value.key,
|
||||
'Type': ExternalIdMediaTypeToJSON(value.type),
|
||||
'UrlFormatString': value.urlFormatString,
|
||||
};
|
||||
}
|
||||
|
48
server/jellyfin/models/ExternalIdMediaType.ts
Normal file
48
server/jellyfin/models/ExternalIdMediaType.ts
Normal file
@ -0,0 +1,48 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The specific media type of an MediaBrowser.Model.Providers.ExternalIdInfo.
|
||||
* @export
|
||||
*/
|
||||
export const ExternalIdMediaType = {
|
||||
Album: 'Album',
|
||||
AlbumArtist: 'AlbumArtist',
|
||||
Artist: 'Artist',
|
||||
BoxSet: 'BoxSet',
|
||||
Episode: 'Episode',
|
||||
Movie: 'Movie',
|
||||
OtherArtist: 'OtherArtist',
|
||||
Person: 'Person',
|
||||
ReleaseGroup: 'ReleaseGroup',
|
||||
Season: 'Season',
|
||||
Series: 'Series',
|
||||
Track: 'Track'
|
||||
} as const;
|
||||
export type ExternalIdMediaType = typeof ExternalIdMediaType[keyof typeof ExternalIdMediaType];
|
||||
|
||||
|
||||
export function ExternalIdMediaTypeFromJSON(json: any): ExternalIdMediaType {
|
||||
return ExternalIdMediaTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ExternalIdMediaTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalIdMediaType {
|
||||
return json as ExternalIdMediaType;
|
||||
}
|
||||
|
||||
export function ExternalIdMediaTypeToJSON(value?: ExternalIdMediaType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
73
server/jellyfin/models/ExternalUrl.ts
Normal file
73
server/jellyfin/models/ExternalUrl.ts
Normal file
@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ExternalUrl
|
||||
*/
|
||||
export interface ExternalUrl {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof ExternalUrl
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the type of the item.
|
||||
* @type {string}
|
||||
* @memberof ExternalUrl
|
||||
*/
|
||||
url?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ExternalUrl interface.
|
||||
*/
|
||||
export function instanceOfExternalUrl(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ExternalUrlFromJSON(json: any): ExternalUrl {
|
||||
return ExternalUrlFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ExternalUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalUrl {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'url': !exists(json, 'Url') ? undefined : json['Url'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ExternalUrlToJSON(value?: ExternalUrl | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Url': value.url,
|
||||
};
|
||||
}
|
||||
|
40
server/jellyfin/models/FFmpegLocation.ts
Normal file
40
server/jellyfin/models/FFmpegLocation.ts
Normal file
@ -0,0 +1,40 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Enum describing the location of the FFmpeg tool.
|
||||
* @export
|
||||
*/
|
||||
export const FFmpegLocation = {
|
||||
NotFound: 'NotFound',
|
||||
SetByArgument: 'SetByArgument',
|
||||
Custom: 'Custom',
|
||||
System: 'System'
|
||||
} as const;
|
||||
export type FFmpegLocation = typeof FFmpegLocation[keyof typeof FFmpegLocation];
|
||||
|
||||
|
||||
export function FFmpegLocationFromJSON(json: any): FFmpegLocation {
|
||||
return FFmpegLocationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FFmpegLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FFmpegLocation {
|
||||
return json as FFmpegLocation;
|
||||
}
|
||||
|
||||
export function FFmpegLocationToJSON(value?: FFmpegLocation | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
88
server/jellyfin/models/FileSystemEntryInfo.ts
Normal file
88
server/jellyfin/models/FileSystemEntryInfo.ts
Normal file
@ -0,0 +1,88 @@
|
||||
/* 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';
|
||||
import type { FileSystemEntryType } from './FileSystemEntryType';
|
||||
import {
|
||||
FileSystemEntryTypeFromJSON,
|
||||
FileSystemEntryTypeFromJSONTyped,
|
||||
FileSystemEntryTypeToJSON,
|
||||
} from './FileSystemEntryType';
|
||||
|
||||
/**
|
||||
* Class FileSystemEntryInfo.
|
||||
* @export
|
||||
* @interface FileSystemEntryInfo
|
||||
*/
|
||||
export interface FileSystemEntryInfo {
|
||||
/**
|
||||
* Gets the name.
|
||||
* @type {string}
|
||||
* @memberof FileSystemEntryInfo
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Gets the path.
|
||||
* @type {string}
|
||||
* @memberof FileSystemEntryInfo
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
*
|
||||
* @type {FileSystemEntryType}
|
||||
* @memberof FileSystemEntryInfo
|
||||
*/
|
||||
type?: FileSystemEntryType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FileSystemEntryInfo interface.
|
||||
*/
|
||||
export function instanceOfFileSystemEntryInfo(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function FileSystemEntryInfoFromJSON(json: any): FileSystemEntryInfo {
|
||||
return FileSystemEntryInfoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FileSystemEntryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileSystemEntryInfo {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'path': !exists(json, 'Path') ? undefined : json['Path'],
|
||||
'type': !exists(json, 'Type') ? undefined : FileSystemEntryTypeFromJSON(json['Type']),
|
||||
};
|
||||
}
|
||||
|
||||
export function FileSystemEntryInfoToJSON(value?: FileSystemEntryInfo | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Path': value.path,
|
||||
'Type': FileSystemEntryTypeToJSON(value.type),
|
||||
};
|
||||
}
|
||||
|
40
server/jellyfin/models/FileSystemEntryType.ts
Normal file
40
server/jellyfin/models/FileSystemEntryType.ts
Normal file
@ -0,0 +1,40 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Enum FileSystemEntryType.
|
||||
* @export
|
||||
*/
|
||||
export const FileSystemEntryType = {
|
||||
File: 'File',
|
||||
Directory: 'Directory',
|
||||
NetworkComputer: 'NetworkComputer',
|
||||
NetworkShare: 'NetworkShare'
|
||||
} as const;
|
||||
export type FileSystemEntryType = typeof FileSystemEntryType[keyof typeof FileSystemEntryType];
|
||||
|
||||
|
||||
export function FileSystemEntryTypeFromJSON(json: any): FileSystemEntryType {
|
||||
return FileSystemEntryTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FileSystemEntryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileSystemEntryType {
|
||||
return json as FileSystemEntryType;
|
||||
}
|
||||
|
||||
export function FileSystemEntryTypeToJSON(value?: FileSystemEntryType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
89
server/jellyfin/models/FontFile.ts
Normal file
89
server/jellyfin/models/FontFile.ts
Normal file
@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Class FontFile.
|
||||
* @export
|
||||
* @interface FontFile
|
||||
*/
|
||||
export interface FontFile {
|
||||
/**
|
||||
* Gets or sets the name.
|
||||
* @type {string}
|
||||
* @memberof FontFile
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* Gets or sets the size.
|
||||
* @type {number}
|
||||
* @memberof FontFile
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* Gets or sets the date created.
|
||||
* @type {Date}
|
||||
* @memberof FontFile
|
||||
*/
|
||||
dateCreated?: Date;
|
||||
/**
|
||||
* Gets or sets the date modified.
|
||||
* @type {Date}
|
||||
* @memberof FontFile
|
||||
*/
|
||||
dateModified?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FontFile interface.
|
||||
*/
|
||||
export function instanceOfFontFile(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function FontFileFromJSON(json: any): FontFile {
|
||||
return FontFileFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FontFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): FontFile {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||||
'size': !exists(json, 'Size') ? undefined : json['Size'],
|
||||
'dateCreated': !exists(json, 'DateCreated') ? undefined : (new Date(json['DateCreated'])),
|
||||
'dateModified': !exists(json, 'DateModified') ? undefined : (new Date(json['DateModified'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function FontFileToJSON(value?: FontFile | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'Name': value.name,
|
||||
'Size': value.size,
|
||||
'DateCreated': value.dateCreated === undefined ? undefined : (value.dateCreated.toISOString()),
|
||||
'DateModified': value.dateModified === undefined ? undefined : (value.dateModified.toISOString()),
|
||||
};
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user