From 2492807c65020c26a611ee3d33ec232f13f3f739 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Oct 2024 15:37:08 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 --- .speakeasy/gen.lock | 6 ++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 ++++---- README.md | 8 +++---- RELEASES.md | 12 +++++++++- docs/sdk/models/operations/getpinglobals.md | 8 +++---- docs/sdk/models/operations/getpinrequest.md | 8 +++---- .../operations/gettokenbypinidglobals.md | 8 +++---- .../operations/gettokenbypinidrequest.md | 8 +++---- .../operations/postuserssignindataglobals.md | 8 +++---- .../operations/postuserssignindatarequest.md | 8 +++---- jsr.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- .../authenticationPostUsersSignInData.ts | 6 ++--- src/funcs/plexGetPin.ts | 8 +++---- src/funcs/plexGetServerResources.ts | 2 +- src/funcs/plexGetTokenByPinId.ts | 6 ++--- src/lib/config.ts | 4 ++-- src/sdk/models/operations/getpin.ts | 24 +++++++++++++++++++ src/sdk/models/operations/gettokenbypinid.ts | 24 +++++++++++++++++++ .../models/operations/postuserssignindata.ts | 24 +++++++++++++++++++ 22 files changed, 137 insertions(+), 55 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e4c7919e..f7b1e87d 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 16f22cbf-f23f-4419-8924-3a4b06381947 management: - docChecksum: f12b653820ae77ca3b2820bc9459d866 + docChecksum: 8211d52d43d85f28d036343732de833a docVersion: 0.0.3 speakeasyVersion: 1.405.6 generationVersion: 2.428.1 - releaseVersion: 0.24.0 - configChecksum: 12acbc7182c6906e6ba67c064cf39c2c + releaseVersion: 0.24.1 + configChecksum: 3e2876ee2c8211e7dbed88c3d78e86ed repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 36542b04..67f8e35b 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.24.0 + version: 0.24.1 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 127a277d..5ab2d3e8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:c52cde0b8d51e160f7b9f1a3d3ea4dbb1aca6d5caad714e549201fb757fadd57 - sourceBlobDigest: sha256:f417b03ff71356808554313f24c3d06d670474bf51bc9a0631de1ad49c13a361 + sourceRevisionDigest: sha256:b377f79289070406b0d4adcf59fa6886c6c90cb13a7893c07b44cae956ee25e4 + sourceBlobDigest: sha256:92072097f693005146db1ceb5728eee08693d61bb5578b26c32dcbe1cc32927f tags: - latest - main @@ -18,10 +18,10 @@ targets: plexjs: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:c52cde0b8d51e160f7b9f1a3d3ea4dbb1aca6d5caad714e549201fb757fadd57 - sourceBlobDigest: sha256:f417b03ff71356808554313f24c3d06d670474bf51bc9a0631de1ad49c13a361 + sourceRevisionDigest: sha256:b377f79289070406b0d4adcf59fa6886c6c90cb13a7893c07b44cae956ee25e4 + sourceBlobDigest: sha256:92072097f693005146db1ceb5728eee08693d61bb5578b26c32dcbe1cc32927f codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:0f48dbf8695dfd00a5ebd3fec72c0d71282b0d395790fe53811866c2756be38d + codeSamplesRevisionDigest: sha256:d2b20286cc2cb6f6ffcd416a467a29872b97bcc88d2e1ffe51e681666ef7ed17 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1fde5c45..2de1e5f8 100644 --- a/README.md +++ b/README.md @@ -630,10 +630,10 @@ The following global parameters are available. | Name | Type | Required | Description | | ---- | ---- |:--------:| ----------- | | clientID | string | | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | -| clientName | string | | The clientName parameter. | -| clientVersion | string | | The clientVersion parameter. | -| clientPlatform | string | | The clientPlatform parameter. | -| deviceName | string | | The deviceName parameter. | +| clientName | string | | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | +| clientVersion | string | | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | +| clientPlatform | string | | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | +| deviceName | string | | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | ### Example diff --git a/RELEASES.md b/RELEASES.md index 4e446087..dbf6032e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1078,4 +1078,14 @@ Based on: ### Generated - [typescript v0.24.0] . ### Releases -- [NPM v0.24.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.0 - . \ No newline at end of file +- [NPM v0.24.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.0 - . + +## 2024-10-01 15:35:33 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.24.1] . +### Releases +- [NPM v0.24.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.1 - . \ No newline at end of file diff --git a/docs/sdk/models/operations/getpinglobals.md b/docs/sdk/models/operations/getpinglobals.md index ac31e071..54274717 100644 --- a/docs/sdk/models/operations/getpinglobals.md +++ b/docs/sdk/models/operations/getpinglobals.md @@ -13,7 +13,7 @@ let value: GetPinGlobals = {}; | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | gcgzw5rz2xovp84b4vha3a40 | -| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux | -| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | Plex Web | +| `deviceName` | *string* | :heavy_minus_sign: | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | Linux | +| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | 4.133.0 | +| `clientPlatform` | *string* | :heavy_minus_sign: | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | Chrome | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpinrequest.md b/docs/sdk/models/operations/getpinrequest.md index 122bad48..0309d3c4 100644 --- a/docs/sdk/models/operations/getpinrequest.md +++ b/docs/sdk/models/operations/getpinrequest.md @@ -14,7 +14,7 @@ let value: GetPinRequest = {}; | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `strong` | *boolean* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | | `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | gcgzw5rz2xovp84b4vha3a40 | -| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux | -| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | Plex Web | +| `deviceName` | *string* | :heavy_minus_sign: | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | Linux | +| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | 4.133.0 | +| `clientPlatform` | *string* | :heavy_minus_sign: | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | Chrome | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettokenbypinidglobals.md b/docs/sdk/models/operations/gettokenbypinidglobals.md index db29de19..beb165ef 100644 --- a/docs/sdk/models/operations/gettokenbypinidglobals.md +++ b/docs/sdk/models/operations/gettokenbypinidglobals.md @@ -13,7 +13,7 @@ let value: GetTokenByPinIdGlobals = {}; | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | gcgzw5rz2xovp84b4vha3a40 | -| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux | -| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | Plex Web | +| `deviceName` | *string* | :heavy_minus_sign: | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | Linux | +| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | 4.133.0 | +| `clientPlatform` | *string* | :heavy_minus_sign: | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | Chrome | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettokenbypinidrequest.md b/docs/sdk/models/operations/gettokenbypinidrequest.md index 32d76725..71c7c4b8 100644 --- a/docs/sdk/models/operations/gettokenbypinidrequest.md +++ b/docs/sdk/models/operations/gettokenbypinidrequest.md @@ -16,7 +16,7 @@ let value: GetTokenByPinIdRequest = { | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pinID` | *number* | :heavy_check_mark: | The PinID to retrieve an access token for | | | `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | gcgzw5rz2xovp84b4vha3a40 | -| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux | -| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | Plex Web | +| `deviceName` | *string* | :heavy_minus_sign: | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | Linux | +| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | 4.133.0 | +| `clientPlatform` | *string* | :heavy_minus_sign: | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | Chrome | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindataglobals.md b/docs/sdk/models/operations/postuserssignindataglobals.md index cfe5cc0d..af101ef3 100644 --- a/docs/sdk/models/operations/postuserssignindataglobals.md +++ b/docs/sdk/models/operations/postuserssignindataglobals.md @@ -13,7 +13,7 @@ let value: PostUsersSignInDataGlobals = {}; | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | gcgzw5rz2xovp84b4vha3a40 | -| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux | -| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | Plex Web | +| `deviceName` | *string* | :heavy_minus_sign: | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | Linux | +| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | 4.133.0 | +| `clientPlatform` | *string* | :heavy_minus_sign: | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | Chrome | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindatarequest.md b/docs/sdk/models/operations/postuserssignindatarequest.md index 6922e29f..fa8d7c15 100644 --- a/docs/sdk/models/operations/postuserssignindatarequest.md +++ b/docs/sdk/models/operations/postuserssignindatarequest.md @@ -19,8 +19,8 @@ let value: PostUsersSignInDataRequest = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) | gcgzw5rz2xovp84b4vha3a40 | -| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux | -| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome | +| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) | Plex Web | +| `deviceName` | *string* | :heavy_minus_sign: | The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) | Linux | +| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) | 4.133.0 | +| `clientPlatform` | *string* | :heavy_minus_sign: | The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) | Chrome | | `requestBody` | [operations.PostUsersSignInDataRequestBody](../../../sdk/models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/jsr.json b/jsr.json index 7ff24ec5..a44fc8f5 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@lukehagar/plexjs", - "version": "0.24.0", + "version": "0.24.1", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 7a228fec..0bd141c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.24.0", + "version": "0.24.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.24.0", + "version": "0.24.1", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index ffa6d6e9..2f108d1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.24.0", + "version": "0.24.1", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/authenticationPostUsersSignInData.ts b/src/funcs/authenticationPostUsersSignInData.ts index fc9c8733..f57d9efc 100644 --- a/src/funcs/authenticationPostUsersSignInData.ts +++ b/src/funcs/authenticationPostUsersSignInData.ts @@ -71,16 +71,16 @@ export async function authenticationPostUsersSignInData( const path = pathToFunc("/users/signin")(); const query = encodeFormQuery({ - "X-Plex-Client-Identifier": payload.ClientID, "X-Plex-Client-Identifier": client._options.clientID, + "X-Plex-Client-Identifier": payload.ClientID, "X-Plex-Device": payload.DeviceName, "X-Plex-Device": client._options.deviceName, - "X-Plex-Platform": payload.ClientPlatform, "X-Plex-Platform": client._options.clientPlatform, + "X-Plex-Platform": payload.ClientPlatform, "X-Plex-Product": client._options.clientName, "X-Plex-Product": payload.ClientName, - "X-Plex-Version": client._options.clientVersion, "X-Plex-Version": payload.ClientVersion, + "X-Plex-Version": client._options.clientVersion, }); const headers = new Headers({ diff --git a/src/funcs/plexGetPin.ts b/src/funcs/plexGetPin.ts index 3d1f0f17..28994987 100644 --- a/src/funcs/plexGetPin.ts +++ b/src/funcs/plexGetPin.ts @@ -65,14 +65,14 @@ export async function plexGetPin( const query = encodeFormQuery({ "strong": payload.strong, - "X-Plex-Client-Identifier": client._options.clientID, "X-Plex-Client-Identifier": payload.ClientID, - "X-Plex-Device": payload.DeviceName, + "X-Plex-Client-Identifier": client._options.clientID, "X-Plex-Device": client._options.deviceName, - "X-Plex-Platform": client._options.clientPlatform, + "X-Plex-Device": payload.DeviceName, "X-Plex-Platform": payload.ClientPlatform, - "X-Plex-Product": client._options.clientName, + "X-Plex-Platform": client._options.clientPlatform, "X-Plex-Product": payload.ClientName, + "X-Plex-Product": client._options.clientName, "X-Plex-Version": payload.ClientVersion, "X-Plex-Version": client._options.clientVersion, }); diff --git a/src/funcs/plexGetServerResources.ts b/src/funcs/plexGetServerResources.ts index 4e9524d8..79267764 100644 --- a/src/funcs/plexGetServerResources.ts +++ b/src/funcs/plexGetServerResources.ts @@ -79,8 +79,8 @@ export async function plexGetServerResources( "includeHttps": payload.includeHttps, "includeIPv6": payload.includeIPv6, "includeRelay": payload.includeRelay, - "X-Plex-Client-Identifier": client._options.clientID, "X-Plex-Client-Identifier": payload.ClientID, + "X-Plex-Client-Identifier": client._options.clientID, }); const headers = new Headers({ diff --git a/src/funcs/plexGetTokenByPinId.ts b/src/funcs/plexGetTokenByPinId.ts index 54ebcd9c..17097d9d 100644 --- a/src/funcs/plexGetTokenByPinId.ts +++ b/src/funcs/plexGetTokenByPinId.ts @@ -74,12 +74,12 @@ export async function plexGetTokenByPinId( const query = encodeFormQuery({ "X-Plex-Client-Identifier": client._options.clientID, "X-Plex-Client-Identifier": payload.ClientID, - "X-Plex-Device": payload.DeviceName, "X-Plex-Device": client._options.deviceName, - "X-Plex-Platform": client._options.clientPlatform, + "X-Plex-Device": payload.DeviceName, "X-Plex-Platform": payload.ClientPlatform, - "X-Plex-Product": payload.ClientName, + "X-Plex-Platform": client._options.clientPlatform, "X-Plex-Product": client._options.clientName, + "X-Plex-Product": payload.ClientName, "X-Plex-Version": payload.ClientVersion, "X-Plex-Version": client._options.clientVersion, }); diff --git a/src/lib/config.ts b/src/lib/config.ts index 16e6d5e8..3fe7b7c2 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -115,7 +115,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.3", - sdkVersion: "0.24.0", + sdkVersion: "0.24.1", genVersion: "2.428.1", - userAgent: "speakeasy-sdk/typescript 0.24.0 2.428.1 0.0.3 @lukehagar/plexjs", + userAgent: "speakeasy-sdk/typescript 0.24.1 2.428.1 0.0.3 @lukehagar/plexjs", } as const; diff --git a/src/sdk/models/operations/getpin.ts b/src/sdk/models/operations/getpin.ts index 5c65ae28..4f90a447 100644 --- a/src/sdk/models/operations/getpin.ts +++ b/src/sdk/models/operations/getpin.ts @@ -14,9 +14,21 @@ export type GetPinGlobals = { * The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) */ clientID?: string | undefined; + /** + * The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) + */ clientName?: string | undefined; + /** + * The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) + */ deviceName?: string | undefined; + /** + * The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) + */ clientVersion?: string | undefined; + /** + * The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) + */ clientPlatform?: string | undefined; }; @@ -33,9 +45,21 @@ export type GetPinRequest = { * The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) */ clientID?: string | undefined; + /** + * The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) + */ clientName?: string | undefined; + /** + * The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) + */ deviceName?: string | undefined; + /** + * The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) + */ clientVersion?: string | undefined; + /** + * The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) + */ clientPlatform?: string | undefined; }; diff --git a/src/sdk/models/operations/gettokenbypinid.ts b/src/sdk/models/operations/gettokenbypinid.ts index 53955b53..24fa4da4 100644 --- a/src/sdk/models/operations/gettokenbypinid.ts +++ b/src/sdk/models/operations/gettokenbypinid.ts @@ -14,9 +14,21 @@ export type GetTokenByPinIdGlobals = { * The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) */ clientID?: string | undefined; + /** + * The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) + */ clientName?: string | undefined; + /** + * The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) + */ deviceName?: string | undefined; + /** + * The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) + */ clientVersion?: string | undefined; + /** + * The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) + */ clientPlatform?: string | undefined; }; @@ -29,9 +41,21 @@ export type GetTokenByPinIdRequest = { * The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) */ clientID?: string | undefined; + /** + * The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) + */ clientName?: string | undefined; + /** + * The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) + */ deviceName?: string | undefined; + /** + * The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) + */ clientVersion?: string | undefined; + /** + * The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) + */ clientPlatform?: string | undefined; }; diff --git a/src/sdk/models/operations/postuserssignindata.ts b/src/sdk/models/operations/postuserssignindata.ts index a9da737a..d8e10d17 100644 --- a/src/sdk/models/operations/postuserssignindata.ts +++ b/src/sdk/models/operations/postuserssignindata.ts @@ -19,9 +19,21 @@ export type PostUsersSignInDataGlobals = { * The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) */ clientID?: string | undefined; + /** + * The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) + */ clientName?: string | undefined; + /** + * The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) + */ deviceName?: string | undefined; + /** + * The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) + */ clientVersion?: string | undefined; + /** + * The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) + */ clientPlatform?: string | undefined; }; @@ -40,9 +52,21 @@ export type PostUsersSignInDataRequest = { * The unique identifier for the client application. This is used to track the client application and its usage. (UUID, serial number, or other number unique per device) */ clientID?: string | undefined; + /** + * The name of the client application. This is used to track the client application and its usage. (Plex Web, Plex Media Server, etc.) + */ clientName?: string | undefined; + /** + * The name of the device the client application is running on. This is used to track the client application and its usage. (Linux, iOS, Android, etc.) + */ deviceName?: string | undefined; + /** + * The version of the client application. This is used to track the client application and its usage. (4.133.0, 5.0.0, etc.) + */ clientVersion?: string | undefined; + /** + * The platform of the client application. This is used to track the client application and its usage. (Chrome, Safari, etc.) + */ clientPlatform?: string | undefined; /** * Login credentials