diff --git a/.gitignore b/.gitignore index 62c76eae..c56e5923 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .stoplight.json node_modules output +build diff --git a/bun.lockb b/bun.lockb index 5c5541c5..2936b047 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 4bb93f39..04181641 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/models/UserPlexAccount.yaml b/src/models/UserPlexAccount.yaml index 59e280f6..9e04bcd5 100644 --- a/src/models/UserPlexAccount.yaml +++ b/src/models/UserPlexAccount.yaml @@ -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 diff --git a/src/models/common/PlexDateTime.yaml b/src/models/common/PlexDateTime.yaml index be4cfefc..d6829970 100644 --- a/src/models/common/PlexDateTime.yaml +++ b/src/models/common/PlexDateTime.yaml @@ -2,4 +2,4 @@ type: - integer example: 1556281940 description: Unix epoch datetime -format: int32 +format: int64 diff --git a/src/paths/users/post-sign-in.yaml b/src/paths/users/post-sign-in.yaml index 3ffba578..09704434 100644 --- a/src/paths/users/post-sign-in.yaml +++ b/src/paths/users/post-sign-in.yaml @@ -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": diff --git a/src/responses/400-MissingIdentifier.yaml b/src/responses/400-MissingIdentifier.yaml index 55efaf24..30cde2ee 100644 --- a/src/responses/400-MissingIdentifier.yaml +++ b/src/responses/400-MissingIdentifier.yaml @@ -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 diff --git a/src/responses/400.yaml b/src/responses/400.yaml index c1fedbad..11158bc9 100644 --- a/src/responses/400.yaml +++ b/src/responses/400.yaml @@ -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 diff --git a/src/responses/401.yaml b/src/responses/401.yaml index 0dc401e6..91e79eed 100644 --- a/src/responses/401.yaml +++ b/src/responses/401.yaml @@ -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 diff --git a/src/responses/408.yaml b/src/responses/408.yaml index ebff08f4..2adf45ae 100644 --- a/src/responses/408.yaml +++ b/src/responses/408.yaml @@ -9,4 +9,5 @@ content: example: 408 message: type: string + x-speakeasy-error-message: true example: The server timed out waiting for the request.