Skip to content

Commit 89040bf

Browse files
Merge pull request #48 from gleanwork/speakeasy-sdk-regen-1762816523
chore: 🐝 Update SDK - Generate 0.12.0
2 parents 1c93a8d + c38374f commit 89040bf

File tree

16 files changed

+475
-109
lines changed

16 files changed

+475
-109
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
33
management:
4-
docChecksum: dcd614b69cdc88d754706e156a66d71b
4+
docChecksum: ff202e1733a6de1617f8ea51b32caeee
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.650.0
7-
generationVersion: 2.743.2
8-
releaseVersion: 0.11.4
9-
configChecksum: 3581cb68b1dca76940f49cb8c18f24d9
6+
speakeasyVersion: 1.653.0
7+
generationVersion: 2.748.0
8+
releaseVersion: 0.12.0
9+
configChecksum: ca8da680a6948ba6da29ac839bade538
1010
repoURL: https://github.com/gleanwork/api-client-java.git
1111
published: true
1212
features:
@@ -25,7 +25,7 @@ features:
2525
groups: 2.81.3
2626
nameOverrides: 2.81.3
2727
sdkHooks: 1.1.0
28-
unions: 0.0.6
28+
unions: 0.3.0
2929
uploadStreams: 0.1.0
3030
generatedFiles:
3131
- .gitattributes
@@ -1998,6 +1998,7 @@ generatedFiles:
19981998
- src/main/java/com/glean/api_client/glean_api_client/utils/EventStreamMessage.java
19991999
- src/main/java/com/glean/api_client/glean_api_client/utils/Exceptions.java
20002000
- src/main/java/com/glean/api_client/glean_api_client/utils/FormMetadata.java
2001+
- src/main/java/com/glean/api_client/glean_api_client/utils/GenericTypeIdResolver.java
20012002
- src/main/java/com/glean/api_client/glean_api_client/utils/Globals.java
20022003
- src/main/java/com/glean/api_client/glean_api_client/utils/HTTPClient.java
20032004
- src/main/java/com/glean/api_client/glean_api_client/utils/HTTPRequest.java
@@ -2040,6 +2041,7 @@ generatedFiles:
20402041
- src/main/java/com/glean/api_client/glean_api_client/utils/StreamingParser.java
20412042
- src/main/java/com/glean/api_client/glean_api_client/utils/TypedObject.java
20422043
- src/main/java/com/glean/api_client/glean_api_client/utils/Types.java
2044+
- src/main/java/com/glean/api_client/glean_api_client/utils/UnknownType.java
20432045
- src/main/java/com/glean/api_client/glean_api_client/utils/Utf8UrlEncoder.java
20442046
- src/main/java/com/glean/api_client/glean_api_client/utils/Utils.java
20452047
- src/main/java/com/glean/api_client/glean_api_client/utils/reactive/EventStream.java

.speakeasy/gen.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
java:
28-
version: 0.11.4
28+
version: 0.12.0
2929
additionalDependencies: []
3030
additionalPlugins: []
3131
artifactID: glean-api-client
@@ -38,8 +38,10 @@ java:
3838
defaultErrorName: APIException
3939
enableCustomCodeRegions: false
4040
enableStreamingUploads: false
41+
enhancedUnionMemberResolution: true
4142
envVarPrefix: GLEAN
4243
flattenGlobalSecurity: true
44+
generateOptionalUnionAccessors: false
4345
generateSpringBootStarter: true
4446
githubURL: github.com/gleanwork/api-client-java
4547
groupID: com.glean.api-client
@@ -59,6 +61,7 @@ java:
5961
url: https://mit-license.org/
6062
maxMethodParams: 4
6163
nullFriendlyParameters: false
64+
openUnions: true
6265
outputModelSuffix: output
6366
projectName: glean-api-client
6467
templateVersion: v2

.speakeasy/glean-merged-spec.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4206,6 +4206,12 @@ components:
42064206
- LT
42074207
- GT
42084208
- NOT_EQUALS
4209+
x-enumDescriptions:
4210+
EQUALS: The value is equal to the specified value.
4211+
ID_EQUALS: The value is equal to the specified ID.
4212+
LT: The value is less than the specified value.
4213+
GT: The value is greater than the specified value.
4214+
NOT_EQUALS: The value is not equal to the specified value.
42094215
example: EQUALS
42104216
isNegated:
42114217
type: boolean

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.650.0
1+
speakeasyVersion: 1.653.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:ab3219e34896dc96893a548fb03c6c0f3b62ebde145ad8be7d8a5f8ac74513d6
6-
sourceBlobDigest: sha256:5ee99a226409e04f4a79331bfb11520ec4bf6570d6f568cff947d1a8fbbed4f1
5+
sourceRevisionDigest: sha256:37d154e6f8016a1bc27baba6cf99b88bfb604c845dc5907d6621d6f4fb11746b
6+
sourceBlobDigest: sha256:a7bb86ba93d00f1e6735091ebb564bd2412197661fdb290f52c30016e7321857
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1762417738
9+
- speakeasy-sdk-regen-1762816523
1010
Glean-OAS:
1111
sourceNamespace: glean-oas
1212
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -18,10 +18,10 @@ targets:
1818
glean:
1919
source: Glean API
2020
sourceNamespace: glean-api-specs
21-
sourceRevisionDigest: sha256:ab3219e34896dc96893a548fb03c6c0f3b62ebde145ad8be7d8a5f8ac74513d6
22-
sourceBlobDigest: sha256:5ee99a226409e04f4a79331bfb11520ec4bf6570d6f568cff947d1a8fbbed4f1
21+
sourceRevisionDigest: sha256:37d154e6f8016a1bc27baba6cf99b88bfb604c845dc5907d6621d6f4fb11746b
22+
sourceBlobDigest: sha256:a7bb86ba93d00f1e6735091ebb564bd2412197661fdb290f52c30016e7321857
2323
codeSamplesNamespace: glean-api-specs-java-code-samples
24-
codeSamplesRevisionDigest: sha256:3e9617be02f681773eee62be0315a1c4a302b9571b50652454a3d72fd19d12c5
24+
codeSamplesRevisionDigest: sha256:3190de9202e19e0a6180b3edfa23e486f5dc40042868ae059ca1dce6168b4184
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ The samples below show how a published SDK artifact is used:
6565

6666
Gradle:
6767
```groovy
68-
implementation 'com.glean.api-client:glean-api-client:0.11.4'
68+
implementation 'com.glean.api-client:glean-api-client:0.12.0'
6969
```
7070

7171
Maven:
7272
```xml
7373
<dependency>
7474
<groupId>com.glean.api-client</groupId>
7575
<artifactId>glean-api-client</artifactId>
76-
<version>0.11.4</version>
76+
<version>0.12.0</version>
7777
</dependency>
7878
```
7979

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,14 @@ Based on:
338338
### Generated
339339
- [java v0.11.4] .
340340
### Releases
341-
- [Maven Central v0.11.4] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.11.4 - .
341+
- [Maven Central v0.11.4] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.11.4 - .
342+
343+
## 2025-11-11 02:01:03
344+
### Changes
345+
Based on:
346+
- OpenAPI Doc
347+
- Speakeasy CLI 1.653.0 (2.748.0) https://github.com/speakeasy-api/speakeasy
348+
### Generated
349+
- [java v0.12.0] .
350+
### Releases
351+
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.0 - .

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
groupId=com.glean.api-client
22
artifactId=glean-api-client
3-
version=0.11.4
3+
version=0.12.0
44
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g

src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public class SDKConfiguration {
2424

2525
private static final String LANGUAGE = "java";
2626
public static final String OPENAPI_DOC_VERSION = "0.9.0";
27-
public static final String SDK_VERSION = "0.11.4";
28-
public static final String GEN_VERSION = "2.743.2";
27+
public static final String SDK_VERSION = "0.12.0";
28+
public static final String GEN_VERSION = "2.748.0";
2929
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
3030
public static final String USER_AGENT =
3131
String.format("speakeasy-sdk/%s %s %s %s %s",

src/main/java/com/glean/api_client/glean_api_client/models/components/CustomFieldValue.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@
1919
public class CustomFieldValue {
2020

2121
@JsonValue
22-
private TypedObject value;
22+
private final TypedObject value;
2323

2424
private CustomFieldValue(TypedObject value) {
2525
this.value = value;
2626
}
2727

2828
public static CustomFieldValue of(CustomFieldValueStr value) {
2929
Utils.checkNotNull(value, "value");
30-
return new CustomFieldValue(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<CustomFieldValueStr>(){}));
30+
return new CustomFieldValue(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){}));
3131
}
3232

3333
public static CustomFieldValue of(CustomFieldValueHyperlink value) {
3434
Utils.checkNotNull(value, "value");
35-
return new CustomFieldValue(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<CustomFieldValueHyperlink>(){}));
35+
return new CustomFieldValue(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){}));
3636
}
3737

3838
public static CustomFieldValue of(CustomFieldValuePerson value) {
3939
Utils.checkNotNull(value, "value");
40-
return new CustomFieldValue(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<CustomFieldValuePerson>(){}));
40+
return new CustomFieldValue(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){}));
4141
}
4242

4343
/**
@@ -61,7 +61,7 @@ public static CustomFieldValue of(CustomFieldValuePerson value) {
6161
**/
6262
public java.lang.Object value() {
6363
return value.value();
64-
}
64+
}
6565

6666
@Override
6767
public boolean equals(java.lang.Object o) {
@@ -72,7 +72,7 @@ public boolean equals(java.lang.Object o) {
7272
return false;
7373
}
7474
CustomFieldValue other = (CustomFieldValue) o;
75-
return Utils.enhancedDeepEquals(this.value.value(), other.value.value());
75+
return Utils.enhancedDeepEquals(this.value.value(), other.value.value());
7676
}
7777

7878
@Override
@@ -96,6 +96,6 @@ public String toString() {
9696
return Utils.toString(CustomFieldValue.class,
9797
"value", value);
9898
}
99-
99+
100100
}
101101

src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentOrErrorUnion.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
public class DocumentOrErrorUnion {
2020

2121
@JsonValue
22-
private TypedObject value;
22+
private final TypedObject value;
2323

2424
private DocumentOrErrorUnion(TypedObject value) {
2525
this.value = value;
2626
}
2727

2828
public static DocumentOrErrorUnion of(Document value) {
2929
Utils.checkNotNull(value, "value");
30-
return new DocumentOrErrorUnion(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<Document>(){}));
30+
return new DocumentOrErrorUnion(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){}));
3131
}
3232

3333
public static DocumentOrErrorUnion of(DocumentOrError value) {
3434
Utils.checkNotNull(value, "value");
35-
return new DocumentOrErrorUnion(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<DocumentOrError>(){}));
35+
return new DocumentOrErrorUnion(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){}));
3636
}
3737

3838
/**
@@ -55,7 +55,7 @@ public static DocumentOrErrorUnion of(DocumentOrError value) {
5555
**/
5656
public java.lang.Object value() {
5757
return value.value();
58-
}
58+
}
5959

6060
@Override
6161
public boolean equals(java.lang.Object o) {
@@ -66,7 +66,7 @@ public boolean equals(java.lang.Object o) {
6666
return false;
6767
}
6868
DocumentOrErrorUnion other = (DocumentOrErrorUnion) o;
69-
return Utils.enhancedDeepEquals(this.value.value(), other.value.value());
69+
return Utils.enhancedDeepEquals(this.value.value(), other.value.value());
7070
}
7171

7272
@Override
@@ -89,6 +89,6 @@ public String toString() {
8989
return Utils.toString(DocumentOrErrorUnion.class,
9090
"value", value);
9191
}
92-
92+
9393
}
9494

0 commit comments

Comments
 (0)