Skip to content

Commit 73359cd

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.377.3
1 parent ce6a7bb commit 73359cd

File tree

372 files changed

+7911
-4572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+7911
-4572
lines changed

.speakeasy/gen.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
lockVersion: 2.0.0
22
id: db1bb4da-054f-485f-8c6e-d42db3f1da90
33
management:
4-
docChecksum: 7e5374ccd8317cf07089c151d486221b
4+
docChecksum: a1c6af4bc670e02f54fbf8545a634a04
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.352.2
7-
generationVersion: 2.385.2
8-
releaseVersion: 0.38.17
9-
configChecksum: 9050f0fb475e53d06a5870102e1dd4dd
6+
speakeasyVersion: 1.377.3
7+
generationVersion: 2.404.2
8+
releaseVersion: 0.39.0
9+
configChecksum: 1d3afab5a3bb767530c5886072551417
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php
1313
published: true
1414
features:
1515
php:
16-
core: 3.3.10
16+
core: 3.3.11
1717
deprecations: 2.81.1
1818
examples: 2.81.3
1919
globalSecurity: 2.81.7
2020
globalServerURLs: 2.82.1
21-
globals: 2.82.1
21+
globals: 2.82.2
2222
inputOutputModels: 2.83.0
23+
responseFormat: 0.1.0
2324
serverIDs: 2.81.1
2425
generatedFiles:
2526
- src/SDKConfiguration.php
@@ -42,8 +43,13 @@ generatedFiles:
4243
- src/SDKBuilder.php
4344
- composer.json
4445
- phpstan.neon
46+
- phpunit.xml
4547
- pint.json
4648
- rector.php
49+
- src/Utils/DateHandler.php
50+
- src/Utils/DateTimeHandler.php
51+
- src/Utils/DefaultResponse.php
52+
- src/Utils/DefaultStream.php
4753
- src/Utils/EnumHandler.php
4854
- src/Utils/FormMetadata.php
4955
- src/Utils/Headers.php
@@ -52,14 +58,17 @@ generatedFiles:
5258
- src/Utils/MultipartMetadata.php
5359
- src/Utils/ParamsMetadata.php
5460
- src/Utils/PathParameters.php
61+
- src/Utils/PhpDocTypeParser.php
5562
- src/Utils/QueryParameters.php
5663
- src/Utils/RequestBodies.php
5764
- src/Utils/RequestMetadata.php
5865
- src/Utils/Security.php
5966
- src/Utils/SecurityClient.php
6067
- src/Utils/SecurityMetadata.php
6168
- src/Utils/SpeakeasyMetadata.php
69+
- src/Utils/UnionHandler.php
6270
- src/Utils/Utils.php
71+
- src/Models/Errors/SDKException.php
6372
- src/Models/Operations/DeleteApiRequest.php
6473
- src/Models/Operations/DeleteApiResponse.php
6574
- src/Models/Operations/GenerateOpenApiSpecRequest.php
@@ -194,7 +203,7 @@ generatedFiles:
194203
- src/Models/Operations/PostWorkspaceEventsResponse.php
195204
- src/Models/Operations/SearchWorkspaceEventsRequest.php
196205
- src/Models/Operations/SearchWorkspaceEventsResponse.php
197-
- src/Models/Shared/Error.php
206+
- src/Models/Errors/Error.php
198207
- src/Models/Shared/GenerateOpenApiSpecDiff.php
199208
- src/Models/Shared/Api.php
200209
- src/Models/Shared/ApiInput.php
@@ -400,14 +409,11 @@ generatedFiles:
400409
- docs/Models/Operations/PostWorkspaceEventsResponse.md
401410
- docs/Models/Operations/SearchWorkspaceEventsRequest.md
402411
- docs/Models/Operations/SearchWorkspaceEventsResponse.md
403-
- docs/Models/Shared/Error.md
412+
- docs/Models/Errors/Error.md
404413
- docs/Models/Shared/GenerateOpenApiSpecDiff.md
405414
- docs/Models/Shared/Api.md
406-
- docs/Models/Shared/ApiInput.md
407415
- docs/Models/Shared/ApiEndpoint.md
408-
- docs/Models/Shared/ApiEndpointInput.md
409416
- docs/Models/Shared/VersionMetadata.md
410-
- docs/Models/Shared/VersionMetadataInput.md
411417
- docs/Models/Shared/Schema.md
412418
- docs/Models/Shared/ValueChange.md
413419
- docs/Models/Shared/SchemaDiff.md

README.md

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,30 @@ composer require "speakeasy-api/speakeasy-client-sdk-php"
1616
### Example
1717

1818
```php
19-
<?php
20-
2119
declare(strict_types=1);
2220

2321
require 'vendor/autoload.php';
2422

2523
use Speakeasy\SpeakeasyClientSDK;
26-
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
2724
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
25+
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
2826

2927
$security = new Shared\Security();
3028
$security->apiKey = '<YOUR_API_KEY_HERE>';
3129

32-
$sdk = SpeakeasyClientSDK\SDK::builder()
33-
->setSecurity($security)
34-
->build();
30+
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
3531

3632
try {
37-
$request = new Operations\GetApisRequest();
38-
$request->metadata = [
39-
'South' => ['<value>'],
40-
];
41-
$request->op = new Operations\QueryParamOp();
42-
$request->op->and = false;
43-
33+
$request = new Operations\GetApisRequest(
34+
metadata: [
35+
'South' => [
36+
'<value>',
37+
],
38+
],
39+
op: new Operations\QueryParamOp(
40+
and: false,
41+
),
42+
);
4443
$response = $sdk->apis->getApis($request);
4544

4645
if ($response->apis !== null) {
@@ -49,7 +48,6 @@ try {
4948
} catch (Throwable $e) {
5049
// handle exception
5150
}
52-
5351
```
5452
<!-- End SDK Example Usage [usage] -->
5553

@@ -212,26 +210,23 @@ The following global parameter is available.
212210
### Example
213211

214212
```php
215-
<?php
216-
217213
declare(strict_types=1);
218214

219215
require 'vendor/autoload.php';
220216

221217
use Speakeasy\SpeakeasyClientSDK;
222-
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
223218
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
219+
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
224220

225221
$security = new Shared\Security();
226222
$security->apiKey = '<YOUR_API_KEY_HERE>';
227223

228-
$sdk = SpeakeasyClientSDK\SDK::builder()
229-
->setSecurity($security)
230-
->build();
224+
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
231225

232226
try {
233-
$request = new Operations\GetWorkspaceRequest();
227+
$request = new Operations\GetWorkspaceRequest(
234228

229+
);
235230
$response = $sdk->workspaces->getWorkspace($request);
236231

237232
if ($response->workspace !== null) {
@@ -240,7 +235,6 @@ try {
240235
} catch (Throwable $e) {
241236
// handle exception
242237
}
243-
244238
```
245239
<!-- End Global Parameters [global-parameters] -->
246240

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,4 +1064,14 @@ Based on:
10641064
### Generated
10651065
- [php v0.38.17] .
10661066
### Releases
1067-
- [Composer v0.38.17] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.38.17 - .
1067+
- [Composer v0.38.17] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.38.17 - .
1068+
1069+
## 2024-08-23 00:13:55
1070+
### Changes
1071+
Based on:
1072+
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
1073+
- Speakeasy CLI 1.377.3 (2.404.2) https://github.com/speakeasy-api/speakeasy
1074+
### Generated
1075+
- [php v0.39.0] .
1076+
### Releases
1077+
- [Composer v0.39.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.39.0 - .

USAGE.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
<!-- Start SDK Example Usage [usage] -->
22
```php
3-
<?php
4-
53
declare(strict_types=1);
64

75
require 'vendor/autoload.php';
86

97
use Speakeasy\SpeakeasyClientSDK;
10-
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
118
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
9+
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
1210

1311
$security = new Shared\Security();
1412
$security->apiKey = '<YOUR_API_KEY_HERE>';
1513

16-
$sdk = SpeakeasyClientSDK\SDK::builder()
17-
->setSecurity($security)
18-
->build();
14+
$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();
1915

2016
try {
21-
$request = new Operations\GetApisRequest();
22-
$request->metadata = [
23-
'South' => ['<value>'],
24-
];
25-
$request->op = new Operations\QueryParamOp();
26-
$request->op->and = false;
27-
17+
$request = new Operations\GetApisRequest(
18+
metadata: [
19+
'South' => [
20+
'<value>',
21+
],
22+
],
23+
op: new Operations\QueryParamOp(
24+
and: false,
25+
),
26+
);
2827
$response = $sdk->apis->getApis($request);
2928

3029
if ($response->apis !== null) {
@@ -33,6 +32,5 @@ try {
3332
} catch (Throwable $e) {
3433
// handle exception
3534
}
36-
3735
```
3836
<!-- End SDK Example Usage [usage] -->

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@
77
}
88
},
99
"license": "MIT",
10+
"repositories": [
11+
{
12+
"type": "git",
13+
"url": "https://github.com/idbentley/serializer"
14+
}
15+
],
1016
"require": {
1117
"php": "^8.1",
1218
"guzzlehttp/guzzle": "^7.0",
13-
"jms/serializer": "^3.22"
19+
"jms/serializer": "dev-deserialize-unions",
20+
"brick/date-time": "^0.7.0",
21+
"phpdocumentor/type-resolver": "^1.8"
1422
},
1523
"require-dev": {
1624
"laravel/pint": "^1.15",
@@ -28,7 +36,7 @@
2836
},
2937
"scripts": {
3038
"test": [
31-
"./vendor/bin/phpunit --testdox"
39+
"./vendor/bin/phpunit --testdox --display-warnings --colors=always"
3240
],
3341
"stan": [
3442
"./vendor/bin/phpstan analyse --memory-limit=2g"
File renamed without changes.

docs/Models/Operations/ApplyOperationIDsRequest.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
8-
| `requestBody` | [?\Speakeasy\SpeakeasyClientSDK\Models\Operations\ApplyOperationIDsRequestBody](../../Models/Operations/ApplyOperationIDsRequestBody.md) | :heavy_minus_sign: | Apply options |
9-
| `xSessionId` | *string* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
8+
| `xSessionId` | *string* | :heavy_check_mark: | N/A |
9+
| `requestBody` | [?Operations\ApplyOperationIDsRequestBody](../../Models/Operations/ApplyOperationIDsRequestBody.md) | :heavy_minus_sign: | Apply options |

docs/Models/Operations/ApplyOperationIDsResponse.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
8-
| `twoHundredApplicationJsonSchema` | *?string* | :heavy_minus_sign: | OK |
9-
| `twoHundredApplicationXYamlSchema` | *?string* | :heavy_minus_sign: | OK |
108
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
11-
| `error` | [?\Speakeasy\SpeakeasyClientSDK\Models\Shared\Error](../../Models/Shared/Error.md) | :heavy_minus_sign: | Default error response |
129
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
13-
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
10+
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `twoHundredApplicationJsonSchema` | *?string* | :heavy_minus_sign: | OK |
12+
| `twoHundredApplicationXYamlSchema` | *?string* | :heavy_minus_sign: | OK |
13+
| `error` | *?Errors\Error* | :heavy_minus_sign: | Default error response |

0 commit comments

Comments
 (0)