From 2d0968c94965ad1f10fef2988405710ba94b37b5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 19 Jan 2024 00:12:58 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 0.3.0, Speakeasy CLI 1.147.0 --- .speakeasy/gen.lock | 8 ++++---- RELEASES.md | 12 +++++++++++- gen.yaml | 2 +- src/SDKConfiguration.php | 6 +++--- src/Utils/Security.php | 4 ++-- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8d0870f..eb95815 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -4,9 +4,9 @@ management: docChecksum: ba638b2ad28966c596e28321a2003686 docVersion: 0.3.0 speakeasyVersion: internal - generationVersion: 2.225.2 - releaseVersion: 0.35.0 - configChecksum: 541b62afca62abd817abce3d64d8035e + generationVersion: 2.237.2 + releaseVersion: 0.35.1 + configChecksum: cff4b242c16b8d4edc2cadf5e1bed558 repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php @@ -15,7 +15,7 @@ features: php: core: 3.3.0 examples: 2.81.3 - globalSecurity: 2.81.2 + globalSecurity: 2.81.3 globalServerURLs: 2.82.1 inputOutputModels: 2.83.0 serverIDs: 2.81.1 diff --git a/RELEASES.md b/RELEASES.md index d58b9e9..f364e46 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -584,4 +584,14 @@ Based on: ### Generated - [php v0.35.0] . ### Releases -- [Composer v0.35.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.35.0 - . \ No newline at end of file +- [Composer v0.35.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.35.0 - . + +## 2024-01-19 00:12:47 +### Changes +Based on: +- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml +- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.35.1] . +### Releases +- [Composer v0.35.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.35.1 - . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 24b3b2e..9eac1af 100644 --- a/gen.yaml +++ b/gen.yaml @@ -6,7 +6,7 @@ generation: fixes: nameResolutionDec2023: false php: - version: 0.35.0 + version: 0.35.1 imports: option: openapi paths: diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 07f9f44..9142ea7 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -17,9 +17,9 @@ class SDKConfiguration public string $server = ''; public string $language = 'php'; public string $openapiDocVersion = '0.3.0'; - public string $sdkVersion = '0.35.0'; - public string $genVersion = '2.225.2'; - public string $userAgent = 'speakeasy-sdk/php 0.35.0 2.225.2 0.3.0 speakeasy-api/speakeasy-client-sdk-php'; + public string $sdkVersion = '0.35.1'; + public string $genVersion = '2.237.2'; + public string $userAgent = 'speakeasy-sdk/php 0.35.1 2.237.2 0.3.0 speakeasy-api/speakeasy-client-sdk-php'; public function getServerUrl(): string diff --git a/src/Utils/Security.php b/src/Utils/Security.php index ee2bf5e..601e06d 100644 --- a/src/Utils/Security.php +++ b/src/Utils/Security.php @@ -145,10 +145,10 @@ private function parseSecuritySchemeValue(mixed $value, SecurityMetadata $metada } break; case 'openIdConnect': - $clientOptions['headers'][$fieldMetadata->name] = $value; + $clientOptions['headers'][$fieldMetadata->name] = preg_match('/^Bearer /i', $value) ? $value : 'Bearer ' . $value; break; case 'oauth2': - $clientOptions['headers'][$fieldMetadata->name] = $value; + $clientOptions['headers'][$fieldMetadata->name] = preg_match('/^Bearer /i', $value) ? $value : 'Bearer ' . $value; break; case 'http': switch ($metadata->subtype) {