Skip to content

Commit

Permalink
chore: speakeasy SDK regeneration (#15)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc v2, Speakeay CLI 1.4.8

* ci: regenerated with OpenAPI Doc v2, Speakeay CLI 1.5.0

* ci: regenerated with OpenAPI Doc v2, Speakeay CLI 1.5.3

---------

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Feb 25, 2023
1 parent 4c46f96 commit c4182eb
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 17 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@ yarn add circleci-v2-sdk

<!-- Start SDK Example Usage -->
```typescript
import { SDK, withSecurity} from "circleci-v2-sdk";
import { AddEnvironmentVariableToContextRequest, AddEnvironmentVariableToContextResponse } from "circleci-v2-sdk/src/sdk/models/operations";
import {
AddEnvironmentVariableToContextRequest,
AddEnvironmentVariableToContextResponse
} from "circleci-v2-sdk/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { SDK } from "circleci-v2-sdk";

const sdk = new SDK(withSecurity(
const sdk = new SDK({
security: {
apiKeyHeader: {
apiKey: "YOUR_API_KEY_HERE",
},
}
));
});

const req: AddEnvironmentVariableToContextRequest = {
pathParams: {
Expand Down
26 changes: 25 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,28 @@ Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.4.5 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.4.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.4.0 - .
- [NPM v3.4.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.4.0 - .

## Version 3.4.1
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.4.8 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.4.1] https://www.npmjs.com/package/circleci-v2-sdk/v/3.4.1 - .

## Version 3.5.0
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.5.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.5.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.5.0 - .

## Version 3.5.1
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.5.3 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.5.1] https://www.npmjs.com/package/circleci-v2-sdk/v/3.5.1 - .
12 changes: 8 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<!-- Start SDK Example Usage -->
```typescript
import { SDK, withSecurity} from "circleci-v2-sdk";
import { AddEnvironmentVariableToContextRequest, AddEnvironmentVariableToContextResponse } from "circleci-v2-sdk/src/sdk/models/operations";
import {
AddEnvironmentVariableToContextRequest,
AddEnvironmentVariableToContextResponse
} from "circleci-v2-sdk/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { SDK } from "circleci-v2-sdk";

const sdk = new SDK(withSecurity(
const sdk = new SDK({
security: {
apiKeyHeader: {
apiKey: "YOUR_API_KEY_HERE",
},
}
));
});

const req: AddEnvironmentVariableToContextRequest = {
pathParams: {
Expand Down
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
management:
openapi-checksum: 0c6121561ce31d6963ef2f43c337107a
openapi-checksum: f2d11c21e1741041c79c8b3369937e7a
openapi-version: v2
speakeasy-version: 1.4.5
speakeasy-version: 1.5.3
typescript:
version: 3.4.0
version: 3.5.1
packagename: circleci-v2-sdk
author: Speakeasy API
baseserverurl: https://circleci.com/api/v2/
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": "circleci-v2-sdk",
"version": "3.4.0",
"version": "3.5.1",
"author": "Speakeasy API",
"scripts": {
"prepare": "tsc --build"
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class SDK {
public _securityClient: AxiosInstance;
public _serverURL: string;
private _language = "typescript";
private _sdkVersion = "3.4.0";
private _genVersion = "1.4.5";
private _sdkVersion = "3.5.1";
private _genVersion = "1.5.3";

constructor(props: SDKProps) {
this._serverURL = props.serverUrl ?? ServerList[0];
Expand Down

0 comments on commit c4182eb

Please sign in to comment.