Skip to content

Commit

Permalink
Merge pull request #57 from ryan-timothy-albert/speakeasy-sdk-regen-1…
Browse files Browse the repository at this point in the history
…734387625

chore: 🐝 Update SDK - Generate PETSTORE 5.2.0-alpha.7
  • Loading branch information
ryan-timothy-albert authored Dec 16, 2024
2 parents 382eb7f + 9f2362e commit d044c76
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 50 deletions.
21 changes: 17 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -421,4 +421,17 @@ examples:
responses:
"200":
application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["<value>"]}
petsStoreMonday:
speakeasy-default-pets-store-monday:
requestBody:
application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["<value>"]}
responses:
"200":
application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["<value>", "<value>"]}
"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: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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: {
Expand All @@ -39,7 +39,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand Down
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -113,7 +113,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: {
Expand All @@ -258,7 +257,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
}, {
retries: {
Expand Down Expand Up @@ -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: {
Expand All @@ -309,7 +307,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand All @@ -325,7 +322,7 @@ run();
<!-- Start Error Handling [errors] -->
## 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 |
| --------------------------- | ----------- | ---------------- |
Expand All @@ -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: {
Expand All @@ -361,7 +358,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand Down Expand Up @@ -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: {
Expand All @@ -446,7 +442,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand Down Expand Up @@ -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: {
Expand All @@ -537,7 +532,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
3 changes: 1 addition & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -16,7 +16,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand Down
12 changes: 5 additions & 7 deletions docs/sdks/pet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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
* [getPetByIDS](#getpetbyids) - Find pet by ID
* [deletePet](#deletepet) - Deletes a pet
* [uploadFile](#uploadfile) - uploads an image

## sit
## petsStoreMonday

Update an existing pet by Id

Expand All @@ -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: {
Expand All @@ -41,7 +41,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand All @@ -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.
Expand All @@ -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: {
Expand All @@ -76,7 +75,6 @@ async function run() {
},
photoUrls: [
"<value>",
"<value>",
],
});

Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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": "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,
Expand Down
4 changes: 2 additions & 2 deletions src/funcs/petSit.ts → src/funcs/petPetsStoreMonday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -70,7 +70,7 @@ export async function petSit(
const requestSecurity = resolveGlobalSecurity(securityInput);

const context = {
operationID: "sit",
operationID: "petsStoreMonday",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Loading

0 comments on commit d044c76

Please sign in to comment.