From fa68409d038e1af72cbc58eadfae76aab45e2fe3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 8 Nov 2024 18:32:30 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.435.1 --- .speakeasy/gen.lock | 23 +++++++++++++++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 ++++++------ FUNCTIONS.md | 5 ++--- README.md | 24 +++++++++-------------- RELEASES.md | 12 +++++++++++- USAGE.md | 3 +-- docs/sdks/pet/README.md | 12 +++++------- jsr.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/funcs/{petDsfsdff.ts => petPutPet.ts} | 4 ++-- src/lib/config.ts | 6 +++--- src/sdk/pet.ts | 6 +++--- 14 files changed, 65 insertions(+), 52 deletions(-) rename src/funcs/{petDsfsdff.ts => petPutPet.ts} (98%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6e45bce..72217bd 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: ede0e8e6-5a63-4cc3-bd29-551cf1036a60 management: - docChecksum: ad9cb329480ffb07cb9dd7fb995b32fe - docVersion: 2.0.0 + docChecksum: 53d49c0ce52dbdfbab0f52ed1e224edf + docVersion: 3.0.0 speakeasyVersion: 1.435.1 generationVersion: 2.455.2 - releaseVersion: 1.5.0 - configChecksum: 84e156e72154f5fcc510fa0f207cf0fc + releaseVersion: 1.6.0 + configChecksum: d59928ddc7ec044c7bc45d94a124b8f3 repoURL: https://github.com/ryan-timothy-albert/simple-ts-sdk.git installationURL: https://github.com/ryan-timothy-albert/simple-ts-sdk published: true @@ -73,11 +73,11 @@ generatedFiles: - package.json - src/core.ts - src/funcs/petDeletePet.ts - - src/funcs/petDsfsdff.ts - src/funcs/petFindPetsByStatus.ts - src/funcs/petFindPetsByTags.ts - src/funcs/petGetPetById.ts - src/funcs/petMyPet.ts + - src/funcs/petPutPet.ts - src/funcs/petUploadFile.ts - src/funcs/storeDeleteOrder.ts - src/funcs/storeGetInventory.ts @@ -357,3 +357,16 @@ examples: application/json: {"status": 401, "error": "Unauthorized"} "404": application/json: {"status": 404, "error": "Not Found", "code": "object_not_found"} + putPet: + speakeasy-default-put-pet: + requestBody: + application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["", ""]} + responses: + "200": + application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": []} + "400": + application/json: {"status": 400, "error": "Bad request"} + "401": + application/json: {"status": 401, "error": "Unauthorized"} + "404": + application/json: {"status": 404, "error": "Not Found", "code": "object_not_found"} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f21b2cb..759b280 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,7 +16,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false typescript: - version: 1.5.0 + version: 1.6.0 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ae64458..44c83d8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,19 +2,19 @@ speakeasyVersion: 1.435.1 sources: petstore-oas: sourceNamespace: petstore-oas - sourceRevisionDigest: sha256:7d0722d82869451d158c2ef04b0aefbfb86330e5bf52e2635ba534cce99b749e - sourceBlobDigest: sha256:bcfe955261b90d79d9dec6342b95e0bedc0b1160b3db0a78fb002734b92b294e + sourceRevisionDigest: sha256:7934a3957bd5ade402b7f981b2c49306e3bca7c688a189703236708383ea7276 + sourceBlobDigest: sha256:a95f14105c605e7b763a4dbcc785f3baa6efe33d7e1113eb3967a93381b65509 tags: - latest - - main + - speakeasy-sdk-regen-1731089699 targets: petstore: source: petstore-oas sourceNamespace: petstore-oas - sourceRevisionDigest: sha256:7d0722d82869451d158c2ef04b0aefbfb86330e5bf52e2635ba534cce99b749e - sourceBlobDigest: sha256:bcfe955261b90d79d9dec6342b95e0bedc0b1160b3db0a78fb002734b92b294e + sourceRevisionDigest: sha256:7934a3957bd5ade402b7f981b2c49306e3bca7c688a189703236708383ea7276 + sourceBlobDigest: sha256:a95f14105c605e7b763a4dbcc785f3baa6efe33d7e1113eb3967a93381b65509 codeSamplesNamespace: petstore-oas-code-samples - codeSamplesRevisionDigest: sha256:b6df772d0e9d5f87bf7f497cd49ff31e6c438d73f72c0dee2d1a33e6fd68871c + codeSamplesRevisionDigest: sha256:b7970a7d80b5d61aca841cf0cca545d02f38c2efe9685d689fb366eed724c4c2 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 6e25870..38fcd8c 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -20,7 +20,7 @@ specific category of applications. ```typescript import { PetstoreCore } from "ryan-simple-test-act/core.js"; -import { petDsfsdff } from "ryan-simple-test-act/funcs/petDsfsdff.js"; +import { petPutPet } from "ryan-simple-test-act/funcs/petPutPet.js"; import { SDKValidationError } from "ryan-simple-test-act/models/errors/sdkvalidationerror.js"; // Use `PetstoreCore` for best tree-shaking performance. @@ -30,7 +30,7 @@ const petstore = new PetstoreCore({ }); async function run() { - const res = await petDsfsdff(petstore, { + const res = await petPutPet(petstore, { id: 10, name: "doggie", category: { @@ -40,7 +40,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); diff --git a/README.md b/README.md index 17eb5fe..bd16147 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -108,7 +108,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); @@ -129,7 +128,7 @@ run(); ### [pet](docs/sdks/pet/README.md) -* [dsfsdff](docs/sdks/pet/README.md#dsfsdff) - Update an existing pet +* [putPet](docs/sdks/pet/README.md#putpet) - Update an existing pet * [myPet](docs/sdks/pet/README.md#mypet) - Add a new pet to the store * [findPetsByStatus](docs/sdks/pet/README.md#findpetsbystatus) - Finds Pets by status * [findPetsByTags](docs/sdks/pet/README.md#findpetsbytags) - Finds Pets by tags @@ -174,11 +173,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). Available standalone functions - [`petDeletePet`](docs/sdks/pet/README.md#deletepet) - Deletes a pet -- [`petDsfsdff`](docs/sdks/pet/README.md#dsfsdff) - Update an existing pet - [`petFindPetsByStatus`](docs/sdks/pet/README.md#findpetsbystatus) - Finds Pets by status - [`petFindPetsByTags`](docs/sdks/pet/README.md#findpetsbytags) - Finds Pets by tags - [`petGetPetById`](docs/sdks/pet/README.md#getpetbyid) - Find pet by ID - [`petMyPet`](docs/sdks/pet/README.md#mypet) - Add a new pet to the store +- [`petPutPet`](docs/sdks/pet/README.md#putpet) - Update an existing pet - [`petUploadFile`](docs/sdks/pet/README.md#uploadfile) - uploads an image - [`storeDeleteOrder`](docs/sdks/store/README.md#deleteorder) - Delete purchase order by ID - [`storeGetInventory`](docs/sdks/store/README.md#getinventory) - Returns pet inventories by status @@ -244,7 +243,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -254,7 +253,6 @@ async function run() { photoUrls: [ "", "", - "", ], }, { retries: { @@ -296,7 +294,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -306,7 +304,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); @@ -334,7 +331,7 @@ If a HTTP request fails, an operation my also throw an error from the `models/er | InvalidRequestError | Any input used to create a request is invalid | | UnexpectedClientError | Unrecognised or unexpected error | -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 `dsfsdff` method may throw the following errors: +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 `putPet` method may throw the following errors: | Error Type | Status Code | Content Type | | --------------------------- | ----------- | ---------------- | @@ -359,7 +356,7 @@ const petstore = new Petstore({ async function run() { let result; try { - result = await petstore.pet.dsfsdff({ + result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -369,7 +366,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); @@ -433,7 +429,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -443,7 +439,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); @@ -525,7 +520,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -535,7 +530,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); diff --git a/RELEASES.md b/RELEASES.md index cd925ad..5a4b974 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -152,4 +152,14 @@ Based on: ### Generated - [typescript v1.5.0] . ### Releases -- [NPM v1.5.0] https://www.npmjs.com/package/ryan-simple-test-act/v/1.5.0 - . \ No newline at end of file +- [NPM v1.5.0] https://www.npmjs.com/package/ryan-simple-test-act/v/1.5.0 - . + +## 2024-11-08 18:31:59 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.435.1 (2.455.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.6.0] . +### Releases +- [NPM v1.6.0] https://www.npmjs.com/package/ryan-simple-test-act/v/1.6.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index a98cfdc..6a79c79 100644 --- a/USAGE.md +++ b/USAGE.md @@ -7,7 +7,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -17,7 +17,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); diff --git a/docs/sdks/pet/README.md b/docs/sdks/pet/README.md index c7d0173..7bcd0f5 100644 --- a/docs/sdks/pet/README.md +++ b/docs/sdks/pet/README.md @@ -10,7 +10,7 @@ Find out more ### Available Operations -* [dsfsdff](#dsfsdff) - Update an existing pet +* [putPet](#putpet) - Update an existing pet * [myPet](#mypet) - Add a new pet to the store * [findPetsByStatus](#findpetsbystatus) - Finds Pets by status * [findPetsByTags](#findpetsbytags) - Finds Pets by tags @@ -18,7 +18,7 @@ Find out more * [deletePet](#deletepet) - Deletes a pet * [uploadFile](#uploadfile) - uploads an image -## dsfsdff +## putPet Update an existing pet by Id @@ -32,7 +32,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.dsfsdff({ + const result = await petstore.pet.putPet({ id: 10, name: "doggie", category: { @@ -42,7 +42,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); @@ -59,7 +58,7 @@ The standalone function version of this method: ```typescript import { PetstoreCore } from "ryan-simple-test-act/core.js"; -import { petDsfsdff } from "ryan-simple-test-act/funcs/petDsfsdff.js"; +import { petPutPet } from "ryan-simple-test-act/funcs/petPutPet.js"; // Use `PetstoreCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -68,7 +67,7 @@ const petstore = new PetstoreCore({ }); async function run() { - const res = await petDsfsdff(petstore, { + const res = await petPutPet(petstore, { id: 10, name: "doggie", category: { @@ -78,7 +77,6 @@ async function run() { photoUrls: [ "", "", - "", ], }); diff --git a/jsr.json b/jsr.json index 8faa97d..287c7d3 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "ryan-simple-test-act", - "version": "1.5.0", + "version": "1.6.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index a7e4bfb..8fbb1fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ryan-simple-test-act", - "version": "1.5.0", + "version": "1.6.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ryan-simple-test-act", - "version": "1.5.0", + "version": "1.6.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 866a77d..75829bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ryan-simple-test-act", - "version": "1.5.0", + "version": "1.6.0", "author": "ryan-timothy-albert", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/petDsfsdff.ts b/src/funcs/petPutPet.ts similarity index 98% rename from src/funcs/petDsfsdff.ts rename to src/funcs/petPutPet.ts index 71b6e93..cc5b95c 100644 --- a/src/funcs/petDsfsdff.ts +++ b/src/funcs/petPutPet.ts @@ -28,7 +28,7 @@ import { Result } from "../types/fp.js"; * @remarks * Update an existing pet by Id */ -export async function petDsfsdff( +export async function petPutPet( client: PetstoreCore, request: components.Pet, options?: RequestOptions, @@ -70,7 +70,7 @@ export async function petDsfsdff( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "dsfsdff", + operationID: "putPet", oAuth2Scopes: [], securitySource: client._options.apiKey, retryConfig: options?.retries diff --git a/src/lib/config.ts b/src/lib/config.ts index 3c1a73f..1df01b1 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -80,9 +80,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "2.0.0", - sdkVersion: "1.5.0", + openapiDocVersion: "3.0.0", + sdkVersion: "1.6.0", genVersion: "2.455.2", userAgent: - "speakeasy-sdk/typescript 1.5.0 2.455.2 2.0.0 ryan-simple-test-act", + "speakeasy-sdk/typescript 1.6.0 2.455.2 3.0.0 ryan-simple-test-act", } as const; diff --git a/src/sdk/pet.ts b/src/sdk/pet.ts index 32f0ee3..833f3c8 100644 --- a/src/sdk/pet.ts +++ b/src/sdk/pet.ts @@ -3,11 +3,11 @@ */ import { petDeletePet } from "../funcs/petDeletePet.js"; -import { petDsfsdff } from "../funcs/petDsfsdff.js"; import { petFindPetsByStatus } from "../funcs/petFindPetsByStatus.js"; import { petFindPetsByTags } from "../funcs/petFindPetsByTags.js"; import { petGetPetById } from "../funcs/petGetPetById.js"; import { petMyPet } from "../funcs/petMyPet.js"; +import { petPutPet } from "../funcs/petPutPet.js"; import { petUploadFile } from "../funcs/petUploadFile.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -21,11 +21,11 @@ export class Pet extends ClientSDK { * @remarks * Update an existing pet by Id */ - async dsfsdff( + async putPet( request: components.Pet, options?: RequestOptions, ): Promise { - return unwrapAsync(petDsfsdff( + return unwrapAsync(petPutPet( this, request, options,