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
14 changes: 7 additions & 7 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 @@ -22,7 +22,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.10.4
version: 0.10.5
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
3 changes: 3 additions & 0 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8639,6 +8639,9 @@ components:
agentName:
type: string
description: Agent name
icon:
$ref: "#/components/schemas/IconConfig"
description: Agent icon configuration
userCount:
type: integer
description: Total number of users for this agent over the specified time period.
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.635.3
speakeasyVersion: 1.636.2
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:9c88586528e71ab61d6ab430aae0133ce42899151af73f3917d776b7d45785a5
sourceBlobDigest: sha256:ce64a4e209ccf3f1af32689bd1d7c3aea9bf764b2b047ccb8decbc87dbdd3c1e
sourceRevisionDigest: sha256:3f099971b20cdaba1d53693ee90708d1461530957b1e44009e457250d4441b05
sourceBlobDigest: sha256:02db6ddd119e9c20b2130f2318039c2b6e19b0487ecb3bd5aed5e92acfe203cc
tags:
- latest
- speakeasy-sdk-regen-1759451490
- speakeasy-sdk-regen-1759915422
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:9c88586528e71ab61d6ab430aae0133ce42899151af73f3917d776b7d45785a5
sourceBlobDigest: sha256:ce64a4e209ccf3f1af32689bd1d7c3aea9bf764b2b047ccb8decbc87dbdd3c1e
sourceRevisionDigest: sha256:3f099971b20cdaba1d53693ee90708d1461530957b1e44009e457250d4441b05
sourceBlobDigest: sha256:02db6ddd119e9c20b2130f2318039c2b6e19b0487ecb3bd5aed5e92acfe203cc
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:4255aa39310ef8cc96770aa67302bef439f3dd7cf1d0e167569d9b5802a821e2
codeSamplesRevisionDigest: sha256:177eedda1fa9fb4929746471d22145778a18c64a9969ba9ba4bc869a9ae2b524
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 @@ -64,15 +64,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.10.4'
implementation 'com.glean.api-client:glean-api-client:0.10.5'
```

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

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

## 2025-10-09 01:51:20
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.636.2 (2.723.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.10.5] .
### Releases
- [Maven Central v0.10.5] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.10.5 - .
13 changes: 7 additions & 6 deletions docs/models/components/PerAgentInsight.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `agentId` | *Optional\<String>* | :heavy_minus_sign: | Agent ID |
| `agentName` | *Optional\<String>* | :heavy_minus_sign: | Agent name |
| `userCount` | *Optional\<Long>* | :heavy_minus_sign: | Total number of users for this agent over the specified time period. |
| `runCount` | *Optional\<Long>* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. |
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `agentId` | *Optional\<String>* | :heavy_minus_sign: | Agent ID | |
| `agentName` | *Optional\<String>* | :heavy_minus_sign: | Agent name | |
| `icon` | [Optional\<IconConfig>](../../models/components/IconConfig.md) | :heavy_minus_sign: | Defines how to render an icon | {<br/>"color": "#343CED",<br/>"key": "person_icon",<br/>"iconType": "GLYPH",<br/>"name": "user"<br/>} |
| `userCount` | *Optional\<Long>* | :heavy_minus_sign: | Total number of users for this agent over the specified time period. | |
| `runCount` | *Optional\<Long>* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | |
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
groupId=com.glean.api-client
artifactId=glean-api-client
version=0.10.4
version=0.10.5
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public class SDKConfiguration {

private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.9.0";
public static final String SDK_VERSION = "0.10.4";
public static final String GEN_VERSION = "2.722.5";
public static final String SDK_VERSION = "0.10.5";
public static final String GEN_VERSION = "2.723.8";
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Optional;


Expand All @@ -30,6 +31,13 @@ public class PerAgentInsight {
@JsonProperty("agentName")
private Optional<String> agentName;

/**
* Defines how to render an icon
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("icon")
private Optional<? extends IconConfig> icon;

/**
* Total number of users for this agent over the specified time period.
*/
Expand All @@ -48,21 +56,24 @@ public class PerAgentInsight {
public PerAgentInsight(
@JsonProperty("agentId") Optional<String> agentId,
@JsonProperty("agentName") Optional<String> agentName,
@JsonProperty("icon") Optional<? extends IconConfig> icon,
@JsonProperty("userCount") Optional<Long> userCount,
@JsonProperty("runCount") Optional<Long> runCount) {
Utils.checkNotNull(agentId, "agentId");
Utils.checkNotNull(agentName, "agentName");
Utils.checkNotNull(icon, "icon");
Utils.checkNotNull(userCount, "userCount");
Utils.checkNotNull(runCount, "runCount");
this.agentId = agentId;
this.agentName = agentName;
this.icon = icon;
this.userCount = userCount;
this.runCount = runCount;
}

public PerAgentInsight() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty());
Optional.empty(), Optional.empty());
}

/**
Expand All @@ -81,6 +92,15 @@ public Optional<String> agentName() {
return agentName;
}

/**
* Defines how to render an icon
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<IconConfig> icon() {
return (Optional<IconConfig>) icon;
}

/**
* Total number of users for this agent over the specified time period.
*/
Expand Down Expand Up @@ -140,6 +160,25 @@ public PerAgentInsight withAgentName(Optional<String> agentName) {
return this;
}

/**
* Defines how to render an icon
*/
public PerAgentInsight withIcon(IconConfig icon) {
Utils.checkNotNull(icon, "icon");
this.icon = Optional.ofNullable(icon);
return this;
}


/**
* Defines how to render an icon
*/
public PerAgentInsight withIcon(Optional<? extends IconConfig> icon) {
Utils.checkNotNull(icon, "icon");
this.icon = icon;
return this;
}

/**
* Total number of users for this agent over the specified time period.
*/
Expand Down Expand Up @@ -190,22 +229,24 @@ public boolean equals(java.lang.Object o) {
return
Utils.enhancedDeepEquals(this.agentId, other.agentId) &&
Utils.enhancedDeepEquals(this.agentName, other.agentName) &&
Utils.enhancedDeepEquals(this.icon, other.icon) &&
Utils.enhancedDeepEquals(this.userCount, other.userCount) &&
Utils.enhancedDeepEquals(this.runCount, other.runCount);
}

@Override
public int hashCode() {
return Utils.enhancedHash(
agentId, agentName, userCount,
runCount);
agentId, agentName, icon,
userCount, runCount);
}

@Override
public String toString() {
return Utils.toString(PerAgentInsight.class,
"agentId", agentId,
"agentName", agentName,
"icon", icon,
"userCount", userCount,
"runCount", runCount);
}
Expand All @@ -217,6 +258,8 @@ public final static class Builder {

private Optional<String> agentName = Optional.empty();

private Optional<? extends IconConfig> icon = Optional.empty();

private Optional<Long> userCount = Optional.empty();

private Optional<Long> runCount = Optional.empty();
Expand Down Expand Up @@ -264,6 +307,25 @@ public Builder agentName(Optional<String> agentName) {
}


/**
* Defines how to render an icon
*/
public Builder icon(IconConfig icon) {
Utils.checkNotNull(icon, "icon");
this.icon = Optional.ofNullable(icon);
return this;
}

/**
* Defines how to render an icon
*/
public Builder icon(Optional<? extends IconConfig> icon) {
Utils.checkNotNull(icon, "icon");
this.icon = icon;
return this;
}


/**
* Total number of users for this agent over the specified time period.
*/
Expand Down Expand Up @@ -304,8 +366,8 @@ public Builder runCount(Optional<Long> runCount) {
public PerAgentInsight build() {

return new PerAgentInsight(
agentId, agentName, userCount,
runCount);
agentId, agentName, icon,
userCount, runCount);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ BeforeRequestContextImpl createBeforeRequestContext() {
this.sdkConfiguration,
this.baseUrl,
"activity",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -70,7 +70,7 @@ AfterSuccessContextImpl createAfterSuccessContext() {
this.sdkConfiguration,
this.baseUrl,
"activity",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -79,7 +79,7 @@ AfterErrorContextImpl createAfterErrorContext() {
this.sdkConfiguration,
this.baseUrl,
"activity",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}
<T, U>HttpRequest buildRequest(T request, TypeReference<U> typeReference) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ BeforeRequestContextImpl createBeforeRequestContext() {
this.sdkConfiguration,
this.baseUrl,
"addcollectionitems",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -73,7 +73,7 @@ AfterSuccessContextImpl createAfterSuccessContext() {
this.sdkConfiguration,
this.baseUrl,
"addcollectionitems",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -82,7 +82,7 @@ AfterErrorContextImpl createAfterErrorContext() {
this.sdkConfiguration,
this.baseUrl,
"addcollectionitems",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}
<T, U>HttpRequest buildRequest(T request, TypeReference<U> typeReference) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ BeforeRequestContextImpl createBeforeRequestContext() {
this.sdkConfiguration,
this.baseUrl,
"addverificationreminder",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -73,7 +73,7 @@ AfterSuccessContextImpl createAfterSuccessContext() {
this.sdkConfiguration,
this.baseUrl,
"addverificationreminder",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -82,7 +82,7 @@ AfterErrorContextImpl createAfterErrorContext() {
this.sdkConfiguration,
this.baseUrl,
"addverificationreminder",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}
<T, U>HttpRequest buildRequest(T request, TypeReference<U> typeReference) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ BeforeRequestContextImpl createBeforeRequestContext() {
this.sdkConfiguration,
this.baseUrl,
"adminsearch",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -74,7 +74,7 @@ AfterSuccessContextImpl createAfterSuccessContext() {
this.sdkConfiguration,
this.baseUrl,
"adminsearch",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}

Expand All @@ -83,7 +83,7 @@ AfterErrorContextImpl createAfterErrorContext() {
this.sdkConfiguration,
this.baseUrl,
"adminsearch",
java.util.Optional.of(java.util.List.of()),
java.util.Optional.empty(),
securitySource());
}
<T, U>HttpRequest buildRequest(T request, TypeReference<U> typeReference) throws Exception {
Expand Down
Loading