Skip to content

Commit 68fefb1

Browse files
authored
Merge pull request #84 from StyraInc/speakeasy-sdk-regen-1744299558
chore: 🐝 Update SDK - 02 - Generate 2.1.0
2 parents aa73d24 + 997d31f commit 68fefb1

14 files changed

+212
-60
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.speakeasy/temp/
12
.speakeasy/reports
23
# Ignore Gradle project-specific cache directory
34
.gradle

.speakeasy/gen.lock

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 47e8e950-a454-4ebb-9f78-86fda7dfa0c2
33
management:
4-
docChecksum: 18350f32468931bfa9ce235545a99b77
4+
docChecksum: ca9ad9e851531525c769e96478915350
55
docVersion: 0.2.0
6-
speakeasyVersion: 1.531.0
7-
generationVersion: 2.568.2
8-
releaseVersion: 2.0.3
9-
configChecksum: 03d94440697f0e2af34c20070714d3a8
6+
speakeasyVersion: 1.538.0
7+
generationVersion: 2.591.1
8+
releaseVersion: 2.1.0
9+
configChecksum: 8cbddf87386b2196e86563d6228b4b1e
1010
repoURL: https://github.com/StyraInc/opa-java.git
1111
published: true
1212
features:
@@ -15,7 +15,7 @@ features:
1515
additionalDependencies: 0.1.0
1616
additionalProperties: 0.0.1
1717
constsAndDefaults: 0.1.1
18-
core: 3.36.3
18+
core: 3.37.1
1919
examples: 2.81.5
2020
flattening: 2.81.1
2121
globalSecurity: 2.82.8
@@ -36,7 +36,7 @@ generatedFiles:
3636
- docs/models/errors/ServerErrorLocation.md
3737
- docs/models/errors/UnhealthyServer.md
3838
- docs/models/operations/CompileQueryWithPartialEvaluationRequest.md
39-
- docs/models/operations/CompileQueryWithPartialEvaluationRequestBody.md
39+
- docs/models/operations/CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody.md
4040
- docs/models/operations/CompileQueryWithPartialEvaluationResponse.md
4141
- docs/models/operations/ExecuteBatchPolicyWithInputRequest.md
4242
- docs/models/operations/ExecuteBatchPolicyWithInputRequestBody.md
@@ -112,7 +112,7 @@ generatedFiles:
112112
- src/main/java/com/styra/opa/openapi/models/errors/ServerErrorLocation.java
113113
- src/main/java/com/styra/opa/openapi/models/errors/UnhealthyServer.java
114114
- src/main/java/com/styra/opa/openapi/models/operations/CompileQueryWithPartialEvaluationRequest.java
115-
- src/main/java/com/styra/opa/openapi/models/operations/CompileQueryWithPartialEvaluationRequestBody.java
115+
- src/main/java/com/styra/opa/openapi/models/operations/CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody.java
116116
- src/main/java/com/styra/opa/openapi/models/operations/CompileQueryWithPartialEvaluationRequestBuilder.java
117117
- src/main/java/com/styra/opa/openapi/models/operations/CompileQueryWithPartialEvaluationResponse.java
118118
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequest.java
@@ -230,6 +230,15 @@ examples:
230230
header: {}
231231
requestBody:
232232
application/json: {"input": []}
233+
application/vnd.styra.multitarget+json: {"input": []}
234+
application/vnd.styra.ucast.all+json: {"input": []}
235+
application/vnd.styra.ucast.minimal+json: {"input": []}
236+
application/vnd.styra.ucast.linq+json: {"input": []}
237+
application/vnd.styra.ucast.prisma+json: {"input": []}
238+
application/vnd.styra.sql.sqlserver+json: {"input": []}
239+
application/vnd.styra.sql.mysql+json: {"input": []}
240+
application/vnd.styra.sql.postgresql+json: {"input": []}
241+
application/vnd.styra.sql.sqlite+json: {"input": []}
233242
responses:
234243
"200":
235244
application/json: {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: false
1616
oAuth2PasswordEnabled: false
1717
java:
18-
version: 2.0.3
18+
version: 2.1.0
1919
additionalDependencies:
2020
- testImplementation:org.junit.jupiter:junit-jupiter-api:5.8.2
2121
- runtimeOnly:org.junit.jupiter:junit-jupiter-engine:5.8.2

.speakeasy/workflow.lock

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.531.0
1+
speakeasyVersion: 1.538.0
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:a5feffcf8e7b06d8f5d47086f8f7f09867e62098e8b94555a9538459ec8b8f45
6-
sourceBlobDigest: sha256:fc6e2df14a721c45f2d4277c775c9ac01fc7ef2a51ed40c09d41e8e361084690
5+
sourceRevisionDigest: sha256:8786727f1a0e42f477815b6b6a772285098f0412960ee10666e513c722e85ac2
6+
sourceBlobDigest: sha256:d91719dc8def1c66ba7871a3c70d1ffe77d1cbeb5fd9547d8c4c811f7f4f6363
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1744223645
9+
- speakeasy-sdk-regen-1744299558
1010
- 0.2.0
1111
targets:
1212
opa:
1313
source: openapi
1414
sourceNamespace: openapi
15-
sourceRevisionDigest: sha256:a5feffcf8e7b06d8f5d47086f8f7f09867e62098e8b94555a9538459ec8b8f45
16-
sourceBlobDigest: sha256:fc6e2df14a721c45f2d4277c775c9ac01fc7ef2a51ed40c09d41e8e361084690
15+
sourceRevisionDigest: sha256:8786727f1a0e42f477815b6b6a772285098f0412960ee10666e513c722e85ac2
16+
sourceBlobDigest: sha256:d91719dc8def1c66ba7871a3c70d1ffe77d1cbeb5fd9547d8c4c811f7f4f6363
1717
codeSamplesNamespace: openapi-java-code-samples
18-
codeSamplesRevisionDigest: sha256:52768c73ee8eeeb9b022b106e5cfa7592095fe235e4eeeac94e13fa5fb67709e
18+
codeSamplesRevisionDigest: sha256:4992a653c0e45ea2acb713ecbbea6cca3e18838027071231814c71e50eebf1dd
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
@@ -37,7 +37,6 @@ workflow:
3737
ossrhPassword: $OSSRH_PASSWORD
3838
gpgSecretKey: $JAVA_GPG_SECRET_KEY
3939
gpgPassPhrase: $JAVA_GPG_PASSPHRASE
40-
useSonatypeLegacy: true
4140
codeSamples:
4241
registry:
4342
location: registry.speakeasyapi.dev/styra/styra/openapi-java-code-samples

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,14 @@ Based on:
379379
### Generated
380380
- [java v2.0.3] .
381381
### Releases
382-
- [Maven Central v2.0.3] https://central.sonatype.com/artifact/com.styra.opa/openapi/2.0.3 - .
382+
- [Maven Central v2.0.3] https://central.sonatype.com/artifact/com.styra.opa/openapi/2.0.3 - .
383+
384+
## 2025-04-24 00:26:52
385+
### Changes
386+
Based on:
387+
- OpenAPI Doc
388+
- Speakeasy CLI 1.538.0 (2.591.1) https://github.com/speakeasy-api/speakeasy
389+
### Generated
390+
- [java v2.1.0] .
391+
### Releases
392+
- [Maven Central v2.1.0] https://central.sonatype.com/artifact/com.styra.opa/openapi/2.1.0 - .

build.gradle

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414
id 'java-library'
1515
id 'maven-publish'
1616
id 'signing'
17+
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
1718
id("java")
1819
id("checkstyle")
1920
id "nebula.lint" version "17.8.0"
@@ -46,6 +47,7 @@ group = "${groupId}"
4647

4748
jar {
4849
dependsOn(":generatePomFileForMavenPublication")
50+
archiveBaseName = "${artifactId}"
4951

5052
into("META-INF/maven/com.styra/opa") {
5153
from("$buildDir/pom.xml")
@@ -73,27 +75,38 @@ sourcesJar {
7375
javadocJar {
7476
archiveBaseName = "${artifactId}"
7577
}
78+
sonatypeCentralUpload {
79+
// This is your Sonatype generated username
80+
username = System.getenv("SONATYPE_USERNAME")
81+
// This is your sonatype generated password
82+
password = System.getenv("SONATYPE_PASSWORD")
83+
84+
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
85+
archives = files(
86+
"$buildDir/libs/${artifactId}-${version}.jar",
87+
"$buildDir/libs/${artifactId}-${version}-sources.jar",
88+
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
89+
)
90+
91+
// This is the pom file to upload. This is required by central
92+
pom = file("$buildDir/pom.xml")
93+
94+
// This is your PGP private key. This is required to sign your files
95+
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
96+
// This is your PGP private key passphrase to decrypt your private key
97+
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
98+
}
7699

77100

78101
publishing {
79-
repositories {
80-
maven {
81-
name = "OSSRH"
82-
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
83-
credentials {
84-
username = System.getenv("MAVEN_USERNAME")
85-
password = System.getenv("MAVEN_PASSWORD")
86-
}
87-
}
88-
}
89102

90103
publications {
91104
maven(MavenPublication) {
92105
// note that properties can't yet be used below!
93106
// https://github.com/gradle/gradle/issues/18619
94107
groupId = "com.styra"
95108
artifactId = "opa"
96-
version = "2.0.3"
109+
version = "2.1.0"
97110

98111
from components.java
99112

docs/models/operations/CompileQueryWithPartialEvaluationRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
| `explain` | [Optional\<Explain>](../../models/shared/Explain.md) | :heavy_minus_sign: | Return query explanation in addition to result. | |
1313
| `metrics` | *Optional\<Boolean>* | :heavy_minus_sign: | Return query performance metrics in addition to result. | |
1414
| `instrument` | *Optional\<Boolean>* | :heavy_minus_sign: | Instrument query evaluation and return a superset of performance metrics in addition to result. | |
15-
| `requestBody` | [CompileQueryWithPartialEvaluationRequestBody](../../models/operations/CompileQueryWithPartialEvaluationRequestBody.md) | :heavy_check_mark: | The query, input, and other settings for partial evaluation. | |
15+
| `requestBody` | [CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody](../../models/operations/CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody.md) | :heavy_check_mark: | The query, input, and other settings for partial evaluation. | |

docs/models/operations/CompileQueryWithPartialEvaluationRequestBody.md renamed to docs/models/operations/CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CompileQueryWithPartialEvaluationRequestBody
1+
# CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody
22

33
The query, input, and other settings for partial evaluation.
44

docs/sdks/opaapiclient/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,8 @@ public class Application {
270270

271271
CompileQueryWithPartialEvaluationRequest req = CompileQueryWithPartialEvaluationRequest.builder()
272272
.path("app/rbac")
273-
.requestBody(CompileQueryWithPartialEvaluationRequestBody.builder()
274-
.input(Input.of(List.of(
275-
)))
273+
.requestBody(CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody.builder()
274+
.input(Input.of(List.of()))
276275
.build())
277276
.build();
278277

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
groupId=com.styra.opa
22
artifactId=openapi
3-
version=2.0.3
3+
version=2.1.0

0 commit comments

Comments
 (0)