This commit is contained in:
Luke Hagar
2024-09-09 16:11:02 +00:00
12 changed files with 1711 additions and 179 deletions

View File

@@ -220,10 +220,7 @@ properties:
example: 13692262
format: int32
joinedAt:
type: integer
description: Unix epoch datetime the account joined Plex
format: int32
example: 1721154902
$ref: "./common/PlexDateTime.yaml"
locale:
type:
- string
@@ -254,10 +251,7 @@ properties:
description: If the account has a Plex Home PIN enabled
default: false
rememberExpiresAt:
type: integer
description: Unix epoch datetime the authtoken expires
format: int32
example: 1722364046
$ref: "./common/PlexDateTime.yaml"
restricted:
type: boolean
description: If the account is a Plex Home managed user

View File

@@ -2,4 +2,4 @@ type:
- integer
example: 1556281940
description: Unix epoch datetime
format: int32
format: int64

View File

@@ -4,11 +4,12 @@ post:
security: []
tags:
- Authentication
summary: Get User SignIn Data
summary: Get User Sign In Data
description: Sign in user with username and password and return user data with Plex authentication token
operationId: post-users-sign-in-data
parameters:
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
- $ref: "../../parameters/accept-application-json.yaml"
requestBody:
content:
application/x-www-form-urlencoded:
@@ -29,6 +30,9 @@ post:
rememberMe:
type: boolean
default: false
verificationCode:
type: string
example: 123456
description: Login credentials
responses:
"201":

View File

@@ -14,6 +14,7 @@ content:
example: 1000
message:
type: string
x-speakeasy-error-message: true
example: X-Plex-Client-Identifier is missing
status:
type: integer

View File

@@ -1 +1,21 @@
description: Bad Request - A parameter was not specified, or was specified incorrectly.
content:
application/json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
code:
type: integer
example: 1000
message:
type: string
x-speakeasy-error-message: true
example: X-Plex-Client-Identifier is missing
status:
type: integer
example: 400

View File

@@ -10,11 +10,12 @@ content:
type: object
properties:
code:
type: number
type: integer
example: 1001
message:
type: string
x-speakeasy-error-message: true
example: User could not be authenticated
status:
type: number
type: integer
example: 401

View File

@@ -9,4 +9,5 @@ content:
example: 408
message:
type: string
x-speakeasy-error-message: true
example: The server timed out waiting for the request.