From d365ad523c962841fc6b4b79095a52aadc7424fe Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Mon, 18 Mar 2024 14:28:38 -0700 Subject: [PATCH] migrated to v15 --- .../workflows/speakeasy_sdk_generation.yml | 46 +++++++++---------- .speakeasy/gen.lock | 10 ++-- gen.yaml => .speakeasy/gen.yaml | 8 ++-- .speakeasy/workflow.yaml | 9 ++++ src/SDKConfiguration.php | 6 +-- 5 files changed, 42 insertions(+), 37 deletions(-) rename gen.yaml => .speakeasy/gen.yaml (81%) create mode 100644 .speakeasy/workflow.yaml diff --git a/.github/workflows/speakeasy_sdk_generation.yml b/.github/workflows/speakeasy_sdk_generation.yml index 76089bb..56a6c4b 100644 --- a/.github/workflows/speakeasy_sdk_generation.yml +++ b/.github/workflows/speakeasy_sdk_generation.yml @@ -1,29 +1,25 @@ name: Generate permissions: - checks: write - contents: write - pull-requests: write - statuses: write + checks: write + contents: write + pull-requests: write + statuses: write "on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - schedule: - - cron: 0 0 * * * + workflow_dispatch: + inputs: + force: + description: Force generation of SDKs + type: boolean + default: false + schedule: + - cron: 0 0 * * * jobs: - generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 - with: - force: ${{ github.event.inputs.force }} - languages: | - - php - mode: direct - openapi_docs: | - - https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml - speakeasy_version: latest - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} + generate: + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + force: ${{ github.event.inputs.force }} + mode: direct + speakeasy_version: latest + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c4f3f82..0f63037 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 01a51eb2-5d90-4a24-b154-68e491d02c36 management: docChecksum: e34dac84738ebf2d447ea2b9055a6eeb docVersion: 0.0.3 - speakeasyVersion: internal - generationVersion: 2.272.4 - releaseVersion: 0.3.2 - configChecksum: 78e421e52c2332ed1fd9b66d9e088380 + speakeasyVersion: 1.210.0 + generationVersion: 2.281.2 + releaseVersion: 0.3.4 + configChecksum: 9b2fb69d995f97252123aaf057020d71 repoURL: https://github.com/LukeHagar/plexphp.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexphp @@ -14,7 +14,7 @@ features: php: core: 3.3.3 flattening: 2.81.1 - globalSecurity: 2.81.4 + globalSecurity: 2.81.5 globalServerURLs: 2.82.1 methodServerURLs: 2.82.1 nameOverrides: 2.81.1 diff --git a/gen.yaml b/.speakeasy/gen.yaml similarity index 81% rename from gen.yaml rename to .speakeasy/gen.yaml index 543da5c..2e034ba 100644 --- a/gen.yaml +++ b/.speakeasy/gen.yaml @@ -6,13 +6,13 @@ generation: optionalPropertyRendering: withExample useClassNamesForArrayFields: true fixes: - nameResolutionDec2023: false - parameterOrderingFeb2024: false - requestResponseComponentNamesFeb2024: false + nameResolutionDec2023: true + parameterOrderingFeb2024: true + requestResponseComponentNamesFeb2024: true auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.3.2 + version: 0.3.4 imports: option: openapi paths: diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml new file mode 100644 index 0000000..f17d1e0 --- /dev/null +++ b/.speakeasy/workflow.yaml @@ -0,0 +1,9 @@ +workflowVersion: 1.0.0 +sources: + my-source: + inputs: + - location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml +targets: + plexphp: + target: php + source: my-source diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index a523566..c114860 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -25,9 +25,9 @@ class SDKConfiguration ]; public string $language = 'php'; public string $openapiDocVersion = '0.0.3'; - public string $sdkVersion = '0.3.2'; - public string $genVersion = '2.272.4'; - public string $userAgent = 'speakeasy-sdk/php 0.3.2 2.272.4 0.0.3 lukehagar/plex-api'; + public string $sdkVersion = '0.3.4'; + public string $genVersion = '2.281.2'; + public string $userAgent = 'speakeasy-sdk/php 0.3.4 2.281.2 0.0.3 lukehagar/plex-api'; public function getServerUrl(): string