ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0

This commit is contained in:
speakeasybot
2024-10-03 12:29:09 +00:00
parent 77b0ef9507
commit c839d9f6c7
92 changed files with 278 additions and 1154 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: 16f22cbf-f23f-4419-8924-3a4b06381947 id: 16f22cbf-f23f-4419-8924-3a4b06381947
management: management:
docChecksum: 1ee2e5413af07e886e33659b9b269dd5 docChecksum: 23094f3a9fe02710a8628ad5456f5d42
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.405.6 speakeasyVersion: 1.405.6
generationVersion: 2.428.1 generationVersion: 2.428.1
releaseVersion: 0.25.1 releaseVersion: 0.26.1
configChecksum: fbb6cdc652d55e2fd4686855e1cf4ed7 configChecksum: 60271a6e5ece5e9400f671595bbf9013
repoURL: https://github.com/LukeHagar/plexjs.git repoURL: https://github.com/LukeHagar/plexjs.git
repoSubDirectory: . repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexjs installationURL: https://github.com/LukeHagar/plexjs
@@ -2166,7 +2166,7 @@ examples:
speakeasy-default-get-token-details: speakeasy-default-get-token-details:
responses: responses:
"200": "200":
application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null} application/json: {"adsConsent": true, "adsConsentReminderAt": 1556281940, "adsConsentSetAt": 1556281940, "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
"400": "400":
application/json: {"errors": []} application/json: {"errors": []}
"401": "401":

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: true oAuth2ClientCredentialsEnabled: true
typescript: typescript:
version: 0.25.1 version: 0.26.1
additionalDependencies: additionalDependencies:
dependencies: {} dependencies: {}
devDependencies: {} devDependencies: {}

View File

@@ -9,8 +9,8 @@ sources:
- main - main
plexapi: plexapi:
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109
tags: tags:
- latest - latest
- main - main
@@ -18,10 +18,10 @@ targets:
plexjs: plexjs:
source: plexapi source: plexapi
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109
codeSamplesNamespace: code-samples-typescript-plexjs codeSamplesNamespace: code-samples-typescript-plexjs
codeSamplesRevisionDigest: sha256:9667534090efff73eeec1ce4a99b4aebdd251a5eac0cfa5c78ddc0def4d4624e codeSamplesRevisionDigest: sha256:6779ea8c16885c3e316919f2863535016f3af48a91e8ab4c3eed79c26b4615d3
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest

View File

@@ -1108,4 +1108,14 @@ Based on:
### Generated ### Generated
- [typescript v0.25.1] . - [typescript v0.25.1] .
### Releases ### Releases
- [NPM v0.25.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.25.1 - . - [NPM v0.25.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.25.1 - .
## 2024-10-03 12:26:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.406.0 (2.429.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.26.1] .
### Releases
- [NPM v0.26.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.26.1 - .

View File

@@ -380,5 +380,5 @@ let value: GetLibraryItemsMediaContainer = {
| `viewGroup` | *string* | :heavy_check_mark: | N/A | movie | | `viewGroup` | *string* | :heavy_check_mark: | N/A | movie |
| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 | | `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 |
| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true | | `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true |
| `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_check_mark: | N/A | | | `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_minus_sign: | N/A | |
| `meta` | [operations.GetLibraryItemsMeta](../../../sdk/models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | | | `meta` | [operations.GetLibraryItemsMeta](../../../sdk/models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |

File diff suppressed because one or more lines are too long

View File

@@ -19,33 +19,22 @@ import {
} from "@lukehagar/plexjs/sdk/models/operations"; } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetTokenDetailsUserPlexAccount = { let value: GetTokenDetailsUserPlexAccount = {
adsConsent: true, adsConsent: false,
adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"), adsConsentReminderAt: 1556281940,
adsConsentSetAt: new Date("2019-08-24T14:15:22Z"), adsConsentSetAt: 1556281940,
anonymous: false,
authToken: "CxoUzBTSV5hsxjTpFKaf", authToken: "CxoUzBTSV5hsxjTpFKaf",
backupCodesCreated: false,
confirmed: false,
country: "US", country: "US",
email: "username@email.com", email: "username@email.com",
emailOnlyAuth: false,
experimentalFeatures: false,
friendlyName: "friendlyUsername", friendlyName: "friendlyUsername",
entitlements: [ entitlements: [
"[]", "[]",
], ],
guest: false,
hasPassword: true,
home: false,
homeAdmin: false,
homeSize: 1, homeSize: 1,
id: 13692262, id: 13692262,
joinedAt: 1721154902, joinedAt: 1556281940,
locale: null, locale: "ar",
mailingListActive: false, mailingListStatus: MailingListStatus.Active,
mailingListStatus: MailingListStatus.Unsubscribed,
maxHomeSize: 15, maxHomeSize: 15,
pin: "string",
profile: { profile: {
autoSelectAudio: true, autoSelectAudio: true,
defaultAudioLanguage: "ja", defaultAudioLanguage: "ja",
@@ -56,48 +45,32 @@ let value: GetTokenDetailsUserPlexAccount = {
watchedIndicator: WatchedIndicator.Enable, watchedIndicator: WatchedIndicator.Enable,
mediaReviewsVisibility: MediaReviewsVisibility.Enable, mediaReviewsVisibility: MediaReviewsVisibility.Enable,
}, },
protected: false, rememberExpiresAt: 1556281940,
rememberExpiresAt: 1722364046, scrobbleTypes: "<value>",
restricted: false,
roles: [
"string",
],
scrobbleTypes: "",
services: [ services: [
{ {
identifier: "metadata-dev", identifier: "metadata-dev",
endpoint: "https://epg.provider.plex.tv", endpoint: "https://epg.provider.plex.tv",
token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
secret: "string", secret: "<value>",
status: GetTokenDetailsStatus.Online, status: GetTokenDetailsStatus.Online,
}, },
], ],
subscription: { subscription: {
features: [
"Android - Dolby Vision",
],
active: true, active: true,
subscribedAt: "2021-04-12T18:21:12Z", subscribedAt: "2021-04-12T18:21:12Z",
status: GetTokenDetailsAuthenticationStatus.Inactive, status: GetTokenDetailsAuthenticationStatus.Inactive,
paymentService: "string",
plan: "string",
}, },
subscriptionDescription: "string", subscriptionDescription: "<value>",
subscriptions: [ subscriptions: [
{ {
features: [
"Android - Dolby Vision",
],
active: true, active: true,
subscribedAt: "2021-04-12T18:21:12Z", subscribedAt: "2021-04-12T18:21:12Z",
status: GetTokenDetailsAuthenticationResponseStatus.Inactive, status: GetTokenDetailsAuthenticationResponseStatus.Inactive,
paymentService: "string",
plan: "string",
}, },
], ],
thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
title: "UsernameTitle", title: "UsernameTitle",
twoFactorEnabled: false,
username: "Username", username: "Username",
uuid: "dae343c1f45beb4f", uuid: "dae343c1f45beb4f",
attributionPartner: null, attributionPartner: null,
@@ -109,8 +82,8 @@ let value: GetTokenDetailsUserPlexAccount = {
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `adsConsent` | *boolean* | :heavy_check_mark: | Unknown | | | `adsConsent` | *boolean* | :heavy_check_mark: | Unknown | |
| `adsConsentReminderAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | | `adsConsentReminderAt` | *number* | :heavy_check_mark: | N/A | 1556281940 |
| `adsConsentSetAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | | `adsConsentSetAt` | *number* | :heavy_check_mark: | N/A | 1556281940 |
| `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | | | `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | |
| `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | | `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
| `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | | `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | |

File diff suppressed because one or more lines are too long

View File

@@ -20,33 +20,22 @@ import {
} from "@lukehagar/plexjs/sdk/models/operations"; } from "@lukehagar/plexjs/sdk/models/operations";
let value: PostUsersSignInDataUserPlexAccount = { let value: PostUsersSignInDataUserPlexAccount = {
adsConsent: true, adsConsent: false,
adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"), adsConsentReminderAt: 1556281940,
adsConsentSetAt: new Date("2019-08-24T14:15:22Z"), adsConsentSetAt: 1556281940,
anonymous: false,
authToken: "CxoUzBTSV5hsxjTpFKaf", authToken: "CxoUzBTSV5hsxjTpFKaf",
backupCodesCreated: false,
confirmed: false,
country: "US", country: "US",
email: "username@email.com", email: "username@email.com",
emailOnlyAuth: false,
experimentalFeatures: false,
friendlyName: "friendlyUsername", friendlyName: "friendlyUsername",
entitlements: [ entitlements: [
"[]", "[]",
], ],
guest: false,
hasPassword: true,
home: false,
homeAdmin: false,
homeSize: 1, homeSize: 1,
id: 13692262, id: 13692262,
joinedAt: 1721154902, joinedAt: 1556281940,
locale: null, locale: "pt",
mailingListActive: false,
mailingListStatus: PostUsersSignInDataMailingListStatus.Active, mailingListStatus: PostUsersSignInDataMailingListStatus.Active,
maxHomeSize: 15, maxHomeSize: 15,
pin: "string",
profile: { profile: {
autoSelectAudio: true, autoSelectAudio: true,
defaultAudioLanguage: "ja", defaultAudioLanguage: "ja",
@@ -58,66 +47,50 @@ let value: PostUsersSignInDataUserPlexAccount = {
watchedIndicator: PostUsersSignInDataWatchedIndicator.Enable, watchedIndicator: PostUsersSignInDataWatchedIndicator.Enable,
mediaReviewsVisibility: PostUsersSignInDataMediaReviewsVisibility.Enable, mediaReviewsVisibility: PostUsersSignInDataMediaReviewsVisibility.Enable,
}, },
protected: false, rememberExpiresAt: 1556281940,
rememberExpiresAt: 1722364046, scrobbleTypes: "<value>",
restricted: false,
roles: [
"string",
],
scrobbleTypes: "",
services: [ services: [
{ {
identifier: "metadata-dev", identifier: "metadata-dev",
endpoint: "https://epg.provider.plex.tv", endpoint: "https://epg.provider.plex.tv",
token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
secret: "string", secret: "<value>",
status: PostUsersSignInDataStatus.Online, status: PostUsersSignInDataStatus.Online,
}, },
], ],
subscription: { subscription: {
features: [
"Android - Dolby Vision",
],
active: true, active: true,
subscribedAt: "2021-04-12T18:21:12Z", subscribedAt: "2021-04-12T18:21:12Z",
status: PostUsersSignInDataAuthenticationStatus.Inactive, status: PostUsersSignInDataAuthenticationStatus.Inactive,
paymentService: "string",
plan: "string",
}, },
subscriptionDescription: "string", subscriptionDescription: "<value>",
subscriptions: [ subscriptions: [
{ {
features: [
"Android - Dolby Vision",
],
active: true, active: true,
subscribedAt: "2021-04-12T18:21:12Z", subscribedAt: "2021-04-12T18:21:12Z",
status: PostUsersSignInDataAuthenticationResponseStatus.Inactive, status: PostUsersSignInDataAuthenticationResponseStatus.Inactive,
paymentService: "string",
plan: "string",
}, },
], ],
thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
title: "UsernameTitle", title: "UsernameTitle",
twoFactorEnabled: false,
username: "Username", username: "Username",
uuid: "dae343c1f45beb4f", uuid: "dae343c1f45beb4f",
attributionPartner: null, attributionPartner: null,
pastSubscriptions: [ pastSubscriptions: [
{ {
id: "string", id: "<id>",
mode: "string", mode: "<value>",
renewsAt: string, renewsAt: 1556281940,
endsAt: 1556281940, endsAt: 1556281940,
canceled: true, canceled: false,
gracePeriod: true, gracePeriod: false,
onHold: true, onHold: false,
canReactivate: true, canReactivate: false,
canUpgrade: true, canUpgrade: false,
canDowngrade: true, canDowngrade: false,
canConvert: true, canConvert: false,
type: "plexpass", type: "plexpass",
transfer: "string", transfer: "<value>",
state: PostUsersSignInDataState.Ended, state: PostUsersSignInDataState.Ended,
billing: { billing: {
internalPaymentMethod: {}, internalPaymentMethod: {},
@@ -136,8 +109,8 @@ let value: PostUsersSignInDataUserPlexAccount = {
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `adsConsent` | *boolean* | :heavy_check_mark: | Unknown | | | `adsConsent` | *boolean* | :heavy_check_mark: | Unknown | |
| `adsConsentReminderAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | | `adsConsentReminderAt` | *number* | :heavy_check_mark: | N/A | 1556281940 |
| `adsConsentSetAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | | `adsConsentSetAt` | *number* | :heavy_check_mark: | N/A | 1556281940 |
| `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | | | `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | |
| `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | | `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
| `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | | `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | |

View File

@@ -2,7 +2,7 @@
{ {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.25.1", "version": "0.26.1",
"exports": { "exports": {
".": "./src/index.ts", ".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.25.1", "version": "0.26.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.25.1", "version": "0.26.1",
"devDependencies": { "devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1", "@typescript-eslint/parser": "^7.7.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.25.1", "version": "0.26.1",
"author": "LukeHagar", "author": "LukeHagar",
"main": "./index.js", "main": "./index.js",
"sideEffects": false, "sideEffects": false,

View File

@@ -101,18 +101,8 @@ export async function activitiesCancelServerActivities(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function activitiesGetServerActivities(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -102,18 +102,8 @@ export async function authenticationGetSourceConnectionInformation(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -79,18 +79,8 @@ export async function authenticationGetTokenDetails(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function authenticationGetTransientToken(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -144,18 +144,8 @@ export async function authenticationPostUsersSignInData(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function butlerGetButlerTasks(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -78,18 +78,8 @@ export async function butlerStartAllTasks(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -104,18 +104,8 @@ export async function butlerStartTask(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function butlerStopAllTasks(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -100,18 +100,8 @@ export async function butlerStopTask(
context, context,
errorCodes: ["400", "401", "404", "4XX", "5XX"], errorCodes: ["400", "401", "404", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function hubsGetGlobalHubs(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -110,18 +110,8 @@ export async function hubsGetLibraryHubs(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -99,18 +99,8 @@ export async function hubsGetRecentlyAdded(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -100,18 +100,8 @@ export async function libraryDeleteLibrary(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -79,18 +79,8 @@ export async function libraryGetAllLibraries(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function libraryGetFileHash(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -145,18 +145,8 @@ export async function libraryGetLibraryDetails(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -130,18 +130,8 @@ export async function libraryGetLibraryItems(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function libraryGetMetaDataByRatingKey(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -108,18 +108,8 @@ export async function libraryGetMetadataChildren(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function libraryGetOnDeck(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -103,18 +103,8 @@ export async function libraryGetRecentlyAddedLibrary(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -108,18 +108,8 @@ export async function libraryGetRefreshLibraryMetadata(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -115,18 +115,8 @@ export async function libraryGetSearchAllLibraries(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -124,18 +124,8 @@ export async function libraryGetSearchLibrary(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -102,18 +102,8 @@ export async function libraryGetTopWatchedContent(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function logEnablePaperTrail(
context, context,
errorCodes: ["400", "401", "403", "4XX", "5XX"], errorCodes: ["400", "401", "403", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -104,18 +104,8 @@ export async function logLogLine(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -112,18 +112,8 @@ export async function logLogMultiLine(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -110,18 +110,8 @@ export async function mediaGetBannerImage(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -110,18 +110,8 @@ export async function mediaGetThumbImage(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -98,18 +98,8 @@ export async function mediaMarkPlayed(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -98,18 +98,8 @@ export async function mediaMarkUnplayed(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -104,18 +104,8 @@ export async function mediaUpdatePlayProgress(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -112,18 +112,8 @@ export async function playlistsAddPlaylistContents(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function playlistsClearPlaylistContents(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -102,18 +102,8 @@ export async function playlistsCreatePlaylist(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -100,18 +100,8 @@ export async function playlistsDeletePlaylist(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function playlistsGetPlaylist(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -111,18 +111,8 @@ export async function playlistsGetPlaylistContents(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function playlistsGetPlaylists(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -110,18 +110,8 @@ export async function playlistsUpdatePlaylist(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -104,18 +104,8 @@ export async function playlistsUploadPlaylist(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -81,18 +81,8 @@ export async function plexGetCompanionsData(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function plexGetGeoData(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function plexGetHomeData(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -141,18 +141,8 @@ export async function plexGetPin(
context, context,
errorCodes: ["400", "4XX", "5XX"], errorCodes: ["400", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -123,18 +123,8 @@ export async function plexGetServerResources(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -144,18 +144,8 @@ export async function plexGetTokenByPinId(
context, context,
errorCodes: ["400", "404", "4XX", "5XX"], errorCodes: ["400", "404", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -79,18 +79,8 @@ export async function plexGetUserFriends(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -98,18 +98,8 @@ export async function searchGetSearchResults(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -115,18 +115,8 @@ export async function searchPerformSearch(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -107,18 +107,8 @@ export async function searchPerformVoiceSearch(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function serverGetAvailableClients(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function serverGetDevices(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -97,18 +97,8 @@ export async function serverGetMediaProviders(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function serverGetMyPlexAccount(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -102,18 +102,8 @@ export async function serverGetResizedPhoto(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function serverGetServerCapabilities(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -68,18 +68,8 @@ export async function serverGetServerIdentity(
context, context,
errorCodes: ["408", "4XX", "5XX"], errorCodes: ["408", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function serverGetServerList(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function serverGetServerPreferences(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -107,18 +107,8 @@ export async function sessionsGetSessionHistory(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function sessionsGetSessions(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function sessionsGetTranscodeSessions(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function sessionsStopTranscodeSession(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -99,18 +99,8 @@ export async function statisticsGetBandwidthStatistics(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -99,18 +99,8 @@ export async function statisticsGetResourcesStatistics(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -98,18 +98,8 @@ export async function statisticsGetStatistics(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -101,18 +101,8 @@ export async function updaterApplyUpdates(
context, context,
errorCodes: ["400", "401", "4XX", "500", "5XX"], errorCodes: ["400", "401", "4XX", "500", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -98,18 +98,8 @@ export async function updaterCheckForUpdates(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -74,18 +74,8 @@ export async function updaterGetUpdateStatus(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -105,18 +105,8 @@ export async function videoGetTimeline(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -112,18 +112,8 @@ export async function videoStartUniversalTranscode(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -118,18 +118,8 @@ export async function watchlistGetWatchList(
context, context,
errorCodes: ["400", "401", "4XX", "5XX"], errorCodes: ["400", "401", "4XX", "5XX"],
retryConfig: options?.retries retryConfig: options?.retries
|| client._options.retryConfig || client._options.retryConfig,
|| { retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
strategy: "backoff",
backoff: {
initialInterval: 500,
maxInterval: 60000,
exponent: 1.5,
maxElapsedTime: 3600000,
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5XX"],
}); });
if (!doResult.ok) { if (!doResult.ok) {
return doResult; return doResult;

View File

@@ -115,7 +115,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = { export const SDK_METADATA = {
language: "typescript", language: "typescript",
openapiDocVersion: "0.0.3", openapiDocVersion: "0.0.3",
sdkVersion: "0.25.1", sdkVersion: "0.26.1",
genVersion: "2.428.1", genVersion: "2.428.1",
userAgent: "speakeasy-sdk/typescript 0.25.1 2.428.1 0.0.3 @lukehagar/plexjs", userAgent: "speakeasy-sdk/typescript 0.26.1 2.428.1 0.0.3 @lukehagar/plexjs",
} as const; } as const;

View File

@@ -755,7 +755,7 @@ export type GetLibraryItemsMediaContainer = {
viewGroup: string; viewGroup: string;
viewMode?: number | undefined; viewMode?: number | undefined;
mixedParents?: boolean | undefined; mixedParents?: boolean | undefined;
metadata: Array<GetLibraryItemsMetadata>; metadata?: Array<GetLibraryItemsMetadata> | undefined;
/** /**
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
* *
@@ -2937,7 +2937,8 @@ export const GetLibraryItemsMediaContainer$inboundSchema: z.ZodType<
viewGroup: z.string(), viewGroup: z.string(),
viewMode: z.number().int().optional(), viewMode: z.number().int().optional(),
mixedParents: z.boolean().optional(), mixedParents: z.boolean().optional(),
Metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$inboundSchema)), Metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$inboundSchema))
.optional(),
Meta: z.lazy(() => GetLibraryItemsMeta$inboundSchema).optional(), Meta: z.lazy(() => GetLibraryItemsMeta$inboundSchema).optional(),
}).transform((v) => { }).transform((v) => {
return remap$(v, { return remap$(v, {
@@ -2971,7 +2972,7 @@ export type GetLibraryItemsMediaContainer$Outbound = {
viewGroup: string; viewGroup: string;
viewMode?: number | undefined; viewMode?: number | undefined;
mixedParents?: boolean | undefined; mixedParents?: boolean | undefined;
Metadata: Array<GetLibraryItemsMetadata$Outbound>; Metadata?: Array<GetLibraryItemsMetadata$Outbound> | undefined;
Meta?: GetLibraryItemsMeta$Outbound | undefined; Meta?: GetLibraryItemsMeta$Outbound | undefined;
}; };
@@ -3003,7 +3004,8 @@ export const GetLibraryItemsMediaContainer$outboundSchema: z.ZodType<
viewGroup: z.string(), viewGroup: z.string(),
viewMode: z.number().int().optional(), viewMode: z.number().int().optional(),
mixedParents: z.boolean().optional(), mixedParents: z.boolean().optional(),
metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$outboundSchema)), metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$outboundSchema))
.optional(),
meta: z.lazy(() => GetLibraryItemsMeta$outboundSchema).optional(), meta: z.lazy(() => GetLibraryItemsMeta$outboundSchema).optional(),
}).transform((v) => { }).transform((v) => {
return remap$(v, { return remap$(v, {

View File

@@ -171,14 +171,8 @@ export type GetTokenDetailsUserPlexAccount = {
* Unknown * Unknown
*/ */
adsConsent: boolean | null; adsConsent: boolean | null;
/** adsConsentReminderAt: number | null;
* Unknown adsConsentSetAt: number | null;
*/
adsConsentReminderAt: Date | null;
/**
* Unknown
*/
adsConsentSetAt: Date | null;
/** /**
* Unknown * Unknown
*/ */
@@ -758,12 +752,8 @@ export const GetTokenDetailsUserPlexAccount$inboundSchema: z.ZodType<
unknown unknown
> = z.object({ > = z.object({
adsConsent: z.nullable(z.boolean()), adsConsent: z.nullable(z.boolean()),
adsConsentReminderAt: z.nullable( adsConsentReminderAt: z.nullable(z.number().int()),
z.string().datetime({ offset: true }).transform(v => new Date(v)), adsConsentSetAt: z.nullable(z.number().int()),
),
adsConsentSetAt: z.nullable(
z.string().datetime({ offset: true }).transform(v => new Date(v)),
),
anonymous: z.nullable(z.boolean().default(false)), anonymous: z.nullable(z.boolean().default(false)),
authToken: z.string(), authToken: z.string(),
backupCodesCreated: z.boolean().default(false), backupCodesCreated: z.boolean().default(false),
@@ -809,8 +799,8 @@ export const GetTokenDetailsUserPlexAccount$inboundSchema: z.ZodType<
/** @internal */ /** @internal */
export type GetTokenDetailsUserPlexAccount$Outbound = { export type GetTokenDetailsUserPlexAccount$Outbound = {
adsConsent: boolean | null; adsConsent: boolean | null;
adsConsentReminderAt: string | null; adsConsentReminderAt: number | null;
adsConsentSetAt: string | null; adsConsentSetAt: number | null;
anonymous: boolean | null; anonymous: boolean | null;
authToken: string; authToken: string;
backupCodesCreated: boolean; backupCodesCreated: boolean;
@@ -858,8 +848,8 @@ export const GetTokenDetailsUserPlexAccount$outboundSchema: z.ZodType<
GetTokenDetailsUserPlexAccount GetTokenDetailsUserPlexAccount
> = z.object({ > = z.object({
adsConsent: z.nullable(z.boolean()), adsConsent: z.nullable(z.boolean()),
adsConsentReminderAt: z.nullable(z.date().transform(v => v.toISOString())), adsConsentReminderAt: z.nullable(z.number().int()),
adsConsentSetAt: z.nullable(z.date().transform(v => v.toISOString())), adsConsentSetAt: z.nullable(z.number().int()),
anonymous: z.nullable(z.boolean().default(false)), anonymous: z.nullable(z.boolean().default(false)),
authToken: z.string(), authToken: z.string(),
backupCodesCreated: z.boolean().default(false), backupCodesCreated: z.boolean().default(false),

View File

@@ -266,14 +266,8 @@ export type PostUsersSignInDataUserPlexAccount = {
* Unknown * Unknown
*/ */
adsConsent: boolean | null; adsConsent: boolean | null;
/** adsConsentReminderAt: number | null;
* Unknown adsConsentSetAt: number | null;
*/
adsConsentReminderAt: Date | null;
/**
* Unknown
*/
adsConsentSetAt: Date | null;
/** /**
* Unknown * Unknown
*/ */
@@ -1250,12 +1244,8 @@ export const PostUsersSignInDataUserPlexAccount$inboundSchema: z.ZodType<
unknown unknown
> = z.object({ > = z.object({
adsConsent: z.nullable(z.boolean()), adsConsent: z.nullable(z.boolean()),
adsConsentReminderAt: z.nullable( adsConsentReminderAt: z.nullable(z.number().int()),
z.string().datetime({ offset: true }).transform(v => new Date(v)), adsConsentSetAt: z.nullable(z.number().int()),
),
adsConsentSetAt: z.nullable(
z.string().datetime({ offset: true }).transform(v => new Date(v)),
),
anonymous: z.nullable(z.boolean().default(false)), anonymous: z.nullable(z.boolean().default(false)),
authToken: z.string(), authToken: z.string(),
backupCodesCreated: z.boolean().default(false), backupCodesCreated: z.boolean().default(false),
@@ -1303,8 +1293,8 @@ export const PostUsersSignInDataUserPlexAccount$inboundSchema: z.ZodType<
/** @internal */ /** @internal */
export type PostUsersSignInDataUserPlexAccount$Outbound = { export type PostUsersSignInDataUserPlexAccount$Outbound = {
adsConsent: boolean | null; adsConsent: boolean | null;
adsConsentReminderAt: string | null; adsConsentReminderAt: number | null;
adsConsentSetAt: string | null; adsConsentSetAt: number | null;
anonymous: boolean | null; anonymous: boolean | null;
authToken: string; authToken: string;
backupCodesCreated: boolean; backupCodesCreated: boolean;
@@ -1354,8 +1344,8 @@ export const PostUsersSignInDataUserPlexAccount$outboundSchema: z.ZodType<
PostUsersSignInDataUserPlexAccount PostUsersSignInDataUserPlexAccount
> = z.object({ > = z.object({
adsConsent: z.nullable(z.boolean()), adsConsent: z.nullable(z.boolean()),
adsConsentReminderAt: z.nullable(z.date().transform(v => v.toISOString())), adsConsentReminderAt: z.nullable(z.number().int()),
adsConsentSetAt: z.nullable(z.date().transform(v => v.toISOString())), adsConsentSetAt: z.nullable(z.number().int()),
anonymous: z.nullable(z.boolean().default(false)), anonymous: z.nullable(z.boolean().default(false)),
authToken: z.string(), authToken: z.string(),
backupCodesCreated: z.boolean().default(false), backupCodesCreated: z.boolean().default(false),