Skip to content

Commit 3e979da

Browse files
Merge pull request #28 from gleanwork/speakeasy-sdk-regen-1751974088
chore: 🐝 Update SDK - Generate 0.7.0
2 parents ba40a8a + f1e6a2c commit 3e979da

File tree

708 files changed

+14978
-11169
lines changed

Some content is hidden

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

708 files changed

+14978
-11169
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
33
management:
44
docChecksum: bb65a174a6b697994f7bde3845843d9d
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.576.1
7-
generationVersion: 2.651.2
8-
releaseVersion: 0.6.0
9-
configChecksum: 36947d923e8382f9287cbfeee1bf3f84
6+
speakeasyVersion: 1.580.2
7+
generationVersion: 2.656.5
8+
releaseVersion: 0.7.0
9+
configChecksum: 5763d80380dc0fbbb84875250841f11a
1010
repoURL: https://github.com/gleanwork/api-client-java.git
1111
published: true
1212
features:
1313
java:
1414
additionalDependencies: 0.1.0
1515
additionalProperties: 0.0.1
1616
constsAndDefaults: 0.1.1
17-
core: 3.42.3
17+
core: 3.44.0
1818
deprecations: 2.81.1
19-
examples: 2.81.5
19+
examples: 2.81.6
2020
flattening: 2.81.1
2121
globalSecurity: 2.83.0
2222
globalSecurityCallbacks: 0.1.0

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
java:
24-
version: 0.6.0
24+
version: 0.7.0
2525
additionalDependencies: []
2626
additionalPlugins: []
2727
artifactID: glean-api-client
@@ -51,6 +51,7 @@ java:
5151
shortName: MIT
5252
url: https://mit-license.org/
5353
maxMethodParams: 4
54+
nullFriendlyParameters: false
5455
outputModelSuffix: output
5556
projectName: glean-api-client
5657
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.576.1
1+
speakeasyVersion: 1.580.2
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
55
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
66
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1750453706
9+
- speakeasy-sdk-regen-1751974088
1010
Glean-OAS:
1111
sourceNamespace: glean-oas
1212
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -21,7 +21,7 @@ targets:
2121
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
2222
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
2323
codeSamplesNamespace: glean-api-specs-java-code-samples
24-
codeSamplesRevisionDigest: sha256:0b38a88f263a55a5ce1d7a0938446b8192c36e32ab974acc6c9dff2a62fc28d1
24+
codeSamplesRevisionDigest: sha256:696df3780275658d9e4fab559fceb2dc36adeff8f6055db8303641ed1f4e7d6c
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Remember that each namespace requires its own authentication token type as descr
4545
* [Available Resources and Operations](#available-resources-and-operations)
4646
* [Error Handling](#error-handling)
4747
* [Server Selection](#server-selection)
48+
* [Debugging](#debugging)
4849
* [Development](#development)
4950
* [Maturity](#maturity)
5051
* [Contributions](#contributions)
@@ -62,15 +63,15 @@ The samples below show how a published SDK artifact is used:
6263

6364
Gradle:
6465
```groovy
65-
implementation 'com.glean.api-client:glean-api-client:0.6.0'
66+
implementation 'com.glean.api-client:glean-api-client:0.7.0'
6667
```
6768

6869
Maven:
6970
```xml
7071
<dependency>
7172
<groupId>com.glean.api-client</groupId>
7273
<artifactId>glean-api-client</artifactId>
73-
<version>0.6.0</version>
74+
<version>0.7.0</version>
7475
</dependency>
7576
```
7677

@@ -87,33 +88,6 @@ On Windows:
8788
```bash
8889
gradlew.bat publishToMavenLocal -Pskip.signing
8990
```
90-
91-
### Logging
92-
A logging framework/facade has not yet been adopted but is under consideration.
93-
94-
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
95-
```java
96-
SDK.builder()
97-
.enableHTTPDebugLogging(true)
98-
.build();
99-
```
100-
Example output:
101-
```
102-
Sending request: http://localhost:35123/bearer#global GET
103-
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
104-
Received response: (GET http://localhost:35123/bearer#global) 200
105-
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
106-
Response body:
107-
{
108-
"authenticated": true,
109-
"token": "global"
110-
}
111-
```
112-
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
113-
114-
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
115-
116-
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
11791
<!-- End SDK Installation [installation] -->
11892

11993
<!-- Start SDK Example Usage [usage] -->
@@ -1269,6 +1243,37 @@ public class Application {
12691243
```
12701244
<!-- End Server Selection [server] -->
12711245

1246+
<!-- Start Debugging [debug] -->
1247+
## Debugging
1248+
1249+
### Debug
1250+
You can setup your SDK to emit debug logs for SDK requests and responses.
1251+
1252+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
1253+
```java
1254+
SDK.builder()
1255+
.enableHTTPDebugLogging(true)
1256+
.build();
1257+
```
1258+
Example output:
1259+
```
1260+
Sending request: http://localhost:35123/bearer#global GET
1261+
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
1262+
Received response: (GET http://localhost:35123/bearer#global) 200
1263+
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
1264+
Response body:
1265+
{
1266+
"authenticated": true,
1267+
"token": "global"
1268+
}
1269+
```
1270+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
1271+
1272+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
1273+
1274+
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
1275+
<!-- End Debugging [debug] -->
1276+
12721277
<!-- Placeholder for Future Speakeasy SDK Sections -->
12731278

12741279
# Development

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,14 @@ Based on:
168168
### Generated
169169
- [java v0.6.0] .
170170
### Releases
171-
- [Maven Central v0.6.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.6.0 - .
171+
- [Maven Central v0.6.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.6.0 - .
172+
173+
## 2025-07-11 02:10:35
174+
### Changes
175+
Based on:
176+
- OpenAPI Doc
177+
- Speakeasy CLI 1.580.2 (2.656.5) https://github.com/speakeasy-api/speakeasy
178+
### Generated
179+
- [java v0.7.0] .
180+
### Releases
181+
- [Maven Central v0.7.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.7.0 - .

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ publishing {
106106
// https://github.com/gradle/gradle/issues/18619
107107
groupId = "com.glean.api-client"
108108
artifactId = "glean-api-client"
109-
version = "0.6.0"
109+
version = "0.7.0"
110110

111111
from components.java
112112

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
groupId=com.glean.api-client
22
artifactId=glean-api-client
3-
version=0.6.0
3+
version=0.7.0

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public class Activity {
2525
Activity(SDKConfiguration sdkConfiguration) {
2626
this.sdkConfiguration = sdkConfiguration;
2727
}
28-
2928
/**
3029
* Report document activity
3130
*
@@ -46,14 +45,12 @@ public ActivityRequestBuilder report() {
4645
* @return The response from the API call
4746
* @throws Exception if the API call fails
4847
*/
49-
public ActivityResponse report(
50-
com.glean.api_client.glean_api_client.models.components.Activity request) throws Exception {
48+
public ActivityResponse report(com.glean.api_client.glean_api_client.models.components.Activity request) throws Exception {
5149
RequestOperation<com.glean.api_client.glean_api_client.models.components.Activity, ActivityResponse> operation
52-
= new ActivityOperation( sdkConfiguration);
50+
= new ActivityOperation(sdkConfiguration);
5351
return operation.handleResponse(operation.doRequest(request));
5452
}
5553

56-
5754
/**
5855
* Report client activity
5956
*
@@ -97,7 +94,7 @@ public FeedbackResponse feedback(
9794
.feedback1(feedback1)
9895
.build();
9996
RequestOperation<FeedbackRequest, FeedbackResponse> operation
100-
= new FeedbackOperation( sdkConfiguration);
97+
= new FeedbackOperation(sdkConfiguration);
10198
return operation.handleResponse(operation.doRequest(request));
10299
}
103100

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

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public class Agents {
3737
Agents(SDKConfiguration sdkConfiguration) {
3838
this.sdkConfiguration = sdkConfiguration;
3939
}
40-
4140
/**
4241
* Retrieve an agent
4342
*
@@ -82,11 +81,10 @@ public GetAgentResponse retrieve(
8281
.agentId(agentId)
8382
.build();
8483
RequestOperation<GetAgentRequest, GetAgentResponse> operation
85-
= new GetAgentOperation( sdkConfiguration);
84+
= new GetAgentOperation(sdkConfiguration);
8685
return operation.handleResponse(operation.doRequest(request));
8786
}
8887

89-
9088
/**
9189
* List an agent's schemas
9290
*
@@ -131,11 +129,10 @@ public GetAgentSchemasResponse retrieveSchemas(
131129
.agentId(agentId)
132130
.build();
133131
RequestOperation<GetAgentSchemasRequest, GetAgentSchemasResponse> operation
134-
= new GetAgentSchemasOperation( sdkConfiguration);
132+
= new GetAgentSchemasOperation(sdkConfiguration);
135133
return operation.handleResponse(operation.doRequest(request));
136134
}
137135

138-
139136
/**
140137
* Search agents
141138
*
@@ -156,14 +153,12 @@ public SearchAgentsRequestBuilder list() {
156153
* @return The response from the API call
157154
* @throws Exception if the API call fails
158155
*/
159-
public SearchAgentsResponse list(
160-
SearchAgentsRequest request) throws Exception {
156+
public SearchAgentsResponse list(SearchAgentsRequest request) throws Exception {
161157
RequestOperation<SearchAgentsRequest, SearchAgentsResponse> operation
162-
= new SearchAgentsOperation( sdkConfiguration);
158+
= new SearchAgentsOperation(sdkConfiguration);
163159
return operation.handleResponse(operation.doRequest(request));
164160
}
165161

166-
167162
/**
168163
* Create an agent run and stream the response
169164
*
@@ -184,14 +179,12 @@ public CreateAndStreamRunRequestBuilder runStream() {
184179
* @return The response from the API call
185180
* @throws Exception if the API call fails
186181
*/
187-
public CreateAndStreamRunResponse runStream(
188-
AgentRunCreate request) throws Exception {
182+
public CreateAndStreamRunResponse runStream(AgentRunCreate request) throws Exception {
189183
RequestOperation<AgentRunCreate, CreateAndStreamRunResponse> operation
190-
= new CreateAndStreamRunOperation( sdkConfiguration);
184+
= new CreateAndStreamRunOperation(sdkConfiguration);
191185
return operation.handleResponse(operation.doRequest(request));
192186
}
193187

194-
195188
/**
196189
* Create an agent run and wait for the response
197190
*
@@ -212,10 +205,9 @@ public CreateAndWaitRunRequestBuilder run() {
212205
* @return The response from the API call
213206
* @throws Exception if the API call fails
214207
*/
215-
public CreateAndWaitRunResponse run(
216-
AgentRunCreate request) throws Exception {
208+
public CreateAndWaitRunResponse run(AgentRunCreate request) throws Exception {
217209
RequestOperation<AgentRunCreate, CreateAndWaitRunResponse> operation
218-
= new CreateAndWaitRunOperation( sdkConfiguration);
210+
= new CreateAndWaitRunOperation(sdkConfiguration);
219211
return operation.handleResponse(operation.doRequest(request));
220212
}
221213

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public class Announcements {
2828
Announcements(SDKConfiguration sdkConfiguration) {
2929
this.sdkConfiguration = sdkConfiguration;
3030
}
31-
3231
/**
3332
* Create Announcement
3433
*
@@ -49,14 +48,12 @@ public CreateannouncementRequestBuilder create() {
4948
* @return The response from the API call
5049
* @throws Exception if the API call fails
5150
*/
52-
public CreateannouncementResponse create(
53-
CreateAnnouncementRequest request) throws Exception {
51+
public CreateannouncementResponse create(CreateAnnouncementRequest request) throws Exception {
5452
RequestOperation<CreateAnnouncementRequest, CreateannouncementResponse> operation
55-
= new CreateannouncementOperation( sdkConfiguration);
53+
= new CreateannouncementOperation(sdkConfiguration);
5654
return operation.handleResponse(operation.doRequest(request));
5755
}
5856

59-
6057
/**
6158
* Delete Announcement
6259
*
@@ -77,14 +74,12 @@ public DeleteannouncementRequestBuilder delete() {
7774
* @return The response from the API call
7875
* @throws Exception if the API call fails
7976
*/
80-
public DeleteannouncementResponse delete(
81-
DeleteAnnouncementRequest request) throws Exception {
77+
public DeleteannouncementResponse delete(DeleteAnnouncementRequest request) throws Exception {
8278
RequestOperation<DeleteAnnouncementRequest, DeleteannouncementResponse> operation
83-
= new DeleteannouncementOperation( sdkConfiguration);
79+
= new DeleteannouncementOperation(sdkConfiguration);
8480
return operation.handleResponse(operation.doRequest(request));
8581
}
8682

87-
8883
/**
8984
* Update Announcement
9085
*
@@ -105,10 +100,9 @@ public UpdateannouncementRequestBuilder update() {
105100
* @return The response from the API call
106101
* @throws Exception if the API call fails
107102
*/
108-
public UpdateannouncementResponse update(
109-
UpdateAnnouncementRequest request) throws Exception {
103+
public UpdateannouncementResponse update(UpdateAnnouncementRequest request) throws Exception {
110104
RequestOperation<UpdateAnnouncementRequest, UpdateannouncementResponse> operation
111-
= new UpdateannouncementOperation( sdkConfiguration);
105+
= new UpdateannouncementOperation(sdkConfiguration);
112106
return operation.handleResponse(operation.doRequest(request));
113107
}
114108

0 commit comments

Comments
 (0)