Skip to content

Commit

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

chore: 🐝 Update SDK - Generate ACCOUNTING 0.2.1
  • Loading branch information
ryan-timothy-albert authored Aug 30, 2024
2 parents 31275f6 + d019d8d commit 39f5ba6
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
speakeasyVersion: 1.378.0
speakeasyVersion: 1.385.0
sources:
source1:
sourceNamespace: source-1
sourceRevisionDigest: sha256:429d7585fe3e0d880661c3f9df4fcb1705c94bf4bf705fd516aaa2a030a93dd1
sourceRevisionDigest: sha256:3fb3e81ec2a507003fee98a817511e88be504b568c5a088fdbd62b12e8cd71da
sourceBlobDigest: sha256:7c35756702030633a8d2ebb1d378d34f883126319b06edcd798ac7bb2fddb189
tags:
- latest
Expand All @@ -11,7 +11,7 @@ targets:
accounting:
source: source1
sourceNamespace: source-1
sourceRevisionDigest: sha256:00d024558a05b3efdf72d1e2e3fbe7070c818b431d7f3f054b0418ba11990f53
sourceRevisionDigest: sha256:3fb3e81ec2a507003fee98a817511e88be504b568c5a088fdbd62b12e8cd71da
sourceBlobDigest: sha256:7c35756702030633a8d2ebb1d378d34f883126319b06edcd798ac7bb2fddb189
outLocation: ./accounting
finance:
Expand Down
10 changes: 5 additions & 5 deletions accounting/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: de44aa14-d51e-4f37-b22e-356d78ca0ebc
management:
docChecksum: 1bdb7a6f8bf3995d4b40475228403253
docVersion: 1.0.0
speakeasyVersion: 1.378.0
generationVersion: 2.404.3
releaseVersion: 0.2.0
configChecksum: 12277291f7c38a0195813d685ee064c6
speakeasyVersion: 1.385.0
generationVersion: 2.407.2
releaseVersion: 0.2.1
configChecksum: 5308cfc1857be579cbb823b6aacafcb0
repoURL: https://github.com/ryan-timothy-albert/sample-ts-monorepo.git
repoSubDirectory: accounting
installationURL: https://gitpkg.now.sh/ryan-timothy-albert/sample-ts-monorepo/accounting
published: true
features:
typescript:
additionalDependencies: 0.1.0
core: 3.14.1
core: 3.14.2
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.1
globalSecurityCallbacks: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion accounting/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 0.2.0
version: 0.2.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
23 changes: 23 additions & 0 deletions accounting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,32 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/advanced-setup/publish-sdks)
- [ ] ✨ When ready to productionize, delete this section from the README

<!-- Start Summary [summary] -->
## Summary


<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
## Table of Contents

* [SDK Installation](#sdk-installation)
* [Requirements](#requirements)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Standalone functions](#standalone-functions)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Debugging](#debugging)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
## SDK Installation

The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.

### NPM

```bash
Expand Down
12 changes: 11 additions & 1 deletion accounting/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,14 @@ Based on:
### Generated
- [typescript v0.2.0] accounting
### Releases
- [NPM v0.2.0] https://www.npmjs.com/package/ryan-accounting/v/0.2.0 - accounting
- [NPM v0.2.0] https://www.npmjs.com/package/ryan-accounting/v/0.2.0 - accounting

## 2024-08-30 21:01:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.385.0 (2.407.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.2.1] accounting
### Releases
- [NPM v0.2.1] https://www.npmjs.com/package/ryan-accounting/v/0.2.1 - accounting
2 changes: 1 addition & 1 deletion accounting/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "ryan-accounting",
"version": "0.2.0",
"version": "0.2.1",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions accounting/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions accounting/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ryan-accounting",
"version": "0.2.0",
"author": "ryan-timothy-albert",
"version": "0.2.1",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions accounting/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "0.2.0",
genVersion: "2.404.3",
userAgent: "speakeasy-sdk/typescript 0.2.0 2.404.3 1.0.0 ryan-accounting",
sdkVersion: "0.2.1",
genVersion: "2.407.2",
userAgent: "speakeasy-sdk/typescript 0.2.1 2.407.2 1.0.0 ryan-accounting",
} as const;
13 changes: 12 additions & 1 deletion accounting/src/lib/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,20 @@ type SecurityInputOAuth2ClientCredentials = {
value: { clientID?: string | undefined; clientSecret?: string | undefined } | null | undefined;
};

type SecurityInputCustom = {
type: "http:custom";
value: any | null | undefined;
fieldName: string;
};

export type SecurityInput =
| SecurityInputBasic
| SecurityInputBearer
| SecurityInputAPIKey
| SecurityInputOAuth2
| SecurityInputOAuth2ClientCredentials
| SecurityInputOIDC;
| SecurityInputOIDC
| SecurityInputCustom;

export function resolveSecurity(...options: SecurityInput[][]): SecurityState | null {
const state: SecurityState = {
Expand All @@ -90,6 +97,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
return false;
} else if (o.type === "http:basic") {
return o.value.username != null || o.value.password != null;
} else if (o.type === "http:custom") {
return null;
} else if (o.type === "oauth2:client_credentials") {
return o.value.clientID != null || o.value.clientSecret != null;
} else if (typeof o.value === "string") {
Expand Down Expand Up @@ -125,6 +134,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
case "http:basic":
applyBasic(state, spec);
break;
case "http:custom":
break;
case "http:bearer":
applyBearer(state, spec);
break;
Expand Down

0 comments on commit 39f5ba6

Please sign in to comment.