Files
plexjs/docs/sdk/models/operations/gettokendetailsuserplexaccount.md

37 KiB
Raw Blame History

GetTokenDetailsUserPlexAccount

Logged in user details

Example Usage

import {
  AutoSelectSubtitle,
  DefaultSubtitleAccessibility,
  DefaultSubtitleForced,
  Features,
  GetTokenDetailsAuthenticationResponseStatus,
  GetTokenDetailsAuthenticationStatus,
  GetTokenDetailsFeatures,
  GetTokenDetailsStatus,
  GetTokenDetailsUserPlexAccount,
  MailingListStatus,
  MediaReviewsVisibility,
  WatchedIndicator,
} from "@lukehagar/plexjs/sdk/models/operations";

let value: GetTokenDetailsUserPlexAccount = {
  adsConsent: true,
  adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"),
  adsConsentSetAt: new Date("2019-08-24T14:15:22Z"),
  anonymous: false,
  authToken: "CxoUzBTSV5hsxjTpFKaf",
  backupCodesCreated: false,
  confirmed: false,
  country: "US",
  email: "username@email.com",
  emailOnlyAuth: false,
  experimentalFeatures: false,
  friendlyName: "friendlyUsername",
  entitlements: [
    "[]",
  ],
  guest: false,
  hasPassword: true,
  home: false,
  homeAdmin: false,
  homeSize: 1,
  id: 13692262,
  joinedAt: 1721154902,
  locale: null,
  mailingListActive: false,
  mailingListStatus: MailingListStatus.Unsubscribed,
  maxHomeSize: 15,
  pin: "string",
  profile: {
    autoSelectAudio: true,
    defaultAudioLanguage: "ja",
    defaultSubtitleLanguage: "en",
    autoSelectSubtitle: AutoSelectSubtitle.One,
    defaultSubtitleAccessibility: DefaultSubtitleAccessibility.One,
    defaultSubtitleForced: DefaultSubtitleForced.Zero,
    watchedIndicator: WatchedIndicator.One,
    mediaReviewsVisibility: MediaReviewsVisibility.Zero,
  },
  protected: false,
  rememberExpiresAt: 1722364046,
  restricted: false,
  roles: [
    "string",
  ],
  scrobbleTypes: "",
  services: [
    {
      identifier: "metadata-dev",
      endpoint: "https://epg.provider.plex.tv",
      token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
      secret: "string",
      status: GetTokenDetailsStatus.Online,
    },
  ],
  subscription: {
    features: [
      Features.AndroidDolbyVision,
    ],
    active: true,
    subscribedAt: "2021-04-12T18:21:12Z",
    status: GetTokenDetailsAuthenticationStatus.Inactive,
    paymentService: "string",
    plan: "string",
  },
  subscriptionDescription: "string",
  subscriptions: [
    {
      features: [
        GetTokenDetailsFeatures.AndroidDolbyVision,
      ],
      active: true,
      subscribedAt: "2021-04-12T18:21:12Z",
      status: GetTokenDetailsAuthenticationResponseStatus.Inactive,
      paymentService: "string",
      plan: "string",
    },
  ],
  thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
  title: "UsernameTitle",
  twoFactorEnabled: false,
  username: "Username",
  uuid: "dae343c1f45beb4f",
};

Fields

Field Type Required Description Example
adsConsent boolean ✔️ Unknown
adsConsentReminderAt Date ✔️ Unknown
adsConsentSetAt Date ✔️ Unknown
anonymous boolean Unknown
authToken string ✔️ The account token CxoUzBTSV5hsxjTpFKaf
backupCodesCreated boolean If the two-factor authentication backup codes have been created
confirmed boolean If the account has been confirmed
country string ✔️ The account country US
email string ✔️ The account email address username@email.com
emailOnlyAuth boolean If login with email only is enabled
experimentalFeatures boolean If experimental features are enabled
friendlyName string ✔️ Your account full name friendlyUsername
entitlements string[] ✔️ List of devices your allowed to use with this account
guest boolean If the account is a Plex Home guest user
hasPassword boolean If the account has a password
home boolean If the account is a Plex Home user
homeAdmin boolean If the account is the Plex Home admin
homeSize number ✔️ The number of accounts in the Plex Home 1
id number ✔️ The Plex account ID 13692262
joinedAt number ✔️ Unix epoch datetime 1556281940
locale string ✔️ The account locale
mailingListActive boolean If you are subscribed to the Plex newsletter
mailingListStatus operations.MailingListStatus ✔️ Your current mailing list status
maxHomeSize number ✔️ The maximum number of accounts allowed in the Plex Home 15
pin string : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN
profile operations.UserProfile ✔️ N/A
protected boolean If the account has a Plex Home PIN enabled
rememberExpiresAt number ✔️ Unix epoch datetime 1556281940
restricted boolean If the account is a Plex Home managed user
roles string[] [Might be removed] List of account roles. Plexpass membership listed here
scrobbleTypes string ✔️ Unknown
services operations.Services[] ✔️ N/A
subscription operations.Subscription ✔️ If the accounts Plex Pass subscription is active
subscriptionDescription string ✔️ Description of the Plex Pass subscription
subscriptions operations.GetTokenDetailsSubscription[] ✔️ N/A
thumb string ✔️ URL of the account thumbnail https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101
title string ✔️ The title of the account (username or friendly name) UsernameTitle
twoFactorEnabled boolean If two-factor authentication is enabled
username string ✔️ The account username Username
uuid string ✔️ The account UUID dae343c1f45beb4f