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

147 lines
68 KiB
Markdown

# PostUsersSignInDataResponse
## Example Usage
```typescript
import {
PostUsersSignInDataAuthenticationFeatures,
PostUsersSignInDataAuthenticationResponseStatus,
PostUsersSignInDataAuthenticationStatus,
PostUsersSignInDataAutoSelectSubtitle,
PostUsersSignInDataDefaultSubtitleAccessibility,
PostUsersSignInDataDefaultSubtitleForced,
PostUsersSignInDataFeatures,
PostUsersSignInDataMailingListStatus,
PostUsersSignInDataMediaReviewsVisibility,
PostUsersSignInDataResponse,
PostUsersSignInDataState,
PostUsersSignInDataStatus,
PostUsersSignInDataWatchedIndicator,
} from "@lukehagar/plexjs/sdk/models/operations";
let value: PostUsersSignInDataResponse = {
contentType: "<value>",
statusCode: 566602,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
userPlexAccount: {
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: PostUsersSignInDataMailingListStatus.Unsubscribed,
maxHomeSize: 15,
pin: "string",
profile: {
autoSelectAudio: true,
defaultAudioLanguage: "ja",
defaultSubtitleLanguage: "en",
autoSelectSubtitle: PostUsersSignInDataAutoSelectSubtitle.One,
defaultSubtitleAccessibility:
PostUsersSignInDataDefaultSubtitleAccessibility.One,
defaultSubtitleForced: PostUsersSignInDataDefaultSubtitleForced.Zero,
watchedIndicator: PostUsersSignInDataWatchedIndicator.One,
mediaReviewsVisibility: PostUsersSignInDataMediaReviewsVisibility.One,
},
protected: false,
rememberExpiresAt: 1722364046,
restricted: false,
roles: [
"string",
],
scrobbleTypes: "",
services: [
{
identifier: "metadata-dev",
endpoint: "https://epg.provider.plex.tv",
token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
secret: "string",
status: PostUsersSignInDataStatus.Online,
},
],
subscription: {
features: [
PostUsersSignInDataFeatures.AndroidDolbyVision,
],
active: true,
subscribedAt: "2021-04-12T18:21:12Z",
status: PostUsersSignInDataAuthenticationStatus.Inactive,
paymentService: "string",
plan: "string",
},
subscriptionDescription: "string",
subscriptions: [
{
features: [
PostUsersSignInDataAuthenticationFeatures.AndroidDolbyVision,
],
active: true,
subscribedAt: "2021-04-12T18:21:12Z",
status: PostUsersSignInDataAuthenticationResponseStatus.Inactive,
paymentService: "string",
plan: "string",
},
],
thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
title: "UsernameTitle",
twoFactorEnabled: false,
username: "Username",
uuid: "dae343c1f45beb4f",
pastSubscriptions: [
{
id: "string",
mode: "string",
renewsAt: string,
endsAt: 1556281940,
canceled: true,
gracePeriod: true,
onHold: true,
canReactivate: true,
canUpgrade: true,
canDowngrade: true,
canConvert: true,
type: "plexpass",
transfer: "string",
state: PostUsersSignInDataState.Ended,
billing: {
internalPaymentMethod: {},
paymentMethodId: 523248,
},
},
],
trials: [
{},
],
},
};
```
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | |
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | |
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
| `userPlexAccount` | [operations.PostUsersSignInDataUserPlexAccount](../../../sdk/models/operations/postuserssignindatauserplexaccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | {<br/>"adsConsent": true,<br/>"adsConsentReminderAt": "2019-08-24T14:15:22Z",<br/>"adsConsentSetAt": "2019-08-24T14:15:22Z",<br/>"anonymous": false,<br/>"authToken": "CxoUzBTSV5hsxjTpFKaf",<br/>"backupCodesCreated": false,<br/>"confirmed": false,<br/>"country": "US",<br/>"email": "username@email.com",<br/>"emailOnlyAuth": false,<br/>"experimentalFeatures": false,<br/>"friendlyName": "friendlyUsername",<br/>"entitlements": [],<br/>"guest": false,<br/>"hasPassword": true,<br/>"home": false,<br/>"homeAdmin": false,<br/>"homeSize": 1,<br/>"id": 13692262,<br/>"joinedAt": 1721154902,<br/>"locale": null,<br/>"mailingListActive": false,<br/>"mailingListStatus": "subscribed",<br/>"maxHomeSize": 15,<br/>"pastSubscriptions": [<br/>{<br/>"id": "string",<br/>"mode": "string",<br/>"renewsAt": "string",<br/>"endsAt": "1556281940",<br/>"canceled": "0",<br/>"gracePeriod": "0",<br/>"onHold": "0",<br/>"canReactivate": "0",<br/>"canUpgrade": "0",<br/>"canDowngrade": "0",<br/>"canConvert": "0",<br/>"type": "plexpass",<br/>"transfer": "string",<br/>"state": "ended",<br/>"billing": [<br/>{<br/>"internalPaymentMethod": "string",<br/>"paymentMethodId": "string"<br/>}<br/>]<br/>}<br/>],<br/>"pin": "string",<br/>"profile": [<br/>{<br/>"autoSelectAudio": true,<br/>"defaultAudioLanguage": "ja",<br/>"defaultSubtitleLanguage": "en",<br/>"autoSelectSubtitle": 1,<br/>"defaultSubtitleAccessibility": 1,<br/>"defaultSubtitleForced": 0,<br/>"watchedIndicator": 1,<br/>"mediaReviewsVisibility": 0<br/>}<br/>],<br/>"protected": false,<br/>"rememberExpiresAt": 1722364046,<br/>"restricted": false,<br/>"roles": [<br/>"string"<br/>],<br/>"scrobbleTypes": "",<br/>"services": [<br/>{<br/>"identifier": "metadata-dev",<br/>"endpoint": "https://epg.provider.plex.tv",<br/>"token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",<br/>"secret": "string",<br/>"status": "online"<br/>}<br/>],<br/>"subscription": {<br/>"features": [<br/>"Android - Dolby Vision"<br/>],<br/>"active": true,<br/>"subscribedAt": "2021-04-12T18:21:12Z",<br/>"status": "Inactive",<br/>"paymentService": "string",<br/>"plan": "string"<br/>},<br/>"subscriptionDescription": "string",<br/>"subscriptions": [<br/>{<br/>"features": [<br/>"Android - Dolby Vision"<br/>],<br/>"active": true,<br/>"subscribedAt": "2021-04-12T18:21:12Z",<br/>"status": "Inactive",<br/>"paymentService": "string",<br/>"plan": "string"<br/>}<br/>],<br/>"thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",<br/>"title": "UsernameTitle",<br/>"trials": [<br/>{}<br/>],<br/>"twoFactorEnabled": false,<br/>"username": "Username",<br/>"uuid": "dae343c1f45beb4f"<br/>} |