Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.468.9
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 17, 2025
1 parent ba45978 commit ad650b9
Show file tree
Hide file tree
Showing 14 changed files with 173 additions and 47 deletions.
69 changes: 63 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: db1bb4da-054f-485f-8c6e-d42db3f1da90
management:
docChecksum: 53c59e9888ffa48d7fef9b0017efc602
docChecksum: 37a13cf25882217bb6883efc4407294c
docVersion: 0.4.0
speakeasyVersion: 1.468.6
generationVersion: 2.493.13
releaseVersion: 0.47.2
configChecksum: b81af1be2975a7ed902d5e1c9aaa461a
speakeasyVersion: 1.468.9
generationVersion: 2.493.21
releaseVersion: 0.47.3
configChecksum: bc520ead5512b1ea5ef4febc93e25fec
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.7.8
core: 3.7.9
deprecations: 2.81.1
globalSecurity: 2.81.7
globalServerURLs: 2.82.1
Expand Down Expand Up @@ -1636,6 +1636,8 @@ examples:
application/x-yaml: "0xfA011e0be4"
4XX:
application/json: {"message": "<value>", "status_code": 396101}
5XX:
application/json: {"message": "<value>", "status_code": 569513}
generateCodeSamplePreviewAsync:
speakeasy-default-generate-code-sample-preview-async:
requestBody:
Expand All @@ -1645,6 +1647,8 @@ examples:
application/json: {"job_id": "<id>", "status": "pending"}
4XX:
application/json: {"message": "<value>", "status_code": 394086}
5XX:
application/json: {"message": "<value>", "status_code": 933708}
getCodeSamplePreviewAsync:
speakeasy-default-get-code-sample-preview-async:
parameters:
Expand All @@ -1658,6 +1662,8 @@ examples:
application/json: {"status": "running"}
4XX:
application/json: {"message": "<value>", "status_code": 462062}
5XX:
application/json: {"message": "<value>", "status_code": 91014}
getGithubSetupState:
speakeasy-default-get-github-setup-state:
parameters:
Expand Down Expand Up @@ -1706,6 +1712,57 @@ examples:
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}]}
4XX:
application/json: {"message": "<value>", "status_code": 458049}
"":
parameters:
query:
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
operation_ids: ["getPetById"]
responses:
2XX:
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}]}
4XX:
application/json: {"message": "<value>", "status_code": 558834}
python:
parameters:
query:
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
operation_ids: ["getPetById"]
languages: ["python"]
responses:
2XX:
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}]}
4XX:
application/json: {"message": "<value>", "status_code": 521235}
typescript:
parameters:
query:
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
operation_ids: ["getPetById"]
languages: ["typescript"]
responses:
2XX:
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}]}
4XX:
application/json: {"message": "<value>", "status_code": 458049}
java:
parameters:
query:
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
operation_ids: ["getPetById"]
languages: ["java"]
responses:
2XX:
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "operationId": "<id>"}]}
4XX:
application/json: {"message": "<value>", "status_code": 262795}
default:
parameters:
query:
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
operation_ids: ["getPetById"]
responses:
2XX:
application/json: {"snippets": [{"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();", "language": "typescript", "operationId": "getPetById"}]}
setWorkspaceFeatureFlags:
speakeasy-default-set-workspace-feature-flags:
requestBody:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
php:
version: 0.47.2
version: 0.47.3
additionalDependencies:
autoload: {}
autoload-dev: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.468.6
speakeasyVersion: 1.468.9
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:0bed0fb50674ac92adc1637baf302244d5e30b5edde4527faabca2215228aefb
sourceBlobDigest: sha256:c4bc148bd2df6e1b53fee2228938cbb11d43111425e73c01ba58df9ba77bd4a0
sourceRevisionDigest: sha256:adff4dce67bbafba451723e766dc2723ad6298ddb813f8814aee4dbcea37e56b
sourceBlobDigest: sha256:8f42a23c071ea4583fdaac6d8f79bd01e9162d8ac53fe951400456d9773591a3
tags:
- latest
- speakeasy-sdk-regen-1736900148
- speakeasy-sdk-regen-1737072957
- 0.4.0
targets:
php-target:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:0bed0fb50674ac92adc1637baf302244d5e30b5edde4527faabca2215228aefb
sourceBlobDigest: sha256:c4bc148bd2df6e1b53fee2228938cbb11d43111425e73c01ba58df9ba77bd4a0
sourceRevisionDigest: sha256:adff4dce67bbafba451723e766dc2723ad6298ddb813f8814aee4dbcea37e56b
sourceBlobDigest: sha256:8f42a23c071ea4583fdaac6d8f79bd01e9162d8ac53fe951400456d9773591a3
codeSamplesNamespace: my-source-php-code-samples
codeSamplesRevisionDigest: sha256:845564bdcbf2bc8d0291bbc903268b977cc2cbcc2b5a1fc05e00e63baa7274eb
codeSamplesRevisionDigest: sha256:5b79fed584e76ea62444f318e6948260df6c07fa316d8a719c6db76931e66340
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ if ($response->statusCode === 200) {
* [generateCodeSamplePreview](docs/sdks/codesamples/README.md#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
* [generateCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
* [getCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.
* [get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets from document stored in the registry
* [get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets

### [events](docs/sdks/events/README.md)

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1574,4 +1574,14 @@ Based on:
### Generated
- [php v0.47.2] .
### Releases
- [Composer v0.47.2] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.2 - .
- [Composer v0.47.2] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.2 - .

## 2025-01-17 00:15:40
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.468.9 (2.493.21) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.47.3] .
### Releases
- [Composer v0.47.3] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.3 - .
10 changes: 5 additions & 5 deletions docs/Models/Operations/GetCodeSamplesRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| `registryUrl` | *string* | :heavy_check_mark: | The registry URL from which to retrieve the snippets. E.g. https://spec.speakeasy.com/org/ws/my-source |
| `languages` | array<*string*> | :heavy_minus_sign: | N/A |
| `operationIds` | array<*string*> | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description | Example |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `registryUrl` | *string* | :heavy_check_mark: | The registry URL from which to retrieve the snippets. | https://spec.speakeasy.com/my-org/my-workspace/my-source |
| `languages` | array<*string*> | :heavy_minus_sign: | The languages to retrieve snippets for. | |
| `operationIds` | array<*string*> | :heavy_minus_sign: | The operation IDs to retrieve snippets for. | getPetById |
19 changes: 13 additions & 6 deletions docs/sdks/codesamples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REST APIs for retrieving Code Samples
* [generateCodeSamplePreview](#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
* [generateCodeSamplePreviewAsync](#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
* [getCodeSamplePreviewAsync](#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.
* [get](#get) - Retrieve usage snippets from document stored in the registry
* [get](#get) - Retrieve usage snippets

## generateCodeSamplePreview

Expand Down Expand Up @@ -67,7 +67,8 @@ if ($response->twoHundredApplicationJsonBytes !== null) {

| Error Type | Status Code | Content Type |
| ---------------- | ---------------- | ---------------- |
| Errorors\Error | 4XX, 5XX | application/json |
| Errorors\Error | 4XX | application/json |
| Errorors\Error | 5XX | application/json |

## generateCodeSamplePreviewAsync

Expand Down Expand Up @@ -124,7 +125,8 @@ if ($response->object !== null) {

| Error Type | Status Code | Content Type |
| ---------------- | ---------------- | ---------------- |
| Errorors\Error | 4XX, 5XX | application/json |
| Errorors\Error | 4XX | application/json |
| Errorors\Error | 5XX | application/json |

## getCodeSamplePreviewAsync

Expand Down Expand Up @@ -176,11 +178,13 @@ if ($response->twoHundredApplicationJsonBytes !== null) {

| Error Type | Status Code | Content Type |
| ---------------- | ---------------- | ---------------- |
| Errorors\Error | 4XX, 5XX | application/json |
| Errorors\Error | 4XX | application/json |
| Errorors\Error | 5XX | application/json |

## get

Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID.
Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID.


### Example Usage

Expand All @@ -202,7 +206,10 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
->build();

$request = new Operations\GetCodeSamplesRequest(
registryUrl: 'https://normal-making.name',
registryUrl: 'https://spec.speakeasy.com/my-org/my-workspace/my-source',
operationIds: [
'getPetById',
],
);

$response = $sdk->codeSamples->get(
Expand Down
4 changes: 3 additions & 1 deletion src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ public function getAccess(?Operations\GetWorkspaceAccessRequest $request = null,
} else {
throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
}
} elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) {
} elseif ($statusCode >= 400 && $statusCode < 500) {
throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
} elseif ($statusCode >= 500 && $statusCode < 600) {
throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
} else {
throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
Expand Down
Loading

0 comments on commit ad650b9

Please sign in to comment.