Skip to content

Commit

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

chore: 🐝 Update SDK - Generate 1.6.0
  • Loading branch information
ryan-timothy-albert authored Nov 8, 2024
2 parents f17c074 + fa68409 commit 02d6867
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 52 deletions.
23 changes: 18 additions & 5 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: 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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": ["<value>", "<value>"]}
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"}
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: 1.5.0
version: 1.6.0
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,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
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 { 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.
Expand All @@ -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: {
Expand All @@ -40,7 +40,6 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

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

Expand All @@ -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
Expand Down Expand Up @@ -174,11 +173,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
<summary>Available standalone functions</summary>

- [`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
Expand Down Expand Up @@ -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: {
Expand All @@ -254,7 +253,6 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
}, {
retries: {
Expand Down Expand Up @@ -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: {
Expand All @@ -306,7 +304,6 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

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

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

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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
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.dsfsdff({
const result = await petstore.pet.putPet({
id: 10,
name: "doggie",
category: {
Expand All @@ -17,7 +17,6 @@ async function run() {
photoUrls: [
"<value>",
"<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

### 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
* [getPetById](#getpetbyid) - Find pet by ID
* [deletePet](#deletepet) - Deletes a pet
* [uploadFile](#uploadfile) - uploads an image

## dsfsdff
## putPet

Update an existing pet by Id

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

Expand All @@ -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.
Expand All @@ -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: {
Expand All @@ -78,7 +77,6 @@ async function run() {
photoUrls: [
"<value>",
"<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": "1.5.0",
"version": "1.6.0",
"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": "1.5.0",
"version": "1.6.0",
"author": "ryan-timothy-albert",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions src/funcs/petDsfsdff.ts → src/funcs/petPutPet.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 petDsfsdff(
export async function petPutPet(
client: PetstoreCore,
request: components.Pet,
options?: RequestOptions,
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Loading

0 comments on commit 02d6867

Please sign in to comment.