corrections (#51)

This commit is contained in:
Jason Landbridge
2024-09-08 17:00:17 +02:00
committed by GitHub
parent 7d3890bb94
commit ba7685244d
10 changed files with 35 additions and 13 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@
.stoplight.json
node_modules
output
build

BIN
bun.lockb

Binary file not shown.

View File

@@ -30,7 +30,7 @@
},
"devDependencies": {
"@modyfi/vite-plugin-yaml": "^1.1.0",
"@redocly/cli": "latest",
"@redocly/cli": "^1.23.1",
"@types/node": "^22.5.0",
"chokidar-cli": "^3.0.0",
"prettier": "3.3.3",

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

@@ -9,6 +9,7 @@ post:
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.