Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 2, 2024
1 parent 7aeac18 commit 363c8ad
Show file tree
Hide file tree
Showing 121 changed files with 1,572 additions and 1,596 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: edadaac9-e645-4ef4-a6c7-a1f73bc19385
management:
docChecksum: 10310c36cca44ad9ea65148525284fda
docChecksum: da0e11043d85a8de4b607ec6b8709636
docVersion: v1.0.0
speakeasyVersion: 1.400.1
generationVersion: 2.420.2
releaseVersion: 4.16.0
configChecksum: 26a72f3fa5d977cd7e905279006ab1bd
speakeasyVersion: 1.405.6
generationVersion: 2.428.1
releaseVersion: 4.17.0
configChecksum: 0d00bf56c42811a1edbd8f75177b91f3
repoURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk.git
repoSubDirectory: .
installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk
Expand All @@ -15,7 +15,7 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.17.5
core: 3.18.1
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
devContainers: 2.90.0
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.400.1
speakeasyVersion: 1.405.6
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:10952aeb2e058c7510384583df32fa9c234f4ed3c747b21dccc7739bf0611c54
sourceBlobDigest: sha256:e7afecf93b03aba9f1c49b6db4b19ed1ae9f965bf4309cc2e5066f11d783eb16
sourceRevisionDigest: sha256:d71d81da31632a63e7811876c46a8f89d23c63ac49a9ca0b244137396b102b7e
sourceBlobDigest: sha256:f67101855bfc0add74be26af9745c84c32419d0646c36539e64e607a91640428
tags:
- latest
- main
targets:
leonardo-ts-sdk:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:10952aeb2e058c7510384583df32fa9c234f4ed3c747b21dccc7739bf0611c54
sourceBlobDigest: sha256:e7afecf93b03aba9f1c49b6db4b19ed1ae9f965bf4309cc2e5066f11d783eb16
sourceRevisionDigest: sha256:d71d81da31632a63e7811876c46a8f89d23c63ac49a9ca0b244137396b102b7e
sourceBlobDigest: sha256:f67101855bfc0add74be26af9745c84c32419d0646c36539e64e607a91640428
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function run() {
const { value: result } = res;

// Handle the result
console.log(result)
console.log(result);
}

run();
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,23 @@ run();
<!-- Start Error Handling [errors] -->
## Error Handling

All SDK methods return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type.
All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.SDKError`.

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 4xx-5xx | */* |
If a HTTP request fails, an operation my also throw an error from the `sdk/models/errors/httpclienterrors.ts` module:

| HTTP Client Error | Description |
| ---------------------------------------------------- | ---------------------------------------------------- |
| RequestAbortedError | HTTP request was aborted by the client |
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
| ConnectionError | HTTP client was unable to make a request to a server |
| InvalidRequestError | Any input used to create a request is invalid |
| UnexpectedClientError | Unrecognised or unexpected error |

Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `deleteInitImageById` method may throw the following errors:

| Error Type | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 4XX, 5XX | \*/\* |

```typescript
import { Leonardo } from "@leonardo-ai/sdk";
Expand Down Expand Up @@ -227,6 +236,8 @@ async function run() {
run();

```

Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
<!-- End Error Handling [errors] -->


Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2459,4 +2459,14 @@ Based on:
### Generated
- [typescript v4.16.0] .
### Releases
- [NPM v4.16.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.16.0 - .
- [NPM v4.16.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.16.0 - .

## 2024-10-02 03:05:40
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v4.17.0] .
### Releases
- [NPM v4.17.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.17.0 - .
2 changes: 1 addition & 1 deletion docs/sdk/models/operations/createdatasetresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CreateDatasetResponse } from "@leonardo-ai/sdk/sdk/models/operations";

let value: CreateDatasetResponse = {
contentType: "<value>",
statusCode: 544883,
statusCode: 207,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
Expand Down
Loading

0 comments on commit 363c8ad

Please sign in to comment.