From 42e441512db58e29594cbac17733ca0bb67cbaa2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 29 Sep 2024 00:17:59 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 --- .speakeasy/gen.lock | 14 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- README.md | 80 ++++++- RELEASES.md | 12 +- USAGE.md | 18 +- docs/Models/Shared/TargetSDK.md | 4 + docs/sdks/apiendpoints/README.md | 234 +++++++++---------- docs/sdks/apis/README.md | 156 ++++++------- docs/sdks/artifacts/README.md | 171 +++++++------- docs/sdks/auth/README.md | 74 +++--- docs/sdks/embeds/README.md | 59 +++-- docs/sdks/events/README.md | 144 ++++++------ docs/sdks/github/README.md | 244 +++++++++---------- docs/sdks/metadata/README.md | 90 ++++--- docs/sdks/organizations/README.md | 105 ++++----- docs/sdks/reports/README.md | 80 +++---- docs/sdks/requests/README.md | 68 +++--- docs/sdks/schemas/README.md | 228 +++++++++--------- docs/sdks/shorturls/README.md | 24 +- docs/sdks/suggest/README.md | 142 ++++++----- docs/sdks/workspaces/README.md | 376 ++++++++++++++---------------- src/Models/Shared/TargetSDK.php | 46 +++- src/SDKConfiguration.php | 6 +- 24 files changed, 1175 insertions(+), 1212 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f54cee3..49f13dc 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: db1bb4da-054f-485f-8c6e-d42db3f1da90 management: - docChecksum: e29727191626d67f4c4c017fc13758fa + docChecksum: d2e02fd58297f0f2d76a05242f33ed33 docVersion: 0.4.0 . - speakeasyVersion: 1.403.3 - generationVersion: 2.424.0 - releaseVersion: 0.42.0 - configChecksum: ca646b0a6941f3c2763ad88c171b3edd + speakeasyVersion: 1.404.5 + generationVersion: 2.426.2 + releaseVersion: 0.42.1 + configChecksum: 15c2033ee57093e6c08e56a840712a3a repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php published: true features: php: - core: 3.4.7 + core: 3.4.8 deprecations: 2.81.1 examples: 2.81.3 globalSecurity: 2.81.7 @@ -1466,6 +1466,7 @@ examples: responses: 4XX: application/json: {"message": "", "status_code": 670562} + 2XX: {} githubConfigureCodeSamples: speakeasy-default-github-configure-code-samples: requestBody: @@ -1498,6 +1499,7 @@ examples: responses: 4XX: application/json: {"message": "", "status_code": 252330} + 2XX: {} githubTriggerAction: speakeasy-default-github-trigger-action: requestBody: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 97e1084..8967977 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.42.0 + version: 0.42.1 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 54e7d9a..917e27b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.403.3 +speakeasyVersion: 1.404.5 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:48f9a0b94f30dfaea17712ec077ca3071e29ac93f2db8663938d17eaa011a800 - sourceBlobDigest: sha256:818f8ae440499921534f8a99ba574fb42c935ca8e70152292414b8866a845036 + sourceRevisionDigest: sha256:416f962ec6e0e2064b4df1ac006fe74e068b8eb82743a687ee64ab6772ffb086 + sourceBlobDigest: sha256:3a8dfb49ff3071b9dd0ce7f14bad505ea3071922eeaa6ca26709873cbd61738d tags: - latest - main @@ -11,8 +11,8 @@ targets: php-target: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:48f9a0b94f30dfaea17712ec077ca3071e29ac93f2db8663938d17eaa011a800 - sourceBlobDigest: sha256:818f8ae440499921534f8a99ba574fb42c935ca8e70152292414b8866a845036 + sourceRevisionDigest: sha256:416f962ec6e0e2064b4df1ac006fe74e068b8eb82743a687ee64ab6772ffb086 + sourceBlobDigest: sha256:3a8dfb49ff3071b9dd0ce7f14bad505ea3071922eeaa6ca26709873cbd61738d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 22c93f8..e821867 100755 --- a/README.md +++ b/README.md @@ -30,17 +30,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetApisRequest(); - $response = $sdk.apis->getApis( - request: $request - ); - if ($response->apis !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\GetApisRequest(); + +$response = $sdk->apis->getApis( + request: $request +); + +if ($response->apis !== null) { + // handle response } ``` @@ -184,6 +182,67 @@ try { + +## Error Handling + +Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception. + +By default an API error will raise a `Errorors\SDKException` exception, which has the following properties: + +| Property | Type | Description | +|----------------|-----------------------------------------|-----------------------| +| `$message` | *string* | The error message | +| `$statusCode` | *int* | The HTTP status code | +| `$rawResponse` | *?\Psr\Http\Message\ResponseInterface* | The raw HTTP response | +| `$body` | *string* | The response content | + +When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `deleteApi` method throws the following exceptions: + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + +### Example + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); + +try { + $request = new Operations\DeleteApiRequest( + apiID: '', + versionID: '', + ); + + $response = $sdk->apis->deleteApi( + request: $request + ); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Errorors\ErrorThrowable $e) { + // handle $e->$container data + throw $e; +} catch (Errorors\SDKException $e) { + // handle default exception + throw $e; +} +``` + + ## Server Selection @@ -218,6 +277,7 @@ For more information about the API: [The Speakeasy Platform Documentation](/docs * [SDK Installation](#sdk-installation) * [SDK Example Usage](#sdk-example-usage) * [Available Resources and Operations](#available-resources-and-operations) +* [Error Handling](#error-handling) * [Server Selection](#server-selection) diff --git a/RELEASES.md b/RELEASES.md index 72cca9f..124771e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1284,4 +1284,14 @@ Based on: ### Generated - [php v0.42.0] . ### Releases -- [Composer v0.42.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.42.0 - . \ No newline at end of file +- [Composer v0.42.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.42.0 - . + +## 2024-09-29 00:17:06 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.42.1] . +### Releases +- [Composer v0.42.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.42.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 1b2fcfb..6d080de 100644 --- a/USAGE.md +++ b/USAGE.md @@ -13,17 +13,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetApisRequest(); - $response = $sdk.apis->getApis( - request: $request - ); - if ($response->apis !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\GetApisRequest(); + +$response = $sdk->apis->getApis( + request: $request +); + +if ($response->apis !== null) { + // handle response } ``` \ No newline at end of file diff --git a/docs/Models/Shared/TargetSDK.md b/docs/Models/Shared/TargetSDK.md index a775ebb..2d5df86 100644 --- a/docs/Models/Shared/TargetSDK.md +++ b/docs/Models/Shared/TargetSDK.md @@ -34,6 +34,10 @@ | `gitUserEmail` | *?string* | :heavy_minus_sign: | User email from git configuration. | | `gitUserName` | *?string* | :heavy_minus_sign: | User's name from git configuration. (not GitHub username) | | `hostname` | *?string* | :heavy_minus_sign: | Remote hostname. | +| `publishPackageName` | *?string* | :heavy_minus_sign: | Name of the published package. | +| `publishPackageRegistryName` | *?string* | :heavy_minus_sign: | Name of the registry where the package was published. | +| `publishPackageUrl` | *?string* | :heavy_minus_sign: | URL of the published package. | +| `publishPackageVersion` | *?string* | :heavy_minus_sign: | Version of the published package. | | `repoLabel` | *?string* | :heavy_minus_sign: | Label of the git repository. | | `sourceBlobDigest` | *?string* | :heavy_minus_sign: | The blob digest of the source. | | `sourceNamespaceName` | *?string* | :heavy_minus_sign: | The namespace name of the source. | diff --git a/docs/sdks/apiendpoints/README.md b/docs/sdks/apiendpoints/README.md index c5a5f1b..60d48cc 100644 --- a/docs/sdks/apiendpoints/README.md +++ b/docs/sdks/apiendpoints/README.md @@ -36,21 +36,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DeleteApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', - ); - $response = $sdk.apiEndpoints->deleteApiEndpoint( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DeleteApiEndpointRequest( + apiEndpointID: '', + apiID: '', + versionID: '', +); + +$response = $sdk->apiEndpoints->deleteApiEndpoint( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -93,21 +91,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\FindApiEndpointRequest( - apiID: '', - displayName: 'Don_Kihn39', - versionID: '', - ); - $response = $sdk.apiEndpoints->findApiEndpoint( - request: $request - ); - - if ($response->apiEndpoint !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\FindApiEndpointRequest( + apiID: '', + displayName: 'Don_Kihn39', + versionID: '', +); + +$response = $sdk->apiEndpoints->findApiEndpoint( + request: $request +); + +if ($response->apiEndpoint !== null) { + // handle response } ``` @@ -150,21 +146,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GenerateOpenApiSpecForApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', - ); - $response = $sdk.apiEndpoints->generateOpenApiSpecForApiEndpoint( - request: $request - ); - - if ($response->generateOpenApiSpecDiff !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GenerateOpenApiSpecForApiEndpointRequest( + apiEndpointID: '', + apiID: '', + versionID: '', +); + +$response = $sdk->apiEndpoints->generateOpenApiSpecForApiEndpoint( + request: $request +); + +if ($response->generateOpenApiSpecDiff !== null) { + // handle response } ``` @@ -206,21 +200,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GeneratePostmanCollectionForApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', - ); - $response = $sdk.apiEndpoints->generatePostmanCollectionForApiEndpoint( - request: $request - ); - - if ($response->postmanCollection !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GeneratePostmanCollectionForApiEndpointRequest( + apiEndpointID: '', + apiID: '', + versionID: '', +); + +$response = $sdk->apiEndpoints->generatePostmanCollectionForApiEndpoint( + request: $request +); + +if ($response->postmanCollection !== null) { + // handle response } ``` @@ -262,19 +254,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetAllApiEndpointsRequest( - apiID: '', - ); - $response = $sdk.apiEndpoints->getAllApiEndpoints( - request: $request - ); - - if ($response->apiEndpoints !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetAllApiEndpointsRequest( + apiID: '', +); + +$response = $sdk->apiEndpoints->getAllApiEndpoints( + request: $request +); + +if ($response->apiEndpoints !== null) { + // handle response } ``` @@ -316,20 +306,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetAllForVersionApiEndpointsRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.apiEndpoints->getAllForVersionApiEndpoints( - request: $request - ); - - if ($response->apiEndpoints !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetAllForVersionApiEndpointsRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->apiEndpoints->getAllForVersionApiEndpoints( + request: $request +); + +if ($response->apiEndpoints !== null) { + // handle response } ``` @@ -371,21 +359,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', - ); - $response = $sdk.apiEndpoints->getApiEndpoint( - request: $request - ); - - if ($response->apiEndpoint !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetApiEndpointRequest( + apiEndpointID: '', + apiID: '', + versionID: '', +); + +$response = $sdk->apiEndpoints->getApiEndpoint( + request: $request +); + +if ($response->apiEndpoint !== null) { + // handle response } ``` @@ -427,29 +413,27 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpsertApiEndpointRequest( - apiEndpoint: new Shared\ApiEndpointInput( - apiEndpointId: '', - description: 'commandeer equate pish psst hoot ugh frankly supposing', - displayName: 'Eliseo.Little15', - method: '', - path: '/etc/defaults', - versionId: '', - ), - apiEndpointID: '', - apiID: '', - versionID: '', - ); - $response = $sdk.apiEndpoints->upsertApiEndpoint( - request: $request - ); - - if ($response->apiEndpoint !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\UpsertApiEndpointRequest( + apiEndpoint: new Shared\ApiEndpointInput( + apiEndpointId: '', + description: 'commandeer equate pish psst hoot ugh frankly supposing', + displayName: 'Eliseo.Little15', + method: '', + path: '/etc/defaults', + versionId: '', + ), + apiEndpointID: '', + apiID: '', + versionID: '', +); + +$response = $sdk->apiEndpoints->upsertApiEndpoint( + request: $request +); + +if ($response->apiEndpoint !== null) { + // handle response } ``` diff --git a/docs/sdks/apis/README.md b/docs/sdks/apis/README.md index 439f04c..225872a 100644 --- a/docs/sdks/apis/README.md +++ b/docs/sdks/apis/README.md @@ -34,20 +34,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DeleteApiRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.apis->deleteApi( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DeleteApiRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->apis->deleteApi( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -90,20 +88,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GenerateOpenApiSpecRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.apis->generateOpenApiSpec( - request: $request - ); - - if ($response->generateOpenApiSpecDiff !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GenerateOpenApiSpecRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->apis->generateOpenApiSpec( + request: $request +); + +if ($response->generateOpenApiSpecDiff !== null) { + // handle response } ``` @@ -145,20 +141,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GeneratePostmanCollectionRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.apis->generatePostmanCollection( - request: $request - ); - - if ($response->postmanCollection !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GeneratePostmanCollectionRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->apis->generatePostmanCollection( + request: $request +); + +if ($response->postmanCollection !== null) { + // handle response } ``` @@ -201,19 +195,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetAllApiVersionsRequest( - apiID: '', - ); - $response = $sdk.apis->getAllApiVersions( - request: $request - ); - - if ($response->apis !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetAllApiVersionsRequest( + apiID: '', +); + +$response = $sdk->apis->getAllApiVersions( + request: $request +); + +if ($response->apis !== null) { + // handle response } ``` @@ -256,17 +248,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetApisRequest(); - $response = $sdk.apis->getApis( - request: $request - ); - - if ($response->apis !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetApisRequest(); + +$response = $sdk->apis->getApis( + request: $request +); + +if ($response->apis !== null) { + // handle response } ``` @@ -309,24 +299,22 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpsertApiRequest( - api: new Shared\ApiInput( - apiId: '', - description: 'consequently brr happily yowza however gosh investigate joyfully direct', - versionId: '', - ), - apiID: '', - ); - $response = $sdk.apis->upsertApi( - request: $request - ); - - if ($response->api !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\UpsertApiRequest( + api: new Shared\ApiInput( + apiId: '', + description: 'consequently brr happily yowza however gosh investigate joyfully direct', + versionId: '', + ), + apiID: '', +); + +$response = $sdk->apis->upsertApi( + request: $request +); + +if ($response->api !== null) { + // handle response } ``` diff --git a/docs/sdks/artifacts/README.md b/docs/sdks/artifacts/README.md index 0d91c76..89f7bdc 100644 --- a/docs/sdks/artifacts/README.md +++ b/docs/sdks/artifacts/README.md @@ -35,22 +35,20 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetBlobRequest( - digest: '', - namespaceName: '', - organizationSlug: '', - workspaceSlug: '', - ); - $response = $sdk.artifacts->getBlob( - request: $request - ); - - if ($response->blob !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetBlobRequest( + digest: '', + namespaceName: '', + organizationSlug: '', + workspaceSlug: '', +); + +$response = $sdk->artifacts->getBlob( + request: $request +); + +if ($response->blob !== null) { + // handle response } ``` @@ -92,22 +90,20 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetManifestRequest( - namespaceName: '', - organizationSlug: '', - revisionReference: '', - workspaceSlug: '', - ); - $response = $sdk.artifacts->getManifest( - request: $request - ); - - if ($response->manifest !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetManifestRequest( + namespaceName: '', + organizationSlug: '', + revisionReference: '', + workspaceSlug: '', +); + +$response = $sdk->artifacts->getManifest( + request: $request +); + +if ($response->manifest !== null) { + // handle response } ``` @@ -148,16 +144,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.artifacts->getNamespaces( - ); - if ($response->getNamespacesResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->artifacts->getNamespaces( + +); + +if ($response->getNamespacesResponse !== null) { + // handle response } ``` @@ -191,19 +186,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetRevisionsRequest( - namespaceName: '', - ); - $response = $sdk.artifacts->getRevisions( - request: $request - ); - - if ($response->getRevisionsResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetRevisionsRequest( + namespaceName: '', +); + +$response = $sdk->artifacts->getRevisions( + request: $request +); + +if ($response->getRevisionsResponse !== null) { + // handle response } ``` @@ -243,19 +236,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetTagsRequest( - namespaceName: '', - ); - $response = $sdk.artifacts->getTags( - request: $request - ); - - if ($response->getTagsResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetTagsRequest( + namespaceName: '', +); + +$response = $sdk->artifacts->getTags( + request: $request +); + +if ($response->getTagsResponse !== null) { + // handle response } ``` @@ -297,19 +288,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\PostTagsRequest( - namespaceName: '', - ); - $response = $sdk.artifacts->postTags( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\PostTagsRequest( + namespaceName: '', +); + +$response = $sdk->artifacts->postTags( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -350,19 +339,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\PreflightRequest( - namespaceName: '', - ); - $response = $sdk.artifacts->preflight( - request: $request - ); - - if ($response->preflightToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\PreflightRequest( + namespaceName: '', +); + +$response = $sdk->artifacts->preflight( + request: $request +); + +if ($response->preflightToken !== null) { + // handle response } ``` diff --git a/docs/sdks/auth/README.md b/docs/sdks/auth/README.md index beb1cd0..d9daf7b 100644 --- a/docs/sdks/auth/README.md +++ b/docs/sdks/auth/README.md @@ -32,17 +32,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceAccessRequest(); - $response = $sdk.auth->getAccess( - request: $request - ); - - if ($response->accessDetails !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceAccessRequest(); + +$response = $sdk->auth->getAccess( + request: $request +); + +if ($response->accessDetails !== null) { + // handle response } ``` @@ -78,19 +76,17 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Operations; $sdk = SpeakeasyClientSDK\SDK::builder()->build(); -try { - $request = new Operations\GetAccessTokenRequest( - workspaceId: '', - ); - $response = $sdk.auth->getAccessToken( - request: $request - ); - - if ($response->accessToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetAccessTokenRequest( + workspaceId: '', +); + +$response = $sdk->auth->getAccessToken( + request: $request +); + +if ($response->accessToken !== null) { + // handle response } ``` @@ -131,16 +127,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.auth->getUser( - ); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->auth->getUser( + +); + +if ($response->user !== null) { + // handle response } ``` @@ -175,16 +170,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.auth->validateApiKey( - ); - if ($response->apiKeyDetails !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->auth->validateApiKey( + +); + +if ($response->apiKeyDetails !== null) { + // handle response } ``` diff --git a/docs/sdks/embeds/README.md b/docs/sdks/embeds/README.md index 5171671..ae5395f 100644 --- a/docs/sdks/embeds/README.md +++ b/docs/sdks/embeds/README.md @@ -32,17 +32,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetEmbedAccessTokenRequest(); - $response = $sdk.embeds->getEmbedAccessToken( - request: $request - ); - - if ($response->embedAccessTokenResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetEmbedAccessTokenRequest(); + +$response = $sdk->embeds->getEmbedAccessToken( + request: $request +); + +if ($response->embedAccessTokenResponse !== null) { + // handle response } ``` @@ -83,16 +81,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.embeds->getValidEmbedAccessTokens( - ); - if ($response->embedTokens !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->embeds->getValidEmbedAccessTokens( + +); + +if ($response->embedTokens !== null) { + // handle response } ``` @@ -128,19 +125,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\RevokeEmbedAccessTokenRequest( - tokenID: '', - ); - $response = $sdk.embeds->revokeEmbedAccessToken( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\RevokeEmbedAccessTokenRequest( + tokenID: '', +); + +$response = $sdk->embeds->revokeEmbedAccessToken( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 9d03151..62b69c8 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -33,20 +33,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceEventsByTargetRequest( - targetId: '', - workspaceId: '', - ); - $response = $sdk.events->getEventsByTarget( - request: $request - ); - - if ($response->cliEventBatch !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceEventsByTargetRequest( + targetId: '', + workspaceId: '', +); + +$response = $sdk->events->getEventsByTarget( + request: $request +); + +if ($response->cliEventBatch !== null) { + // handle response } ``` @@ -88,17 +86,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceTargetsRequest(); - $response = $sdk.events->getTargets( - request: $request - ); - - if ($response->targetSDKList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceTargetsRequest(); + +$response = $sdk->events->getTargets( + request: $request +); + +if ($response->targetSDKList !== null) { + // handle response } ``` @@ -140,19 +136,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceTargetsDeprecatedRequest( - workspaceId: '', - ); - $response = $sdk.events->getTargetsDeprecated( - request: $request - ); - - if ($response->targetSDKList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceTargetsDeprecatedRequest( + workspaceId: '', +); + +$response = $sdk->events->getTargetsDeprecated( + request: $request +); + +if ($response->targetSDKList !== null) { + // handle response } ``` @@ -195,32 +189,30 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\PostWorkspaceEventsRequest( - requestBody: [ - new Shared\CliEvent( - createdAt: Utils\Utils::parseDateTime('2023-05-08T03:24:39.583Z'), - executionId: '', - id: '', - interactionType: Shared\InteractionType::Quickstart, - localStartedAt: Utils\Utils::parseDateTime('2023-09-09T05:59:33.876Z'), - speakeasyApiKeyName: '', - speakeasyVersion: '', - success: false, - workspaceId: '', - ), - ], - workspaceId: '', - ); - $response = $sdk.events->post( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\PostWorkspaceEventsRequest( + requestBody: [ + new Shared\CliEvent( + createdAt: Utils\Utils::parseDateTime('2023-05-08T03:24:39.583Z'), + executionId: '', + id: '', + interactionType: Shared\InteractionType::Quickstart, + localStartedAt: Utils\Utils::parseDateTime('2023-09-09T05:59:33.876Z'), + speakeasyApiKeyName: '', + speakeasyVersion: '', + success: false, + workspaceId: '', + ), + ], + workspaceId: '', +); + +$response = $sdk->events->post( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -262,19 +254,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\SearchWorkspaceEventsRequest( - workspaceId: '', - ); - $response = $sdk.events->search( - request: $request - ); - - if ($response->cliEventBatch !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\SearchWorkspaceEventsRequest( + workspaceId: '', +); + +$response = $sdk->events->search( + request: $request +); + +if ($response->cliEventBatch !== null) { + // handle response } ``` diff --git a/docs/sdks/github/README.md b/docs/sdks/github/README.md index e758f20..efbe377 100644 --- a/docs/sdks/github/README.md +++ b/docs/sdks/github/README.md @@ -33,20 +33,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CheckGithubAccessRequest( - org: '', - repo: '', - ); - $response = $sdk.github->checkAccess( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\CheckGithubAccessRequest( + org: '', + repo: '', +); + +$response = $sdk->github->checkAccess( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -86,21 +84,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GithubCheckPublishingPRsRequest( - generateGenLockId: '', - org: '', - repo: '', - ); - $response = $sdk.github->checkPublishingPRs( - request: $request - ); - - if ($response->githubPublishingPRResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GithubCheckPublishingPRsRequest( + generateGenLockId: '', + org: '', + repo: '', +); + +$response = $sdk->github->checkPublishingPRs( + request: $request +); + +if ($response->githubPublishingPRResponse !== null) { + // handle response } ``` @@ -140,19 +136,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GithubCheckPublishingSecretsRequest( - generateGenLockId: '', - ); - $response = $sdk.github->checkPublishingSecrets( - request: $request - ); - - if ($response->githubMissingPublishingSecretsResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GithubCheckPublishingSecretsRequest( + generateGenLockId: '', +); + +$response = $sdk->github->checkPublishingSecrets( + request: $request +); + +if ($response->githubMissingPublishingSecretsResponse !== null) { + // handle response } ``` @@ -191,21 +185,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\GithubConfigureCodeSamplesRequest( - org: '', - repo: '', - targetName: '', - ); - $response = $sdk.github->configureCodeSamples( - request: $request - ); - - if ($response->githubConfigureCodeSamplesResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\GithubConfigureCodeSamplesRequest( + org: '', + repo: '', + targetName: '', +); + +$response = $sdk->github->configureCodeSamples( + request: $request +); + +if ($response->githubConfigureCodeSamplesResponse !== null) { + // handle response } ``` @@ -244,24 +236,22 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\GithubConfigureMintlifyRepoRequest( - input: '', - org: '', - overlays: [ - '', - ], - repo: '', - ); - $response = $sdk.github->configureMintlifyRepo( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\GithubConfigureMintlifyRepoRequest( + input: '', + org: '', + overlays: [ + '', + ], + repo: '', +); + +$response = $sdk->github->configureMintlifyRepo( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -300,20 +290,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\GithubConfigureTargetRequest( - org: '', - repoName: '', - ); - $response = $sdk.github->configureTarget( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\GithubConfigureTargetRequest( + org: '', + repoName: '', +); + +$response = $sdk->github->configureTarget( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -353,20 +341,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetGitHubActionRequest( - org: '', - repo: '', - ); - $response = $sdk.github->getAction( - request: $request - ); - - if ($response->githubGetActionResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetGitHubActionRequest( + org: '', + repo: '', +); + +$response = $sdk->github->getAction( + request: $request +); + +if ($response->githubGetActionResponse !== null) { + // handle response } ``` @@ -405,19 +391,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\GithubStorePublishingSecretsRequest( - generateGenLockId: '', - ); - $response = $sdk.github->storePublishingSecrets( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\GithubStorePublishingSecretsRequest( + generateGenLockId: '', +); + +$response = $sdk->github->storePublishingSecrets( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -456,21 +440,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\GithubTriggerActionRequest( - genLockId: '', - org: '', - repoName: '', - ); - $response = $sdk.github->triggerAction( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\GithubTriggerActionRequest( + genLockId: '', + org: '', + repoName: '', +); + +$response = $sdk->github->triggerAction( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` diff --git a/docs/sdks/metadata/README.md b/docs/sdks/metadata/README.md index c8de182..8d5bf17 100644 --- a/docs/sdks/metadata/README.md +++ b/docs/sdks/metadata/README.md @@ -31,22 +31,20 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DeleteVersionMetadataRequest( - apiID: '', - metaKey: '', - metaValue: '', - versionID: '', - ); - $response = $sdk.metadata->deleteVersionMetadata( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DeleteVersionMetadataRequest( + apiID: '', + metaKey: '', + metaValue: '', + versionID: '', +); + +$response = $sdk->metadata->deleteVersionMetadata( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -88,20 +86,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetVersionMetadataRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.metadata->getVersionMetadata( - request: $request - ); - - if ($response->versionMetadata !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetVersionMetadataRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->metadata->getVersionMetadata( + request: $request +); + +if ($response->versionMetadata !== null) { + // handle response } ``` @@ -143,24 +139,22 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\InsertVersionMetadataRequest( - versionMetadata: new Shared\VersionMetadataInput( - metaKey: '', - metaValue: '', - ), - apiID: '', - versionID: '', - ); - $response = $sdk.metadata->insertVersionMetadata( - request: $request - ); - - if ($response->versionMetadata !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\InsertVersionMetadataRequest( + versionMetadata: new Shared\VersionMetadataInput( + metaKey: '', + metaValue: '', + ), + apiID: '', + versionID: '', +); + +$response = $sdk->metadata->insertVersionMetadata( + request: $request +); + +if ($response->versionMetadata !== null) { + // handle response } ``` diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 451cef9..76a933b 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -31,25 +31,23 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\Organization( - accountType: Shared\AccountType::ScaleUp, - createdAt: Utils\Utils::parseDateTime('2023-12-01T17:06:07.804Z'), - id: '', - name: '', - slug: '', - telemetryDisabled: false, - updatedAt: Utils\Utils::parseDateTime('2023-04-03T12:48:32.253Z'), - ); - $response = $sdk.organizations->create( - request: $request - ); - - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\Organization( + accountType: Shared\AccountType::ScaleUp, + createdAt: Utils\Utils::parseDateTime('2023-12-01T17:06:07.804Z'), + id: '', + name: '', + slug: '', + telemetryDisabled: false, + updatedAt: Utils\Utils::parseDateTime('2023-04-03T12:48:32.253Z'), +); + +$response = $sdk->organizations->create( + request: $request +); + +if ($response->organization !== null) { + // handle response } ``` @@ -90,16 +88,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.organizations->createFreeTrial( - ); - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->organizations->createFreeTrial( + +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -135,19 +132,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetOrganizationRequest( - organizationID: '', - ); - $response = $sdk.organizations->get( - request: $request - ); - - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetOrganizationRequest( + organizationID: '', +); + +$response = $sdk->organizations->get( + request: $request +); + +if ($response->organization !== null) { + // handle response } ``` @@ -188,16 +183,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.organizations->getAll( - ); - if ($response->organizations !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->organizations->getAll( + +); + +if ($response->organizations !== null) { + // handle response } ``` @@ -232,16 +226,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.organizations->getUsage( - ); - if ($response->organizationUsageResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->organizations->getUsage( + +); + +if ($response->organizationUsageResponse !== null) { + // handle response } ``` diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index 79f721c..b2ee0d4 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -31,19 +31,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetChangesReportSignedUrlRequest( - documentChecksum: '', - ); - $response = $sdk.reports->getChangesReportSignedUrl( - request: $request - ); - - if ($response->signedAccess !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetChangesReportSignedUrlRequest( + documentChecksum: '', +); + +$response = $sdk->reports->getChangesReportSignedUrl( + request: $request +); + +if ($response->signedAccess !== null) { + // handle response } ``` @@ -84,19 +82,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetLintingReportSignedUrlRequest( - documentChecksum: '', - ); - $response = $sdk.reports->getLintingReportSignedUrl( - request: $request - ); - - if ($response->signedAccess !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetLintingReportSignedUrlRequest( + documentChecksum: '', +); + +$response = $sdk->reports->getLintingReportSignedUrl( + request: $request +); + +if ($response->signedAccess !== null) { + // handle response } ``` @@ -137,23 +133,21 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UploadReportRequestBody( - data: new Shared\Report(), - file: new Operations\File( - content: '0xA2Ca85EFA5', - fileName: 'example.file', - ), - ); - $response = $sdk.reports->uploadReport( - request: $request - ); - - if ($response->uploadedReport !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\UploadReportRequestBody( + data: new Shared\Report(), + file: new Operations\File( + content: '0xA2Ca85EFA5', + fileName: 'example.file', + ), +); + +$response = $sdk->reports->uploadReport( + request: $request +); + +if ($response->uploadedReport !== null) { + // handle response } ``` diff --git a/docs/sdks/requests/README.md b/docs/sdks/requests/README.md index 2f7edfb..08b1e29 100644 --- a/docs/sdks/requests/README.md +++ b/docs/sdks/requests/README.md @@ -32,19 +32,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GenerateRequestPostmanCollectionRequest( - requestID: '', - ); - $response = $sdk.requests->generateRequestPostmanCollection( - request: $request - ); - - if ($response->postmanCollection !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GenerateRequestPostmanCollectionRequest( + requestID: '', +); + +$response = $sdk->requests->generateRequestPostmanCollection( + request: $request +); + +if ($response->postmanCollection !== null) { + // handle response } ``` @@ -86,19 +84,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetRequestFromEventLogRequest( - requestID: '', - ); - $response = $sdk.requests->getRequestFromEventLog( - request: $request - ); - - if ($response->unboundedRequest !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetRequestFromEventLogRequest( + requestID: '', +); + +$response = $sdk->requests->getRequestFromEventLog( + request: $request +); + +if ($response->unboundedRequest !== null) { + // handle response } ``` @@ -141,17 +137,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\QueryEventLogRequest(); - $response = $sdk.requests->queryEventLog( - request: $request - ); - - if ($response->boundedRequests !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\QueryEventLogRequest(); + +$response = $sdk->requests->queryEventLog( + request: $request +); + +if ($response->boundedRequests !== null) { + // handle response } ``` diff --git a/docs/sdks/schemas/README.md b/docs/sdks/schemas/README.md index d47935b..88fc2cb 100644 --- a/docs/sdks/schemas/README.md +++ b/docs/sdks/schemas/README.md @@ -36,21 +36,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DeleteSchemaRequest( - apiID: '', - revisionID: '', - versionID: '', - ); - $response = $sdk.schemas->deleteSchema( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DeleteSchemaRequest( + apiID: '', + revisionID: '', + versionID: '', +); + +$response = $sdk->schemas->deleteSchema( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -92,20 +90,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DownloadSchemaRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.schemas->downloadSchema( - request: $request - ); - - if ($response->twoXXApplicationJsonSchema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DownloadSchemaRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->schemas->downloadSchema( + request: $request +); + +if ($response->twoXXApplicationJsonSchema !== null) { + // handle response } ``` @@ -147,21 +143,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DownloadSchemaRevisionRequest( - apiID: '', - revisionID: '', - versionID: '', - ); - $response = $sdk.schemas->downloadSchemaRevision( - request: $request - ); - - if ($response->twoXXApplicationJsonSchema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DownloadSchemaRevisionRequest( + apiID: '', + revisionID: '', + versionID: '', +); + +$response = $sdk->schemas->downloadSchemaRevision( + request: $request +); + +if ($response->twoXXApplicationJsonSchema !== null) { + // handle response } ``` @@ -204,20 +198,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetSchemaRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.schemas->getSchema( - request: $request - ); - - if ($response->schema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetSchemaRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->schemas->getSchema( + request: $request +); + +if ($response->schema !== null) { + // handle response } ``` @@ -259,22 +251,20 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetSchemaDiffRequest( - apiID: '', - baseRevisionID: '', - targetRevisionID: '', - versionID: '', - ); - $response = $sdk.schemas->getSchemaDiff( - request: $request - ); - - if ($response->schemaDiff !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetSchemaDiffRequest( + apiID: '', + baseRevisionID: '', + targetRevisionID: '', + versionID: '', +); + +$response = $sdk->schemas->getSchemaDiff( + request: $request +); + +if ($response->schemaDiff !== null) { + // handle response } ``` @@ -317,21 +307,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetSchemaRevisionRequest( - apiID: '', - revisionID: '', - versionID: '', - ); - $response = $sdk.schemas->getSchemaRevision( - request: $request - ); - - if ($response->schema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetSchemaRevisionRequest( + apiID: '', + revisionID: '', + versionID: '', +); + +$response = $sdk->schemas->getSchemaRevision( + request: $request +); + +if ($response->schema !== null) { + // handle response } ``` @@ -374,20 +362,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetSchemasRequest( - apiID: '', - versionID: '', - ); - $response = $sdk.schemas->getSchemas( - request: $request - ); - - if ($response->classes !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetSchemasRequest( + apiID: '', + versionID: '', +); + +$response = $sdk->schemas->getSchemas( + request: $request +); + +if ($response->classes !== null) { + // handle response } ``` @@ -430,26 +416,24 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\RegisterSchemaRequest( - requestBody: new Operations\RegisterSchemaRequestBody( - file: new Operations\RegisterSchemaFile( - content: '0xCFA30D144c', - fileName: 'example.file', - ), + +$request = new Operations\RegisterSchemaRequest( + requestBody: new Operations\RegisterSchemaRequestBody( + file: new Operations\RegisterSchemaFile( + content: '0xCFA30D144c', + fileName: 'example.file', ), - apiID: '', - versionID: '', - ); - $response = $sdk.schemas->registerSchema( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + ), + apiID: '', + versionID: '', +); + +$response = $sdk->schemas->registerSchema( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` diff --git a/docs/sdks/shorturls/README.md b/docs/sdks/shorturls/README.md index bc3bcf0..26c6842 100644 --- a/docs/sdks/shorturls/README.md +++ b/docs/sdks/shorturls/README.md @@ -29,19 +29,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateRequestBody( - url: 'https://probable-heating.com/', - ); - $response = $sdk.shortURLs->create( - request: $request - ); - - if ($response->shortURL !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\CreateRequestBody( + url: 'https://probable-heating.com/', +); + +$response = $sdk->shortURLs->create( + request: $request +); + +if ($response->shortURL !== null) { + // handle response } ``` diff --git a/docs/sdks/suggest/README.md b/docs/sdks/suggest/README.md index aae6442..11ec6d2 100644 --- a/docs/sdks/suggest/README.md +++ b/docs/sdks/suggest/README.md @@ -31,51 +31,49 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\SuggestRequest( - suggestRequestBody: new Shared\SuggestRequestBody( - diagnostics: [ - new Shared\Diagnostic( - message: '', - path: [ - '/rescue', + +$request = new Operations\SuggestRequest( + suggestRequestBody: new Shared\SuggestRequestBody( + diagnostics: [ + new Shared\Diagnostic( + message: '', + path: [ + '/rescue', + ], + type: '', + ), + ], + oasSummary: new Shared\OASSummary( + info: new Shared\OASInfo( + description: 'kielbasa psst stitcher cannon devoted blindly apropos low', + license: new Shared\License(), + summary: '', + title: '', + version: '', + ), + operations: [ + new Shared\OASOperation( + description: 'via apparatus gray whether opposite what', + method: '', + operationId: '', + path: '/sys', + tags: [ + '', ], - type: '', ), ], - oasSummary: new Shared\OASSummary( - info: new Shared\OASInfo( - description: 'kielbasa psst stitcher cannon devoted blindly apropos low', - license: new Shared\License(), - summary: '', - title: '', - version: '', - ), - operations: [ - new Shared\OASOperation( - description: 'via apparatus gray whether opposite what', - method: '', - operationId: '', - path: '/sys', - tags: [ - '', - ], - ), - ], - ), - suggestionType: Shared\SuggestRequestBodySuggestionType::MethodNames, ), - xSessionId: '', - ); - $response = $sdk.suggest->suggest( - request: $request - ); - - if ($response->schema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + suggestionType: Shared\SuggestRequestBodySuggestionType::MethodNames, + ), + xSessionId: '', +); + +$response = $sdk->suggest->suggest( + request: $request +); + +if ($response->schema !== null) { + // handle response } ``` @@ -116,25 +114,23 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\SuggestOpenAPIRequest( - requestBody: new Operations\SuggestOpenAPIRequestBody( - schema: new Operations\Schema( - content: '0x0beEcB7cF6', - fileName: 'example.file', - ), + +$request = new Operations\SuggestOpenAPIRequest( + requestBody: new Operations\SuggestOpenAPIRequestBody( + schema: new Operations\Schema( + content: '0x0beEcB7cF6', + fileName: 'example.file', ), - xSessionId: '', - ); - $response = $sdk.suggest->suggestOpenAPI( - request: $request - ); - - if ($response->schema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + ), + xSessionId: '', +); + +$response = $sdk->suggest->suggestOpenAPI( + request: $request +); + +if ($response->schema !== null) { + // handle response } ``` @@ -175,21 +171,19 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\SuggestOpenAPIRegistryRequest( - namespaceName: '', - revisionReference: '', - xSessionId: '', - ); - $response = $sdk.suggest->suggestOpenAPIRegistry( - request: $request - ); - - if ($response->schema !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\SuggestOpenAPIRegistryRequest( + namespaceName: '', + revisionReference: '', + xSessionId: '', +); + +$response = $sdk->suggest->suggestOpenAPIRegistry( + request: $request +); + +if ($response->schema !== null) { + // handle response } ``` diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index 29deaa0..96cabe0 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -40,26 +40,24 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Shared\Workspace( - createdAt: Utils\Utils::parseDateTime('2023-06-18T07:14:55.338Z'), - id: '', - name: '', - organizationId: '', - slug: '', - telemetryDisabled: false, - updatedAt: Utils\Utils::parseDateTime('2023-12-01T17:06:07.804Z'), - verified: false, - ); - $response = $sdk.workspaces->create( - request: $request - ); - - if ($response->workspace !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Shared\Workspace( + createdAt: Utils\Utils::parseDateTime('2023-06-18T07:14:55.338Z'), + id: '', + name: '', + organizationId: '', + slug: '', + telemetryDisabled: false, + updatedAt: Utils\Utils::parseDateTime('2023-12-01T17:06:07.804Z'), + verified: false, +); + +$response = $sdk->workspaces->create( + request: $request +); + +if ($response->workspace !== null) { + // handle response } ``` @@ -101,26 +99,24 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateWorkspaceTokenRequest( - workspaceToken: new Shared\WorkspaceToken( - alg: '', - createdAt: '', - id: '', - key: '', - name: '', - ), - workspaceId: '', - ); - $response = $sdk.workspaces->createToken( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\CreateWorkspaceTokenRequest( + workspaceToken: new Shared\WorkspaceToken( + alg: '', + createdAt: '', + id: '', + key: '', + name: '', + ), + workspaceId: '', +); + +$response = $sdk->workspaces->createToken( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -162,20 +158,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\DeleteWorkspaceTokenRequest( - tokenID: '', - workspaceId: '', - ); - $response = $sdk.workspaces->deleteToken( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\DeleteWorkspaceTokenRequest( + tokenID: '', + workspaceId: '', +); + +$response = $sdk->workspaces->deleteToken( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -216,16 +210,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.workspaces->get( - ); - if ($response->workspaceAndOrganization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->workspaces->get( + +); + +if ($response->workspaceAndOrganization !== null) { + // handle response } ``` @@ -260,16 +253,15 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $response = $sdk.workspaces->getAll( - ); - if ($response->workspaces !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->workspaces->getAll( + +); + +if ($response->workspaces !== null) { + // handle response } ``` @@ -305,19 +297,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceRequest( - workspaceId: '', - ); - $response = $sdk.workspaces->getByID( - request: $request - ); - - if ($response->workspace !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceRequest( + workspaceId: '', +); + +$response = $sdk->workspaces->getByID( + request: $request +); + +if ($response->workspace !== null) { + // handle response } ``` @@ -359,19 +349,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceFeatureFlagsRequest( - workspaceId: '', - ); - $response = $sdk.workspaces->getFeatureFlags( - request: $request - ); - - if ($response->workspaceFeatureFlagResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceFeatureFlagsRequest( + workspaceId: '', +); + +$response = $sdk->workspaces->getFeatureFlags( + request: $request +); + +if ($response->workspaceFeatureFlagResponse !== null) { + // handle response } ``` @@ -413,19 +401,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceSettingsRequest( - workspaceId: '', - ); - $response = $sdk.workspaces->getSettings( - request: $request - ); - - if ($response->workspaceSettings !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceSettingsRequest( + workspaceId: '', +); + +$response = $sdk->workspaces->getSettings( + request: $request +); + +if ($response->workspaceSettings !== null) { + // handle response } ``` @@ -467,19 +453,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceTeamRequest( - workspaceId: '', - ); - $response = $sdk.workspaces->getTeam( - request: $request - ); - - if ($response->workspaceTeamResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceTeamRequest( + workspaceId: '', +); + +$response = $sdk->workspaces->getTeam( + request: $request +); + +if ($response->workspaceTeamResponse !== null) { + // handle response } ``` @@ -521,19 +505,17 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetWorkspaceTokensRequest( - workspaceId: '', - ); - $response = $sdk.workspaces->getTokens( - request: $request - ); - - if ($response->classes !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GetWorkspaceTokensRequest( + workspaceId: '', +); + +$response = $sdk->workspaces->getTokens( + request: $request +); + +if ($response->classes !== null) { + // handle response } ``` @@ -575,20 +557,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GrantUserAccessToWorkspaceRequest( - email: 'Lucinda.Batz8@hotmail.com', - workspaceId: '', - ); - $response = $sdk.workspaces->grantAccess( - request: $request - ); - - if ($response->workspaceInviteResponse !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\GrantUserAccessToWorkspaceRequest( + email: 'Lucinda.Batz8@hotmail.com', + workspaceId: '', +); + +$response = $sdk->workspaces->grantAccess( + request: $request +); + +if ($response->workspaceInviteResponse !== null) { + // handle response } ``` @@ -630,20 +610,18 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\RevokeUserAccessToWorkspaceRequest( - userId: '', - workspaceId: '', - ); - $response = $sdk.workspaces->revokeAccess( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\RevokeUserAccessToWorkspaceRequest( + userId: '', + workspaceId: '', +); + +$response = $sdk->workspaces->revokeAccess( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -686,29 +664,27 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateWorkspaceDetailsRequest( - workspace: new Shared\Workspace( - createdAt: Utils\Utils::parseDateTime('2024-07-28T19:04:48.565Z'), - id: '', - name: '', - organizationId: '', - slug: '', - telemetryDisabled: false, - updatedAt: Utils\Utils::parseDateTime('2023-10-17T10:52:42.015Z'), - verified: false, - ), - workspaceId: '', - ); - $response = $sdk.workspaces->update( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$request = new Operations\UpdateWorkspaceDetailsRequest( + workspace: new Shared\Workspace( + createdAt: Utils\Utils::parseDateTime('2024-07-28T19:04:48.565Z'), + id: '', + name: '', + organizationId: '', + slug: '', + telemetryDisabled: false, + updatedAt: Utils\Utils::parseDateTime('2023-10-17T10:52:42.015Z'), + verified: false, + ), + workspaceId: '', +); + +$response = $sdk->workspaces->update( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -750,22 +726,20 @@ $security = new Shared\Security( ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateWorkspaceSettingsRequest( - workspaceSettings: new Shared\WorkspaceSettings( - workspaceId: '', - ), + +$request = new Operations\UpdateWorkspaceSettingsRequest( + workspaceSettings: new Shared\WorkspaceSettings( workspaceId: '', - ); - $response = $sdk.workspaces->updateSettings( - request: $request - ); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + ), + workspaceId: '', +); + +$response = $sdk->workspaces->updateSettings( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` diff --git a/src/Models/Shared/TargetSDK.php b/src/Models/Shared/TargetSDK.php index 0810483..85209aa 100644 --- a/src/Models/Shared/TargetSDK.php +++ b/src/Models/Shared/TargetSDK.php @@ -267,6 +267,42 @@ class TargetSDK #[\JMS\Serializer\Annotation\Type('\Speakeasy\SpeakeasyClientSDK\Models\Shared\InteractionType')] public InteractionType $lastEventInteractionType; + /** + * Name of the published package. + * + * @var ?string $publishPackageName + */ + #[\JMS\Serializer\Annotation\SerializedName('publish_package_name')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $publishPackageName = null; + + /** + * Name of the registry where the package was published. + * + * @var ?string $publishPackageRegistryName + */ + #[\JMS\Serializer\Annotation\SerializedName('publish_package_registry_name')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $publishPackageRegistryName = null; + + /** + * URL of the published package. + * + * @var ?string $publishPackageUrl + */ + #[\JMS\Serializer\Annotation\SerializedName('publish_package_url')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $publishPackageUrl = null; + + /** + * Version of the published package. + * + * @var ?string $publishPackageVersion + */ + #[\JMS\Serializer\Annotation\SerializedName('publish_package_version')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $publishPackageVersion = null; + /** * Label of the git repository. * @@ -360,6 +396,10 @@ class TargetSDK * @param ?string $gitUserEmail * @param ?string $gitUserName * @param ?string $hostname + * @param ?string $publishPackageName + * @param ?string $publishPackageRegistryName + * @param ?string $publishPackageUrl + * @param ?string $publishPackageVersion * @param ?string $repoLabel * @param ?string $sourceBlobDigest * @param ?string $sourceNamespaceName @@ -368,7 +408,7 @@ class TargetSDK * @param ?string $workflowPostRaw * @param ?string $workflowPreRaw */ - public function __construct(string $generateGenLockId, string $generateTarget, string $id, \DateTime $lastEventCreatedAt, string $lastEventId, InteractionType $lastEventInteractionType, ?string $commitHead = null, ?string $continuousIntegrationEnvironment = null, ?string $error = null, ?string $generateConfigPostVersion = null, ?string $generateEligibleFeatures = null, ?string $generateGenLockPreFeatures = null, ?string $generateGenLockPreVersion = null, ?int $generateNumberOfOperationsIgnored = null, ?int $generateNumberOfOperationsUsed = null, ?bool $generatePublished = null, ?string $generateTargetName = null, ?string $generateTargetVersion = null, ?string $ghActionOrganization = null, ?string $ghActionRef = null, ?string $ghActionRepository = null, ?string $ghActionRunLink = null, ?string $ghActionVersion = null, ?string $gitRelativeCwd = null, ?string $gitRemoteDefaultOwner = null, ?string $gitRemoteDefaultRepo = null, ?string $gitUserEmail = null, ?string $gitUserName = null, ?string $hostname = null, ?string $repoLabel = null, ?string $sourceBlobDigest = null, ?string $sourceNamespaceName = null, ?string $sourceRevisionDigest = null, ?bool $success = null, ?string $workflowPostRaw = null, ?string $workflowPreRaw = null) + public function __construct(string $generateGenLockId, string $generateTarget, string $id, \DateTime $lastEventCreatedAt, string $lastEventId, InteractionType $lastEventInteractionType, ?string $commitHead = null, ?string $continuousIntegrationEnvironment = null, ?string $error = null, ?string $generateConfigPostVersion = null, ?string $generateEligibleFeatures = null, ?string $generateGenLockPreFeatures = null, ?string $generateGenLockPreVersion = null, ?int $generateNumberOfOperationsIgnored = null, ?int $generateNumberOfOperationsUsed = null, ?bool $generatePublished = null, ?string $generateTargetName = null, ?string $generateTargetVersion = null, ?string $ghActionOrganization = null, ?string $ghActionRef = null, ?string $ghActionRepository = null, ?string $ghActionRunLink = null, ?string $ghActionVersion = null, ?string $gitRelativeCwd = null, ?string $gitRemoteDefaultOwner = null, ?string $gitRemoteDefaultRepo = null, ?string $gitUserEmail = null, ?string $gitUserName = null, ?string $hostname = null, ?string $publishPackageName = null, ?string $publishPackageRegistryName = null, ?string $publishPackageUrl = null, ?string $publishPackageVersion = null, ?string $repoLabel = null, ?string $sourceBlobDigest = null, ?string $sourceNamespaceName = null, ?string $sourceRevisionDigest = null, ?bool $success = null, ?string $workflowPostRaw = null, ?string $workflowPreRaw = null) { $this->generateGenLockId = $generateGenLockId; $this->generateTarget = $generateTarget; @@ -399,6 +439,10 @@ public function __construct(string $generateGenLockId, string $generateTarget, s $this->gitUserEmail = $gitUserEmail; $this->gitUserName = $gitUserName; $this->hostname = $hostname; + $this->publishPackageName = $publishPackageName; + $this->publishPackageRegistryName = $publishPackageRegistryName; + $this->publishPackageUrl = $publishPackageUrl; + $this->publishPackageVersion = $publishPackageVersion; $this->repoLabel = $repoLabel; $this->sourceBlobDigest = $sourceBlobDigest; $this->sourceNamespaceName = $sourceNamespaceName; diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 700c4b4..b1cba14 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.4.0 .'; - public string $sdkVersion = '0.42.0'; + public string $sdkVersion = '0.42.1'; - public string $genVersion = '2.424.0'; + public string $genVersion = '2.426.2'; - public string $userAgent = 'speakeasy-sdk/php 0.42.0 2.424.0 0.4.0 . speakeasy-api/speakeasy-client-sdk-php'; + public string $userAgent = 'speakeasy-sdk/php 0.42.1 2.426.2 0.4.0 . speakeasy-api/speakeasy-client-sdk-php'; /** @var array>> */ public ?array $globals = [ 'parameters' => [],