ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.6

This commit is contained in:
speakeasybot
2025-03-31 17:09:20 +00:00
parent c6d1cecfbc
commit 3214d399de
29 changed files with 206 additions and 189 deletions

File diff suppressed because one or more lines are too long

View File

@@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
php:
version: 0.14.1
version: 0.14.2
additionalDependencies:
autoload: {}
autoload-dev: {}

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.513.4
speakeasyVersion: 1.526.6
sources:
my-source:
sourceNamespace: my-source
@@ -9,19 +9,19 @@ sources:
- main
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
tags:
- latest
- speakeasy-sdk-regen-1741565346
- speakeasy-sdk-regen-1743440871
targets:
plexphp:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
codeSamplesNamespace: code-samples-php-plexphp
codeSamplesRevisionDigest: sha256:c1760cfece394f08d2810dd5979ab885b155e54cf70571e06bec8d0b254d7efd
codeSamplesRevisionDigest: sha256:3dcf3d6a964ac2772b260e917ed4812bf243c7ab915d00cf61d39f63c5ab5392
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
@@ -41,3 +41,5 @@ workflow:
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-php-plexphp
labelOverride:
fixedValue: PlexPHP

View File

@@ -13,8 +13,8 @@ targets:
username: lukehagar
token: $packagist_token
codeSamples:
labelOverride:
fixedValue: PlexPHP
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-php-plexphp
labelOverride:
fixedValue: PlexPHP

View File

@@ -812,4 +812,14 @@ Based on:
### Generated
- [php v0.14.1] .
### Releases
- [Composer v0.14.1] https://packagist.org/packages/lukehagar/plex-api#v0.14.1 - .
- [Composer v0.14.1] https://packagist.org/packages/lukehagar/plex-api#v0.14.1 - .
## 2025-03-31 17:07:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.526.6 (2.563.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.14.2] .
### Releases
- [Composer v0.14.2] https://packagist.org/packages/lukehagar/plex-api#v0.14.2 - .

View File

@@ -7,7 +7,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getServerCapabilities
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -34,7 +34,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getServerPreferences
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -61,7 +61,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: updatePlayProgress
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -91,7 +91,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: markPlayed
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -118,7 +118,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getTimeline
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -157,7 +157,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: markUnplayed
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -184,7 +184,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getServerActivities
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -211,7 +211,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: cancelServerActivities
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -238,7 +238,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: stopAllTasks
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -265,7 +265,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getButlerTasks
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -292,7 +292,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: startAllTasks
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -319,7 +319,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: stopTask
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -347,7 +347,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: startTask
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -375,7 +375,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getAvailableClients
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -402,7 +402,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getCompanionsData
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -429,7 +429,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getDevices
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -456,7 +456,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getUserFriends
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -483,7 +483,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getGeoData
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -506,7 +506,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getHomeData
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -533,7 +533,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getGlobalHubs
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -563,7 +563,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-recently-added
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -595,7 +595,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: performSearch
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -625,7 +625,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: performVoiceSearch
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -655,7 +655,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getLibraryHubs
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -686,7 +686,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-server-identity
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -709,7 +709,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getTopWatchedContent
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -739,7 +739,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getFileHash
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -768,7 +768,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-media-meta-data
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -811,7 +811,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-banner-image
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -846,7 +846,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getMetadataChildren
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -875,7 +875,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-thumb-image
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -910,7 +910,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-recently-added-library
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -956,7 +956,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-search-all-libraries
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -990,7 +990,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-all-libraries
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1017,7 +1017,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-watch-list
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1048,7 +1048,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: deleteLibrary
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1075,7 +1075,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-library-details
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1105,7 +1105,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-actors-library
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1135,7 +1135,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-all-media-library
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1166,7 +1166,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-countries-library
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1196,7 +1196,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-genres-library
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1226,7 +1226,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-refresh-library-metadata
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1256,7 +1256,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-search-library
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1286,7 +1286,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-library-items
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1318,7 +1318,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: logLine
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1349,7 +1349,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: logMultiLine
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1378,7 +1378,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: enablePaperTrail
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1405,7 +1405,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-media-providers
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1432,7 +1432,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getMyPlexAccount
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1459,7 +1459,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getResizedPhoto
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1495,7 +1495,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getPin
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1525,7 +1525,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getTokenByPinId
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1556,7 +1556,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getPlaylists
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1586,7 +1586,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: createPlaylist
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1619,7 +1619,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: uploadPlaylist
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1650,7 +1650,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: deletePlaylist
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1677,7 +1677,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getPlaylist
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1704,7 +1704,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: updatePlaylist
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1734,7 +1734,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: clearPlaylistContents
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1761,7 +1761,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getPlaylistContents
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1791,7 +1791,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: addPlaylistContents
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1821,7 +1821,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-server-resources
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1853,7 +1853,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getSearchResults
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1880,7 +1880,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getSourceConnectionInformation
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1907,7 +1907,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getTransientToken
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1937,7 +1937,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getServerList
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1964,7 +1964,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getBandwidthStatistics
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -1991,7 +1991,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getStatistics
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2018,7 +2018,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getResourcesStatistics
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2045,7 +2045,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getSessions
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2072,7 +2072,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getSessionHistory
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2104,7 +2104,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getTranscodeSessions
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2131,7 +2131,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: stopTranscodeSession
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2158,7 +2158,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: applyUpdates
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2188,7 +2188,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: checkForUpdates
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2216,7 +2216,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getUpdateStatus
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2243,7 +2243,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: getTokenDetails
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2270,7 +2270,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: get-users
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2308,7 +2308,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: post-users-sign-in-data
label: PlexPHP
source: |-
declare(strict_types=1);
@@ -2343,7 +2343,7 @@ actions:
update:
x-codeSamples:
- lang: php
label: startUniversalTranscode
label: PlexPHP
source: |-
declare(strict_types=1);

View File

@@ -65,7 +65,7 @@ class Activities
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('cancelServerActivities', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'cancelServerActivities', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -140,7 +140,7 @@ class Activities
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getServerActivities', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getServerActivities', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -77,7 +77,7 @@ class Authentication
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getSourceConnectionInformation', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getSourceConnectionInformation', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -158,7 +158,7 @@ class Authentication
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getTokenDetails', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getTokenDetails', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -251,7 +251,7 @@ class Authentication
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getTransientToken', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getTransientToken', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -341,7 +341,7 @@ class Authentication
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('post-users-sign-in-data', null, null);
$hookContext = new HookContext($baseUrl, 'post-users-sign-in-data', [], null);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -61,7 +61,7 @@ class Butler
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getButlerTasks', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getButlerTasks', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -150,7 +150,7 @@ class Butler
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('startAllTasks', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'startAllTasks', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -234,7 +234,7 @@ class Butler
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('startTask', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'startTask', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -310,7 +310,7 @@ class Butler
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('stopAllTasks', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'stopAllTasks', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -390,7 +390,7 @@ class Butler
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('stopTask', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'stopTask', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -13,7 +13,7 @@ class AfterErrorContext extends HookContext
{
public function __construct(HookContext $hookCtx)
{
parent::__construct($hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
parent::__construct($hookCtx->baseURL, $hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
}
/**

View File

@@ -13,6 +13,6 @@ class AfterSuccessContext extends HookContext
{
public function __construct(HookContext $hookCtx)
{
parent::__construct($hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
parent::__construct($hookCtx->baseURL, $hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
}
}

View File

@@ -13,7 +13,7 @@ class BeforeRequestContext extends HookContext
{
public function __construct(HookContext $hookCtx)
{
parent::__construct($hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
parent::__construct($hookCtx->baseURL, $hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
}
/**

View File

@@ -11,6 +11,10 @@ namespace LukeHagar\Plex_API\Hooks;
class HookContext
{
/**
* @var string $baseURL
*/
public string $baseURL;
/**
* @var string $operationID
*/
@@ -29,8 +33,9 @@ class HookContext
* @param ?array<string> $oauth2Scopes
* @param ?\Closure(): ?mixed $securitySource
*/
public function __construct(string $operationID, ?array $oauth2Scopes, ?\Closure $securitySource)
public function __construct(string $baseURL, string $operationID, ?array $oauth2Scopes, ?\Closure $securitySource)
{
$this->baseURL = $baseURL;
$this->operationID = $operationID;
$this->oauth2Scopes = $oauth2Scopes;
$this->securitySource = $securitySource;

View File

@@ -65,7 +65,7 @@ class Hubs
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-recently-added', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-recently-added', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -134,7 +134,7 @@ class Hubs
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getGlobalHubs', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getGlobalHubs', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -230,7 +230,7 @@ class Hubs
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getLibraryHubs', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getLibraryHubs', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -65,7 +65,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('deleteLibrary', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'deleteLibrary', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -149,7 +149,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-actors-library', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-actors-library', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -240,7 +240,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-all-libraries', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-all-libraries', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -328,7 +328,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-all-media-library', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-all-media-library', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -422,7 +422,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-countries-library', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-countries-library', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -516,7 +516,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-genres-library', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-genres-library', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -648,7 +648,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-library-details', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-library-details', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -757,7 +757,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-library-items', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-library-items', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -846,7 +846,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-media-meta-data', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-media-meta-data', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -935,7 +935,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-recently-added-library', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-recently-added-library', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -1029,7 +1029,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-refresh-library-metadata', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-refresh-library-metadata', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -1113,7 +1113,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-search-all-libraries', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-search-all-libraries', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -1224,7 +1224,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-search-library', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-search-library', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -1317,7 +1317,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getFileHash', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getFileHash', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -1402,7 +1402,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getMetadataChildren', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getMetadataChildren', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -1496,7 +1496,7 @@ class Library
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getTopWatchedContent', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getTopWatchedContent', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -62,7 +62,7 @@ class Log
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('enablePaperTrail', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'enablePaperTrail', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -148,7 +148,7 @@ class Log
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('logLine', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'logLine', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -251,7 +251,7 @@ class Log
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('logMultiLine', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'logMultiLine', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -68,7 +68,7 @@ class Media
$httpOptions['headers']['Accept'] = 'image/jpeg';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-banner-image', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-banner-image', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -158,7 +158,7 @@ class Media
$httpOptions['headers']['Accept'] = 'image/jpeg';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-thumb-image', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-thumb-image', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -247,7 +247,7 @@ class Media
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('markPlayed', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'markPlayed', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -329,7 +329,7 @@ class Media
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('markUnplayed', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'markUnplayed', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -416,7 +416,7 @@ class Media
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('updatePlayProgress', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'updatePlayProgress', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -73,7 +73,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url);
$hookContext = new HookContext('addPlaylistContents', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'addPlaylistContents', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -163,7 +163,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('clearPlaylistContents', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'clearPlaylistContents', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -244,7 +244,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('createPlaylist', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'createPlaylist', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -334,7 +334,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('deletePlaylist', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'deletePlaylist', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -415,7 +415,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getPlaylist', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getPlaylist', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -511,7 +511,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getPlaylistContents', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getPlaylistContents', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -604,7 +604,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getPlaylists', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getPlaylists', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -700,7 +700,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url);
$hookContext = new HookContext('updatePlaylist', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'updatePlaylist', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -787,7 +787,7 @@ class Playlists
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('uploadPlaylist', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'uploadPlaylist', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -106,7 +106,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-server-resources', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-server-resources', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -196,7 +196,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getCompanionsData', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getCompanionsData', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -285,7 +285,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getGeoData', null, null);
$hookContext = new HookContext($baseUrl, 'getGeoData', [], null);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -369,7 +369,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getHomeData', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getHomeData', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -465,7 +465,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
$hookContext = new HookContext('getPin', null, null);
$hookContext = new HookContext($baseUrl, 'getPin', [], null);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -548,7 +548,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getTokenByPinId', null, null);
$hookContext = new HookContext($baseUrl, 'getTokenByPinId', [], null);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -637,7 +637,7 @@ class Plex
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getUserFriends', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getUserFriends', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -33,11 +33,11 @@ class SDKConfiguration
public string $openapiDocVersion = '0.0.3';
public string $sdkVersion = '0.14.1';
public string $sdkVersion = '0.14.2';
public string $genVersion = '2.545.4';
public string $genVersion = '2.563.1';
public string $userAgent = 'speakeasy-sdk/php 0.14.1 2.545.4 0.0.3 lukehagar/plex-api';
public string $userAgent = 'speakeasy-sdk/php 0.14.2 2.563.1 0.0.3 lukehagar/plex-api';
public ?RetryConfig $retryConfig = null;

View File

@@ -67,7 +67,7 @@ class Search
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getSearchResults', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getSearchResults', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -174,7 +174,7 @@ class Search
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('performSearch', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'performSearch', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -264,7 +264,7 @@ class Search
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('performVoiceSearch', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'performVoiceSearch', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -69,7 +69,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-media-providers', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-media-providers', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -153,7 +153,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-server-identity', null, null);
$hookContext = new HookContext($baseUrl, 'get-server-identity', [], null);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -225,7 +225,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getAvailableClients', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getAvailableClients', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -309,7 +309,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getDevices', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getDevices', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -393,7 +393,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getMyPlexAccount', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getMyPlexAccount', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -481,7 +481,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getResizedPhoto', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getResizedPhoto', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -557,7 +557,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getServerCapabilities', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getServerCapabilities', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -641,7 +641,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getServerList', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getServerList', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -725,7 +725,7 @@ class Server
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getServerPreferences', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getServerPreferences', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -73,7 +73,7 @@ class Sessions
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getSessionHistory', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getSessionHistory', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -158,7 +158,7 @@ class Sessions
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getSessions', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getSessions', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -242,7 +242,7 @@ class Sessions
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getTranscodeSessions', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getTranscodeSessions', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -330,7 +330,7 @@ class Sessions
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
$hookContext = new HookContext('stopTranscodeSession', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'stopTranscodeSession', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -67,7 +67,7 @@ class Statistics
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getBandwidthStatistics', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getBandwidthStatistics', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -158,7 +158,7 @@ class Statistics
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getResourcesStatistics', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getResourcesStatistics', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -249,7 +249,7 @@ class Statistics
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getStatistics', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getStatistics', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -70,7 +70,7 @@ class Updater
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url);
$hookContext = new HookContext('applyUpdates', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'applyUpdates', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -152,7 +152,7 @@ class Updater
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url);
$hookContext = new HookContext('checkForUpdates', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'checkForUpdates', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -228,7 +228,7 @@ class Updater
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getUpdateStatus', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getUpdateStatus', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -75,7 +75,7 @@ class Users
$httpOptions['headers']['Accept'] = 'application/xml';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-users', null, null);
$hookContext = new HookContext($baseUrl, 'get-users', [], null);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

View File

@@ -240,12 +240,12 @@ final class UnionHandler implements SubscribingHandlerInterface
continue;
} else {
if (count($possibleType['params']) == 2) {
$possibleValueType = $possibleType['params'][1]['name'];
$possibleValueType = $possibleType['params'][1];
} else {
$possibleValueType = $possibleType['params'][0]['name'];
$possibleValueType = $possibleType['params'][0];
}
if ($possibleValueType == 'mixed' || $possibleValueType == $dataType) {
$isMatchingEnum = $possibleValueType['name'] == 'enum' && $possibleValueType['params'][0]['name'] == $dataType;
if ($possibleValueType['name'] == 'mixed' || $possibleValueType['name'] == $dataType || $isMatchingEnum) {
return $context->getNavigator()->accept($data, $possibleType);
}
}
@@ -276,13 +276,13 @@ final class UnionHandler implements SubscribingHandlerInterface
if ($isNotArray || $isNotAssociativeArray) {
continue;
} else {
$possibleValueType = $possibleType['params'][1]['name'];
$possibleValueType = $possibleType['params'][1];
if ($valueType == 'object') {
$valueType = get_class($value);
}
if ($possibleValueType == 'mixed' || $possibleValueType == $valueType) {
$isMatchingEnum = $possibleValueType['name'] == 'enum' && $possibleValueType['params'][0]['name'] == $valueType;
if ($possibleValueType['name'] == 'mixed' || $possibleValueType['name'] == $valueType || $isMatchingEnum) {
return $context->getNavigator()->accept($data, $possibleType);
}
}

View File

@@ -64,7 +64,7 @@ class Video
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('getTimeline', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'getTimeline', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -143,7 +143,7 @@ class Video
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('startUniversalTranscode', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'startUniversalTranscode', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

View File

@@ -77,7 +77,7 @@ class Watchlist
$httpOptions['headers']['Accept'] = 'application/json';
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
$hookContext = new HookContext('get-watch-list', null, $this->sdkConfiguration->securitySource);
$hookContext = new HookContext($baseUrl, 'get-watch-list', [], $this->sdkConfiguration->securitySource);
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);