Skip to content

Commit 4b68a50

Browse files
committed
generated files
1 parent b9a6dfb commit 4b68a50

File tree

194 files changed

+21844
-0
lines changed

Some content is hidden

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

194 files changed

+21844
-0
lines changed

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
10+
# This allows generated code to be indexed correctly
11+
*.java linguist-generated=false
12+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
# Ignore Gradle build output directory
4+
build
5+
bin/
6+
# Ignore IDE-specific configs
7+
.project
8+
.settings/
9+
.DS_Store
10+
.speakeasy/reports

.speakeasy/gen.lock

Lines changed: 301 additions & 0 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
configVersion: 2.0.0
2+
generation:
3+
sdkClassName: Vanta
4+
maintainOpenAPIOrder: true
5+
usageSnippets:
6+
optionalPropertyRendering: withExample
7+
useClassNamesForArrayFields: true
8+
fixes:
9+
nameResolutionDec2023: true
10+
parameterOrderingFeb2024: true
11+
requestResponseComponentNamesFeb2024: true
12+
auth:
13+
oAuth2ClientCredentialsEnabled: true
14+
oAuth2PasswordEnabled: true
15+
java:
16+
version: 0.1.1
17+
additionalDependencies: []
18+
additionalPlugins: []
19+
artifactID: vanta-auditor-api
20+
clientServerStatusCodesAsErrors: true
21+
companyEmail: [email protected]
22+
companyName: My Company
23+
companyURL: www.mycompany.com
24+
defaultErrorName: APIException
25+
flattenGlobalSecurity: true
26+
githubURL: github.com/owner/repo
27+
groupID: com.vanta
28+
imports:
29+
option: openapi
30+
paths:
31+
callbacks: models/callbacks
32+
errors: models/errors
33+
operations: models/operations
34+
shared: models/components
35+
webhooks: models/webhooks
36+
inputModelSuffix: input
37+
license:
38+
name: The MIT License (MIT)
39+
shortName: MIT
40+
url: https://mit-license.org/
41+
maxMethodParams: 4
42+
outputModelSuffix: output
43+
projectName: openapi
44+
templateVersion: v2
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
overlay: 1.0.0
2+
info:
3+
title: Speakeasy Modifications
4+
version: 0.0.2
5+
x-speakeasy-metadata:
6+
after: ""
7+
before: ""
8+
type: speakeasy-modifications
9+
actions:
10+
- target: $["paths"]["/auditors"]["post"]
11+
update:
12+
x-speakeasy-name-override: create
13+
x-speakeasy-metadata:
14+
type: method-name
15+
before: sdk.Auditors.CreateAuditor()
16+
after: sdk.auditors.create()
17+
reviewed_at: 1736517355673
18+
created_at: 1736517352263
19+
- target: $["paths"]["/audits/{auditId}/evidence"]["get"]
20+
update:
21+
x-speakeasy-name-override: listEvidence
22+
x-speakeasy-metadata:
23+
type: method-name
24+
before: sdk.Audits.ListAuditEvidence()
25+
after: sdk.audits.listEvidence()
26+
reviewed_at: 1736517355673
27+
created_at: 1736517352263
28+
- target: $["paths"]["/audits/{auditId}/controls"]["get"]
29+
update:
30+
x-speakeasy-name-override: listControls
31+
x-speakeasy-metadata:
32+
type: method-name
33+
before: sdk.Audits.ListAuditControls()
34+
after: sdk.audits.listControls()
35+
reviewed_at: 1736517355673
36+
created_at: 1736517352263
37+
- target: $["paths"]["/audits/{auditId}/comments"]["get"]
38+
update:
39+
x-speakeasy-name-override: listComments
40+
x-speakeasy-metadata:
41+
type: method-name
42+
before: sdk.Audits.ListAuditComments()
43+
after: sdk.audits.listComments()
44+
reviewed_at: 1736517355673
45+
created_at: 1736517352263
46+
- target: $["paths"]["/audits/{auditId}/evidence/{auditEvidenceId}/urls"]["get"]
47+
update:
48+
x-speakeasy-name-override: listEvidenceUrls
49+
x-speakeasy-metadata:
50+
type: method-name
51+
before: sdk.Audits.ListAuditEvidenceUrls()
52+
after: sdk.audits.listEvidenceUrls()
53+
reviewed_at: 1736517355673
54+
created_at: 1736517352263
55+
- target: $["paths"]["/audits/{auditId}/evidence/{auditEvidenceId}"]["patch"]
56+
update:
57+
x-speakeasy-name-override: updateEvidence
58+
x-speakeasy-metadata:
59+
type: method-name
60+
before: sdk.Audits.UpdateAuditEvidence()
61+
after: sdk.audits.updateEvidence()
62+
reviewed_at: 1736517355673
63+
created_at: 1736517352263
64+
- target: $["paths"]["/audits/{auditId}/evidence/{auditEvidenceId}/comments"]["post"]
65+
update:
66+
x-speakeasy-name-override: createCommentForEvidence
67+
x-speakeasy-metadata:
68+
type: method-name
69+
before: sdk.Audits.CreateCommentForAuditEvidence()
70+
after: sdk.audits.createCommentForEvidence()
71+
reviewed_at: 1736517355673
72+
created_at: 1736517352263
73+
- target: $["paths"]["/audits"]["get"]
74+
update:
75+
x-speakeasy-name-override: list
76+
x-speakeasy-metadata:
77+
type: method-name
78+
before: sdk.Audits.ListAudits()
79+
after: sdk.audits.list()
80+
reviewed_at: 1736517355673
81+
created_at: 1736517352263

.speakeasy/workflow.lock

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
speakeasyVersion: 1.461.0
2+
sources:
3+
Conduct an audit:
4+
sourceNamespace: conduct-an-audit
5+
sourceRevisionDigest: sha256:bba8d11fbff22e86b8cebb373cb9162f76c94b0b1449836c09c28ccdf3cf44e3
6+
sourceBlobDigest: sha256:5caeae09f7a133bc6ef4326e74b8aed18fe8b45f74e6b2dc0ac7ee9f0e335cdc
7+
tags:
8+
- latest
9+
- 1.0.0
10+
targets:
11+
vanta:
12+
source: Conduct an audit
13+
sourceNamespace: conduct-an-audit
14+
sourceRevisionDigest: sha256:bba8d11fbff22e86b8cebb373cb9162f76c94b0b1449836c09c28ccdf3cf44e3
15+
sourceBlobDigest: sha256:5caeae09f7a133bc6ef4326e74b8aed18fe8b45f74e6b2dc0ac7ee9f0e335cdc
16+
codeSamplesNamespace: conduct-an-audit-java-code-samples
17+
codeSamplesRevisionDigest: sha256:7c052d0f29831ff949372057318d15e2957096e098b22f7a3f313513029c513c
18+
workflow:
19+
workflowVersion: 1.0.0
20+
speakeasyVersion: latest
21+
sources:
22+
Conduct an audit:
23+
inputs:
24+
- location: ../obsidian/apps/api-external/assets/__generated__/auditor-api/v1/api-spec.yaml
25+
overlays:
26+
- location: .speakeasy/speakeasy-modifications-overlay.yaml
27+
registry:
28+
location: registry.speakeasyapi.dev/vanta/vanta/conduct-an-audit
29+
targets:
30+
vanta:
31+
target: java
32+
source: Conduct an audit
33+
codeSamples:
34+
registry:
35+
location: registry.speakeasyapi.dev/vanta/vanta/conduct-an-audit-java-code-samples
36+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
3+
sources:
4+
Conduct an audit:
5+
inputs:
6+
- location: ../obsidian/apps/api-external/assets/__generated__/auditor-api/v1/api-spec.yaml
7+
overlays:
8+
- location: .speakeasy/speakeasy-modifications-overlay.yaml
9+
registry:
10+
location: registry.speakeasyapi.dev/vanta/vanta/conduct-an-audit
11+
targets:
12+
vanta:
13+
target: java
14+
source: Conduct an audit
15+
codeSamples:
16+
registry:
17+
location: registry.speakeasyapi.dev/vanta/vanta/conduct-an-audit-java-code-samples
18+
blocking: false

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

USAGE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!-- Start SDK Example Usage [usage] -->
2+
```java
3+
package hello.world;
4+
5+
import com.vanta.vanta_auditor_api.Vanta;
6+
import com.vanta.vanta_auditor_api.models.operations.ListAuditsResponse;
7+
import java.lang.Exception;
8+
import java.time.OffsetDateTime;
9+
10+
public class Application {
11+
12+
public static void main(String[] args) throws Exception {
13+
14+
Vanta sdk = Vanta.builder()
15+
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
16+
.build();
17+
18+
ListAuditsResponse res = sdk.audits().list()
19+
.pageSize(10)
20+
.pageCursor("<value>")
21+
.changedSinceDate(OffsetDateTime.parse("2025-04-22T08:39:55.981Z"))
22+
.call();
23+
24+
if (res.paginatedResponseAudit().isPresent()) {
25+
// handle response
26+
}
27+
}
28+
}
29+
```
30+
<!-- End SDK Example Usage [usage] -->

build-extras.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// This file
2+
// * is referred to in an `apply from` command in `build.gradle`
3+
// * can be used to customise `build.gradle`
4+
// * is generated once and not overwritten in SDK generation updates

0 commit comments

Comments
 (0)