Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 6, 2024
1 parent 76de074 commit e13f2e6
Show file tree
Hide file tree
Showing 32 changed files with 282 additions and 154 deletions.
25 changes: 16 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
lockVersion: 2.0.0
id: ede0e8e6-5a63-4cc3-bd29-551cf1036a60
management:
docChecksum: 7c524b4be7afdadc4b2f448072865ac4
docChecksum: ad663a9a1829ad7aad87db01daf63b68
docVersion: 1.0.0
speakeasyVersion: 1.424.0
generationVersion: 2.445.1
releaseVersion: 0.2.2
configChecksum: c24de5394103ea6e7f2d76a694d39599
speakeasyVersion: 1.431.0
generationVersion: 2.451.0
releaseVersion: 0.3.0
configChecksum: f0c7fad458f2041c21196566143ebe5c
repoURL: https://github.com/ryan-timothy-albert/simple-ts-sdk.git
installationURL: https://github.com/ryan-timothy-albert/simple-ts-sdk
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.18.2
core: 3.18.3
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.1
envVarSecurityUsage: 0.1.2
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.4
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.1.0
sdkHooks: 0.2.0
tests: 0.7.0
uploadStreams: 0.1.0
generatedFiles:
Expand Down Expand Up @@ -72,11 +72,11 @@ generatedFiles:
- jsr.json
- package.json
- src/core.ts
- src/funcs/petAddPet.ts
- src/funcs/petDeletePet.ts
- src/funcs/petFindPetsByStatus.ts
- src/funcs/petFindPetsByTags.ts
- src/funcs/petGetPetById.ts
- src/funcs/petMyPet.ts
- src/funcs/petUpdatePet.ts
- src/funcs/petUploadFile.ts
- src/funcs/storeDeleteOrder.ts
Expand Down Expand Up @@ -337,3 +337,10 @@ examples:
application/json: {"status": 401, "error": "Unauthorized"}
"404":
application/json: {"status": 404, "error": "Not Found", "code": "object_not_found"}
myPet:
speakeasy-default-my-pet:
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>", "<value>"]}
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 0.2.2
version: 0.3.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
@@ -1,20 +1,20 @@
speakeasyVersion: 1.424.0
speakeasyVersion: 1.431.0
sources:
petstore-oas:
sourceNamespace: petstore-oas
sourceRevisionDigest: sha256:1417eff746788de6739d742a8014c8f78bb5d9859699e954ec3dedcc030f1fbe
sourceBlobDigest: sha256:849ab95113a7a54b7944402c86e88af54754f8ef15f449005e30ca17bac3f5a0
sourceRevisionDigest: sha256:eadd04b227959619f017f2669743325c9b790d05e382048066a36511d9391c98
sourceBlobDigest: sha256:79d4bec465be62dfc290bed016e16e2186dc5b82b50bdf76d80f099eff5a6071
tags:
- latest
- main
targets:
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
sourceRevisionDigest: sha256:1417eff746788de6739d742a8014c8f78bb5d9859699e954ec3dedcc030f1fbe
sourceBlobDigest: sha256:849ab95113a7a54b7944402c86e88af54754f8ef15f449005e30ca17bac3f5a0
sourceRevisionDigest: sha256:eadd04b227959619f017f2669743325c9b790d05e382048066a36511d9391c98
sourceBlobDigest: sha256:79d4bec465be62dfc290bed016e16e2186dc5b82b50bdf76d80f099eff5a6071
codeSamplesNamespace: petstore-oas-code-samples
codeSamplesRevisionDigest: sha256:ffa10ae982d7dee6171a3fb1fcb56ac75b1cfea44b50934841c46726f4cf5c04
codeSamplesRevisionDigest: sha256:fc0b6f04887b3fd1e246d8407fe4335dcd19c6535bca6414e4151d3c667ab8c5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ run();
### [pet](docs/sdks/pet/README.md)

* [updatePet](docs/sdks/pet/README.md#updatepet) - Update an existing pet
* [addPet](docs/sdks/pet/README.md#addpet) - Add a new pet to the store
* [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
* [getPetById](docs/sdks/pet/README.md#getpetbyid) - Find pet by ID
Expand Down Expand Up @@ -172,11 +172,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).

<summary>Available standalone functions</summary>

- [`petAddPet`](docs/sdks/pet/README.md#addpet) - Add a new pet to the store
- [`petDeletePet`](docs/sdks/pet/README.md#deletepet) - Deletes a 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
- [`petUpdatePet`](docs/sdks/pet/README.md#updatepet) - 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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,14 @@ Based on:
### Generated
- [typescript v0.2.2] .
### Releases
- [NPM v0.2.2] https://www.npmjs.com/package/ryan-simple-test-act/v/0.2.2 - .
- [NPM v0.2.2] https://www.npmjs.com/package/ryan-simple-test-act/v/0.2.2 - .

## 2024-11-06 00:26:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.0] .
### Releases
- [NPM v0.3.0] https://www.npmjs.com/package/ryan-simple-test-act/v/0.3.0 - .
10 changes: 5 additions & 5 deletions docs/sdks/pet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Find out more
### Available Operations

* [updatePet](#updatepet) - Update an existing pet
* [addPet](#addpet) - Add a new pet to the store
* [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
Expand Down Expand Up @@ -115,7 +115,7 @@ run();
| errors.ApiErrorNotFound | 404 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

## addPet
## myPet

Add a new pet to the store

Expand All @@ -129,7 +129,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.addPet({
const result = await petstore.pet.myPet({
id: 10,
name: "doggie",
category: {
Expand All @@ -154,7 +154,7 @@ The standalone function version of this method:

```typescript
import { PetstoreCore } from "ryan-simple-test-act/core.js";
import { petAddPet } from "ryan-simple-test-act/funcs/petAddPet.js";
import { petMyPet } from "ryan-simple-test-act/funcs/petMyPet.js";

// Use `PetstoreCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -163,7 +163,7 @@ const petstore = new PetstoreCore({
});

async function run() {
const res = await petAddPet(petstore, {
const res = await petMyPet(petstore, {
id: 10,
name: "doggie",
category: {
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": "0.2.2",
"version": "0.3.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": "0.2.2",
"version": "0.3.0",
"author": "ryan-timothy-albert",
"main": "./index.js",
"sideEffects": false,
Expand Down
12 changes: 8 additions & 4 deletions src/funcs/petDeletePet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ export async function petDeletePet(

const secConfig = await extractSecurity(client._options.apiKey);
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
const requestSecurity = resolveGlobalSecurity(securityInput);

const context = {
operationID: "deletePet",
oAuth2Scopes: [],
securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
|| { strategy: "none" },
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
};
const requestSecurity = resolveGlobalSecurity(securityInput);

const requestRes = client._createRequest(context, {
security: requestSecurity,
Expand All @@ -98,9 +103,8 @@ export async function petDeletePet(
const doResult = await client._do(req, {
context,
errorCodes: ["400", "401", "404", "4XX", "5XX"],
retryConfig: options?.retries
|| client._options.retryConfig,
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
if (!doResult.ok) {
return doResult;
Expand Down
12 changes: 8 additions & 4 deletions src/funcs/petFindPetsByStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,17 @@ export async function petFindPetsByStatus(

const secConfig = await extractSecurity(client._options.apiKey);
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
const requestSecurity = resolveGlobalSecurity(securityInput);

const context = {
operationID: "findPetsByStatus",
oAuth2Scopes: [],
securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
|| { strategy: "none" },
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
};
const requestSecurity = resolveGlobalSecurity(securityInput);

const requestRes = client._createRequest(context, {
security: requestSecurity,
Expand All @@ -96,9 +101,8 @@ export async function petFindPetsByStatus(
const doResult = await client._do(req, {
context,
errorCodes: ["400", "401", "404", "4XX", "5XX"],
retryConfig: options?.retries
|| client._options.retryConfig,
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
if (!doResult.ok) {
return doResult;
Expand Down
12 changes: 8 additions & 4 deletions src/funcs/petFindPetsByTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,17 @@ export async function petFindPetsByTags(

const secConfig = await extractSecurity(client._options.apiKey);
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
const requestSecurity = resolveGlobalSecurity(securityInput);

const context = {
operationID: "findPetsByTags",
oAuth2Scopes: [],
securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
|| { strategy: "none" },
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
};
const requestSecurity = resolveGlobalSecurity(securityInput);

const requestRes = client._createRequest(context, {
security: requestSecurity,
Expand All @@ -96,9 +101,8 @@ export async function petFindPetsByTags(
const doResult = await client._do(req, {
context,
errorCodes: ["400", "401", "404", "4XX", "5XX"],
retryConfig: options?.retries
|| client._options.retryConfig,
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
if (!doResult.ok) {
return doResult;
Expand Down
12 changes: 8 additions & 4 deletions src/funcs/petGetPetById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,17 @@ export async function petGetPetById(

const secConfig = await extractSecurity(client._options.apiKey);
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
const requestSecurity = resolveGlobalSecurity(securityInput);

const context = {
operationID: "getPetById",
oAuth2Scopes: [],
securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
|| { strategy: "none" },
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
};
const requestSecurity = resolveGlobalSecurity(securityInput);

const requestRes = client._createRequest(context, {
security: requestSecurity,
Expand All @@ -97,9 +102,8 @@ export async function petGetPetById(
const doResult = await client._do(req, {
context,
errorCodes: ["400", "401", "404", "4XX", "5XX"],
retryConfig: options?.retries
|| client._options.retryConfig,
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
if (!doResult.ok) {
return doResult;
Expand Down
16 changes: 10 additions & 6 deletions src/funcs/petAddPet.ts → src/funcs/petMyPet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
* @remarks
* Add a new pet to the store
*/
export async function petAddPet(
export async function petMyPet(
client: PetstoreCore,
request: components.Pet,
options?: RequestOptions,
Expand Down Expand Up @@ -63,12 +63,17 @@ export async function petAddPet(

const secConfig = await extractSecurity(client._options.apiKey);
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
const requestSecurity = resolveGlobalSecurity(securityInput);

const context = {
operationID: "addPet",
operationID: "myPet",
oAuth2Scopes: [],
securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
|| { strategy: "none" },
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
};
const requestSecurity = resolveGlobalSecurity(securityInput);

const requestRes = client._createRequest(context, {
security: requestSecurity,
Expand All @@ -86,9 +91,8 @@ export async function petAddPet(
const doResult = await client._do(req, {
context,
errorCodes: ["405", "4XX", "5XX"],
retryConfig: options?.retries
|| client._options.retryConfig,
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
if (!doResult.ok) {
return doResult;
Expand Down
Loading

0 comments on commit e13f2e6

Please sign in to comment.