Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.65.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jul 28, 2023
1 parent b2c9e7e commit a87b1b0
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 31 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ composer require "speakeasy-api/speakeasy-client-sdk-php"

## SDK Example Usage
<!-- Start SDK Example Usage -->


```php
<?php

Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,12 @@ Based on:
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy
### Releases
- [Composer v0.24.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.24.1 - .
- [Composer v0.24.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.24.1 - .

## 2023-07-28 00:12:13
### Changes
Based on:
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy
### Releases
- [Composer v0.25.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.25.0 - .
2 changes: 2 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- Start SDK Example Usage -->


```php
<?php

Expand Down
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ configVersion: 1.0.0
management:
docChecksum: 8c4f3932e054e1b349a9a34f12cf7e8c
docVersion: 0.3.0
speakeasyVersion: 1.51.1
generationVersion: 2.50.2
speakeasyVersion: 1.65.2
generationVersion: 2.75.1
generation:
sdkClassName: SDK
singleTagPerOp: false
telemetryEnabled: true
php:
version: 0.24.1
version: 0.25.0
maxMethodParams: 0
namespace: Speakeasy\SpeakeasyClientSDK
packageName: speakeasy-api/speakeasy-client-sdk-php
12 changes: 6 additions & 6 deletions src/ApiEndpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function findApiEndpoint(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}', \Speakeasy\SpeakeasyClientSDK\Models\Operations\FindApiEndpointRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -123,7 +123,7 @@ public function generateOpenApiSpecForApiEndpoint(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GenerateOpenApiSpecForApiEndpointRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -208,7 +208,7 @@ public function getAllApiEndpoints(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/api_endpoints', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GetAllApiEndpointsRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -250,7 +250,7 @@ public function getAllForVersionApiEndpoints(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/api_endpoints', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GetAllForVersionApiEndpointsRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -292,7 +292,7 @@ public function getApiEndpoint(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GetApiEndpointRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -341,7 +341,7 @@ public function upsertApiEndpoint(
throw new \Exception('Request body is required');
}
$options = array_merge_recursive($options, $body);
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options);
Expand Down
8 changes: 4 additions & 4 deletions src/Apis.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function generateOpenApiSpec(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/generate/openapi', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GenerateOpenApiSpecRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -167,7 +167,7 @@ public function getAllApiVersions(

$options = ['http_errors' => false];
$options = array_merge_recursive($options, Utils\Utils::getQueryParams(\Speakeasy\SpeakeasyClientSDK\Models\Operations\GetAllApiVersionsRequest::class, $request, null));
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -213,7 +213,7 @@ public function getApis(

$options = ['http_errors' => false];
$options = array_merge_recursive($options, Utils\Utils::getQueryParams(\Speakeasy\SpeakeasyClientSDK\Models\Operations\GetApisRequest::class, $request, null));
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -263,7 +263,7 @@ public function upsertApi(
throw new \Exception('Request body is required');
}
$options = array_merge_recursive($options, $body);
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options);
Expand Down
4 changes: 2 additions & 2 deletions src/Embeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getEmbedAccessToken(

$options = ['http_errors' => false];
$options = array_merge_recursive($options, Utils\Utils::getQueryParams(\Speakeasy\SpeakeasyClientSDK\Models\Operations\GetEmbedAccessTokenRequest::class, $request, null));
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -79,7 +79,7 @@ public function getValidEmbedAccessTokens(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/embed-access-tokens/valid');

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down
4 changes: 2 additions & 2 deletions src/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getVersionMetadata(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/metadata', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GetVersionMetadataRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -120,7 +120,7 @@ public function insertVersionMetadata(
throw new \Exception('Request body is required');
}
$options = array_merge_recursive($options, $body);
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options);
Expand Down
6 changes: 3 additions & 3 deletions src/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getPlugins(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/plugins');

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -76,7 +76,7 @@ public function runPlugin(

$options = ['http_errors' => false];
$options = array_merge_recursive($options, Utils\Utils::getQueryParams(\Speakeasy\SpeakeasyClientSDK\Models\Operations\RunPluginRequest::class, $request, null));
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options);
Expand Down Expand Up @@ -123,7 +123,7 @@ public function upsertPlugin(
throw new \Exception('Request body is required');
}
$options = array_merge_recursive($options, $body);
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options);
Expand Down
4 changes: 2 additions & 2 deletions src/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getRequestFromEventLog(
$url = Utils\Utils::generateUrl($baseUrl, '/v1/eventlog/{requestID}', \Speakeasy\SpeakeasyClientSDK\Models\Operations\GetRequestFromEventLogRequest::class, $request);

$options = ['http_errors' => false];
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down Expand Up @@ -125,7 +125,7 @@ public function queryEventLog(

$options = ['http_errors' => false];
$options = array_merge_recursive($options, Utils\Utils::getQueryParams(\Speakeasy\SpeakeasyClientSDK\Models\Operations\QueryEventLogRequest::class, $request, null));
$options['headers']['Accept'] = 'application/json;q=1, application/json;q=0';
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = sprintf('speakeasy-sdk/%s %s %s %s', $this->sdkConfiguration->language, $this->sdkConfiguration->sdkVersion, $this->sdkConfiguration->genVersion, $this->sdkConfiguration->openapiDocVersion);

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
Expand Down
4 changes: 2 additions & 2 deletions src/SDKConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class SDKConfiguration
public string $server = '';
public string $language = 'php';
public string $openapiDocVersion = '0.3.0';
public string $sdkVersion = '0.24.1';
public string $genVersion = '2.50.2';
public string $sdkVersion = '0.25.0';
public string $genVersion = '2.75.1';

public function getServerUrl(): string
{
Expand Down
Loading

0 comments on commit a87b1b0

Please sign in to comment.