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
id: 16f22cbf-f23f-4419-8924-3a4b06381947
management:
docChecksum: 1ee2e5413af07e886e33659b9b269dd5
docChecksum: 23094f3a9fe02710a8628ad5456f5d42
docVersion: 0.0.3
speakeasyVersion: 1.405.6
generationVersion: 2.428.1
releaseVersion: 0.25.1
configChecksum: fbb6cdc652d55e2fd4686855e1cf4ed7
releaseVersion: 0.26.1
configChecksum: 60271a6e5ece5e9400f671595bbf9013
repoURL: https://github.com/LukeHagar/plexjs.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexjs
@@ -2166,7 +2166,7 @@ examples:
speakeasy-default-get-token-details:
responses:
"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":
application/json: {"errors": []}
"401":

View File

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

View File

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

View File

@@ -1109,3 +1109,13 @@ Based on:
- [typescript v0.25.1] .
### Releases
- [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 |
| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 |
| `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/> | |

File diff suppressed because one or more lines are too long

View File

@@ -19,33 +19,22 @@ import {
} from "@lukehagar/plexjs/sdk/models/operations";
let value: GetTokenDetailsUserPlexAccount = {
adsConsent: true,
adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"),
adsConsentSetAt: new Date("2019-08-24T14:15:22Z"),
anonymous: false,
adsConsent: false,
adsConsentReminderAt: 1556281940,
adsConsentSetAt: 1556281940,
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: 1721154902,
locale: null,
mailingListActive: false,
mailingListStatus: MailingListStatus.Unsubscribed,
joinedAt: 1556281940,
locale: "ar",
mailingListStatus: MailingListStatus.Active,
maxHomeSize: 15,
pin: "string",
profile: {
autoSelectAudio: true,
defaultAudioLanguage: "ja",
@@ -56,48 +45,32 @@ let value: GetTokenDetailsUserPlexAccount = {
watchedIndicator: WatchedIndicator.Enable,
mediaReviewsVisibility: MediaReviewsVisibility.Enable,
},
protected: false,
rememberExpiresAt: 1722364046,
restricted: false,
roles: [
"string",
],
scrobbleTypes: "",
rememberExpiresAt: 1556281940,
scrobbleTypes: "<value>",
services: [
{
identifier: "metadata-dev",
endpoint: "https://epg.provider.plex.tv",
token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
secret: "string",
secret: "<value>",
status: GetTokenDetailsStatus.Online,
},
],
subscription: {
features: [
"Android - Dolby Vision",
],
active: true,
subscribedAt: "2021-04-12T18:21:12Z",
status: GetTokenDetailsAuthenticationStatus.Inactive,
paymentService: "string",
plan: "string",
},
subscriptionDescription: "string",
subscriptionDescription: "<value>",
subscriptions: [
{
features: [
"Android - Dolby Vision",
],
active: true,
subscribedAt: "2021-04-12T18:21:12Z",
status: GetTokenDetailsAuthenticationResponseStatus.Inactive,
paymentService: "string",
plan: "string",
},
],
thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
title: "UsernameTitle",
twoFactorEnabled: false,
username: "Username",
uuid: "dae343c1f45beb4f",
attributionPartner: null,
@@ -109,8 +82,8 @@ let value: GetTokenDetailsUserPlexAccount = {
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 | |
| `adsConsentSetAt` | [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` | *number* | :heavy_check_mark: | N/A | 1556281940 |
| `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | |
| `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
| `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";
let value: PostUsersSignInDataUserPlexAccount = {
adsConsent: true,
adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"),
adsConsentSetAt: new Date("2019-08-24T14:15:22Z"),
anonymous: false,
adsConsent: false,
adsConsentReminderAt: 1556281940,
adsConsentSetAt: 1556281940,
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: 1721154902,
locale: null,
mailingListActive: false,
joinedAt: 1556281940,
locale: "pt",
mailingListStatus: PostUsersSignInDataMailingListStatus.Active,
maxHomeSize: 15,
pin: "string",
profile: {
autoSelectAudio: true,
defaultAudioLanguage: "ja",
@@ -58,66 +47,50 @@ let value: PostUsersSignInDataUserPlexAccount = {
watchedIndicator: PostUsersSignInDataWatchedIndicator.Enable,
mediaReviewsVisibility: PostUsersSignInDataMediaReviewsVisibility.Enable,
},
protected: false,
rememberExpiresAt: 1722364046,
restricted: false,
roles: [
"string",
],
scrobbleTypes: "",
rememberExpiresAt: 1556281940,
scrobbleTypes: "<value>",
services: [
{
identifier: "metadata-dev",
endpoint: "https://epg.provider.plex.tv",
token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
secret: "string",
secret: "<value>",
status: PostUsersSignInDataStatus.Online,
},
],
subscription: {
features: [
"Android - Dolby Vision",
],
active: true,
subscribedAt: "2021-04-12T18:21:12Z",
status: PostUsersSignInDataAuthenticationStatus.Inactive,
paymentService: "string",
plan: "string",
},
subscriptionDescription: "string",
subscriptionDescription: "<value>",
subscriptions: [
{
features: [
"Android - Dolby Vision",
],
active: true,
subscribedAt: "2021-04-12T18:21:12Z",
status: PostUsersSignInDataAuthenticationResponseStatus.Inactive,
paymentService: "string",
plan: "string",
},
],
thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
title: "UsernameTitle",
twoFactorEnabled: false,
username: "Username",
uuid: "dae343c1f45beb4f",
attributionPartner: null,
pastSubscriptions: [
{
id: "string",
mode: "string",
renewsAt: string,
id: "<id>",
mode: "<value>",
renewsAt: 1556281940,
endsAt: 1556281940,
canceled: true,
gracePeriod: true,
onHold: true,
canReactivate: true,
canUpgrade: true,
canDowngrade: true,
canConvert: true,
canceled: false,
gracePeriod: false,
onHold: false,
canReactivate: false,
canUpgrade: false,
canDowngrade: false,
canConvert: false,
type: "plexpass",
transfer: "string",
transfer: "<value>",
state: PostUsersSignInDataState.Ended,
billing: {
internalPaymentMethod: {},
@@ -136,8 +109,8 @@ let value: PostUsersSignInDataUserPlexAccount = {
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 | |
| `adsConsentSetAt` | [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` | *number* | :heavy_check_mark: | N/A | 1556281940 |
| `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | |
| `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
| `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | |

View File

@@ -2,7 +2,7 @@
{
"name": "@lukehagar/plexjs",
"version": "0.25.1",
"version": "0.26.1",
"exports": {
".": "./src/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",
"version": "0.25.1",
"version": "0.26.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lukehagar/plexjs",
"version": "0.25.1",
"version": "0.26.1",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -115,7 +115,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.3",
sdkVersion: "0.25.1",
sdkVersion: "0.26.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;

View File

@@ -755,7 +755,7 @@ export type GetLibraryItemsMediaContainer = {
viewGroup: string;
viewMode?: number | 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`.
*
@@ -2937,7 +2937,8 @@ export const GetLibraryItemsMediaContainer$inboundSchema: z.ZodType<
viewGroup: z.string(),
viewMode: z.number().int().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(),
}).transform((v) => {
return remap$(v, {
@@ -2971,7 +2972,7 @@ export type GetLibraryItemsMediaContainer$Outbound = {
viewGroup: string;
viewMode?: number | undefined;
mixedParents?: boolean | undefined;
Metadata: Array<GetLibraryItemsMetadata$Outbound>;
Metadata?: Array<GetLibraryItemsMetadata$Outbound> | undefined;
Meta?: GetLibraryItemsMeta$Outbound | undefined;
};
@@ -3003,7 +3004,8 @@ export const GetLibraryItemsMediaContainer$outboundSchema: z.ZodType<
viewGroup: z.string(),
viewMode: z.number().int().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(),
}).transform((v) => {
return remap$(v, {

View File

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

View File

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