@redbeemedia/javascript-player
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -39,4 +39,4 @@ import { Handler } from 'mitt'; | ||
stitcher: AdStitcher; | ||
stitcherProfileId?: string; | ||
stitcherSession?: string; | ||
tenantId?: string; | ||
} | ||
@@ -72,5 +72,5 @@ | ||
declare interface AnonymousSessionResponse { | ||
/** The time when the session expires */ | ||
/** The ISO 8601 time when the session expires. */ | ||
expirationDateTime: string; | ||
/** The session token to use for subsequent requests. */ | ||
/** The (bearer) session token to use in subsequent requests. */ | ||
sessionToken: string; | ||
@@ -106,6 +106,6 @@ } | ||
participants: Person[]; | ||
/** A key value object */ | ||
popularityScores?: object; | ||
popularityScores?: Record<string, string>; | ||
productionCountries: string[]; | ||
productionYear?: number; | ||
program?: Program; | ||
programs?: Program[]; | ||
@@ -115,3 +115,2 @@ publications: Publication[]; | ||
releaseDate?: string; | ||
/** The duration of the asset in seconds. */ | ||
runtime?: number; | ||
@@ -121,2 +120,3 @@ season?: string; | ||
seasons?: Season[]; | ||
seoData?: LocalizedSeoData[]; | ||
slugs: string[]; | ||
@@ -131,3 +131,2 @@ spokenLanguages: string[]; | ||
type: AssetType; | ||
userData?: UserAssetData; | ||
} | ||
@@ -142,3 +141,2 @@ | ||
declare interface AssetRights { | ||
HDMIBlocked?: boolean; | ||
activation?: string; | ||
@@ -154,2 +152,3 @@ airplayBlocked?: boolean; | ||
fourGBlocked?: boolean; | ||
hdmiblocked?: boolean; | ||
jailbrokenBlocked?: boolean; | ||
@@ -348,17 +347,4 @@ locationEnabled?: boolean; | ||
rights?: AssetRights; | ||
type?: DeviceType; | ||
} | ||
declare const DeviceType: { | ||
readonly APPLE_TV: "APPLE_TV"; | ||
readonly CONSOLE: "CONSOLE"; | ||
readonly MOBILE: "MOBILE"; | ||
readonly SMART_TV: "SMART_TV"; | ||
readonly STB: "STB"; | ||
readonly TABLET: "TABLET"; | ||
readonly WEB: "WEB"; | ||
}; | ||
declare type DeviceType = (typeof DeviceType)[keyof typeof DeviceType]; | ||
declare interface DRMLicense { | ||
@@ -455,3 +441,2 @@ "com.apple.fps"?: DrmUrls; | ||
asset: Asset; | ||
/** The id of the asset this program is for. */ | ||
assetId: string; | ||
@@ -726,26 +711,3 @@ endTime: string; | ||
declare interface JsonNode { | ||
array?: boolean; | ||
bigDecimal?: boolean; | ||
bigInteger?: boolean; | ||
binary?: boolean; | ||
boolean?: boolean; | ||
containerNode?: boolean; | ||
double?: boolean; | ||
empty?: boolean; | ||
float?: boolean; | ||
floatingPointNumber?: boolean; | ||
int?: boolean; | ||
integralNumber?: boolean; | ||
long?: boolean; | ||
missingNode?: boolean; | ||
nodeType?: "ARRAY" | "BINARY" | "BOOLEAN" | "MISSING" | "NULL" | "NUMBER" | "OBJECT" | "POJO" | "STRING"; | ||
null?: boolean; | ||
number?: boolean; | ||
object?: boolean; | ||
pojo?: boolean; | ||
short?: boolean; | ||
textual?: boolean; | ||
valueNode?: boolean; | ||
} | ||
declare type JsonNode = object; | ||
@@ -784,2 +746,3 @@ declare const LicenseExpirationReason: { | ||
declare interface LocalizedData { | ||
article?: string; | ||
description?: string; | ||
@@ -798,25 +761,38 @@ extendedDescription?: string; | ||
declare type LocalizedSeoData = Record<"locale" | "seoDescription" | "seoTitle", string>; | ||
declare interface LoginResponse { | ||
/** The id of the account in the CRM. */ | ||
/** The user's accountId. */ | ||
accountId?: string; | ||
/** The status of the account. */ | ||
/** | ||
* Historical artifact. Always "OK" | ||
* @deprecated | ||
*/ | ||
accountStatus?: string; | ||
/** is a child user */ | ||
/** | ||
* use data in userProfile. | ||
* @deprecated | ||
*/ | ||
child?: boolean; | ||
configReloadQueryParameter?: QueryParameter; | ||
/** The token of the underlying CRM to use if talking directly to the CRM. */ | ||
crmToken?: string; | ||
/** The time when the session expires */ | ||
/** When the session expires. */ | ||
expirationDateTime: string; | ||
informationCollectionConsentGiven?: string; | ||
informationCollectionConsentRequiredDate?: string; | ||
/** If true to many devices are logged in and this session can not be used to play. */ | ||
/** If true to many devices are logged in and this session can not be used to play. Normally this will not happen. */ | ||
isOverDeviceLimit?: boolean; | ||
/** user language */ | ||
/** | ||
* use data in userProfile. | ||
* @deprecated | ||
*/ | ||
language?: string; | ||
/** Application defined value. Can be used e.g. to carry mapping to parental rating configuration. */ | ||
/** | ||
* use data in userProfile. | ||
* @deprecated | ||
*/ | ||
profileType?: string; | ||
/** The session token to use for subsequent requests. */ | ||
/** The (bearer) session token to use in subsequent requests. */ | ||
sessionToken: string; | ||
/** The id of the user in the CRM. */ | ||
/** The user's userId. */ | ||
userId?: string; | ||
@@ -864,19 +840,10 @@ userProfile?: UserProfile; | ||
declare interface Media { | ||
/** The DRM of the media. */ | ||
drm?: string; | ||
/** The duration of the media in milliseconds. */ | ||
durationMillis?: number; | ||
/** The streaming format of the media. */ | ||
format?: string; | ||
/** The height in pixels. */ | ||
height?: number; | ||
/** The id of the media. */ | ||
mediaId?: string; | ||
/** The name of the media. */ | ||
name?: string; | ||
/** The id of the EPG program this media is for. */ | ||
programId?: string; | ||
/** The status of the media. "enabled" if playable. */ | ||
status?: string; | ||
/** The width in pixels. */ | ||
width?: number; | ||
@@ -918,10 +885,3 @@ } | ||
declare interface ParentalRating { | ||
/** The two letter country code this rating is for. */ | ||
country?: string; | ||
/** The rating, allowed values depends on the scheme. */ | ||
rating?: string; | ||
/** The rating scheme, for instance MPAA. */ | ||
scheme?: string; | ||
} | ||
declare type ParentalRating = Record<"country" | "rating" | "scheme", string>; | ||
@@ -1054,2 +1014,3 @@ declare interface Person { | ||
streamInfo?: StreamInfo; | ||
subtitles?: Subtitle[]; | ||
userId?: string; | ||
@@ -1073,24 +1034,12 @@ } | ||
asset: Asset; | ||
/** The id of the asset this program is for. */ | ||
assetId: string; | ||
/** | ||
* If this program is currently published as blackout. This means any publication contains blackout, not global | ||
* blackout; | ||
*/ | ||
blackout?: boolean; | ||
/** If this asset is currently available as rough cut that is not expired. */ | ||
catchup?: boolean; | ||
/** If this asset is currently blocked for catchup. */ | ||
catchupBlocked?: boolean; | ||
/** The date the program was changed. */ | ||
changed?: string; | ||
/** The id of the channel this program is on. */ | ||
channelId?: string; | ||
/** The date the program was created. */ | ||
created?: string; | ||
endTime: string; | ||
/** The id of the program. */ | ||
programId: string; | ||
startTime: string; | ||
/** If this asset is currently available as VOD. */ | ||
vodAvailable?: boolean; | ||
@@ -1122,4 +1071,2 @@ } | ||
declare type QueryParameter = Record<"name" | "value", string>; | ||
export declare class RedBeePlayer extends EmitterBaseClass<PlayerEventsMap> { | ||
@@ -1290,2 +1237,4 @@ private destroyed; | ||
declare type Subtitle = Record<"label" | "language" | "url", string>; | ||
declare interface SubtitleTrackInfo { | ||
@@ -1381,76 +1330,44 @@ fileSize?: number; | ||
declare interface UserAssetData { | ||
playHistory?: UserAssetPlayHistory; | ||
} | ||
declare interface UserAssetPlayHistory { | ||
/** The channel id if the asset was viewed as catchup or live. */ | ||
channelId?: string; | ||
/** | ||
* Property is set to "FAILURE" if the data couldn't be received. | ||
* If no problem this property is not set. | ||
*/ | ||
errorMessage?: string; | ||
/** Last viewed offset, offset in the last play of the asset. */ | ||
lastViewedOffset?: number; | ||
/** The program id if the asset was viewed as catchup or live. */ | ||
programId?: string; | ||
} | ||
declare interface UserAttributeResponse { | ||
/** id of the attribute */ | ||
/** attributeId */ | ||
attributeId: string; | ||
/** The attributes default value. */ | ||
defaultValue?: object; | ||
/** If type = "enum": The enums value set */ | ||
/** If type = "enum™": The enums value set. */ | ||
enums?: UserAttributesEnumValue[]; | ||
/** Localized titles and descriptions */ | ||
/** Localized metadata. */ | ||
localized: UserAttributesLocalizedMetadata[]; | ||
/** if type = "integer" or "real" and any range is specified: min and max values. */ | ||
range?: UserAttributesRange; | ||
/** If true user must provide value */ | ||
/** If true the user must provide a value, whicgh mayt be the default value. */ | ||
requiredAtSignup: boolean; | ||
/** | ||
* Name of type | ||
* "boolean": value range null/undefined, false, true, | ||
* "email": valid email address | ||
* "string": any string | ||
* "integer": integer number e.g 1 | ||
* "real": Real/decimal number e.g 1.1 | ||
*/ | ||
/** boolean: value range null/undefined, false, true, email: valid email address, string: any string, integer: integer number e.g 1, real: Real/decimal number e.g 1.1, enum: a value defined by enums. */ | ||
type: string; | ||
/** The value set by the user. */ | ||
value?: object; | ||
/** If true the attribute has been set, potentially with a null/undefined value, in which case the default value is used */ | ||
/** If true the attribute has been set, potentially with a null/undefined value, in which case the default value is used. */ | ||
valueSet: boolean; | ||
} | ||
/** If type = "enum™": The enums value set. */ | ||
declare interface UserAttributesEnumValue { | ||
/** To be used as value of the enum */ | ||
/** Used as value of the enum. */ | ||
id?: string; | ||
/** Localized metadata. */ | ||
localized?: UserAttributesLocalizedMetadata[]; | ||
} | ||
declare interface UserAttributesLocalizedMetadata { | ||
/** The attribute's or enum's description in locale's language. */ | ||
description?: string; | ||
/** Locale of title and description. */ | ||
locale?: string; | ||
/** Title of attribute or enum in locale's language. */ | ||
title?: string; | ||
} | ||
/** Localized metadata. */ | ||
declare type UserAttributesLocalizedMetadata = Record<"description" | "locale" | "title", string>; | ||
/** if type = "integer" or "real" and any range is specified: min and max values. */ | ||
declare type UserAttributesRange = Record<"max" | "min", object>; | ||
declare interface UserCapabilities { | ||
/** True if user name is not equal to the user's email address and the user may change the email address using this API. */ | ||
canChangeEmail: boolean; | ||
/** True if the user can change password using this API. */ | ||
canChangePassword: boolean; | ||
/** True if user name equals the user's email address and the user may change this using this API; password required */ | ||
canChangeUserNameAndEmail: boolean; | ||
/** True if user can cancel account using this API. */ | ||
canManageAccount: boolean; | ||
/** True if user can manage devices using this API. */ | ||
canManageDevices: boolean; | ||
/** True if user can manage payment methods, such as credit cards using this API. */ | ||
canManagePayments: boolean; | ||
/** True if user can manage purchase, such as adding and cancelling subscriptions using this API. */ | ||
canManagePurchases: boolean; | ||
@@ -1460,13 +1377,7 @@ } | ||
declare interface UserProfile { | ||
/** True if this user profile is the active user */ | ||
/** True if this user profile is the active user (the user fetching this info. */ | ||
active?: boolean; | ||
/** | ||
* Potentially empty list of attributes | ||
* EXPERIMENTAL May change | ||
*/ | ||
attributes?: UserAttributeResponse[]; | ||
capabilities?: UserCapabilities; | ||
/** True if user is a child. */ | ||
child?: boolean; | ||
/** Created at */ | ||
/** Created at. */ | ||
created?: string; | ||
@@ -1477,8 +1388,11 @@ /** Display name (full name). */ | ||
emailAddress?: string; | ||
/** DEPRECATED True if the user must have an email address. Check User attribute primary-email-address instead. */ | ||
/** | ||
* True if the user must have an email address. Check User attribute primary-email-address instead. | ||
* @deprecated | ||
*/ | ||
emailAddressRequired?: boolean; | ||
/** preferred language. */ | ||
/** Language code of the user's preferred language */ | ||
language?: string; | ||
/** A key value object */ | ||
metadata?: object; | ||
/** Application defined map String->String. Can be used for arbitrary application specific data */ | ||
metadata?: Record<string, string>; | ||
/** True if user is owner of the account. */ | ||
@@ -1488,5 +1402,5 @@ owner?: boolean; | ||
profileType?: string; | ||
/** UserId of profile. */ | ||
/** User Id. */ | ||
userId?: string; | ||
/** User name. */ | ||
/** User's (login) name. */ | ||
username?: string; | ||
@@ -1493,0 +1407,0 @@ } |
{ | ||
"name": "@redbeemedia/javascript-player", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/redbee-player.min.js", |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
2529483
1365