Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc v1.0.0, Speakeay CLI 1.108.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 26, 2023
1 parent 9e16008 commit ead9483
Show file tree
Hide file tree
Showing 16 changed files with 81 additions and 36 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,41 @@ return value of `next` is `null`, then there are no more pages to be fetched.
Here's an example of one such pagination call:
<!-- End Pagination -->



<!-- Start Error Handling -->
# Error Handling

Handling errors in your SDK should largely match your expectations. All operations 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.


<!-- End Error Handling -->



<!-- Start Custom HTTP Client -->
# Custom HTTP Client

The Typescript SDK makes API calls using the (axios)[https://axios-http.com/docs/intro] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `AxiosInstance` object.


For example, you could specify a header for every request that your sdk makes as follows:

```typescript
from @leonardo-ai/sdk import Leonardo;
import axios;

const httpClient = axios.create({
headers: {'x-custom-header': 'someValue'}
})


const sdk = new Leonardo({defaultClient: httpClient});
```
<!-- End Custom HTTP Client -->
<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1349,4 +1349,14 @@ Based on:
### Generated
- [typescript v1.64.1] .
### Releases
- [NPM v1.64.1] https://www.npmjs.com/package/@leonardo-ai/sdk/v/1.64.1 - .
- [NPM v1.64.1] https://www.npmjs.com/package/@leonardo-ai/sdk/v/1.64.1 - .

## 2023-10-26 13:24:03
### Changes
Based on:
- OpenAPI Doc v1.0.0 https://api-docs-nine-delta.vercel.app/cloud/openapi.json
- Speakeasy CLI 1.108.0 (2.172.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.64.2] .
### Releases
- [NPM v1.64.2] https://www.npmjs.com/package/@leonardo-ai/sdk/v/1.64.2 - .
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Image Generation. Available for Production API Users |
| `generationId` | *string* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Image Generation. Available for Production API Users. |
| `generationId` | *string* | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for No Background Variation. Available for Production API Users |
| `id` | *string* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for No Background Variation. Available for Production API Users. |
| `id` | *string* | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Upscale Variation. Available for Production API Users |
| `id` | *string* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Upscale Variation. Available for Production API Users. |
| `id` | *string* | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Texture Generation. Available for Production API Users |
| `id` | *string* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Texture Generation. Available for Production API Users. |
| `id` | *string* | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Unzoom Variation. Available for Production API Users |
| `id` | *string* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `apiCreditCost` | *number* | :heavy_minus_sign: | API Credits Cost for Unzoom Variation. Available for Production API Users. |
| `id` | *string* | :heavy_minus_sign: | N/A |
8 changes: 4 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
configVersion: 1.0.0
management:
docChecksum: 84dc36f9421ab3f816ea07f4721c2a16
docChecksum: 46ad48e241e614e90f160dea337b2711
docVersion: v1.0.0
speakeasyVersion: 1.107.0
generationVersion: 2.171.0
speakeasyVersion: 1.108.0
generationVersion: 2.172.0
generation:
devContainers:
enabled: true
Expand All @@ -20,7 +20,7 @@ features:
globalSecurity: 2.82.0
globalServerURLs: 2.82.0
typescript:
version: 1.64.1
version: 1.64.2
author: leonardoai
flattenGlobalSecurity: true
installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leonardo-ai/sdk",
"version": "1.64.1",
"version": "1.64.2",
"author": "leonardoai",
"scripts": {
"prepare": "tsc --build",
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/creategeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class CreateGenerationRequestBody extends SpeakeasyBase {

export class CreateGeneration200ApplicationJSONSDGenerationOutput extends SpeakeasyBase {
/**
* API Credits Cost for Image Generation. Available for Production API Users
* API Credits Cost for Image Generation. Available for Production API Users.
*/
@SpeakeasyMetadata()
@Expose({ name: "apiCreditCost" })
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/createvariationnobg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class CreateVariationNoBGRequestBody extends SpeakeasyBase {

export class CreateVariationNoBg200ApplicationJSONSDUpscaleJobOutput extends SpeakeasyBase {
/**
* API Credits Cost for No Background Variation. Available for Production API Users
* API Credits Cost for No Background Variation. Available for Production API Users.
*/
@SpeakeasyMetadata()
@Expose({ name: "apiCreditCost" })
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/createvariationupscale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class CreateVariationUpscaleRequestBody extends SpeakeasyBase {

export class CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput extends SpeakeasyBase {
/**
* API Credits Cost for Upscale Variation. Available for Production API Users
* API Credits Cost for Upscale Variation. Available for Production API Users.
*/
@SpeakeasyMetadata()
@Expose({ name: "apiCreditCost" })
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/postgenerationstexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class PostGenerationsTextureRequestBody extends SpeakeasyBase {

export class PostGenerationsTexture200ApplicationJSONTextureGenerationJobOutput extends SpeakeasyBase {
/**
* API Credits Cost for Texture Generation. Available for Production API Users
* API Credits Cost for Texture Generation. Available for Production API Users.
*/
@SpeakeasyMetadata()
@Expose({ name: "apiCreditCost" })
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/postvariationsunzoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class PostVariationsUnzoomRequestBody extends SpeakeasyBase {

export class PostVariationsUnzoom200ApplicationJSONSDUnzoomOutput extends SpeakeasyBase {
/**
* API Credits Cost for Unzoom Variation. Available for Production API Users
* API Credits Cost for Unzoom Variation. Available for Production API Users.
*/
@SpeakeasyMetadata()
@Expose({ name: "apiCreditCost" })
Expand Down
6 changes: 3 additions & 3 deletions src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export class SDKConfiguration {
serverDefaults: any;
language = "typescript";
openapiDocVersion = "v1.0.0";
sdkVersion = "1.64.1";
genVersion = "2.171.0";
userAgent = "speakeasy-sdk/typescript 1.64.1 2.171.0 v1.0.0 @leonardo-ai/sdk";
sdkVersion = "1.64.2";
genVersion = "2.172.0";
userAgent = "speakeasy-sdk/typescript 1.64.2 2.172.0 v1.0.0 @leonardo-ai/sdk";
retryConfig?: utils.RetryConfig;
public constructor(init?: Partial<SDKConfiguration>) {
Object.assign(this, init);
Expand Down

0 comments on commit ead9483

Please sign in to comment.