From c839d9f6c77905364877ce4e2e520ec0a1875810 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Oct 2024 12:29:09 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0 --- .speakeasy/gen.lock | 8 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +-- RELEASES.md | 12 ++- .../getlibraryitemsmediacontainer.md | 2 +- .../operations/gettokendetailsresponse.md | 57 ++++--------- .../gettokendetailsuserplexaccount.md | 51 +++--------- .../operations/postuserssignindataresponse.md | 81 +++++++------------ .../postuserssignindatauserplexaccount.md | 71 +++++----------- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/activitiesCancelServerActivities.ts | 14 +--- src/funcs/activitiesGetServerActivities.ts | 14 +--- ...nticationGetSourceConnectionInformation.ts | 14 +--- src/funcs/authenticationGetTokenDetails.ts | 14 +--- src/funcs/authenticationGetTransientToken.ts | 14 +--- .../authenticationPostUsersSignInData.ts | 14 +--- src/funcs/butlerGetButlerTasks.ts | 14 +--- src/funcs/butlerStartAllTasks.ts | 14 +--- src/funcs/butlerStartTask.ts | 14 +--- src/funcs/butlerStopAllTasks.ts | 14 +--- src/funcs/butlerStopTask.ts | 14 +--- src/funcs/hubsGetGlobalHubs.ts | 14 +--- src/funcs/hubsGetLibraryHubs.ts | 14 +--- src/funcs/hubsGetRecentlyAdded.ts | 14 +--- src/funcs/libraryDeleteLibrary.ts | 14 +--- src/funcs/libraryGetAllLibraries.ts | 14 +--- src/funcs/libraryGetFileHash.ts | 14 +--- src/funcs/libraryGetLibraryDetails.ts | 14 +--- src/funcs/libraryGetLibraryItems.ts | 14 +--- src/funcs/libraryGetMetaDataByRatingKey.ts | 14 +--- src/funcs/libraryGetMetadataChildren.ts | 14 +--- src/funcs/libraryGetOnDeck.ts | 14 +--- src/funcs/libraryGetRecentlyAddedLibrary.ts | 14 +--- src/funcs/libraryGetRefreshLibraryMetadata.ts | 14 +--- src/funcs/libraryGetSearchAllLibraries.ts | 14 +--- src/funcs/libraryGetSearchLibrary.ts | 14 +--- src/funcs/libraryGetTopWatchedContent.ts | 14 +--- src/funcs/logEnablePaperTrail.ts | 14 +--- src/funcs/logLogLine.ts | 14 +--- src/funcs/logLogMultiLine.ts | 14 +--- src/funcs/mediaGetBannerImage.ts | 14 +--- src/funcs/mediaGetThumbImage.ts | 14 +--- src/funcs/mediaMarkPlayed.ts | 14 +--- src/funcs/mediaMarkUnplayed.ts | 14 +--- src/funcs/mediaUpdatePlayProgress.ts | 14 +--- src/funcs/playlistsAddPlaylistContents.ts | 14 +--- src/funcs/playlistsClearPlaylistContents.ts | 14 +--- src/funcs/playlistsCreatePlaylist.ts | 14 +--- src/funcs/playlistsDeletePlaylist.ts | 14 +--- src/funcs/playlistsGetPlaylist.ts | 14 +--- src/funcs/playlistsGetPlaylistContents.ts | 14 +--- src/funcs/playlistsGetPlaylists.ts | 14 +--- src/funcs/playlistsUpdatePlaylist.ts | 14 +--- src/funcs/playlistsUploadPlaylist.ts | 14 +--- src/funcs/plexGetCompanionsData.ts | 14 +--- src/funcs/plexGetGeoData.ts | 14 +--- src/funcs/plexGetHomeData.ts | 14 +--- src/funcs/plexGetPin.ts | 14 +--- src/funcs/plexGetServerResources.ts | 14 +--- src/funcs/plexGetTokenByPinId.ts | 14 +--- src/funcs/plexGetUserFriends.ts | 14 +--- src/funcs/searchGetSearchResults.ts | 14 +--- src/funcs/searchPerformSearch.ts | 14 +--- src/funcs/searchPerformVoiceSearch.ts | 14 +--- src/funcs/serverGetAvailableClients.ts | 14 +--- src/funcs/serverGetDevices.ts | 14 +--- src/funcs/serverGetMediaProviders.ts | 14 +--- src/funcs/serverGetMyPlexAccount.ts | 14 +--- src/funcs/serverGetResizedPhoto.ts | 14 +--- src/funcs/serverGetServerCapabilities.ts | 14 +--- src/funcs/serverGetServerIdentity.ts | 14 +--- src/funcs/serverGetServerList.ts | 14 +--- src/funcs/serverGetServerPreferences.ts | 14 +--- src/funcs/sessionsGetSessionHistory.ts | 14 +--- src/funcs/sessionsGetSessions.ts | 14 +--- src/funcs/sessionsGetTranscodeSessions.ts | 14 +--- src/funcs/sessionsStopTranscodeSession.ts | 14 +--- src/funcs/statisticsGetBandwidthStatistics.ts | 14 +--- src/funcs/statisticsGetResourcesStatistics.ts | 14 +--- src/funcs/statisticsGetStatistics.ts | 14 +--- src/funcs/updaterApplyUpdates.ts | 14 +--- src/funcs/updaterCheckForUpdates.ts | 14 +--- src/funcs/updaterGetUpdateStatus.ts | 14 +--- src/funcs/videoGetTimeline.ts | 14 +--- src/funcs/videoStartUniversalTranscode.ts | 14 +--- src/funcs/watchlistGetWatchList.ts | 14 +--- src/lib/config.ts | 4 +- src/sdk/models/operations/getlibraryitems.ts | 10 ++- src/sdk/models/operations/gettokendetails.ts | 26 ++---- .../models/operations/postuserssignindata.ts | 26 ++---- 92 files changed, 278 insertions(+), 1154 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f15cce06..e80f524d 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 16f22cbf-f23f-4419-8924-3a4b06381947 management: - docChecksum: 1ee2e5413af07e886e33659b9b269dd5 + docChecksum: 23094f3a9fe02710a8628ad5456f5d42 docVersion: 0.0.3 speakeasyVersion: 1.405.6 generationVersion: 2.428.1 - releaseVersion: 0.25.1 - configChecksum: fbb6cdc652d55e2fd4686855e1cf4ed7 + releaseVersion: 0.26.1 + configChecksum: 60271a6e5ece5e9400f671595bbf9013 repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -2166,7 +2166,7 @@ examples: speakeasy-default-get-token-details: responses: "200": - application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null} + application/json: {"adsConsent": true, "adsConsentReminderAt": 1556281940, "adsConsentSetAt": 1556281940, "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null} "400": application/json: {"errors": []} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f17d4c00..4df834a0 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.25.1 + version: 0.26.1 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d0e35794..8024a33e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e - sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b + sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390 + sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109 tags: - latest - main @@ -18,10 +18,10 @@ targets: plexjs: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e - sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b + sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390 + sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109 codeSamplesNamespace: code-samples-typescript-plexjs - codeSamplesRevisionDigest: sha256:9667534090efff73eeec1ce4a99b4aebdd251a5eac0cfa5c78ddc0def4d4624e + codeSamplesRevisionDigest: sha256:6779ea8c16885c3e316919f2863535016f3af48a91e8ab4c3eed79c26b4615d3 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 9e8162fe..7cb01445 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1108,4 +1108,14 @@ Based on: ### Generated - [typescript v0.25.1] . ### Releases -- [NPM v0.25.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.25.1 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/docs/sdk/models/operations/getlibraryitemsmediacontainer.md b/docs/sdk/models/operations/getlibraryitemsmediacontainer.md index 861099de..38911843 100644 --- a/docs/sdk/models/operations/getlibraryitemsmediacontainer.md +++ b/docs/sdk/models/operations/getlibraryitemsmediacontainer.md @@ -380,5 +380,5 @@ let value: GetLibraryItemsMediaContainer = { | `viewGroup` | *string* | :heavy_check_mark: | N/A | movie | | `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 | | `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true | -| `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_check_mark: | N/A | | +| `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_minus_sign: | N/A | | | `meta` | [operations.GetLibraryItemsMeta](../../../sdk/models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
| | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettokendetailsresponse.md b/docs/sdk/models/operations/gettokendetailsresponse.md index 2d1264ed..76dda109 100644 --- a/docs/sdk/models/operations/gettokendetailsresponse.md +++ b/docs/sdk/models/operations/gettokendetailsresponse.md @@ -23,33 +23,22 @@ let value: GetTokenDetailsResponse = { headers: { "Content-Type": "application/json" }, }), userPlexAccount: { - adsConsent: true, - adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"), - adsConsentSetAt: new Date("2019-08-24T14:15:22Z"), - anonymous: false, + adsConsent: false, + adsConsentReminderAt: 1556281940, + adsConsentSetAt: 1556281940, authToken: "CxoUzBTSV5hsxjTpFKaf", - backupCodesCreated: false, - confirmed: false, country: "US", email: "username@email.com", - emailOnlyAuth: false, - experimentalFeatures: false, friendlyName: "friendlyUsername", entitlements: [ "[]", ], - guest: false, - hasPassword: true, - home: false, - homeAdmin: false, homeSize: 1, id: 13692262, - joinedAt: 1721154902, - locale: null, - mailingListActive: false, + joinedAt: 1556281940, + locale: "ko", mailingListStatus: MailingListStatus.Active, maxHomeSize: 15, - pin: "string", profile: { autoSelectAudio: true, defaultAudioLanguage: "ja", @@ -60,48 +49,32 @@ let value: GetTokenDetailsResponse = { watchedIndicator: WatchedIndicator.Enable, mediaReviewsVisibility: MediaReviewsVisibility.Enable, }, - protected: false, - rememberExpiresAt: 1722364046, - restricted: false, - roles: [ - "string", - ], - scrobbleTypes: "", + rememberExpiresAt: 1556281940, + scrobbleTypes: "", services: [ { identifier: "metadata-dev", endpoint: "https://epg.provider.plex.tv", token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "string", + secret: "", status: GetTokenDetailsStatus.Online, }, ], subscription: { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: GetTokenDetailsAuthenticationStatus.Inactive, - paymentService: "string", - plan: "string", }, - subscriptionDescription: "string", + subscriptionDescription: "", subscriptions: [ { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: GetTokenDetailsAuthenticationResponseStatus.Inactive, - paymentService: "string", - plan: "string", }, ], thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", title: "UsernameTitle", - twoFactorEnabled: false, username: "Username", uuid: "dae343c1f45beb4f", attributionPartner: null, @@ -111,9 +84,9 @@ let value: GetTokenDetailsResponse = { ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `userPlexAccount` | [operations.GetTokenDetailsUserPlexAccount](../../../sdk/models/operations/gettokendetailsuserplexaccount.md) | :heavy_minus_sign: | Logged in user details | {
"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": 1721154902,
"locale": null,
"mailingListActive": false,
"mailingListStatus": "subscribed",
"maxHomeSize": 15,
"pastSubscriptions": [
{
"id": "string",
"mode": "string",
"renewsAt": "string",
"endsAt": "1556281940",
"canceled": "0",
"gracePeriod": "0",
"onHold": "0",
"canReactivate": "0",
"canUpgrade": "0",
"canDowngrade": "0",
"canConvert": "0",
"type": "plexpass",
"transfer": "string",
"state": "ended",
"billing": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"pin": "string",
"profile": [
{
"autoSelectAudio": true,
"defaultAudioLanguage": "ja",
"defaultSubtitleLanguage": "en",
"autoSelectSubtitle": 1,
"defaultSubtitleAccessibility": 1,
"defaultSubtitleForced": 0,
"watchedIndicator": 1,
"mediaReviewsVisibility": 0
}
],
"protected": false,
"rememberExpiresAt": 1722364046,
"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",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `userPlexAccount` | [operations.GetTokenDetailsUserPlexAccount](../../../sdk/models/operations/gettokendetailsuserplexaccount.md) | :heavy_minus_sign: | Logged in user details | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettokendetailsuserplexaccount.md b/docs/sdk/models/operations/gettokendetailsuserplexaccount.md index 66450d03..7b1ba23c 100644 --- a/docs/sdk/models/operations/gettokendetailsuserplexaccount.md +++ b/docs/sdk/models/operations/gettokendetailsuserplexaccount.md @@ -19,33 +19,22 @@ import { } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetTokenDetailsUserPlexAccount = { - adsConsent: true, - adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"), - adsConsentSetAt: new Date("2019-08-24T14:15:22Z"), - anonymous: false, + adsConsent: false, + adsConsentReminderAt: 1556281940, + adsConsentSetAt: 1556281940, authToken: "CxoUzBTSV5hsxjTpFKaf", - backupCodesCreated: false, - confirmed: false, country: "US", email: "username@email.com", - emailOnlyAuth: false, - experimentalFeatures: false, friendlyName: "friendlyUsername", entitlements: [ "[]", ], - guest: false, - hasPassword: true, - home: false, - homeAdmin: false, homeSize: 1, id: 13692262, - joinedAt: 1721154902, - locale: null, - mailingListActive: false, - mailingListStatus: MailingListStatus.Unsubscribed, + joinedAt: 1556281940, + locale: "ar", + mailingListStatus: MailingListStatus.Active, maxHomeSize: 15, - pin: "string", profile: { autoSelectAudio: true, defaultAudioLanguage: "ja", @@ -56,48 +45,32 @@ let value: GetTokenDetailsUserPlexAccount = { watchedIndicator: WatchedIndicator.Enable, mediaReviewsVisibility: MediaReviewsVisibility.Enable, }, - protected: false, - rememberExpiresAt: 1722364046, - restricted: false, - roles: [ - "string", - ], - scrobbleTypes: "", + rememberExpiresAt: 1556281940, + scrobbleTypes: "", services: [ { identifier: "metadata-dev", endpoint: "https://epg.provider.plex.tv", token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "string", + secret: "", status: GetTokenDetailsStatus.Online, }, ], subscription: { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: GetTokenDetailsAuthenticationStatus.Inactive, - paymentService: "string", - plan: "string", }, - subscriptionDescription: "string", + subscriptionDescription: "", subscriptions: [ { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: GetTokenDetailsAuthenticationResponseStatus.Inactive, - paymentService: "string", - plan: "string", }, ], thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", title: "UsernameTitle", - twoFactorEnabled: false, username: "Username", uuid: "dae343c1f45beb4f", attributionPartner: null, @@ -109,8 +82,8 @@ let value: GetTokenDetailsUserPlexAccount = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `adsConsent` | *boolean* | :heavy_check_mark: | Unknown | | -| `adsConsentReminderAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | -| `adsConsentSetAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | +| `adsConsentReminderAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | +| `adsConsentSetAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | | `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | | | `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | | `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | diff --git a/docs/sdk/models/operations/postuserssignindataresponse.md b/docs/sdk/models/operations/postuserssignindataresponse.md index f1ca74fe..37779fd3 100644 --- a/docs/sdk/models/operations/postuserssignindataresponse.md +++ b/docs/sdk/models/operations/postuserssignindataresponse.md @@ -24,33 +24,22 @@ let value: PostUsersSignInDataResponse = { headers: { "Content-Type": "application/json" }, }), userPlexAccount: { - adsConsent: true, - adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"), - adsConsentSetAt: new Date("2019-08-24T14:15:22Z"), - anonymous: false, + adsConsent: false, + adsConsentReminderAt: 1556281940, + adsConsentSetAt: 1556281940, authToken: "CxoUzBTSV5hsxjTpFKaf", - backupCodesCreated: false, - confirmed: false, country: "US", email: "username@email.com", - emailOnlyAuth: false, - experimentalFeatures: false, friendlyName: "friendlyUsername", entitlements: [ "[]", ], - guest: false, - hasPassword: true, - home: false, - homeAdmin: false, homeSize: 1, id: 13692262, - joinedAt: 1721154902, - locale: null, - mailingListActive: false, - mailingListStatus: PostUsersSignInDataMailingListStatus.Unsubscribed, + joinedAt: 1556281940, + locale: "ar", + mailingListStatus: PostUsersSignInDataMailingListStatus.Active, maxHomeSize: 15, - pin: "string", profile: { autoSelectAudio: true, defaultAudioLanguage: "ja", @@ -62,66 +51,50 @@ let value: PostUsersSignInDataResponse = { watchedIndicator: PostUsersSignInDataWatchedIndicator.Enable, mediaReviewsVisibility: PostUsersSignInDataMediaReviewsVisibility.Enable, }, - protected: false, - rememberExpiresAt: 1722364046, - restricted: false, - roles: [ - "string", - ], - scrobbleTypes: "", + rememberExpiresAt: 1556281940, + scrobbleTypes: "", services: [ { identifier: "metadata-dev", endpoint: "https://epg.provider.plex.tv", token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "string", + secret: "", status: PostUsersSignInDataStatus.Online, }, ], subscription: { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: PostUsersSignInDataAuthenticationStatus.Inactive, - paymentService: "string", - plan: "string", }, - subscriptionDescription: "string", + subscriptionDescription: "", subscriptions: [ { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: PostUsersSignInDataAuthenticationResponseStatus.Inactive, - paymentService: "string", - plan: "string", }, ], thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", title: "UsernameTitle", - twoFactorEnabled: false, username: "Username", uuid: "dae343c1f45beb4f", attributionPartner: null, pastSubscriptions: [ { - id: "string", - mode: "string", - renewsAt: string, + id: "", + mode: "", + renewsAt: 1556281940, endsAt: 1556281940, - canceled: true, - gracePeriod: true, - onHold: true, - canReactivate: true, - canUpgrade: true, - canDowngrade: true, - canConvert: true, + canceled: false, + gracePeriod: false, + onHold: false, + canReactivate: false, + canUpgrade: false, + canDowngrade: false, + canConvert: false, type: "plexpass", - transfer: "string", + transfer: "", state: PostUsersSignInDataState.Ended, billing: { internalPaymentMethod: {}, @@ -138,9 +111,9 @@ let value: PostUsersSignInDataResponse = { ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `userPlexAccount` | [operations.PostUsersSignInDataUserPlexAccount](../../../sdk/models/operations/postuserssignindatauserplexaccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | {
"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": 1721154902,
"locale": null,
"mailingListActive": false,
"mailingListStatus": "subscribed",
"maxHomeSize": 15,
"pastSubscriptions": [
{
"id": "string",
"mode": "string",
"renewsAt": "string",
"endsAt": "1556281940",
"canceled": "0",
"gracePeriod": "0",
"onHold": "0",
"canReactivate": "0",
"canUpgrade": "0",
"canDowngrade": "0",
"canConvert": "0",
"type": "plexpass",
"transfer": "string",
"state": "ended",
"billing": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"pin": "string",
"profile": [
{
"autoSelectAudio": true,
"defaultAudioLanguage": "ja",
"defaultSubtitleLanguage": "en",
"autoSelectSubtitle": 1,
"defaultSubtitleAccessibility": 1,
"defaultSubtitleForced": 0,
"watchedIndicator": 1,
"mediaReviewsVisibility": 0
}
],
"protected": false,
"rememberExpiresAt": 1722364046,
"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",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `userPlexAccount` | [operations.PostUsersSignInDataUserPlexAccount](../../../sdk/models/operations/postuserssignindatauserplexaccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | \ No newline at end of file diff --git a/docs/sdk/models/operations/postuserssignindatauserplexaccount.md b/docs/sdk/models/operations/postuserssignindatauserplexaccount.md index 53ce3874..0680d3b5 100644 --- a/docs/sdk/models/operations/postuserssignindatauserplexaccount.md +++ b/docs/sdk/models/operations/postuserssignindatauserplexaccount.md @@ -20,33 +20,22 @@ import { } from "@lukehagar/plexjs/sdk/models/operations"; let value: PostUsersSignInDataUserPlexAccount = { - adsConsent: true, - adsConsentReminderAt: new Date("2019-08-24T14:15:22Z"), - adsConsentSetAt: new Date("2019-08-24T14:15:22Z"), - anonymous: false, + adsConsent: false, + adsConsentReminderAt: 1556281940, + adsConsentSetAt: 1556281940, authToken: "CxoUzBTSV5hsxjTpFKaf", - backupCodesCreated: false, - confirmed: false, country: "US", email: "username@email.com", - emailOnlyAuth: false, - experimentalFeatures: false, friendlyName: "friendlyUsername", entitlements: [ "[]", ], - guest: false, - hasPassword: true, - home: false, - homeAdmin: false, homeSize: 1, id: 13692262, - joinedAt: 1721154902, - locale: null, - mailingListActive: false, + joinedAt: 1556281940, + locale: "pt", mailingListStatus: PostUsersSignInDataMailingListStatus.Active, maxHomeSize: 15, - pin: "string", profile: { autoSelectAudio: true, defaultAudioLanguage: "ja", @@ -58,66 +47,50 @@ let value: PostUsersSignInDataUserPlexAccount = { watchedIndicator: PostUsersSignInDataWatchedIndicator.Enable, mediaReviewsVisibility: PostUsersSignInDataMediaReviewsVisibility.Enable, }, - protected: false, - rememberExpiresAt: 1722364046, - restricted: false, - roles: [ - "string", - ], - scrobbleTypes: "", + rememberExpiresAt: 1556281940, + scrobbleTypes: "", services: [ { identifier: "metadata-dev", endpoint: "https://epg.provider.plex.tv", token: "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", - secret: "string", + secret: "", status: PostUsersSignInDataStatus.Online, }, ], subscription: { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: PostUsersSignInDataAuthenticationStatus.Inactive, - paymentService: "string", - plan: "string", }, - subscriptionDescription: "string", + subscriptionDescription: "", subscriptions: [ { - features: [ - "Android - Dolby Vision", - ], active: true, subscribedAt: "2021-04-12T18:21:12Z", status: PostUsersSignInDataAuthenticationResponseStatus.Inactive, - paymentService: "string", - plan: "string", }, ], thumb: "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", title: "UsernameTitle", - twoFactorEnabled: false, username: "Username", uuid: "dae343c1f45beb4f", attributionPartner: null, pastSubscriptions: [ { - id: "string", - mode: "string", - renewsAt: string, + id: "", + mode: "", + renewsAt: 1556281940, endsAt: 1556281940, - canceled: true, - gracePeriod: true, - onHold: true, - canReactivate: true, - canUpgrade: true, - canDowngrade: true, - canConvert: true, + canceled: false, + gracePeriod: false, + onHold: false, + canReactivate: false, + canUpgrade: false, + canDowngrade: false, + canConvert: false, type: "plexpass", - transfer: "string", + transfer: "", state: PostUsersSignInDataState.Ended, billing: { internalPaymentMethod: {}, @@ -136,8 +109,8 @@ let value: PostUsersSignInDataUserPlexAccount = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `adsConsent` | *boolean* | :heavy_check_mark: | Unknown | | -| `adsConsentReminderAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | -| `adsConsentSetAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Unknown | | +| `adsConsentReminderAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | +| `adsConsentSetAt` | *number* | :heavy_check_mark: | N/A | 1556281940 | | `anonymous` | *boolean* | :heavy_minus_sign: | Unknown | | | `authToken` | *string* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | | `backupCodesCreated` | *boolean* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | diff --git a/jsr.json b/jsr.json index 548b2212..342b59b9 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@lukehagar/plexjs", - "version": "0.25.1", + "version": "0.26.1", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 93e95cdf..01da3c7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.25.1", + "version": "0.26.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.25.1", + "version": "0.26.1", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 4ca49d54..53503a7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lukehagar/plexjs", - "version": "0.25.1", + "version": "0.26.1", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/activitiesCancelServerActivities.ts b/src/funcs/activitiesCancelServerActivities.ts index a32bd3e4..567ebc43 100644 --- a/src/funcs/activitiesCancelServerActivities.ts +++ b/src/funcs/activitiesCancelServerActivities.ts @@ -101,18 +101,8 @@ export async function activitiesCancelServerActivities( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/activitiesGetServerActivities.ts b/src/funcs/activitiesGetServerActivities.ts index 0196c167..ac12893c 100644 --- a/src/funcs/activitiesGetServerActivities.ts +++ b/src/funcs/activitiesGetServerActivities.ts @@ -74,18 +74,8 @@ export async function activitiesGetServerActivities( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/authenticationGetSourceConnectionInformation.ts b/src/funcs/authenticationGetSourceConnectionInformation.ts index 2a866854..5ae86236 100644 --- a/src/funcs/authenticationGetSourceConnectionInformation.ts +++ b/src/funcs/authenticationGetSourceConnectionInformation.ts @@ -102,18 +102,8 @@ export async function authenticationGetSourceConnectionInformation( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/authenticationGetTokenDetails.ts b/src/funcs/authenticationGetTokenDetails.ts index e16ab6b0..03e562cc 100644 --- a/src/funcs/authenticationGetTokenDetails.ts +++ b/src/funcs/authenticationGetTokenDetails.ts @@ -79,18 +79,8 @@ export async function authenticationGetTokenDetails( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/authenticationGetTransientToken.ts b/src/funcs/authenticationGetTransientToken.ts index 3d03818d..bd04e110 100644 --- a/src/funcs/authenticationGetTransientToken.ts +++ b/src/funcs/authenticationGetTransientToken.ts @@ -101,18 +101,8 @@ export async function authenticationGetTransientToken( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/authenticationPostUsersSignInData.ts b/src/funcs/authenticationPostUsersSignInData.ts index 3376e906..dcc16490 100644 --- a/src/funcs/authenticationPostUsersSignInData.ts +++ b/src/funcs/authenticationPostUsersSignInData.ts @@ -144,18 +144,8 @@ export async function authenticationPostUsersSignInData( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/butlerGetButlerTasks.ts b/src/funcs/butlerGetButlerTasks.ts index 71b1706b..d73604a5 100644 --- a/src/funcs/butlerGetButlerTasks.ts +++ b/src/funcs/butlerGetButlerTasks.ts @@ -74,18 +74,8 @@ export async function butlerGetButlerTasks( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/butlerStartAllTasks.ts b/src/funcs/butlerStartAllTasks.ts index 7e2eb05d..aaff2818 100644 --- a/src/funcs/butlerStartAllTasks.ts +++ b/src/funcs/butlerStartAllTasks.ts @@ -78,18 +78,8 @@ export async function butlerStartAllTasks( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/butlerStartTask.ts b/src/funcs/butlerStartTask.ts index c8622fc5..2c4bea72 100644 --- a/src/funcs/butlerStartTask.ts +++ b/src/funcs/butlerStartTask.ts @@ -104,18 +104,8 @@ export async function butlerStartTask( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/butlerStopAllTasks.ts b/src/funcs/butlerStopAllTasks.ts index b21081ad..d0395835 100644 --- a/src/funcs/butlerStopAllTasks.ts +++ b/src/funcs/butlerStopAllTasks.ts @@ -74,18 +74,8 @@ export async function butlerStopAllTasks( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/butlerStopTask.ts b/src/funcs/butlerStopTask.ts index 8b9fbd22..2613c496 100644 --- a/src/funcs/butlerStopTask.ts +++ b/src/funcs/butlerStopTask.ts @@ -100,18 +100,8 @@ export async function butlerStopTask( context, errorCodes: ["400", "401", "404", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/hubsGetGlobalHubs.ts b/src/funcs/hubsGetGlobalHubs.ts index 3ed3a688..e5ed6ad8 100644 --- a/src/funcs/hubsGetGlobalHubs.ts +++ b/src/funcs/hubsGetGlobalHubs.ts @@ -101,18 +101,8 @@ export async function hubsGetGlobalHubs( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/hubsGetLibraryHubs.ts b/src/funcs/hubsGetLibraryHubs.ts index 9f15af9f..678b717e 100644 --- a/src/funcs/hubsGetLibraryHubs.ts +++ b/src/funcs/hubsGetLibraryHubs.ts @@ -110,18 +110,8 @@ export async function hubsGetLibraryHubs( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/hubsGetRecentlyAdded.ts b/src/funcs/hubsGetRecentlyAdded.ts index c4249ce9..1ef78e7b 100644 --- a/src/funcs/hubsGetRecentlyAdded.ts +++ b/src/funcs/hubsGetRecentlyAdded.ts @@ -99,18 +99,8 @@ export async function hubsGetRecentlyAdded( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryDeleteLibrary.ts b/src/funcs/libraryDeleteLibrary.ts index 6734d80f..2306e1d7 100644 --- a/src/funcs/libraryDeleteLibrary.ts +++ b/src/funcs/libraryDeleteLibrary.ts @@ -100,18 +100,8 @@ export async function libraryDeleteLibrary( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetAllLibraries.ts b/src/funcs/libraryGetAllLibraries.ts index 9af563c9..c5b327fe 100644 --- a/src/funcs/libraryGetAllLibraries.ts +++ b/src/funcs/libraryGetAllLibraries.ts @@ -79,18 +79,8 @@ export async function libraryGetAllLibraries( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetFileHash.ts b/src/funcs/libraryGetFileHash.ts index 79a91106..de8e59f7 100644 --- a/src/funcs/libraryGetFileHash.ts +++ b/src/funcs/libraryGetFileHash.ts @@ -101,18 +101,8 @@ export async function libraryGetFileHash( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetLibraryDetails.ts b/src/funcs/libraryGetLibraryDetails.ts index fbeb37ab..a141d2f4 100644 --- a/src/funcs/libraryGetLibraryDetails.ts +++ b/src/funcs/libraryGetLibraryDetails.ts @@ -145,18 +145,8 @@ export async function libraryGetLibraryDetails( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetLibraryItems.ts b/src/funcs/libraryGetLibraryItems.ts index 8462721d..4952a0ed 100644 --- a/src/funcs/libraryGetLibraryItems.ts +++ b/src/funcs/libraryGetLibraryItems.ts @@ -130,18 +130,8 @@ export async function libraryGetLibraryItems( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetMetaDataByRatingKey.ts b/src/funcs/libraryGetMetaDataByRatingKey.ts index a7b6748e..7917963e 100644 --- a/src/funcs/libraryGetMetaDataByRatingKey.ts +++ b/src/funcs/libraryGetMetaDataByRatingKey.ts @@ -101,18 +101,8 @@ export async function libraryGetMetaDataByRatingKey( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetMetadataChildren.ts b/src/funcs/libraryGetMetadataChildren.ts index 82c606a9..11d14bbb 100644 --- a/src/funcs/libraryGetMetadataChildren.ts +++ b/src/funcs/libraryGetMetadataChildren.ts @@ -108,18 +108,8 @@ export async function libraryGetMetadataChildren( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetOnDeck.ts b/src/funcs/libraryGetOnDeck.ts index 32c83e08..9b6b9665 100644 --- a/src/funcs/libraryGetOnDeck.ts +++ b/src/funcs/libraryGetOnDeck.ts @@ -74,18 +74,8 @@ export async function libraryGetOnDeck( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetRecentlyAddedLibrary.ts b/src/funcs/libraryGetRecentlyAddedLibrary.ts index 484ef72c..75b036d0 100644 --- a/src/funcs/libraryGetRecentlyAddedLibrary.ts +++ b/src/funcs/libraryGetRecentlyAddedLibrary.ts @@ -103,18 +103,8 @@ export async function libraryGetRecentlyAddedLibrary( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetRefreshLibraryMetadata.ts b/src/funcs/libraryGetRefreshLibraryMetadata.ts index 6c5f10fb..56bd0f73 100644 --- a/src/funcs/libraryGetRefreshLibraryMetadata.ts +++ b/src/funcs/libraryGetRefreshLibraryMetadata.ts @@ -108,18 +108,8 @@ export async function libraryGetRefreshLibraryMetadata( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetSearchAllLibraries.ts b/src/funcs/libraryGetSearchAllLibraries.ts index f648b0ef..82f5c943 100644 --- a/src/funcs/libraryGetSearchAllLibraries.ts +++ b/src/funcs/libraryGetSearchAllLibraries.ts @@ -115,18 +115,8 @@ export async function libraryGetSearchAllLibraries( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetSearchLibrary.ts b/src/funcs/libraryGetSearchLibrary.ts index a6db5367..e2168cf0 100644 --- a/src/funcs/libraryGetSearchLibrary.ts +++ b/src/funcs/libraryGetSearchLibrary.ts @@ -124,18 +124,8 @@ export async function libraryGetSearchLibrary( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/libraryGetTopWatchedContent.ts b/src/funcs/libraryGetTopWatchedContent.ts index df69ed95..9cd860b5 100644 --- a/src/funcs/libraryGetTopWatchedContent.ts +++ b/src/funcs/libraryGetTopWatchedContent.ts @@ -102,18 +102,8 @@ export async function libraryGetTopWatchedContent( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/logEnablePaperTrail.ts b/src/funcs/logEnablePaperTrail.ts index 62cdeb3f..65dad8ed 100644 --- a/src/funcs/logEnablePaperTrail.ts +++ b/src/funcs/logEnablePaperTrail.ts @@ -74,18 +74,8 @@ export async function logEnablePaperTrail( context, errorCodes: ["400", "401", "403", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/logLogLine.ts b/src/funcs/logLogLine.ts index 408b59aa..7c64af4b 100644 --- a/src/funcs/logLogLine.ts +++ b/src/funcs/logLogLine.ts @@ -104,18 +104,8 @@ export async function logLogLine( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/logLogMultiLine.ts b/src/funcs/logLogMultiLine.ts index 492d4fb5..ef467c3a 100644 --- a/src/funcs/logLogMultiLine.ts +++ b/src/funcs/logLogMultiLine.ts @@ -112,18 +112,8 @@ export async function logLogMultiLine( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/mediaGetBannerImage.ts b/src/funcs/mediaGetBannerImage.ts index a1e267f5..cbfb6e12 100644 --- a/src/funcs/mediaGetBannerImage.ts +++ b/src/funcs/mediaGetBannerImage.ts @@ -110,18 +110,8 @@ export async function mediaGetBannerImage( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/mediaGetThumbImage.ts b/src/funcs/mediaGetThumbImage.ts index c9fc31a1..86a492fe 100644 --- a/src/funcs/mediaGetThumbImage.ts +++ b/src/funcs/mediaGetThumbImage.ts @@ -110,18 +110,8 @@ export async function mediaGetThumbImage( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/mediaMarkPlayed.ts b/src/funcs/mediaMarkPlayed.ts index 923e1748..fafb70fe 100644 --- a/src/funcs/mediaMarkPlayed.ts +++ b/src/funcs/mediaMarkPlayed.ts @@ -98,18 +98,8 @@ export async function mediaMarkPlayed( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/mediaMarkUnplayed.ts b/src/funcs/mediaMarkUnplayed.ts index ee521ce4..4e707c9e 100644 --- a/src/funcs/mediaMarkUnplayed.ts +++ b/src/funcs/mediaMarkUnplayed.ts @@ -98,18 +98,8 @@ export async function mediaMarkUnplayed( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/mediaUpdatePlayProgress.ts b/src/funcs/mediaUpdatePlayProgress.ts index 6b650556..efcb4bd5 100644 --- a/src/funcs/mediaUpdatePlayProgress.ts +++ b/src/funcs/mediaUpdatePlayProgress.ts @@ -104,18 +104,8 @@ export async function mediaUpdatePlayProgress( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsAddPlaylistContents.ts b/src/funcs/playlistsAddPlaylistContents.ts index 4c4984fc..c9eaf0fd 100644 --- a/src/funcs/playlistsAddPlaylistContents.ts +++ b/src/funcs/playlistsAddPlaylistContents.ts @@ -112,18 +112,8 @@ export async function playlistsAddPlaylistContents( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsClearPlaylistContents.ts b/src/funcs/playlistsClearPlaylistContents.ts index 37142426..e118d70c 100644 --- a/src/funcs/playlistsClearPlaylistContents.ts +++ b/src/funcs/playlistsClearPlaylistContents.ts @@ -101,18 +101,8 @@ export async function playlistsClearPlaylistContents( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsCreatePlaylist.ts b/src/funcs/playlistsCreatePlaylist.ts index 3ee4c99f..76a5f396 100644 --- a/src/funcs/playlistsCreatePlaylist.ts +++ b/src/funcs/playlistsCreatePlaylist.ts @@ -102,18 +102,8 @@ export async function playlistsCreatePlaylist( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsDeletePlaylist.ts b/src/funcs/playlistsDeletePlaylist.ts index fd84605f..b4f37c28 100644 --- a/src/funcs/playlistsDeletePlaylist.ts +++ b/src/funcs/playlistsDeletePlaylist.ts @@ -100,18 +100,8 @@ export async function playlistsDeletePlaylist( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsGetPlaylist.ts b/src/funcs/playlistsGetPlaylist.ts index 9a55e747..ea4ab7f7 100644 --- a/src/funcs/playlistsGetPlaylist.ts +++ b/src/funcs/playlistsGetPlaylist.ts @@ -101,18 +101,8 @@ export async function playlistsGetPlaylist( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsGetPlaylistContents.ts b/src/funcs/playlistsGetPlaylistContents.ts index 7b3cfa95..55f86d18 100644 --- a/src/funcs/playlistsGetPlaylistContents.ts +++ b/src/funcs/playlistsGetPlaylistContents.ts @@ -111,18 +111,8 @@ export async function playlistsGetPlaylistContents( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsGetPlaylists.ts b/src/funcs/playlistsGetPlaylists.ts index 2dea7273..50ccf265 100644 --- a/src/funcs/playlistsGetPlaylists.ts +++ b/src/funcs/playlistsGetPlaylists.ts @@ -101,18 +101,8 @@ export async function playlistsGetPlaylists( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsUpdatePlaylist.ts b/src/funcs/playlistsUpdatePlaylist.ts index 4b1f6857..46cf76be 100644 --- a/src/funcs/playlistsUpdatePlaylist.ts +++ b/src/funcs/playlistsUpdatePlaylist.ts @@ -110,18 +110,8 @@ export async function playlistsUpdatePlaylist( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/playlistsUploadPlaylist.ts b/src/funcs/playlistsUploadPlaylist.ts index 0766678d..9b4a3672 100644 --- a/src/funcs/playlistsUploadPlaylist.ts +++ b/src/funcs/playlistsUploadPlaylist.ts @@ -104,18 +104,8 @@ export async function playlistsUploadPlaylist( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetCompanionsData.ts b/src/funcs/plexGetCompanionsData.ts index e274a8ee..2c742abc 100644 --- a/src/funcs/plexGetCompanionsData.ts +++ b/src/funcs/plexGetCompanionsData.ts @@ -81,18 +81,8 @@ export async function plexGetCompanionsData( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetGeoData.ts b/src/funcs/plexGetGeoData.ts index 86fca99d..50cdb5b9 100644 --- a/src/funcs/plexGetGeoData.ts +++ b/src/funcs/plexGetGeoData.ts @@ -74,18 +74,8 @@ export async function plexGetGeoData( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetHomeData.ts b/src/funcs/plexGetHomeData.ts index c16d349f..3a48f058 100644 --- a/src/funcs/plexGetHomeData.ts +++ b/src/funcs/plexGetHomeData.ts @@ -74,18 +74,8 @@ export async function plexGetHomeData( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetPin.ts b/src/funcs/plexGetPin.ts index 5e9675ee..e2ed90d3 100644 --- a/src/funcs/plexGetPin.ts +++ b/src/funcs/plexGetPin.ts @@ -141,18 +141,8 @@ export async function plexGetPin( context, errorCodes: ["400", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetServerResources.ts b/src/funcs/plexGetServerResources.ts index c2456bb8..600cfe7a 100644 --- a/src/funcs/plexGetServerResources.ts +++ b/src/funcs/plexGetServerResources.ts @@ -123,18 +123,8 @@ export async function plexGetServerResources( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetTokenByPinId.ts b/src/funcs/plexGetTokenByPinId.ts index 01d621f3..444b0cdd 100644 --- a/src/funcs/plexGetTokenByPinId.ts +++ b/src/funcs/plexGetTokenByPinId.ts @@ -144,18 +144,8 @@ export async function plexGetTokenByPinId( context, errorCodes: ["400", "404", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/plexGetUserFriends.ts b/src/funcs/plexGetUserFriends.ts index 9e51b6df..5bd0de90 100644 --- a/src/funcs/plexGetUserFriends.ts +++ b/src/funcs/plexGetUserFriends.ts @@ -79,18 +79,8 @@ export async function plexGetUserFriends( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/searchGetSearchResults.ts b/src/funcs/searchGetSearchResults.ts index c9fe1d30..31322401 100644 --- a/src/funcs/searchGetSearchResults.ts +++ b/src/funcs/searchGetSearchResults.ts @@ -98,18 +98,8 @@ export async function searchGetSearchResults( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/searchPerformSearch.ts b/src/funcs/searchPerformSearch.ts index f018a1f4..056ded1b 100644 --- a/src/funcs/searchPerformSearch.ts +++ b/src/funcs/searchPerformSearch.ts @@ -115,18 +115,8 @@ export async function searchPerformSearch( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/searchPerformVoiceSearch.ts b/src/funcs/searchPerformVoiceSearch.ts index 869ecbe0..560cc066 100644 --- a/src/funcs/searchPerformVoiceSearch.ts +++ b/src/funcs/searchPerformVoiceSearch.ts @@ -107,18 +107,8 @@ export async function searchPerformVoiceSearch( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetAvailableClients.ts b/src/funcs/serverGetAvailableClients.ts index 474420c0..e443eaf2 100644 --- a/src/funcs/serverGetAvailableClients.ts +++ b/src/funcs/serverGetAvailableClients.ts @@ -74,18 +74,8 @@ export async function serverGetAvailableClients( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetDevices.ts b/src/funcs/serverGetDevices.ts index b6e6a7e6..b5822b0f 100644 --- a/src/funcs/serverGetDevices.ts +++ b/src/funcs/serverGetDevices.ts @@ -74,18 +74,8 @@ export async function serverGetDevices( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetMediaProviders.ts b/src/funcs/serverGetMediaProviders.ts index db61f4a1..f81203f0 100644 --- a/src/funcs/serverGetMediaProviders.ts +++ b/src/funcs/serverGetMediaProviders.ts @@ -97,18 +97,8 @@ export async function serverGetMediaProviders( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetMyPlexAccount.ts b/src/funcs/serverGetMyPlexAccount.ts index f881fc22..4c437869 100644 --- a/src/funcs/serverGetMyPlexAccount.ts +++ b/src/funcs/serverGetMyPlexAccount.ts @@ -74,18 +74,8 @@ export async function serverGetMyPlexAccount( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetResizedPhoto.ts b/src/funcs/serverGetResizedPhoto.ts index 89fc3ff0..b81c8a65 100644 --- a/src/funcs/serverGetResizedPhoto.ts +++ b/src/funcs/serverGetResizedPhoto.ts @@ -102,18 +102,8 @@ export async function serverGetResizedPhoto( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetServerCapabilities.ts b/src/funcs/serverGetServerCapabilities.ts index 58dbbea9..753c572d 100644 --- a/src/funcs/serverGetServerCapabilities.ts +++ b/src/funcs/serverGetServerCapabilities.ts @@ -74,18 +74,8 @@ export async function serverGetServerCapabilities( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetServerIdentity.ts b/src/funcs/serverGetServerIdentity.ts index 839986f0..9da0e0e5 100644 --- a/src/funcs/serverGetServerIdentity.ts +++ b/src/funcs/serverGetServerIdentity.ts @@ -68,18 +68,8 @@ export async function serverGetServerIdentity( context, errorCodes: ["408", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetServerList.ts b/src/funcs/serverGetServerList.ts index 977b29ca..806cb23e 100644 --- a/src/funcs/serverGetServerList.ts +++ b/src/funcs/serverGetServerList.ts @@ -74,18 +74,8 @@ export async function serverGetServerList( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/serverGetServerPreferences.ts b/src/funcs/serverGetServerPreferences.ts index 68822734..8e1dfc32 100644 --- a/src/funcs/serverGetServerPreferences.ts +++ b/src/funcs/serverGetServerPreferences.ts @@ -74,18 +74,8 @@ export async function serverGetServerPreferences( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/sessionsGetSessionHistory.ts b/src/funcs/sessionsGetSessionHistory.ts index 02248d02..849499df 100644 --- a/src/funcs/sessionsGetSessionHistory.ts +++ b/src/funcs/sessionsGetSessionHistory.ts @@ -107,18 +107,8 @@ export async function sessionsGetSessionHistory( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/sessionsGetSessions.ts b/src/funcs/sessionsGetSessions.ts index 48e6a089..f61c4f81 100644 --- a/src/funcs/sessionsGetSessions.ts +++ b/src/funcs/sessionsGetSessions.ts @@ -74,18 +74,8 @@ export async function sessionsGetSessions( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/sessionsGetTranscodeSessions.ts b/src/funcs/sessionsGetTranscodeSessions.ts index 28e5aa58..61622569 100644 --- a/src/funcs/sessionsGetTranscodeSessions.ts +++ b/src/funcs/sessionsGetTranscodeSessions.ts @@ -74,18 +74,8 @@ export async function sessionsGetTranscodeSessions( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/sessionsStopTranscodeSession.ts b/src/funcs/sessionsStopTranscodeSession.ts index ce263fb3..8dfb9bd4 100644 --- a/src/funcs/sessionsStopTranscodeSession.ts +++ b/src/funcs/sessionsStopTranscodeSession.ts @@ -101,18 +101,8 @@ export async function sessionsStopTranscodeSession( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/statisticsGetBandwidthStatistics.ts b/src/funcs/statisticsGetBandwidthStatistics.ts index 2576477b..a368e002 100644 --- a/src/funcs/statisticsGetBandwidthStatistics.ts +++ b/src/funcs/statisticsGetBandwidthStatistics.ts @@ -99,18 +99,8 @@ export async function statisticsGetBandwidthStatistics( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/statisticsGetResourcesStatistics.ts b/src/funcs/statisticsGetResourcesStatistics.ts index 7bb9d6f6..60eab53c 100644 --- a/src/funcs/statisticsGetResourcesStatistics.ts +++ b/src/funcs/statisticsGetResourcesStatistics.ts @@ -99,18 +99,8 @@ export async function statisticsGetResourcesStatistics( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/statisticsGetStatistics.ts b/src/funcs/statisticsGetStatistics.ts index 78838b22..d87de25f 100644 --- a/src/funcs/statisticsGetStatistics.ts +++ b/src/funcs/statisticsGetStatistics.ts @@ -98,18 +98,8 @@ export async function statisticsGetStatistics( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/updaterApplyUpdates.ts b/src/funcs/updaterApplyUpdates.ts index 0dc4ef18..4de1c189 100644 --- a/src/funcs/updaterApplyUpdates.ts +++ b/src/funcs/updaterApplyUpdates.ts @@ -101,18 +101,8 @@ export async function updaterApplyUpdates( context, errorCodes: ["400", "401", "4XX", "500", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/updaterCheckForUpdates.ts b/src/funcs/updaterCheckForUpdates.ts index 7aa36ed5..ee3aa0ec 100644 --- a/src/funcs/updaterCheckForUpdates.ts +++ b/src/funcs/updaterCheckForUpdates.ts @@ -98,18 +98,8 @@ export async function updaterCheckForUpdates( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/updaterGetUpdateStatus.ts b/src/funcs/updaterGetUpdateStatus.ts index 5ed56203..59aab923 100644 --- a/src/funcs/updaterGetUpdateStatus.ts +++ b/src/funcs/updaterGetUpdateStatus.ts @@ -74,18 +74,8 @@ export async function updaterGetUpdateStatus( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/videoGetTimeline.ts b/src/funcs/videoGetTimeline.ts index f6b9e076..5ba0795d 100644 --- a/src/funcs/videoGetTimeline.ts +++ b/src/funcs/videoGetTimeline.ts @@ -105,18 +105,8 @@ export async function videoGetTimeline( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/videoStartUniversalTranscode.ts b/src/funcs/videoStartUniversalTranscode.ts index adcbae79..16750cd7 100644 --- a/src/funcs/videoStartUniversalTranscode.ts +++ b/src/funcs/videoStartUniversalTranscode.ts @@ -112,18 +112,8 @@ export async function videoStartUniversalTranscode( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/funcs/watchlistGetWatchList.ts b/src/funcs/watchlistGetWatchList.ts index 030445e3..d482943a 100644 --- a/src/funcs/watchlistGetWatchList.ts +++ b/src/funcs/watchlistGetWatchList.ts @@ -118,18 +118,8 @@ export async function watchlistGetWatchList( context, errorCodes: ["400", "401", "4XX", "5XX"], retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, - }, - retryConnectionErrors: true, - }, - retryCodes: options?.retryCodes || ["5XX"], + || client._options.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], }); if (!doResult.ok) { return doResult; diff --git a/src/lib/config.ts b/src/lib/config.ts index 96904ea6..7399696a 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -115,7 +115,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.3", - sdkVersion: "0.25.1", + sdkVersion: "0.26.1", genVersion: "2.428.1", - userAgent: "speakeasy-sdk/typescript 0.25.1 2.428.1 0.0.3 @lukehagar/plexjs", + userAgent: "speakeasy-sdk/typescript 0.26.1 2.428.1 0.0.3 @lukehagar/plexjs", } as const; diff --git a/src/sdk/models/operations/getlibraryitems.ts b/src/sdk/models/operations/getlibraryitems.ts index 23083ff5..c259abe6 100644 --- a/src/sdk/models/operations/getlibraryitems.ts +++ b/src/sdk/models/operations/getlibraryitems.ts @@ -755,7 +755,7 @@ export type GetLibraryItemsMediaContainer = { viewGroup: string; viewMode?: number | undefined; mixedParents?: boolean | undefined; - metadata: Array; + metadata?: Array | undefined; /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. * @@ -2937,7 +2937,8 @@ export const GetLibraryItemsMediaContainer$inboundSchema: z.ZodType< viewGroup: z.string(), viewMode: z.number().int().optional(), mixedParents: z.boolean().optional(), - Metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$inboundSchema)), + Metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$inboundSchema)) + .optional(), Meta: z.lazy(() => GetLibraryItemsMeta$inboundSchema).optional(), }).transform((v) => { return remap$(v, { @@ -2971,7 +2972,7 @@ export type GetLibraryItemsMediaContainer$Outbound = { viewGroup: string; viewMode?: number | undefined; mixedParents?: boolean | undefined; - Metadata: Array; + Metadata?: Array | undefined; Meta?: GetLibraryItemsMeta$Outbound | undefined; }; @@ -3003,7 +3004,8 @@ export const GetLibraryItemsMediaContainer$outboundSchema: z.ZodType< viewGroup: z.string(), viewMode: z.number().int().optional(), mixedParents: z.boolean().optional(), - metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$outboundSchema)), + metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$outboundSchema)) + .optional(), meta: z.lazy(() => GetLibraryItemsMeta$outboundSchema).optional(), }).transform((v) => { return remap$(v, { diff --git a/src/sdk/models/operations/gettokendetails.ts b/src/sdk/models/operations/gettokendetails.ts index 9b87c647..54a2059a 100644 --- a/src/sdk/models/operations/gettokendetails.ts +++ b/src/sdk/models/operations/gettokendetails.ts @@ -171,14 +171,8 @@ export type GetTokenDetailsUserPlexAccount = { * Unknown */ adsConsent: boolean | null; - /** - * Unknown - */ - adsConsentReminderAt: Date | null; - /** - * Unknown - */ - adsConsentSetAt: Date | null; + adsConsentReminderAt: number | null; + adsConsentSetAt: number | null; /** * Unknown */ @@ -758,12 +752,8 @@ export const GetTokenDetailsUserPlexAccount$inboundSchema: z.ZodType< unknown > = z.object({ adsConsent: z.nullable(z.boolean()), - adsConsentReminderAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - adsConsentSetAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), + adsConsentReminderAt: z.nullable(z.number().int()), + adsConsentSetAt: z.nullable(z.number().int()), anonymous: z.nullable(z.boolean().default(false)), authToken: z.string(), backupCodesCreated: z.boolean().default(false), @@ -809,8 +799,8 @@ export const GetTokenDetailsUserPlexAccount$inboundSchema: z.ZodType< /** @internal */ export type GetTokenDetailsUserPlexAccount$Outbound = { adsConsent: boolean | null; - adsConsentReminderAt: string | null; - adsConsentSetAt: string | null; + adsConsentReminderAt: number | null; + adsConsentSetAt: number | null; anonymous: boolean | null; authToken: string; backupCodesCreated: boolean; @@ -858,8 +848,8 @@ export const GetTokenDetailsUserPlexAccount$outboundSchema: z.ZodType< GetTokenDetailsUserPlexAccount > = z.object({ adsConsent: z.nullable(z.boolean()), - adsConsentReminderAt: z.nullable(z.date().transform(v => v.toISOString())), - adsConsentSetAt: z.nullable(z.date().transform(v => v.toISOString())), + adsConsentReminderAt: z.nullable(z.number().int()), + adsConsentSetAt: z.nullable(z.number().int()), anonymous: z.nullable(z.boolean().default(false)), authToken: z.string(), backupCodesCreated: z.boolean().default(false), diff --git a/src/sdk/models/operations/postuserssignindata.ts b/src/sdk/models/operations/postuserssignindata.ts index 563439b0..38ec8b3f 100644 --- a/src/sdk/models/operations/postuserssignindata.ts +++ b/src/sdk/models/operations/postuserssignindata.ts @@ -266,14 +266,8 @@ export type PostUsersSignInDataUserPlexAccount = { * Unknown */ adsConsent: boolean | null; - /** - * Unknown - */ - adsConsentReminderAt: Date | null; - /** - * Unknown - */ - adsConsentSetAt: Date | null; + adsConsentReminderAt: number | null; + adsConsentSetAt: number | null; /** * Unknown */ @@ -1250,12 +1244,8 @@ export const PostUsersSignInDataUserPlexAccount$inboundSchema: z.ZodType< unknown > = z.object({ adsConsent: z.nullable(z.boolean()), - adsConsentReminderAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - adsConsentSetAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), + adsConsentReminderAt: z.nullable(z.number().int()), + adsConsentSetAt: z.nullable(z.number().int()), anonymous: z.nullable(z.boolean().default(false)), authToken: z.string(), backupCodesCreated: z.boolean().default(false), @@ -1303,8 +1293,8 @@ export const PostUsersSignInDataUserPlexAccount$inboundSchema: z.ZodType< /** @internal */ export type PostUsersSignInDataUserPlexAccount$Outbound = { adsConsent: boolean | null; - adsConsentReminderAt: string | null; - adsConsentSetAt: string | null; + adsConsentReminderAt: number | null; + adsConsentSetAt: number | null; anonymous: boolean | null; authToken: string; backupCodesCreated: boolean; @@ -1354,8 +1344,8 @@ export const PostUsersSignInDataUserPlexAccount$outboundSchema: z.ZodType< PostUsersSignInDataUserPlexAccount > = z.object({ adsConsent: z.nullable(z.boolean()), - adsConsentReminderAt: z.nullable(z.date().transform(v => v.toISOString())), - adsConsentSetAt: z.nullable(z.date().transform(v => v.toISOString())), + adsConsentReminderAt: z.nullable(z.number().int()), + adsConsentSetAt: z.nullable(z.number().int()), anonymous: z.nullable(z.boolean().default(false)), authToken: z.string(), backupCodesCreated: z.boolean().default(false),