diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f95ddf6..1ab7134 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -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 @@ -11,7 +11,7 @@ targets: accounting: source: source1 sourceNamespace: source-1 - sourceRevisionDigest: sha256:00d024558a05b3efdf72d1e2e3fbe7070c818b431d7f3f054b0418ba11990f53 + sourceRevisionDigest: sha256:3fb3e81ec2a507003fee98a817511e88be504b568c5a088fdbd62b12e8cd71da sourceBlobDigest: sha256:7c35756702030633a8d2ebb1d378d34f883126319b06edcd798ac7bb2fddb189 outLocation: ./accounting finance: diff --git a/accounting/.speakeasy/gen.lock b/accounting/.speakeasy/gen.lock index f22d5fa..086b992 100755 --- a/accounting/.speakeasy/gen.lock +++ b/accounting/.speakeasy/gen.lock @@ -3,10 +3,10 @@ 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 @@ -14,7 +14,7 @@ management: 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 diff --git a/accounting/.speakeasy/gen.yaml b/accounting/.speakeasy/gen.yaml index f111206..a7f40dd 100644 --- a/accounting/.speakeasy/gen.yaml +++ b/accounting/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.2.0 + version: 0.2.1 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/accounting/README.md b/accounting/README.md index 2efe826..72654a6 100644 --- a/accounting/README.md +++ b/accounting/README.md @@ -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 + +## Summary + + + + + +## 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) + + ## 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 diff --git a/accounting/RELEASES.md b/accounting/RELEASES.md index 8857625..0f05a7e 100644 --- a/accounting/RELEASES.md +++ b/accounting/RELEASES.md @@ -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 \ No newline at end of file +- [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 \ No newline at end of file diff --git a/accounting/jsr.json b/accounting/jsr.json index 24406a7..3b4e50c 100644 --- a/accounting/jsr.json +++ b/accounting/jsr.json @@ -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", diff --git a/accounting/package-lock.json b/accounting/package-lock.json index 55494c1..a6280af 100644 --- a/accounting/package-lock.json +++ b/accounting/package-lock.json @@ -1,12 +1,12 @@ { "name": "ryan-accounting", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ryan-accounting", - "version": "0.2.0", + "version": "0.2.1", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/accounting/package.json b/accounting/package.json index 0cd942b..07d9234 100644 --- a/accounting/package.json +++ b/accounting/package.json @@ -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": { diff --git a/accounting/src/lib/config.ts b/accounting/src/lib/config.ts index d88d916..cf50b5e 100644 --- a/accounting/src/lib/config.ts +++ b/accounting/src/lib/config.ts @@ -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; diff --git a/accounting/src/lib/security.ts b/accounting/src/lib/security.ts index 94dcf92..d529ec7 100644 --- a/accounting/src/lib/security.ts +++ b/accounting/src/lib/security.ts @@ -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 = { @@ -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") { @@ -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;