From 9f2362e99ce7959754f21effde955048ef9fd7ec Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 16 Dec 2024 22:20:53 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.455.7 --- .speakeasy/gen.lock | 21 ++++++++++++---- .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 +- .../{petSit.ts => petPetsStoreMonday.ts} | 4 ++-- src/lib/config.ts | 4 ++-- src/sdk/pet.ts | 6 ++--- 14 files changed, 63 insertions(+), 50 deletions(-) rename src/funcs/{petSit.ts => petPetsStoreMonday.ts} (97%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8cf2091..004c80b 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: a86d8ff42d315d2a778b434d716e2d1f + docChecksum: 1065214a2aa46aa7d5a83999c2311add docVersion: 4.0.0 speakeasyVersion: 1.455.7 generationVersion: 2.480.1 - releaseVersion: 5.2.0-alpha.6 - configChecksum: ae609da663d2e77fb2dcb768a6db267b + releaseVersion: 5.2.0-alpha.7 + configChecksum: f62e8b840aa342702528e2c293aebd6d repoURL: https://github.com/ryan-timothy-albert/simple-ts-sdk.git installationURL: https://github.com/ryan-timothy-albert/simple-ts-sdk published: true @@ -76,7 +76,7 @@ generatedFiles: - src/funcs/petFindPetsByTags.ts - src/funcs/petGetPetByIDS.ts - src/funcs/petMyTestPets.ts - - src/funcs/petSit.ts + - src/funcs/petPetsStoreMonday.ts - src/funcs/petUploadFile.ts - src/funcs/storeDeleteOrder.ts - src/funcs/storeGetInventory.ts @@ -421,4 +421,17 @@ examples: responses: "200": application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": [""]} + petsStoreMonday: + speakeasy-default-pets-store-monday: + 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"} generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index aca3053..9951f4d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,7 +16,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false typescript: - version: 5.2.0-alpha.6 + version: 5.2.0-alpha.7 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 976dfa1..935b4f8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.455.7 sources: petstore-oas: sourceNamespace: petstore-oas - sourceRevisionDigest: sha256:ffbcd2e1e2d093276bc77dd0c63b55cea50a56f848bee1ef376cf8087c7d7f81 - sourceBlobDigest: sha256:e89323ed3dc34f2820b8e93fc99400f488cc9f7a48af0475b15239adbbaa2868 + sourceRevisionDigest: sha256:15086000fc4ec12cf2945a4007359e37b5bbb2565cc4e892aed22e7233c10d92 + sourceBlobDigest: sha256:77c1a8df1c9555fc226f5752722e51a65c55d424b60f49b7dbdf78e43cc41276 tags: - latest - - speakeasy-sdk-regen-1734385598 + - speakeasy-sdk-regen-1734387625 - 4.0.0 targets: petstore: source: petstore-oas sourceNamespace: petstore-oas - sourceRevisionDigest: sha256:ffbcd2e1e2d093276bc77dd0c63b55cea50a56f848bee1ef376cf8087c7d7f81 - sourceBlobDigest: sha256:e89323ed3dc34f2820b8e93fc99400f488cc9f7a48af0475b15239adbbaa2868 + sourceRevisionDigest: sha256:15086000fc4ec12cf2945a4007359e37b5bbb2565cc4e892aed22e7233c10d92 + sourceBlobDigest: sha256:77c1a8df1c9555fc226f5752722e51a65c55d424b60f49b7dbdf78e43cc41276 codeSamplesNamespace: petstore-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:f634b1aa61e254c36b2876f35a0d40662dd931f79873599e519bbc123f2e1afb + codeSamplesRevisionDigest: sha256:4a45905525a5708db021fee8a5f32c068a96715adc4e8421210352a2f6ad80f8 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 5004c64..c839832 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 { petSit } from "ryan-simple-test-act/funcs/petSit.js"; +import { petPetsStoreMonday } from "ryan-simple-test-act/funcs/petPetsStoreMonday.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 petSit(petstore, { + const res = await petPetsStoreMonday(petstore, { id: 10, name: "doggie", category: { @@ -39,7 +39,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); diff --git a/README.md b/README.md index a37f908..ce5b26f 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -113,7 +113,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); @@ -134,7 +133,7 @@ run(); ### [pet](docs/sdks/pet/README.md) -* [sit](docs/sdks/pet/README.md#sit) - Update an existing pet +* [petsStoreMonday](docs/sdks/pet/README.md#petsstoremonday) - Update an existing pet * [myTestPets](docs/sdks/pet/README.md#mytestpets) - Add a new pet to the store * [findPetsByStatusTypes](docs/sdks/pet/README.md#findpetsbystatustypes) - Finds Pets by status * [findPetsByTags](docs/sdks/pet/README.md#findpetsbytags) - Finds Pets by tags @@ -183,7 +182,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`petFindPetsByTags`](docs/sdks/pet/README.md#findpetsbytags) - Finds Pets by tags - [`petGetPetByIDS`](docs/sdks/pet/README.md#getpetbyids) - Find pet by ID - [`petMyTestPets`](docs/sdks/pet/README.md#mytestpets) - Add a new pet to the store -- [`petSit`](docs/sdks/pet/README.md#sit) - Update an existing pet +- [`petPetsStoreMonday`](docs/sdks/pet/README.md#petsstoremonday) - 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 @@ -249,7 +248,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -258,7 +257,6 @@ async function run() { }, photoUrls: [ "", - "", ], }, { retries: { @@ -300,7 +298,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -309,7 +307,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); @@ -325,7 +322,7 @@ run(); ## Error Handling -Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `sit` method may throw the following errors: +Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `petsStoreMonday` method may throw the following errors: | Error Type | Status Code | Content Type | | --------------------------- | ----------- | ---------------- | @@ -352,7 +349,7 @@ const petstore = new Petstore({ async function run() { let result; try { - result = await petstore.pet.sit({ + result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -361,7 +358,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); @@ -437,7 +433,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -446,7 +442,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); @@ -528,7 +523,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -537,7 +532,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); diff --git a/RELEASES.md b/RELEASES.md index 56d41c2..603b08a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -492,4 +492,14 @@ Based on: ### Generated - [typescript v5.2.0-alpha.6] . ### Releases -- [NPM v5.2.0-alpha.6] https://www.npmjs.com/package/ryan-simple-test-act/v/5.2.0-alpha.6 - . \ No newline at end of file +- [NPM v5.2.0-alpha.6] https://www.npmjs.com/package/ryan-simple-test-act/v/5.2.0-alpha.6 - . + +## 2024-12-16 22:20:21 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.455.7 (2.480.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v5.2.0-alpha.7] . +### Releases +- [NPM v5.2.0-alpha.7] https://www.npmjs.com/package/ryan-simple-test-act/v/5.2.0-alpha.7 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 22c11f2..4ecec41 100644 --- a/USAGE.md +++ b/USAGE.md @@ -7,7 +7,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -16,7 +16,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); diff --git a/docs/sdks/pet/README.md b/docs/sdks/pet/README.md index 582d4e2..4829a13 100644 --- a/docs/sdks/pet/README.md +++ b/docs/sdks/pet/README.md @@ -10,7 +10,7 @@ Find out more dfdsiojfidjs ### Available Operations -* [sit](#sit) - Update an existing pet +* [petsStoreMonday](#petsstoremonday) - Update an existing pet * [myTestPets](#mytestpets) - Add a new pet to the store * [findPetsByStatusTypes](#findpetsbystatustypes) - Finds Pets by status * [findPetsByTags](#findpetsbytags) - Finds Pets by tags @@ -18,7 +18,7 @@ Find out more dfdsiojfidjs * [deletePet](#deletepet) - Deletes a pet * [uploadFile](#uploadfile) - uploads an image -## sit +## petsStoreMonday Update an existing pet by Id @@ -32,7 +32,7 @@ const petstore = new Petstore({ }); async function run() { - const result = await petstore.pet.sit({ + const result = await petstore.pet.petsStoreMonday({ id: 10, name: "doggie", category: { @@ -41,7 +41,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); @@ -58,7 +57,7 @@ The standalone function version of this method: ```typescript import { PetstoreCore } from "ryan-simple-test-act/core.js"; -import { petSit } from "ryan-simple-test-act/funcs/petSit.js"; +import { petPetsStoreMonday } from "ryan-simple-test-act/funcs/petPetsStoreMonday.js"; // Use `PetstoreCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -67,7 +66,7 @@ const petstore = new PetstoreCore({ }); async function run() { - const res = await petSit(petstore, { + const res = await petPetsStoreMonday(petstore, { id: 10, name: "doggie", category: { @@ -76,7 +75,6 @@ async function run() { }, photoUrls: [ "", - "", ], }); diff --git a/jsr.json b/jsr.json index f5298ca..1b2595c 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "ryan-simple-test-act", - "version": "5.2.0-alpha.6", + "version": "5.2.0-alpha.7", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index a763381..a842c8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ryan-simple-test-act", - "version": "5.2.0-alpha.6", + "version": "5.2.0-alpha.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ryan-simple-test-act", - "version": "5.2.0-alpha.6", + "version": "5.2.0-alpha.7", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 64122d3..abf64c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ryan-simple-test-act", - "version": "5.2.0-alpha.6", + "version": "5.2.0-alpha.7", "author": "ryan-timothy-albert", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/petSit.ts b/src/funcs/petPetsStoreMonday.ts similarity index 97% rename from src/funcs/petSit.ts rename to src/funcs/petPetsStoreMonday.ts index 1d444a8..29f72cf 100644 --- a/src/funcs/petSit.ts +++ b/src/funcs/petPetsStoreMonday.ts @@ -28,7 +28,7 @@ import { Result } from "../types/fp.js"; * @remarks * Update an existing pet by Id */ -export async function petSit( +export async function petPetsStoreMonday( client: PetstoreCore, request: components.Pet, options?: RequestOptions, @@ -70,7 +70,7 @@ export async function petSit( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "sit", + operationID: "petsStoreMonday", oAuth2Scopes: [], resolvedSecurity: requestSecurity, diff --git a/src/lib/config.ts b/src/lib/config.ts index 1c0d28f..cb0d1df 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -81,8 +81,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "4.0.0", - sdkVersion: "5.2.0-alpha.6", + sdkVersion: "5.2.0-alpha.7", genVersion: "2.480.1", userAgent: - "speakeasy-sdk/typescript 5.2.0-alpha.6 2.480.1 4.0.0 ryan-simple-test-act", + "speakeasy-sdk/typescript 5.2.0-alpha.7 2.480.1 4.0.0 ryan-simple-test-act", } as const; diff --git a/src/sdk/pet.ts b/src/sdk/pet.ts index 55e1a85..1d1ca38 100644 --- a/src/sdk/pet.ts +++ b/src/sdk/pet.ts @@ -7,7 +7,7 @@ import { petFindPetsByStatusTypes } from "../funcs/petFindPetsByStatusTypes.js"; import { petFindPetsByTags } from "../funcs/petFindPetsByTags.js"; import { petGetPetByIDS } from "../funcs/petGetPetByIDS.js"; import { petMyTestPets } from "../funcs/petMyTestPets.js"; -import { petSit } from "../funcs/petSit.js"; +import { petPetsStoreMonday } from "../funcs/petPetsStoreMonday.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 sit( + async petsStoreMonday( request: components.Pet, options?: RequestOptions, ): Promise { - return unwrapAsync(petSit( + return unwrapAsync(petPetsStoreMonday( this, request, options,