Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc v1.0.0, Speakeasy CLI 1.206.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 12, 2024
1 parent 2077fb4 commit ee128b0
Show file tree
Hide file tree
Showing 50 changed files with 69 additions and 257 deletions.
14 changes: 6 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: edadaac9-e645-4ef4-a6c7-a1f73bc19385
management:
docChecksum: 8571286cd4dd1d9d09ba99677375f886
docVersion: v1.0.0
speakeasyVersion: 1.206.0
generationVersion: 2.279.1
releaseVersion: 4.4.0
configChecksum: c936586b2fb66fe4dab43e6ba68e9aa8
speakeasyVersion: 1.206.3
generationVersion: 2.280.6
releaseVersion: 4.4.1
configChecksum: 0bdbae3037f6726e20fe356bb9191458
repoURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk.git
repoSubDirectory: .
installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk
Expand All @@ -18,8 +18,8 @@ features:
devContainers: 2.90.0
flattening: 2.81.1
globalSecurity: 2.82.4
globalServerURLs: 2.82.3
responseFormat: 0.2.0
globalServerURLs: 2.82.4
responseFormat: 0.2.1
generatedFiles:
- src/sdk/dataset.ts
- src/sdk/element.ts
Expand All @@ -37,7 +37,6 @@ generatedFiles:
- src/lib/base64.ts
- src/lib/config.ts
- src/lib/encodings.ts
- src/lib/event-streams.ts
- src/lib/http.ts
- src/lib/retries.ts
- src/lib/schemas.ts
Expand All @@ -48,7 +47,6 @@ generatedFiles:
- src/sdk/models/errors/sdkerror.ts
- src/sdk/models/errors/sdkvalidationerror.ts
- src/sdk/types/blobs.ts
- src/sdk/types/decimal.ts
- src/sdk/types/index.ts
- src/sdk/types/operations.ts
- src/sdk/types/rfcdate.ts
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1879,4 +1879,14 @@ Based on:
### Generated
- [typescript v4.4.0] .
### Releases
- [NPM v4.4.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.4.0 - .
- [NPM v4.4.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.4.0 - .

## 2024-03-12 16:02:52
### Changes
Based on:
- OpenAPI Doc v1.0.0 https://api-docs-nine-delta.vercel.app/cloud/openapi.json
- Speakeasy CLI 1.206.3 (2.280.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v4.4.1] .
### Releases
- [NPM v4.4.1] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.4.1 - .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 4.4.0
version: 4.4.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leonardo-ai/sdk",
"version": "4.4.0",
"version": "4.4.1",
"author": "leonardoai",
"main": "./index.js",
"sideEffects": false,
Expand Down Expand Up @@ -29,7 +29,6 @@
"zod": "^3.22.4"
},
"dependencies": {
"decimal.js": "^10.4.3",
"jsonpath": "^1.1.1"

}
}
11 changes: 7 additions & 4 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
let serverURL = options.serverURL;

const params: Record<string, string> = {};
const serverIdx = options.serverIdx ?? 0;

if (!serverURL) {
const serverIdx = options.serverIdx ?? 0;
if (serverIdx < 0 || serverIdx >= ServerList.length) {
throw new Error(`Invalid server index ${serverIdx}`);
}
serverURL = ServerList[serverIdx] || "";
}

Expand All @@ -51,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = Object.freeze({
language: "typescript",
openapiDocVersion: "v1.0.0",
sdkVersion: "4.4.0",
genVersion: "2.279.1",
userAgent: "speakeasy-sdk/typescript 4.4.0 2.279.1 v1.0.0 @leonardo-ai/sdk",
sdkVersion: "4.4.1",
genVersion: "2.280.6",
userAgent: "speakeasy-sdk/typescript 4.4.1 2.280.6 v1.0.0 @leonardo-ai/sdk",
});
192 changes: 0 additions & 192 deletions src/lib/event-streams.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/sdk/models/operations/createdataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

/**
* Query parameters to be provided in the request body as a JSON object
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 @@ -3,7 +3,7 @@
*/

import * as shared from "../../../sdk/models/shared";
import { z } from "zod";
import * as z from "zod";

/**
* Query parameters to be provided in the request body as a JSON object
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/createmodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import * as shared from "../../../sdk/models/shared";
import { z } from "zod";
import * as z from "zod";

/**
* Query parameters to be provided in the request body as a JSON object
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 @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

/**
* Query parameters are provided in the request body as a JSON object
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 @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

/**
* Query parameters are provided in the request body as a JSON object
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/deletedatasetbyid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

export type DeleteDatasetByIdRequest = {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/deletegenerationbyid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

export type DeleteGenerationByIdRequest = {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/deletegenerationstextureid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

/**
* Query parameters can also be provided in the request body as a JSON object
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/deleteinitimagebyid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

export type DeleteInitImageByIdRequest = {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/models/operations/deletemodelbyid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

import { z } from "zod";
import * as z from "zod";

export type DeleteModelByIdRequest = {
/**
Expand Down
Loading

0 comments on commit ee128b0

Please sign in to comment.