Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
295 changes: 235 additions & 60 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.17.15
version: 0.17.16
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
282 changes: 276 additions & 6 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.797.0
speakeasyVersion: 1.798.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1f470e422d6b202bf6bb80cc2e4b73077b7dab6d476cda804245fc0402ea42f1
sourceBlobDigest: sha256:8919e7ffe50c1ca78844cd89c216e8ab3c54a8e0003bd5072e7fe3cd35fb192c
sourceRevisionDigest: sha256:88d2bf2cb0dc64862b19d8b94fbe1b0fcd48e1c0bbb599eee2652a14f9360947
sourceBlobDigest: sha256:e1969f660ed944921bc964277ca42738783d270c3536417f4a83b83438fefa22
tags:
- latest
Glean-OAS:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1f470e422d6b202bf6bb80cc2e4b73077b7dab6d476cda804245fc0402ea42f1
sourceBlobDigest: sha256:8919e7ffe50c1ca78844cd89c216e8ab3c54a8e0003bd5072e7fe3cd35fb192c
sourceRevisionDigest: sha256:88d2bf2cb0dc64862b19d8b94fbe1b0fcd48e1c0bbb599eee2652a14f9360947
sourceBlobDigest: sha256:e1969f660ed944921bc964277ca42738783d270c3536417f4a83b83438fefa22
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:672971bb7999c5935c7c05862d256a02965ae632671643f46cf49e75dd3c9b01
codeSamplesRevisionDigest: sha256:c5a8382d0a018e5a4944b5d33789d27037566bda79e8b94de4d2e56d5c3bfe2b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
68 changes: 52 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.17.15'
implementation 'com.glean.api-client:glean-api-client:0.17.16'
```

Maven:
```xml
<dependency>
<groupId>com.glean.api-client</groupId>
<artifactId>glean-api-client</artifactId>
<version>0.17.15</version>
<version>0.17.16</version>
</dependency>
```

Expand Down Expand Up @@ -374,6 +374,7 @@ For more information on obtaining the appropriate token type, please contact you
* [get](docs/sdks/agents/README.md#get) - Get agent
* [getSchemas](docs/sdks/agents/README.md#getschemas) - Get agent schemas
* [createRun](docs/sdks/agents/README.md#createrun) - Create agent run
* [getRun](docs/sdks/agents/README.md#getrun) - Get agent run

### [Chat](docs/sdks/chat/README.md)

Expand Down Expand Up @@ -658,11 +659,13 @@ underlying connection.
package hello.world;

import com.glean.api_client.glean_api_client.Glean;
import com.glean.api_client.glean_api_client.models.components.PlatformChatStreamEventServerSentEvent;
import com.glean.api_client.glean_api_client.models.components.*;
import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException;
import com.glean.api_client.glean_api_client.models.operations.*;
import com.glean.api_client.glean_api_client.utils.EventStream;
import java.lang.Exception;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

public class Application {
Expand All @@ -674,7 +677,23 @@ public class Application {
.build();

PlatformChatCreateStreamRequest req = PlatformChatCreateStreamRequest.builder()
.input(PlatformChatCreateStreamInput.of("What is our parental leave policy?"))
.input(PlatformChatCreateStreamInput.of("Summarize our parental leave policy as JSON."))
.text(PlatformChatCreateStreamText.builder()
.format(PlatformChatCreateStreamFormat.of(PlatformChatJsonSchemaFormat.builder()
.type(PlatformChatJsonSchemaFormatType.JSON_SCHEMA)
.name("policy_summary")
.schema(Map.ofEntries(
Map.entry("type", "object"),
Map.entry("properties", Map.ofEntries(
Map.entry("eligible_employees", Map.ofEntries(
Map.entry("type", "string"))),
Map.entry("duration_weeks", Map.ofEntries(
Map.entry("type", "integer"))))),
Map.entry("required", List.of(
"eligible_employees",
"duration_weeks"))))
.build()))
.build())
.build();

PlatformChatCreateStreamResponse res = sdk.chat().createStream()
Expand Down Expand Up @@ -703,11 +722,12 @@ package hello.world;

import com.glean.api_client.glean_api_client.AsyncGlean;
import com.glean.api_client.glean_api_client.Glean;
import com.glean.api_client.glean_api_client.models.components.PlatformChatStreamEventServerSentEvent;
import com.glean.api_client.glean_api_client.models.operations.PlatformChatCreateStreamInput;
import com.glean.api_client.glean_api_client.models.operations.PlatformChatCreateStreamRequest;
import com.glean.api_client.glean_api_client.models.components.*;
import com.glean.api_client.glean_api_client.models.operations.*;
import com.glean.api_client.glean_api_client.models.operations.async.PlatformChatCreateStreamResponse;
import com.glean.api_client.glean_api_client.utils.reactive.EventStream;
import java.util.List;
import java.util.Map;
import reactor.core.publisher.Flux;

public class Application {
Expand All @@ -720,7 +740,23 @@ public class Application {
.async();

PlatformChatCreateStreamRequest req = PlatformChatCreateStreamRequest.builder()
.input(PlatformChatCreateStreamInput.of("What is our parental leave policy?"))
.input(PlatformChatCreateStreamInput.of("Summarize our parental leave policy as JSON."))
.text(PlatformChatCreateStreamText.builder()
.format(PlatformChatCreateStreamFormat.of(PlatformChatJsonSchemaFormat.builder()
.type(PlatformChatJsonSchemaFormatType.JSON_SCHEMA)
.name("policy_summary")
.schema(Map.ofEntries(
Map.entry("type", "object"),
Map.entry("properties", Map.ofEntries(
Map.entry("eligible_employees", Map.ofEntries(
Map.entry("type", "string"))),
Map.entry("duration_weeks", Map.ofEntries(
Map.entry("type", "integer"))))),
Map.entry("required", List.of(
"eligible_employees",
"duration_weeks"))))
.build()))
.build())
.build();

EventStream<PlatformChatCreateStreamResponse, PlatformChatStreamEventServerSentEvent> res = sdk.chat().createStream()
Expand Down Expand Up @@ -847,14 +883,14 @@ public class Application {
many more subclasses in the JDK platform).

**Inherit from [`GleanError`](./src/main/java/models/errors/GleanError.java)**:
* [`com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException.java): Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. Applicable to 32 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 10 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 6 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.UnauthorizedAgentToolsError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.UnauthorizedAgentToolsError.java): Returned when the agent has tools the caller must authorize before the run can start. Each entry in `authenticationSuggestions` names one such tool; POST its `serverId` to `/tool-servers/{serverId}/auth` with `returnUrl` in the request body to obtain an `authorizationUrl` to redirect the end user to, then retry the run once OAuth completes. Status code `422`. Applicable to 2 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.AccessRequestPermissionDeniedResponseException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.AccessRequestPermissionDeniedResponseException.java): Forbidden. Status code `403`. Applicable to 1 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.PlatformUnauthorizedAgentToolsProblemException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformUnauthorizedAgentToolsProblemException.java): Problem detail extended with `authentication_suggestions` naming each tool the caller must authorize. Status code `422`. Applicable to 1 of 167 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException.java): Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. Applicable to 33 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 10 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 6 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.UnauthorizedAgentToolsError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.UnauthorizedAgentToolsError.java): Returned when the agent has tools the caller must authorize before the run can start. Each entry in `authenticationSuggestions` names one such tool; POST its `serverId` to `/tool-servers/{serverId}/auth` with `returnUrl` in the request body to obtain an `authorizationUrl` to redirect the end user to, then retry the run once OAuth completes. Status code `422`. Applicable to 2 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.AccessRequestPermissionDeniedResponseException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.AccessRequestPermissionDeniedResponseException.java): Forbidden. Status code `403`. Applicable to 1 of 168 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.PlatformUnauthorizedAgentToolsProblemException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformUnauthorizedAgentToolsProblemException.java): Problem detail extended with `authentication_suggestions` naming each tool the caller must authorize. Status code `422`. Applicable to 1 of 168 methods.*


</details>
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1008,4 +1008,14 @@ Based on:
### Generated
- [java v0.17.15] .
### Releases
- [Maven Central v0.17.15] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.17.15 - .
- [Maven Central v0.17.15] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.17.15 - .

## 2026-09-22 19:02:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.798.0 (2.938.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.17.16] .
### Releases
- [Maven Central v0.17.16] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.17.16 - .
20 changes: 20 additions & 0 deletions docs/models/components/ExecutionMode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ExecutionMode

REQUEST_BOUND preserves the existing wait/stream behavior. DURABLE starts a fresh, persisted execution with a 30-minute execution timeout and returns immediately. DURABLE requires stream to be false or omitted and does not accept metadata.chat_session_id. It does not bypass tool approval requirements or provide automatic QE-crash resumption. Expiry is read-triggered: the next GET of the run marks an active turn FAILED if more than 40 minutes have passed since the turn was accepted. There is no periodic sweep, so the stored run can remain RUNNING until it is read. Expiry never replays execution or expires approval-paused runs, and failure does not prove that external tool work has stopped.


## Example Usage

```java
import com.glean.api_client.glean_api_client.models.components.ExecutionMode;

ExecutionMode value = ExecutionMode.REQUEST_BOUND;
```


## Values

| Name | Value |
| --------------- | --------------- |
| `REQUEST_BOUND` | REQUEST_BOUND |
| `DURABLE` | DURABLE |
4 changes: 3 additions & 1 deletion docs/models/components/FeedRequestCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ FeedRequestCategory value = FeedRequestCategory.DOCUMENT_SUGGESTION;
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
| `EDIT_DOC` | EDIT_DOC |
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
| `CREATE_AGENT` | CREATE_AGENT |
| `MANAGER_INVITE` | MANAGER_INVITE |
4 changes: 3 additions & 1 deletion docs/models/components/FeedResultCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ FeedResultCategory custom = FeedResultCategory.of("custom_value");
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
| `EDIT_DOC` | EDIT_DOC |
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
| `CREATE_AGENT` | CREATE_AGENT |
| `MANAGER_INVITE` | MANAGER_INVITE |
4 changes: 3 additions & 1 deletion docs/models/components/JustificationType.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ JustificationType custom = JustificationType.of("custom_value");
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
| `EDIT_DOC` | EDIT_DOC |
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
| `CREATE_AGENT` | CREATE_AGENT |
| `MANAGER_INVITE` | MANAGER_INVITE |
Loading