Skip to content
Merged
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
419 changes: 359 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
514 changes: 478 additions & 36 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:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
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:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:672971bb7999c5935c7c05862d256a02965ae632671643f46cf49e75dd3c9b01
codeSamplesRevisionDigest: sha256:4b63f96bab1edfa009e83877c1c32f1c4578ceae59046c97bb7a4c7be61586ca
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
70 changes: 54 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,9 @@ 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
* [cancelRun](docs/sdks/agents/README.md#cancelrun) - Cancel an agent run
* [respondToRun](docs/sdks/agents/README.md#respondtorun) - Respond to agent run approvals

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

Expand Down Expand Up @@ -658,11 +661,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 +679,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 +724,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 +742,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 +885,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 35 of 170 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 170 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 170 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 170 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 170 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 170 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 170 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 170 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-23 18:28:48
### 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 - .
19 changes: 19 additions & 0 deletions docs/models/components/Decision.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Decision

The decision for this invocation only. Rejection follows normal workflow behavior.

## Example Usage

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

Decision value = Decision.APPROVE;
```


## Values

| Name | Value |
| --------- | --------- |
| `APPROVE` | APPROVE |
| `REJECT` | REJECT |
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 |
11 changes: 11 additions & 0 deletions docs/models/components/PlatformAgentRunApprovalDecision.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# PlatformAgentRunApprovalDecision

Approve or reject the invocation identified by a pending interaction ID.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `interactionId` | *String* | :heavy_check_mark: | The interaction_id returned in the run's pending_interactions. |
| `decision` | [Decision](../../models/components/Decision.md) | :heavy_check_mark: | The decision for this invocation only. Rejection follows normal workflow behavior. |
10 changes: 10 additions & 0 deletions docs/models/components/PlatformAgentRunCancellationRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# PlatformAgentRunCancellationRequest

Request cooperative cancellation of a run owned by the caller.


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `runId` | *String* | :heavy_check_mark: | ID of the run to cancel. Must belong to the agent identified in the path. |
Loading