Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 21, 2024
1 parent 6c77be1 commit 9b3a44d
Show file tree
Hide file tree
Showing 107 changed files with 1,256 additions and 769 deletions.
68 changes: 52 additions & 16 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
php:
version: 0.8.1
version: 0.9.0
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.399.2
speakeasyVersion: 1.401.2
sources:
my-source:
sourceNamespace: my-source
Expand All @@ -9,19 +9,19 @@ sources:
- main
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069
sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f
tags:
- latest
- main
targets:
plexphp:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069
sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f
codeSamplesNamespace: code-samples-php-plexphp
codeSamplesRevisionDigest: sha256:a2463615fc3539369b1f3f0ba5ac302f6ff3566f1ddbd0194adf7a4a8dc098c0
codeSamplesRevisionDigest: sha256:31c36f98b0d052576648992aa27009ef7e202960cecc266347879d0f7cb26855
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -35,7 +35,7 @@ workflow:
source: plexapi
publish:
packagist:
username: LukeHagar
username: lukehagar
token: $packagist_token
codeSamples:
output: codeSamples.yaml
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ try {

Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.

For example, you can set `ClientID` to `'gcgzw5rz2xovp84b4vha3a40'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
For example, you can set `ClientID` to `'gcgzw5rz2xovp84b4vha3a40'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.


### Available Globals
Expand All @@ -235,26 +235,21 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use LukeHagar\Plex_API;
use LukeHagar\Plex_API\Models\Components;
use LukeHagar\Plex_API\Models\Operations;

$security = new Components\Security(
accessToken: "<YOUR_API_KEY_HERE>",
);

$sdk = Plex_API\PlexAPI::builder()
->setClientID('gcgzw5rz2xovp84b4vha3a40')
->setClientName('Plex Web')
->setClientVersion('4.133.0')
->setClientPlatform('Chrome')
->setDeviceName('Linux')
->setSecurity($security)->build();
->build();

try {
$request = new Operations\GetPinRequest();
$response = $sdk->plex->getPin($request);

$response = $sdk->plex->getServerResources('gcgzw5rz2xovp84b4vha3a40', Operations\IncludeHttps::One, Operations\IncludeRelay::One, Operations\IncludeIPv6::One);

if ($response->plexDevices !== null) {
if ($response->authPinContainer !== null) {
// handle response
}
} catch (Throwable $e) {
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -602,4 +602,14 @@ Based on:
### Generated
- [php v0.8.1] .
### Releases
- [Composer v0.8.1] https://packagist.org/packages/lukehagar/plex-api#v0.8.1 - .
- [Composer v0.8.1] https://packagist.org/packages/lukehagar/plex-api#v0.8.1 - .

## 2024-09-21 00:08:58
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.9.0] .
### Releases
- [Composer v0.9.0] https://packagist.org/packages/lukehagar/plex-api#v0.9.0 - .
44 changes: 22 additions & 22 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ actions:
try {
$response = $sdk->search->performSearch('arnold', 9372.7, 5);
$response = $sdk->search->performSearch('dylan', 5838.67, 5);
if ($response->statusCode === 200) {
// handle response
Expand Down Expand Up @@ -763,7 +763,7 @@ actions:
try {
$response = $sdk->search->performVoiceSearch('dead+poop', 4094.8, 5);
$response = $sdk->search->performVoiceSearch('dead+poop', 4094.80, 5);
if ($response->statusCode === 200) {
// handle response
Expand Down Expand Up @@ -799,7 +799,7 @@ actions:
try {
$response = $sdk->hubs->getLibraryHubs(6728.76, 9010.22, Operations\QueryParamOnlyTransient::Zero);
$response = $sdk->hubs->getLibraryHubs(6728.76, 639.24, Operations\QueryParamOnlyTransient::One);
if ($response->object !== null) {
// handle response
Expand Down Expand Up @@ -864,7 +864,7 @@ actions:
try {
$response = $sdk->library->getTopWatchedContent(Operations\GetTopWatchedContentQueryParamType::Two, 1);
$response = $sdk->library->getTopWatchedContent(Operations\GetTopWatchedContentQueryParamType::Show, 1);
if ($response->object !== null) {
// handle response
Expand Down Expand Up @@ -1012,7 +1012,7 @@ actions:
try {
$response = $sdk->library->getMetadataChildren(1539.14, '<value>');
$response = $sdk->library->getMetadataChildren(1539.15, '<value>');
if ($response->object !== null) {
// handle response
Expand Down Expand Up @@ -1342,7 +1342,7 @@ actions:
try {
$response = $sdk->library->getSearchLibrary(9518, Operations\QueryParamType::Two);
$response = $sdk->library->getSearchLibrary(9518, Operations\QueryParamType::Show);
if ($response->object !== null) {
// handle response
Expand Down Expand Up @@ -1380,9 +1380,9 @@ actions:
$request = new Operations\GetLibraryItemsRequest(
sectionKey: 9518,
tag: Operations\Tag::Edition,
includeGuids: Operations\IncludeGuids::One,
includeMeta: Operations\IncludeMeta::One,
type: Operations\Type::Two,
includeGuids: Operations\IncludeGuids::Enable,
includeMeta: Operations\IncludeMeta::Enable,
type: Operations\Type::Show,
xPlexContainerStart: 0,
xPlexContainerSize: 50,
);
Expand Down Expand Up @@ -1601,9 +1601,9 @@ actions:
width: 110,
height: 165,
opacity: 643869,
blur: 0,
minSize: Operations\MinSize::Zero,
upscale: Operations\Upscale::One,
blur: 4000,
minSize: Operations\MinSize::One,
upscale: Operations\Upscale::Zero,
url: '/library/metadata/49564/thumb/1654258204',
);
$response = $sdk->server->getResizedPhoto($request);
Expand Down Expand Up @@ -1667,7 +1667,7 @@ actions:
try {
$response = $sdk->plex->getTokenByPinId(408895, 'gcgzw5rz2xovp84b4vha3a40');
$response = $sdk->plex->getTokenByPinId(408895);
if ($response->authPinContainer !== null) {
// handle response
Expand Down Expand Up @@ -1742,7 +1742,7 @@ actions:
title: '<value>',
type: Operations\CreatePlaylistQueryParamType::Photo,
smart: Operations\Smart::One,
uri: 'https://inborn-brochure.biz',
uri: 'https://hoarse-testing.info/',
);
$response = $sdk->playlists->createPlaylist($request);
Expand Down Expand Up @@ -1780,7 +1780,7 @@ actions:
try {
$response = $sdk->playlists->uploadPlaylist('/home/barkley/playlist.m3u', Operations\QueryParamForce::Zero);
$response = $sdk->playlists->uploadPlaylist('/home/barkley/playlist.m3u', Operations\QueryParamForce::Zero, 1);
if ($response->statusCode === 200) {
// handle response
Expand Down Expand Up @@ -1885,7 +1885,7 @@ actions:
try {
$response = $sdk->playlists->updatePlaylist(3915, '<value>', '<value>');
$response = $sdk->playlists->updatePlaylist(3915.00, '<value>', '<value>');
if ($response->statusCode === 200) {
// handle response
Expand Down Expand Up @@ -1956,7 +1956,7 @@ actions:
try {
$response = $sdk->playlists->getPlaylistContents(5004.46, Operations\GetPlaylistContentsQueryParamType::Two);
$response = $sdk->playlists->getPlaylistContents(5004.46, Operations\GetPlaylistContentsQueryParamType::Show);
if ($response->object !== null) {
// handle response
Expand Down Expand Up @@ -1991,7 +1991,7 @@ actions:
try {
$response = $sdk->playlists->addPlaylistContents(8502.01, 'server://12345/com.plexapp.plugins.library/library/metadata/1', 123);
$response = $sdk->playlists->addPlaylistContents(8502.00, 'server://12345/com.plexapp.plugins.library/library/metadata/1', 123);
if ($response->object !== null) {
// handle response
Expand Down Expand Up @@ -2027,7 +2027,7 @@ actions:
try {
$response = $sdk->plex->getServerResources('gcgzw5rz2xovp84b4vha3a40', Operations\IncludeHttps::One, Operations\IncludeRelay::One, Operations\IncludeIPv6::One);
$response = $sdk->plex->getServerResources(Operations\IncludeHttps::Enable, Operations\IncludeRelay::Enable, Operations\IncludeIPv6::Enable);
if ($response->plexDevices !== null) {
// handle response
Expand Down Expand Up @@ -2097,7 +2097,7 @@ actions:
try {
$response = $sdk->authentication->getSourceConnectionInformation('server://client-identifier');
$response = $sdk->authentication->getSourceConnectionInformation('provider://provider-identifier');
if ($response->statusCode === 200) {
// handle response
Expand Down Expand Up @@ -2581,12 +2581,12 @@ actions:
->build();
try {
$requestBody = new Operations\PostUsersSignInDataRequestBody(
$request = new Operations\PostUsersSignInDataRequestBody(
login: 'username@email.com',
password: 'password123',
verificationCode: '123456',
);
$response = $sdk->authentication->postUsersSignInData('gcgzw5rz2xovp84b4vha3a40', $requestBody);
$response = $sdk->authentication->postUsersSignInData($request);
if ($response->userPlexAccount !== null) {
// handle response
Expand Down
8 changes: 4 additions & 4 deletions docs/Models/Operations/AutoSelectSubtitle.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud

## Values

| Name | Value |
| ------ | ------ |
| `Zero` | 0 |
| `One` | 1 |
| Name | Value |
| --------- | --------- |
| `Disable` | 0 |
| `Enable` | 1 |
18 changes: 9 additions & 9 deletions docs/Models/Operations/Connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `protocol` | *string* | :heavy_check_mark: | N/A |
| `address` | *string* | :heavy_check_mark: | N/A |
| `port` | *float* | :heavy_check_mark: | N/A |
| `uri` | *string* | :heavy_check_mark: | N/A |
| `local` | *bool* | :heavy_check_mark: | N/A |
| `relay` | *bool* | :heavy_check_mark: | N/A |
| `iPv6` | *bool* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `protocol` | [Operations\Protocol](../../Models/Operations/Protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) |
| `address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection |
| `port` | *int* | :heavy_check_mark: | The port used for the connection |
| `uri` | *string* | :heavy_check_mark: | The full URI of the connection |
| `local` | *bool* | :heavy_check_mark: | If the connection is local address |
| `relay` | *bool* | :heavy_check_mark: | If the connection is relayed through plex.direct |
| `iPv6` | *bool* | :heavy_check_mark: | If the connection is using IPv6 |
10 changes: 5 additions & 5 deletions docs/Models/Operations/DefaultSubtitleAccessibility.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# DefaultSubtitleAccessibility

The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)


## Values

| Name | Value |
| ------ | ------ |
| `Zero` | 0 |
| `One` | 1 |
| Name | Value |
| --------- | --------- |
| `Disable` | 0 |
| `Enable` | 1 |
8 changes: 4 additions & 4 deletions docs/Models/Operations/DefaultSubtitleForced.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer

## Values

| Name | Value |
| ------ | ------ |
| `Zero` | 0 |
| `One` | 1 |
| Name | Value |
| --------- | --------- |
| `Disable` | 0 |
| `Enable` | 1 |
Loading

0 comments on commit 9b3a44d

Please sign in to comment.