Skip to content

Commit

Permalink
chore: speakeasy sdk regeneration - Generate (#20)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc v2, Speakeay CLI 1.13.0

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

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

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

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

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

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

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

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

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

---------

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Apr 6, 2023
1 parent 33fd4f7 commit a69c1bd
Show file tree
Hide file tree
Showing 90 changed files with 7,124 additions and 1,387 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
env:
browser: true
es2021: true
node: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
overrides: []
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- "@typescript-eslint"
rules:
"@typescript-eslint/no-explicit-any": "off"
"no-prototype-builtins": "off"
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ The CircleCI API Node SDK is a NPM library for accessing the resources that make
### NPM

```bash
npm add circleci-v2-sdk
npm add <UNSET>
```

### Yarn

```bash
yarn add circleci-v2-sdk
yarn add <UNSET>
```
<!-- End SDK Installation -->

Expand All @@ -26,23 +26,19 @@ import {
} from "circleci-v2-sdk/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { SDK } from "circleci-v2-sdk";
const sdk = new SDK({
import { Circleci } from "circleci-v2-sdk";
const sdk = new Circleci({
security: {
apiKeyHeader: {
apiKey: "YOUR_API_KEY_HERE",
},
apiKeyHeader: "YOUR_API_KEY_HERE",
},
});

const req: AddEnvironmentVariableToContextRequest = {
pathParams: {
contextId: "89bd9d8d-69a6-474e-8f46-7cc8796ed151",
envVarName: "est",
},
request: {
requestBody: {
value: "some-secret-value",
},
contextId: "89bd9d8d-69a6-474e-8f46-7cc8796ed151",
envVarName: "deserunt",
};

sdk.context.addEnvironmentVariableToContext(req).then((res: AddEnvironmentVariableToContextResponse | AxiosError) => {
Expand All @@ -52,7 +48,7 @@ sdk.context.addEnvironmentVariableToContext(req).then((res: AddEnvironmentVariab
<!-- End SDK Example Usage -->

<!-- Start SDK Available Operations -->
## SDK Available Operations
## Available Resources and Operations


### context
Expand Down
82 changes: 81 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,84 @@ Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.12.4 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.11.3] https://www.npmjs.com/package/circleci-v2-sdk/v/3.11.3 - .
- [NPM v3.11.3] https://www.npmjs.com/package/circleci-v2-sdk/v/3.11.3 - .

## 2023-03-22 00:47:09
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.13.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.12.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.12.0 - .

## 2023-03-23 00:47:15
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.15.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.13.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.13.0 - .

## 2023-03-24 00:47:52
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.17.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.14.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.14.0 - .

## 2023-03-25 00:46:20
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.18.7 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.15.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.15.0 - .

## 2023-03-28 00:50:47
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.18.9 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.15.1] https://www.npmjs.com/package/circleci-v2-sdk/v/3.15.1 - .

## 2023-03-29 00:54:16
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.19.2 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.16.0] https://www.npmjs.com/package/circleci-v2-sdk/v/3.16.0 - .

## 2023-03-30 00:50:34
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.19.2 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.16.1] https://www.npmjs.com/package/circleci-v2-sdk/v/3.16.1 - .

## 2023-04-01 00:48:24
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.19.3 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.16.2] https://www.npmjs.com/package/circleci-v2-sdk/v/3.16.2 - .

## 2023-04-05 00:38:51
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.19.3 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.16.3] https://www.npmjs.com/package/circleci-v2-sdk/v/3.16.3 - .

## 2023-04-06 00:43:41
### Changes
Based on:
- OpenAPI Doc v2 https://circleci.com/api/v2/openapi.json
- Speakeasy CLI 1.19.6 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v3.16.4] https://www.npmjs.com/package/circleci-v2-sdk/v/3.16.4 - .
16 changes: 6 additions & 10 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,19 @@ import {
} from "circleci-v2-sdk/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { SDK } from "circleci-v2-sdk";
const sdk = new SDK({
import { Circleci } from "circleci-v2-sdk";
const sdk = new Circleci({
security: {
apiKeyHeader: {
apiKey: "YOUR_API_KEY_HERE",
},
apiKeyHeader: "YOUR_API_KEY_HERE",
},
});

const req: AddEnvironmentVariableToContextRequest = {
pathParams: {
contextId: "89bd9d8d-69a6-474e-8f46-7cc8796ed151",
envVarName: "est",
},
request: {
requestBody: {
value: "some-secret-value",
},
contextId: "89bd9d8d-69a6-474e-8f46-7cc8796ed151",
envVarName: "deserunt",
};

sdk.context.addEnvironmentVariableToContext(req).then((res: AddEnvironmentVariableToContextResponse | AxiosError) => {
Expand Down
1 change: 1 addition & 0 deletions files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ src/sdk/user.ts
src/sdk/webhook.ts
src/sdk/workflow.ts
src/sdk/sdk.ts
.eslintrc.yml
jest.config.js
package-lock.json
package.json
Expand Down
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
configVersion: 1.0.0
management:
docChecksum: 24670579f3cbf0c0388e3ab6ba1b8be6
docChecksum: 794632fee4579b37962cc29d38b16472
docVersion: v2
speakeasyVersion: 1.12.4
speakeasyVersion: 1.19.6
generation:
baseServerUrl: https://circleci.com/api/v2/
telemetryEnabled: false
sdkClassName: circleci
sdkFlattening: true
typescript:
version: 3.11.3
version: 3.16.4
author: Speakeasy API
packageName: circleci-v2-sdk
9 changes: 3 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
verbose: false,
testPathIgnorePatterns: [
"<rootDir>/__tests__/helpers.ts"
]
preset: "ts-jest",
testEnvironment: "node",
testPathIgnorePatterns: ["<rootDir>/__tests__/helpers.ts"],
};
Loading

0 comments on commit a69c1bd

Please sign in to comment.