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
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
management:
docChecksum: 59c6e14049dbd73093349e44990e95cc
docChecksum: 6cb4c4786bf30fecfc20b38750d745eb
docVersion: 0.9.0
speakeasyVersion: 1.558.0
generationVersion: 2.623.2
releaseVersion: 0.5.5
configChecksum: fa9891571ae879a5a9c20e2619cde1e9
speakeasyVersion: 1.563.2
generationVersion: 2.629.2
releaseVersion: 0.5.6
configChecksum: a3fcc2f551abcd371f1891c11a1cf24a
repoURL: https://github.com/gleanwork/api-client-java.git
published: true
features:
java:
additionalDependencies: 0.1.0
additionalProperties: 0.0.1
constsAndDefaults: 0.1.1
core: 3.37.4
core: 3.39.0
deprecations: 2.81.1
examples: 2.81.5
flattening: 2.81.1
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
java:
version: 0.5.5
version: 0.5.6
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand All @@ -27,6 +27,7 @@ java:
companyName: Glean
companyURL: https://www.glean.com
defaultErrorName: APIException
enableCustomCodeRegions: false
envVarPrefix: GLEAN
flattenGlobalSecurity: true
githubURL: github.com/gleanwork/api-client-java
Expand Down
14 changes: 12 additions & 2 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,12 @@ paths:
tags:
- Authentication
summary: Create authentication token
description: Creates an authentication token for the authenticated user.
description: |
Creates an authentication token for the authenticated user. These are
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).

Note: The tokens generated from this endpoint are **not** valid tokens
for use with the Client API (e.g. `/rest/api/v1/*`).
operationId: createauthtoken
x-visibility: Public
parameters: []
Expand Down Expand Up @@ -841,7 +846,7 @@ paths:
tags:
- Agents
summary: Search agents
description: "Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. "
description: Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
operationId: searchAgents
x-visibility: Preview
requestBody:
Expand Down Expand Up @@ -7554,6 +7559,11 @@ components:
$ref: "#/components/schemas/Message"
title: Messages
description: The messages to pass an input to the agent.
metadata:
type: object
title: Metadata
description: The metadata to pass to the agent.
additionalProperties: true
AgentExecutionStatus:
description: The status of the run. One of 'error', 'success'.
type: string
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.558.0
speakeasyVersion: 1.563.2
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:8a528d68d247ecb98ea1d9d49c135154477cbfbab078b6159359a09f64628fba
sourceBlobDigest: sha256:09d1624a9a347738790040f1fcdc5f2eff15461dd39941a1535efb55e2c8939f
sourceRevisionDigest: sha256:766f374184dd7d6b119aef718a826e26e7e690a65bd8edd8e326c75699c9c0f5
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
tags:
- latest
- speakeasy-sdk-regen-1749491204
- speakeasy-sdk-regen-1749670145
Glean-OAS:
sourceNamespace: glean-oas
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
Expand All @@ -18,10 +18,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:8a528d68d247ecb98ea1d9d49c135154477cbfbab078b6159359a09f64628fba
sourceBlobDigest: sha256:09d1624a9a347738790040f1fcdc5f2eff15461dd39941a1535efb55e2c8939f
sourceRevisionDigest: sha256:766f374184dd7d6b119aef718a826e26e7e690a65bd8edd8e326c75699c9c0f5
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:e5b2ea5208c1dc6e24e3a32186332fee5e6235cc612e785611add744c44901fa
codeSamplesRevisionDigest: sha256:d644e6736c249dfb5aab7f2f6899ae480a6fbebde39c8bb385cf233f3b5689d4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.5.5'
implementation 'com.glean.api-client:glean-api-client:0.5.6'
```

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

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

## 2025-06-16 19:03:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.563.2 (2.629.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.5.6] .
### Releases
- [Maven Central v0.5.6] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.6 - .
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ publishing {
// https://github.com/gradle/gradle/issues/18619
groupId = "com.glean.api-client"
artifactId = "glean-api-client"
version = "0.5.5"
version = "0.5.6"

from components.java

Expand Down
1 change: 1 addition & 0 deletions docs/models/components/AgentRun.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Payload for creating a run.
| `agentId` | *String* | :heavy_check_mark: | The ID of the agent to run. |
| `input` | Map\<String, *Object*> | :heavy_minus_sign: | The input to the agent. |
| `messages` | List\<[Message](../../models/components/Message.md)> | :heavy_minus_sign: | The messages to pass an input to the agent. |
| `metadata` | Map\<String, *Object*> | :heavy_minus_sign: | The metadata to pass to the agent. |
| `status` | [Optional\<AgentExecutionStatus>](../../models/components/AgentExecutionStatus.md) | :heavy_minus_sign: | The status of the run. One of 'error', 'success'. |
3 changes: 2 additions & 1 deletion docs/models/components/AgentRunCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Payload for creating a run.
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `agentId` | *String* | :heavy_check_mark: | The ID of the agent to run. |
| `input` | Map\<String, *Object*> | :heavy_minus_sign: | The input to the agent. |
| `messages` | List\<[Message](../../models/components/Message.md)> | :heavy_minus_sign: | The messages to pass an input to the agent. |
| `messages` | List\<[Message](../../models/components/Message.md)> | :heavy_minus_sign: | The messages to pass an input to the agent. |
| `metadata` | Map\<String, *Object*> | :heavy_minus_sign: | The metadata to pass to the agent. |
2 changes: 1 addition & 1 deletion docs/sdks/agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public class Application {

## list

Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.

### Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ import com.glean.api_client.glean_api_client.Glean;
import com.glean.api_client.glean_api_client.models.components.File;
import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest;
import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesResponse;
import com.glean.api_client.glean_api_client.utils.Utils;
import java.lang.Exception;
import java.nio.charset.StandardCharsets;
import java.util.List;

public class Application {
Expand All @@ -352,7 +352,7 @@ public class Application {
.files(List.of(
File.builder()
.fileName("example.file")
.content("0x8b739cFCeF".getBytes(StandardCharsets.UTF_8))
.content(Utils.readBytes("example.file"))
.build()))
.build())
.call();
Expand Down
7 changes: 6 additions & 1 deletion docs/sdks/clientauthentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

## createToken

Creates an authentication token for the authenticated user.
Creates an authentication token for the authenticated user. These are
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).

Note: The tokens generated from this endpoint are **not** valid tokens
for use with the Client API (e.g. `/rest/api/v1/*`).


### Example Usage

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
groupId=com.glean.api-client
artifactId=glean-api-client
version=0.5.5
version=0.5.6
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class Activity implements
this.sdkConfiguration = sdkConfiguration;
}


/**
* Report document activity
*
Expand Down Expand Up @@ -178,7 +177,6 @@ public ActivityResponse report(
}



/**
* Report client activity
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public class Agents implements
this.sdkConfiguration = sdkConfiguration;
}


/**
* Retrieve an agent
*
Expand Down Expand Up @@ -221,7 +220,6 @@ public GetAgentResponse retrieve(
}



/**
* List an agent's schemas
*
Expand Down Expand Up @@ -388,7 +386,6 @@ public GetAgentSchemasResponse retrieveSchemas(
}



/**
* Search agents
*
Expand Down Expand Up @@ -538,7 +535,6 @@ public SearchAgentsResponse list(
}



/**
* Create an agent run and stream the response
*
Expand Down Expand Up @@ -686,7 +682,6 @@ public CreateAndStreamRunResponse runStream(
}



/**
* Create an agent run and wait for the response
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public class Announcements implements
this.sdkConfiguration = sdkConfiguration;
}


/**
* Create Announcement
*
Expand Down Expand Up @@ -194,7 +193,6 @@ public CreateannouncementResponse create(
}



/**
* Delete Announcement
*
Expand Down Expand Up @@ -333,7 +331,6 @@ public DeleteannouncementResponse delete(
}



/**
* Update Announcement
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public class Answers implements
this.sdkConfiguration = sdkConfiguration;
}


/**
* Create Answer
*
Expand Down Expand Up @@ -204,7 +203,6 @@ public CreateanswerResponse create(
}



/**
* Delete Answer
*
Expand Down Expand Up @@ -343,7 +341,6 @@ public DeleteanswerResponse delete(
}



/**
* Update Answer
*
Expand Down Expand Up @@ -493,7 +490,6 @@ public EditanswerResponse update(
}



/**
* Read Answer
*
Expand Down Expand Up @@ -643,7 +639,6 @@ public GetanswerResponse retrieve(
}



/**
* List Answers
*
Expand Down
Loading