Skip to content

Commit ba33271

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.4.0 (#12)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/vanta/vanta/linting-report/50b20fc9ef63d9864570330feb9aa850> > OpenAPI Change report available at: <https://app.speakeasy.com/org/vanta/vanta/changes-report/3c5084d7b1ceef22a69a71420cfdf6ca> # SDK update ## Versioning Version Bump Type: [minor] - 🤖 (automated) <details open> <summary>OpenAPI Change Summary</summary> No specification changes </details> ## TYPESCRIPT CHANGELOG ## core: 3.26.0 - 2025-11-03 ### 🐝 New Features - allow additional package.json scripts to be defined *(commit by [@walker-tx](https://github.com/walker-tx))* ## core: 3.24.2 - 2025-10-30 ### 🐛 Bug Fixes - make security scheme resolution case-insensitive *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 3.24.1 - 2025-10-23 ### 🐛 Bug Fixes - prevent validation errors when response headers are not expected in all respone patterns *(commit by [@2ynn](https://github.com/2ynn))* ## core: 3.24.0 - 2025-10-23 ### 🐝 New Features - add full support for zodVersion v4 *(commit by [@mfbx9da4](https://github.com/mfbx9da4))* ## core: 3.23.0 - 2025-10-21 ### 🐝 New Features - add Zod v3 and v4 compatibility via zod/v3 import path *(commit by [@mfbx9da4](https://github.com/mfbx9da4))* ## core: 3.22.0 - 2025-10-13 ### 🐝 New Features - add config option for deep merging allOf nodes in OpenAPI specs *(commit by [@BlakeTheAwesome](https://github.com/BlakeTheAwesome))* ## core: 3.21.27 - 2025-10-09 ### 🐛 Bug Fixes - Fix reading environment variables in deno *(commit by [@subomi](https://github.com/subomi))* ## core: 3.21.26 - 2025-10-01 ### 🐛 Bug Fixes - add acceptHeaderEnum config to control Accept header enum generation *(commit by [@](https://github.com/))* ## core: 3.21.25 - 2025-09-23 ### 🐛 Bug Fixes - fix debug mode in env template *(commit by [@ryan-timothy-albert](https://github.com/ryan-timothy-albert))* ## core: 3.21.24 - 2025-09-23 ### 🐛 Bug Fixes - allow input/output models without suffixes *(commit by [@disintegrator](https://github.com/disintegrator))* ## core: 3.21.23 - 2025-09-18 ### 🔧 Chores - added snake case support for models in typescript *(commit by [@GorshkovIvan](https://github.com/GorshkovIvan))* ## core: 3.21.22 - 2025-09-02 ### 🐛 Bug Fixes - enabled empty strings to be used as end cursor values in pagination *(commit by [@GorshkovIvan](https://github.com/GorshkovIvan))* ## core: 3.21.21 - 2025-09-01 ### 🔧 Chores - added support for lowercase Bearer tokens in Authorization headers *(commit by [@GorshkovIvan](https://github.com/GorshkovIvan))* ## core: 3.21.20 - 2025-08-06 ### 🐛 Bug Fixes - Prevent dependency version mismatch between typescript 5.8 and typescript-eslint versions earlier than 8.26.0 *(commit by [@bflad](https://github.com/bflad))* ## core: 3.21.19 - 2025-08-01 ### 🐛 Bug Fixes - referencing models before declaration *(commit by [@mfbx9da4](https://github.com/mfbx9da4))* ## core: 3.21.18 - 2025-07-31 ### 🐛 Bug Fixes - potential issue using enum before declaration in model file *(commit by [@mfbx9da4](https://github.com/mfbx9da4))* ## core: 3.21.17 - 2025-07-30 ### 🐛 Bug Fixes - zodv4 compatibility issues *(commit by [@mfbx9da4](https://github.com/mfbx9da4))* ## core: 3.21.16 - 2025-07-24 ### 🔧 Chores - make usage snippets parsable *(commit by [@ThomasRooney](https://github.com/ThomasRooney))* ## core: 3.21.15 - 2025-07-15 ### 🐛 Bug Fixes - sanitize reserved keywords in function names to prevent compilation errors *(commit by [@AshGodfrey](https://github.com/AshGodfrey))* ## devContainers: 2.90.1 - 2025-09-18 ### 🔧 Chores - Prevent ts targets to run pre and post scripts when running npm install, prevents replication of Shai-Hulud attack *(commit by [@kanwardeep](https://github.com/Kanwardeep))* ## globalSecurity: 2.82.14 - 2025-09-10 ### 🔧 Chores - support opting out of operation security hoisting *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## globalServerURLs: 2.83.0 - 2025-10-22 ### 🐝 New Features - Allow server selection to appear in all code samples *(commit by [@BlakeTheAwesome](https://github.com/BlakeTheAwesome))* ## unions: 2.86.0 - 2025-10-01 ### 🐝 New Features - support nested discriminated unions *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## unions: 2.85.12 - 2025-09-25 ### 🐛 Bug Fixes - Fix discriminator mapping array being re-sorted as a side effect of our zod serialisation code *(commit by [@BlakeTheAwesome](https://github.com/BlakeTheAwesome))* Based on [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) 1.648.0 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 27e0f75 commit ba33271

File tree

85 files changed

+182
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+182
-147
lines changed

.devcontainer/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal
77
rmdir samples || true
88
mkdir samples
99

10-
npm install
11-
npm install -g ts-node
10+
npm install --ignore-scripts
11+
npm install -g ts-node --ignore-scripts
1212
npm link
1313
npm link vanta-auditor-api-sdk
1414
TS_CONFIG_CONTENT=$(cat <<EOL

.speakeasy/gen.lock

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@ id: 48344567-ff5d-4d9e-92eb-dfe908f362f2
33
management:
44
docChecksum: 32687d9ba29da014326cc097fdfff59d
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.583.0
7-
generationVersion: 2.658.3
8-
releaseVersion: 0.3.0
9-
configChecksum: b91da7768fbb2f57f5060768e05e54e1
6+
speakeasyVersion: 1.648.0
7+
generationVersion: 2.737.0
8+
releaseVersion: 0.4.0
9+
configChecksum: a1e44b2987d17da0c4bb47e803672ff8
1010
repoURL: https://github.com/VantaInc/vanta-auditor-api-sdk-typescript.git
1111
installationURL: https://github.com/VantaInc/vanta-auditor-api-sdk-typescript
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.12
17-
core: 3.21.14
17+
core: 3.26.0
1818
defaultEnabledRetries: 0.1.0
19-
devContainers: 2.90.0
19+
devContainers: 2.90.1
2020
enumUnions: 0.1.0
2121
envVarSecurityUsage: 0.1.2
22-
globalSecurity: 2.82.13
22+
globalSecurity: 2.82.14
2323
globalSecurityCallbacks: 0.1.0
2424
globalSecurityFlattening: 0.1.0
25-
globalServerURLs: 2.82.5
25+
globalServerURLs: 2.83.0
2626
mcpServer: 0.9.3
2727
nameOverrides: 2.81.2
2828
nullables: 0.1.1
2929
responseFormat: 0.2.3
3030
retries: 2.83.0
3131
sdkHooks: 0.3.0
32-
unions: 2.85.11
32+
unions: 2.86.0
3333
generatedFiles:
3434
- .devcontainer/README.md
3535
- .devcontainer/devcontainer.json
@@ -94,7 +94,6 @@ generatedFiles:
9494
- docs/models/operations/updateauditevidencerequest.md
9595
- docs/sdks/auditors/README.md
9696
- docs/sdks/audits/README.md
97-
- docs/sdks/vanta/README.md
9897
- eslint.config.mjs
9998
- examples/.env.template
10099
- examples/README.md

.speakeasy/gen.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,22 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
hoistGlobalSecurity: true
23+
schemas:
24+
allOfMergeStrategy: shallowMerge
2225
tests:
2326
generateTests: true
2427
generateNewTests: false
2528
skipResponseBodyAssertions: false
2629
typescript:
27-
version: 0.3.0
30+
version: 0.4.0
31+
acceptHeaderEnum: true
2832
additionalDependencies:
2933
dependencies: {}
3034
devDependencies: {}
3135
peerDependencies: {}
3236
additionalPackageJSON: {}
37+
additionalScripts: {}
3338
author: Speakeasy
3439
baseErrorName: VantaError
3540
clientServerStatusCodesAsErrors: true
@@ -55,9 +60,13 @@ typescript:
5560
jsonpath: legacy
5661
maxMethodParams: 0
5762
methodArguments: require-security-and-request
63+
modelPropertyCasing: camel
5864
moduleFormat: commonjs
5965
outputModelSuffix: output
6066
packageName: vanta-auditor-api-sdk
6167
responseFormat: flat
68+
sseFlatResponse: false
6269
templateVersion: v2
70+
usageSDKInitImports: []
6371
useIndexModules: true
72+
zodVersion: v3

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.583.0
1+
speakeasyVersion: 1.648.0
22
sources:
33
Conduct an audit:
44
sourceNamespace: conduct-an-audit
55
sourceRevisionDigest: sha256:234b914b23cf5d74d33cd7077560a45c8cba13a211f3bd8344041648d8733c2d
66
sourceBlobDigest: sha256:8fefc2fa168b537a6f137983f6366a1d8abe9ea0a01bc6d108c601431b922a5b
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1752107287
9+
- speakeasy-sdk-regen-1754440213
1010
- 1.0.0
1111
targets:
1212
vanta:
@@ -15,7 +15,7 @@ targets:
1515
sourceRevisionDigest: sha256:234b914b23cf5d74d33cd7077560a45c8cba13a211f3bd8344041648d8733c2d
1616
sourceBlobDigest: sha256:8fefc2fa168b537a6f137983f6366a1d8abe9ea0a01bc6d108c601431b922a5b
1717
codeSamplesNamespace: conduct-an-audit-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:ed572847c06a09b0e1f3d5e784af0b3a9ca9deebeb78e39163dfd13116ec76a1
18+
codeSamplesRevisionDigest: sha256:fa59bce732b963e1d3950940f282778e0ab72ea6bef36392e3dc2d0724b09c42
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ bun add vanta-auditor-api-sdk
6464
### Yarn
6565

6666
```bash
67-
yarn add vanta-auditor-api-sdk zod
68-
69-
# Note that Yarn does not install peer dependencies automatically. You will need
70-
# to install zod as shown above.
67+
yarn add vanta-auditor-api-sdk
7168
```
7269

7370

@@ -237,7 +234,6 @@ run();
237234
* [createCustomEvidenceRequest](docs/sdks/audits/README.md#createcustomevidencerequest) - Create a custom evidence request for an audit
238235
* [createCustomControl](docs/sdks/audits/README.md#createcustomcontrol) - Create a custom control for an audit
239236

240-
241237
</details>
242238
<!-- End Available Resources and Operations [operations] -->
243239

@@ -415,7 +411,7 @@ You can override the default server globally by passing a server index to the `s
415411
import { Vanta } from "vanta-auditor-api-sdk";
416412

417413
const vanta = new Vanta({
418-
serverIdx: 2,
414+
serverIdx: 0,
419415
bearerAuth: process.env["VANTA_BEARER_AUTH"] ?? "",
420416
});
421417

@@ -496,7 +492,7 @@ httpClient.addHook("requestError", (error, request) => {
496492
console.groupEnd();
497493
});
498494

499-
const sdk = new Vanta({ httpClient });
495+
const sdk = new Vanta({ httpClient: httpClient });
500496
```
501497
<!-- End Custom HTTP Client [http-client] -->
502498

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ Based on:
1818
### Generated
1919
- [typescript v0.3.0] .
2020
### Releases
21-
- [NPM v0.3.0] https://www.npmjs.com/package/vanta-auditor-api-sdk/v/0.3.0 - .
21+
- [NPM v0.3.0] https://www.npmjs.com/package/vanta-auditor-api-sdk/v/0.3.0 - .
22+
23+
## 2025-11-04 00:26:27
24+
### Changes
25+
Based on:
26+
- OpenAPI Doc
27+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
28+
### Generated
29+
- [typescript v0.4.0] .
30+
### Releases
31+
- [NPM v0.4.0] https://www.npmjs.com/package/vanta-auditor-api-sdk/v/0.4.0 - .

RUNTIMES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
44

5-
* [Web Fetch API][web-fetch]
6-
* [Web Streams API][web-streams] and in particular `ReadableStream`
7-
* [Async iterables][async-iter] using `Symbol.asyncIterator`
5+
- [Web Fetch API][web-fetch]
6+
- [Web Streams API][web-streams] and in particular `ReadableStream`
7+
- [Async iterables][async-iter] using `Symbol.asyncIterator`
88

99
[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
1010
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
@@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:
2525

2626
The following `tsconfig.json` options are recommended for projects using this
2727
SDK in order to get static type support for features like async iterables,
28-
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
28+
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
2929
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
3030
so on):
3131

@@ -38,11 +38,11 @@ so on):
3838
{
3939
"compilerOptions": {
4040
"target": "es2020", // or higher
41-
"lib": ["es2020", "dom", "dom.iterable"],
41+
"lib": ["es2020", "dom", "dom.iterable"]
4242
}
4343
}
4444
```
4545

4646
While `target` can be set to older ECMAScript versions, it may result in extra,
4747
unnecessary compatibility code being generated if you are not targeting old
48-
runtimes.
48+
runtimes.

docs/sdks/auditors/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Create an auditor in Vanta.
1313

1414
### Example Usage
1515

16+
<!-- UsageSnippet language="typescript" operationID="CreateAuditor" method="post" path="/auditors" -->
1617
```typescript
1718
import { Vanta } from "vanta-auditor-api-sdk";
1819

docs/sdks/audits/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Returns a paginated list of audits scoped to the audit firm.
2121

2222
### Example Usage
2323

24+
<!-- UsageSnippet language="typescript" operationID="ListAudits" method="get" path="/audits" -->
2425
```typescript
2526
import { Vanta } from "vanta-auditor-api-sdk";
2627

@@ -90,6 +91,7 @@ evidence is created or has a statusUpdatedAt field that is more recent than the
9091

9192
### Example Usage
9293

94+
<!-- UsageSnippet language="typescript" operationID="ListAuditEvidenceUrls" method="get" path="/audits/{auditId}/evidence/{auditEvidenceId}/urls" -->
9395
```typescript
9496
import { Vanta } from "vanta-auditor-api-sdk";
9597

@@ -164,6 +166,7 @@ Returns a paginated list of evidence for an audit.
164166

165167
### Example Usage
166168

169+
<!-- UsageSnippet language="typescript" operationID="ListAuditEvidence" method="get" path="/audits/{auditId}/evidence" -->
167170
```typescript
168171
import { Vanta } from "vanta-auditor-api-sdk";
169172

@@ -236,6 +239,7 @@ Returns a paginated list of comments for an audit.
236239

237240
### Example Usage
238241

242+
<!-- UsageSnippet language="typescript" operationID="ListAuditComments" method="get" path="/audits/{auditId}/comments" -->
239243
```typescript
240244
import { Vanta } from "vanta-auditor-api-sdk";
241245

@@ -308,6 +312,7 @@ Returns a paginated list of controls for an audit.
308312

309313
### Example Usage
310314

315+
<!-- UsageSnippet language="typescript" operationID="ListAuditControls" method="get" path="/audits/{auditId}/controls" -->
311316
```typescript
312317
import { Vanta } from "vanta-auditor-api-sdk";
313318

@@ -380,6 +385,7 @@ Create a comment in Vanta for a piece of evidence.
380385

381386
### Example Usage
382387

388+
<!-- UsageSnippet language="typescript" operationID="CreateCommentForAuditEvidence" method="post" path="/audits/{auditId}/evidence/{auditEvidenceId}/comments" -->
383389
```typescript
384390
import { Vanta } from "vanta-auditor-api-sdk";
385391

@@ -464,6 +470,7 @@ Update audit evidence.
464470

465471
### Example Usage
466472

473+
<!-- UsageSnippet language="typescript" operationID="UpdateAuditEvidence" method="patch" path="/audits/{auditId}/evidence/{auditEvidenceId}" -->
467474
```typescript
468475
import { Vanta } from "vanta-auditor-api-sdk";
469476

@@ -540,6 +547,7 @@ Create a custom evidence request for an audit.
540547

541548
### Example Usage
542549

550+
<!-- UsageSnippet language="typescript" operationID="CreateCustomEvidenceRequest" method="post" path="/audits/{auditId}/evidence/custom-evidence-requests" -->
543551
```typescript
544552
import { Vanta } from "vanta-auditor-api-sdk";
545553

@@ -636,6 +644,7 @@ Create a custom control for an audit.
636644

637645
### Example Usage
638646

647+
<!-- UsageSnippet language="typescript" operationID="CreateCustomControl" method="post" path="/audits/{auditId}/controls/custom-controls" -->
639648
```typescript
640649
import { Vanta } from "vanta-auditor-api-sdk";
641650

docs/sdks/vanta/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)