Skip to content

Commit

Permalink
Merge pull request #2 from LukeHagar/speakeasy-sdk-regen-1726704562
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.8.1
  • Loading branch information
LukeHagar committed Sep 19, 2024
2 parents 9130d39 + 7602b83 commit 135e53c
Show file tree
Hide file tree
Showing 45 changed files with 990 additions and 276 deletions.
27 changes: 18 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 01a51eb2-5d90-4a24-b154-68e491d02c36
management:
docChecksum: a6fee1797b2da7ccbaf7743772a40b56
docChecksum: 5bf578a672589649d8ed83c3927c50a6
docVersion: 0.0.3
speakeasyVersion: 1.397.2
generationVersion: 2.415.8
releaseVersion: 0.8.0
configChecksum: 277c6d222037e020407684fc302d9752
speakeasyVersion: 1.399.2
generationVersion: 2.416.6
releaseVersion: 0.8.1
configChecksum: 26050d73033e2c897e4bba0d1ad1bd42
repoURL: https://github.com/LukeHagar/plexphp.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexphp
Expand All @@ -25,7 +25,7 @@ features:
nameOverrides: 2.81.2
nullables: 1.0.0
responseFormat: 0.1.0
unions: 0.1.2
unions: 0.1.3
generatedFiles:
- .gitattributes
- CONTRIBUTING.md
Expand Down Expand Up @@ -1624,6 +1624,7 @@ examples:
application/json: {"errors": []}
"401":
application/json: {"errors": []}
"200": {}
getServerPreferences:
speakeasy-default-get-server-preferences:
responses:
Expand Down Expand Up @@ -1674,7 +1675,7 @@ examples:
width: 110
height: 165
opacity: 643869
blur: 4000
blur: 20
minSize: 0
upscale: 0
url: "/library/metadata/49564/thumb/1654258204"
Expand All @@ -1693,6 +1694,7 @@ examples:
application/json: {"errors": []}
"401":
application/json: {"errors": []}
"200": {}
getServerList:
speakeasy-default-get-server-list:
responses:
Expand Down Expand Up @@ -1821,6 +1823,7 @@ examples:
application/json: {"errors": []}
"401":
application/json: {"errors": []}
"200": {}
cancelServerActivities:
"":
parameters:
Expand Down Expand Up @@ -1896,7 +1899,7 @@ examples:
speakeasy-default-get-geo-data:
responses:
"200":
application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}
application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}
"400":
application/json: {"errors": []}
"401":
Expand Down Expand Up @@ -1928,12 +1931,17 @@ examples:
"":
parameters:
query:
X-Plex-Product: "Plex Web"
X-Plex-Product: Plex Web
X-Plex-Device: Linux
X-Plex-Version: 4.133.0
X-Plex-Platform: Chrome
responses:
"200":
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
"400":
application/json: {"errors": []}
"201":
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
getTokenByPinId:
"":
parameters:
Expand Down Expand Up @@ -2187,6 +2195,7 @@ examples:
application/json: {"errors": []}
"401":
application/json: {"errors": []}
"200": {}
logLine:
speakeasy-default-log-line:
parameters:
Expand Down
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.0
version: 0.8.1
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.397.2
speakeasyVersion: 1.399.2
sources:
my-source:
sourceNamespace: my-source
Expand All @@ -9,19 +9,19 @@ sources:
- main
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
tags:
- latest
- main
targets:
plexphp:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
codeSamplesNamespace: code-samples-php-plexphp
codeSamplesRevisionDigest: sha256:09c3a7a54c93941a76a6e929193153781dfd0468455ab492b9650f410d8e8c4c
codeSamplesRevisionDigest: sha256:a2463615fc3539369b1f3f0ba5ac302f6ff3566f1ddbd0194adf7a4a8dc098c0
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
30 changes: 23 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ $security = new Components\Security(
);

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

try {
Expand Down Expand Up @@ -202,21 +206,25 @@ try {
<!-- Start Global Parameters [global-parameters] -->
## Global Parameters

A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
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 `X-Plex-Client-Identifier` 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 `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.


### Available Globals

The following global parameter is available.
The following global parameters are available.

| Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- |
| xPlexClientIdentifier | string | | The unique identifier for the client application
| clientID | string | | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
|
| clientName | string | | The clientName parameter. |
| clientVersion | string | | The clientVersion parameter. |
| clientPlatform | string | | The clientPlatform parameter. |
| deviceName | string | | The deviceName parameter. |


### Example
Expand All @@ -235,7 +243,11 @@ $security = new Components\Security(
);

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

try {
Expand Down Expand Up @@ -294,7 +306,11 @@ $security = new Components\Security(
);

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

try {
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,4 +592,14 @@ Based on:
### Generated
- [php v0.8.0] .
### Releases
- [Composer v0.8.0] https://packagist.org/packages/lukehagar/plex-api#v0.8.0 - .
- [Composer v0.8.0] https://packagist.org/packages/lukehagar/plex-api#v0.8.0 - .

## 2024-09-19 00:09:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.8.1] .
### Releases
- [Composer v0.8.1] https://packagist.org/packages/lukehagar/plex-api#v0.8.1 - .
6 changes: 5 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ $security = new Components\Security(
);

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

try {
Expand Down
Loading

0 comments on commit 135e53c

Please sign in to comment.