mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 12:37:44 +00:00
corrections (#51)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@
|
|||||||
.stoplight.json
|
.stoplight.json
|
||||||
node_modules
|
node_modules
|
||||||
output
|
output
|
||||||
|
build
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@modyfi/vite-plugin-yaml": "^1.1.0",
|
"@modyfi/vite-plugin-yaml": "^1.1.0",
|
||||||
"@redocly/cli": "latest",
|
"@redocly/cli": "^1.23.1",
|
||||||
"@types/node": "^22.5.0",
|
"@types/node": "^22.5.0",
|
||||||
"chokidar-cli": "^3.0.0",
|
"chokidar-cli": "^3.0.0",
|
||||||
"prettier": "3.3.3",
|
"prettier": "3.3.3",
|
||||||
|
|||||||
@@ -220,10 +220,7 @@ properties:
|
|||||||
example: 13692262
|
example: 13692262
|
||||||
format: int32
|
format: int32
|
||||||
joinedAt:
|
joinedAt:
|
||||||
type: integer
|
$ref: "./common/PlexDateTime.yaml"
|
||||||
description: Unix epoch datetime the account joined Plex
|
|
||||||
format: int32
|
|
||||||
example: 1721154902
|
|
||||||
locale:
|
locale:
|
||||||
type:
|
type:
|
||||||
- string
|
- string
|
||||||
@@ -254,10 +251,7 @@ properties:
|
|||||||
description: If the account has a Plex Home PIN enabled
|
description: If the account has a Plex Home PIN enabled
|
||||||
default: false
|
default: false
|
||||||
rememberExpiresAt:
|
rememberExpiresAt:
|
||||||
type: integer
|
$ref: "./common/PlexDateTime.yaml"
|
||||||
description: Unix epoch datetime the authtoken expires
|
|
||||||
format: int32
|
|
||||||
example: 1722364046
|
|
||||||
restricted:
|
restricted:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: If the account is a Plex Home managed user
|
description: If the account is a Plex Home managed user
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ type:
|
|||||||
- integer
|
- integer
|
||||||
example: 1556281940
|
example: 1556281940
|
||||||
description: Unix epoch datetime
|
description: Unix epoch datetime
|
||||||
format: int32
|
format: int64
|
||||||
|
|||||||
@@ -4,11 +4,12 @@ post:
|
|||||||
security: []
|
security: []
|
||||||
tags:
|
tags:
|
||||||
- Authentication
|
- 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
|
description: Sign in user with username and password and return user data with Plex authentication token
|
||||||
operationId: post-users-sign-in-data
|
operationId: post-users-sign-in-data
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
||||||
|
- $ref: "../../parameters/accept-application-json.yaml"
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
@@ -29,6 +30,9 @@ post:
|
|||||||
rememberMe:
|
rememberMe:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
verificationCode:
|
||||||
|
type: string
|
||||||
|
example: 123456
|
||||||
description: Login credentials
|
description: Login credentials
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ content:
|
|||||||
example: 1000
|
example: 1000
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
|
x-speakeasy-error-message: true
|
||||||
example: X-Plex-Client-Identifier is missing
|
example: X-Plex-Client-Identifier is missing
|
||||||
status:
|
status:
|
||||||
type: integer
|
type: integer
|
||||||
|
|||||||
@@ -1 +1,21 @@
|
|||||||
description: Bad Request - A parameter was not specified, or was specified incorrectly.
|
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
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ content:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
code:
|
code:
|
||||||
type: number
|
type: integer
|
||||||
example: 1001
|
example: 1001
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
|
x-speakeasy-error-message: true
|
||||||
example: User could not be authenticated
|
example: User could not be authenticated
|
||||||
status:
|
status:
|
||||||
type: number
|
type: integer
|
||||||
example: 401
|
example: 401
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ content:
|
|||||||
example: 408
|
example: 408
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
|
x-speakeasy-error-message: true
|
||||||
example: The server timed out waiting for the request.
|
example: The server timed out waiting for the request.
|
||||||
|
|||||||
Reference in New Issue
Block a user