mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a2d3e04ab | ||
|
|
6c8a73ae84 | ||
|
|
c839d9f6c7 |
@@ -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: 2554ade61ed4d42b8e095168765d7dc0
|
||||||
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.30.0
|
||||||
configChecksum: fbb6cdc652d55e2fd4686855e1cf4ed7
|
configChecksum: 6c1d7aea15d07bcbf6bfd6eb62f11e35
|
||||||
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
|
||||||
@@ -1995,6 +1995,7 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
query:
|
query:
|
||||||
Timespan: 4
|
Timespan: 4
|
||||||
|
timespan: 4
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}}
|
application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}}
|
||||||
@@ -2007,6 +2008,7 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
query:
|
query:
|
||||||
Timespan: 4
|
Timespan: 4
|
||||||
|
timespan: 4
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}}
|
application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}}
|
||||||
@@ -2019,6 +2021,7 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
query:
|
query:
|
||||||
Timespan: 4
|
Timespan: 4
|
||||||
|
timespan: 4
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}}
|
application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}}
|
||||||
@@ -2166,7 +2169,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":
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.25.1
|
version: 0.30.0
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies: {}
|
devDependencies: {}
|
||||||
@@ -20,6 +20,7 @@ typescript:
|
|||||||
additionalPackageJSON: {}
|
additionalPackageJSON: {}
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
defaultErrorName: SDKError
|
||||||
enumFormat: enum
|
enumFormat: enum
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
flatteningOrder: body-first
|
flatteningOrder: body-first
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e
|
sourceRevisionDigest: sha256:37c6bfb15f4154eb89b112465107f20757411f22bd1cc7d0a04335df7127fcb4
|
||||||
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b
|
sourceBlobDigest: sha256:290473ebc909cada80ff428c685b897f4621cf121397e1417355e06d334e7206
|
||||||
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:37c6bfb15f4154eb89b112465107f20757411f22bd1cc7d0a04335df7127fcb4
|
||||||
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b
|
sourceBlobDigest: sha256:290473ebc909cada80ff428c685b897f4621cf121397e1417355e06d334e7206
|
||||||
codeSamplesNamespace: code-samples-typescript-plexjs
|
codeSamplesNamespace: code-samples-typescript-plexjs
|
||||||
codeSamplesRevisionDigest: sha256:9667534090efff73eeec1ce4a99b4aebdd251a5eac0cfa5c78ddc0def4d4624e
|
codeSamplesRevisionDigest: sha256:1360b0489d1911ecbe6a0e2bcea617dc8c8d8cba49f2d3b505cef056dd668081
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
30
RELEASES.md
30
RELEASES.md
@@ -1109,3 +1109,33 @@ Based on:
|
|||||||
- [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 - .
|
||||||
|
|
||||||
|
## 2024-11-11 20:28:21
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.28.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.28.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.28.0 - .
|
||||||
|
|
||||||
|
## 2024-11-14 00:09:39
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.30.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.30.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.30.0 - .
|
||||||
@@ -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/> | |
|
||||||
@@ -24,3 +24,4 @@ let value: GetLibraryItemsQueryParamType = GetLibraryItemsQueryParamType.TvShow;
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
@@ -25,3 +25,4 @@ let value: GetPlaylistContentsQueryParamType =
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
@@ -25,3 +25,4 @@ let value: GetSearchLibraryQueryParamType =
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
File diff suppressed because one or more lines are too long
@@ -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 | |
|
||||||
|
|||||||
@@ -25,3 +25,4 @@ let value: GetTopWatchedContentQueryParamType =
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
File diff suppressed because one or more lines are too long
@@ -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 | |
|
||||||
|
|||||||
@@ -24,3 +24,4 @@ let value: QueryParamType = QueryParamType.TvShow;
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
@@ -24,3 +24,4 @@ let value: Type = Type.TvShow;
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.25.1",
|
"version": "0.30.0",
|
||||||
"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
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.25.1",
|
"version": "0.30.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.25.1",
|
"version": "0.30.0",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.25.1",
|
"version": "0.30.0",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export async function statisticsGetBandwidthStatistics(
|
|||||||
const path = pathToFunc("/statistics/bandwidth")();
|
const path = pathToFunc("/statistics/bandwidth")();
|
||||||
|
|
||||||
const query = encodeFormQuery({
|
const query = encodeFormQuery({
|
||||||
"Timespan": payload.Timespan,
|
"timespan": payload.timespan,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers = new Headers({
|
const headers = new Headers({
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export async function statisticsGetResourcesStatistics(
|
|||||||
const path = pathToFunc("/statistics/resources")();
|
const path = pathToFunc("/statistics/resources")();
|
||||||
|
|
||||||
const query = encodeFormQuery({
|
const query = encodeFormQuery({
|
||||||
"Timespan": payload.Timespan,
|
"timespan": payload.timespan,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers = new Headers({
|
const headers = new Headers({
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export async function statisticsGetStatistics(
|
|||||||
const path = pathToFunc("/statistics/media")();
|
const path = pathToFunc("/statistics/media")();
|
||||||
|
|
||||||
const query = encodeFormQuery({
|
const query = encodeFormQuery({
|
||||||
"Timespan": payload.Timespan,
|
"timespan": payload.timespan,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers = new Headers({
|
const headers = new Headers({
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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.30.0",
|
||||||
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.30.0 2.428.1 0.0.3 @lukehagar/plexjs",
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -82,16 +82,12 @@ export const GetBandwidthStatisticsRequest$inboundSchema: z.ZodType<
|
|||||||
z.ZodTypeDef,
|
z.ZodTypeDef,
|
||||||
unknown
|
unknown
|
||||||
> = z.object({
|
> = z.object({
|
||||||
Timespan: z.number().int().optional(),
|
timespan: z.number().int().optional(),
|
||||||
}).transform((v) => {
|
|
||||||
return remap$(v, {
|
|
||||||
"Timespan": "timespan",
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export type GetBandwidthStatisticsRequest$Outbound = {
|
export type GetBandwidthStatisticsRequest$Outbound = {
|
||||||
Timespan?: number | undefined;
|
timespan?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -101,10 +97,6 @@ export const GetBandwidthStatisticsRequest$outboundSchema: z.ZodType<
|
|||||||
GetBandwidthStatisticsRequest
|
GetBandwidthStatisticsRequest
|
||||||
> = z.object({
|
> = z.object({
|
||||||
timespan: z.number().int().optional(),
|
timespan: z.number().int().optional(),
|
||||||
}).transform((v) => {
|
|
||||||
return remap$(v, {
|
|
||||||
timespan: "Timespan",
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ export enum GetLibraryItemsQueryParamType {
|
|||||||
TvShow = 2,
|
TvShow = 2,
|
||||||
Season = 3,
|
Season = 3,
|
||||||
Episode = 4,
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -755,7 +756,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 +2938,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 +2973,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 +3005,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, {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export enum GetPlaylistContentsQueryParamType {
|
|||||||
TvShow = 2,
|
TvShow = 2,
|
||||||
Season = 3,
|
Season = 3,
|
||||||
Episode = 4,
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GetPlaylistContentsRequest = {
|
export type GetPlaylistContentsRequest = {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export enum Type {
|
|||||||
TvShow = 2,
|
TvShow = 2,
|
||||||
Season = 3,
|
Season = 3,
|
||||||
Episode = 4,
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export enum QueryParamType {
|
|||||||
TvShow = 2,
|
TvShow = 2,
|
||||||
Season = 3,
|
Season = 3,
|
||||||
Episode = 4,
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user