Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0, Speakeay CLI 1.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 13, 2023
1 parent 67c4b84 commit 42a6633
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { EnrichCompanyResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,12 @@ Based on:
- OpenAPI Doc 1.0 https://prod.speakeasyapi.dev/v1/apis/Structure/version/1.0.0/schema/download
- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v0.9.4] https://www.npmjs.com/package/structure-ac/v/0.9.4 - .
- [NPM v0.9.4] https://www.npmjs.com/package/structure-ac/v/0.9.4 - .

## 2023-05-13 00:33:34
### Changes
Based on:
- OpenAPI Doc 1.0 https://prod.speakeasyapi.dev/v1/apis/Structure/version/1.0.0/schema/download
- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v0.10.0] https://www.npmjs.com/package/structure-ac/v/0.10.0 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { EnrichCompanyResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand Down
2 changes: 1 addition & 1 deletion docs/accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ListUsersResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand Down
8 changes: 4 additions & 4 deletions docs/companies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { EnrichCompanyResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand All @@ -48,7 +48,7 @@ import { ListEmployeesResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand All @@ -75,7 +75,7 @@ import { ListJobsResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand All @@ -102,7 +102,7 @@ import { SearchCompaniesResponse } from "structure-ac/dist/sdk/models/operations

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand Down
4 changes: 2 additions & 2 deletions docs/people/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { EnrichPersonResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand All @@ -46,7 +46,7 @@ import { SearchPeopleResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand Down
4 changes: 2 additions & 2 deletions docs/user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { LoginResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand All @@ -47,7 +47,7 @@ import { MeResponse } from "structure-ac/dist/sdk/models/operations";

const sdk = new Structure({
security: {
bearerAuth: "Bearer YOUR_BEARER_TOKEN_HERE",
bearerAuth: "YOUR_BEARER_TOKEN_HERE",
},
});

Expand Down
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ configVersion: 1.0.0
management:
docChecksum: e0bf2d205ca94a0d32bd91d6ea558d5b
docVersion: "1.0"
speakeasyVersion: 1.30.1
generationVersion: 2.26.4
speakeasyVersion: 1.31.1
generationVersion: 2.27.0
generation:
telemetryEnabled: false
sdkClassName: structure
singleTagPerOp: false
typescript:
version: 0.9.4
version: 0.10.0
author: structure
maxMethodParams: 0
packageName: structure-ac
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": "structure-ac",
"version": "0.9.4",
"version": "0.10.0",
"author": "structure",
"scripts": {
"prepare": "tsc --build"
Expand Down
2 changes: 1 addition & 1 deletion src/internal/utils/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function parseSecuritySchemeValue(
case "basic":
break;
case "bearer":
client.defaults.headers.common[securityDecorator.Name] = value;
client.defaults.headers.common[securityDecorator.Name] = value.toLowerCase().startsWith("bearer ") ? value : `Bearer ${value}`;
break;
default:
throw new Error("not supported");
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class Structure {
public _securityClient: AxiosInstance;
public _serverURL: string;
private _language = "typescript";
private _sdkVersion = "0.9.4";
private _genVersion = "2.26.4";
private _sdkVersion = "0.10.0";
private _genVersion = "2.27.0";
private _globals: any;

constructor(props?: SDKProps) {
Expand Down

0 comments on commit 42a6633

Please sign in to comment.