diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index b50c0f8..f2c1f83 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
management:
- docChecksum: a88d9955d9cbdc1c97388b62e19647f9
+ docChecksum: 2ffc5de135d861194642d3cb0a9e3bb4
docVersion: 0.9.0
- speakeasyVersion: 1.640.0
- generationVersion: 2.730.5
- releaseVersion: 0.11.1
- configChecksum: 0188004147fd785d19ccb3035e112b3c
+ speakeasyVersion: 1.642.1
+ generationVersion: 2.731.4
+ releaseVersion: 0.11.2
+ configChecksum: 31b264d5e634fc5007a0a4711f927b69
repoURL: https://github.com/gleanwork/api-client-java.git
published: true
features:
@@ -2897,4 +2897,6 @@ generatedTests:
get_/rest/api/v1/tools/list: "2025-06-09T18:03:44Z"
post_/rest/api/v1/tools/call: "2025-06-09T18:03:44Z"
listpolicies: "2025-06-09T18:03:44Z"
-releaseNotes: "## Java SDK Changes Detected:\n* `glean.client.announcements.create()`: \n * `request.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.announcements.update()`: \n * `request.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.create()`: \n * `request.data.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.addedroles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.update()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.addedroles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.retrieve()`: `response.answerresult.answer.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.list()`: `response.answerresults.[].answer.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.create()`: \n * `request.chatrequest.messages.[].citations.[].sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.messages.[].citations.[].sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.retrieve()`: `response.chatresult.chat.createdBy.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.list()`: `response.chatresults.[].chat.createdBy.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatrequest.messages.[].citations.[].sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.addItems()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.create()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.[class].collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.deleteItem()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.update()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.addedroles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.updateItem()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.list()`: `response.collections.[].addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.documents.retrieve()`: `response.documents.{}` **Changed**\n* `glean.client.documents.retrieveByFacets()`: `response.documents.[].metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.insights.retrieve()`: `response.users.activityInsights.[].user.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.messages.retrieve()`: `response.searchresponse.results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.update()`: `response.attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.list()`: `response.pins.[].attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.create()`: `response.attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.queryAsAdmin()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.retrieveFeed()`: `response.results.[].primaryEntry.createdBy.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.recommendations()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.query()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.results.[].structuredResults.[].chat` **Added**\n* `glean.client.entities.list()`: `response.results.[].relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.entities.readPeople()`: `response.results.[].relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.create()`: \n * `request.data.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.shortcut.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.list()`: `response.shortcuts.[].addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.update()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.shortcut.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.verification.addReminder()`: `response.metadata.lastVerifier.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.verification.list()`: `response.documents.[].metadata.lastVerifier.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.verification.verify()`: `response.metadata.lastVerifier.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n"
+releaseNotes: |
+ ## Java SDK Changes Detected:
+ * `glean.client.insights.retrieve()`: `response.agentsresponse` **Changed**
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index f34abff..8b1b8e0 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -24,7 +24,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
- version: 0.11.1
+ version: 0.11.2
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml
index a75837a..4d2645b 100644
--- a/.speakeasy/glean-merged-spec.yaml
+++ b/.speakeasy/glean-merged-spec.yaml
@@ -8663,6 +8663,12 @@ components:
runCount:
type: integer
description: Total number of runs for this agent over the specified time period.
+ upvoteCount:
+ type: integer
+ description: Total number of upvotes for this agent over the specified time period.
+ downvoteCount:
+ type: integer
+ description: Total number of downvotes for this agent over the specified time period.
AgentsUsageByDepartmentInsight:
properties:
department:
@@ -8732,6 +8738,10 @@ components:
$ref: "#/components/schemas/AgentUsersInsight"
dailyAgentRunsTimeseries:
$ref: "#/components/schemas/LabeledCountInfo"
+ upvotesTimeseries:
+ $ref: "#/components/schemas/LabeledCountInfo"
+ downvotesTimeseries:
+ $ref: "#/components/schemas/LabeledCountInfo"
InsightsResponse:
properties:
timeseries:
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 149bd51..b8d568a 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,12 +1,12 @@
-speakeasyVersion: 1.640.0
+speakeasyVersion: 1.642.1
sources:
Glean API:
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:9185501d1d898cebc99ebe94e5727ae819ab99ac594dd3e5b54c26212ea70b47
- sourceBlobDigest: sha256:a1f24fbc23ef924e4ec1955c22b78a7437b9c77b601fde39bcb9537daa8ce4cd
+ sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32
+ sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048
tags:
- latest
- - speakeasy-sdk-regen-1761265128
+ - speakeasy-sdk-regen-1761685683
Glean-OAS:
sourceNamespace: glean-oas
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -18,10 +18,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:9185501d1d898cebc99ebe94e5727ae819ab99ac594dd3e5b54c26212ea70b47
- sourceBlobDigest: sha256:a1f24fbc23ef924e4ec1955c22b78a7437b9c77b601fde39bcb9537daa8ce4cd
+ sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32
+ sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048
codeSamplesNamespace: glean-api-specs-java-code-samples
- codeSamplesRevisionDigest: sha256:c4662c94f022d7c04241ad3fe686375a4eb1100d37228d0b0d393b3453e42987
+ codeSamplesRevisionDigest: sha256:c83720dd11d90c11b3fca65383615a471a55bb68c1971f6a032b68aca36cd639
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/README.md b/README.md
index fd21168..49828e2 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
-implementation 'com.glean.api-client:glean-api-client:0.11.1'
+implementation 'com.glean.api-client:glean-api-client:0.11.2'
```
Maven:
@@ -73,7 +73,7 @@ Maven:
com.glean.api-client
glean-api-client
- 0.11.1
+ 0.11.2
```
diff --git a/RELEASES.md b/RELEASES.md
index 24cec57..b05c1d8 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -308,4 +308,14 @@ Based on:
### Generated
- [java v0.11.1] .
### Releases
-- [Maven Central v0.11.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.11.1 - .
\ No newline at end of file
+- [Maven Central v0.11.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.11.1 - .
+
+## 2025-10-29 02:02:24
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.642.1 (2.731.4) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [java v0.11.2] .
+### Releases
+- [Maven Central v0.11.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.11.2 - .
\ No newline at end of file
diff --git a/docs/models/components/AgentsInsightsV2Response.md b/docs/models/components/AgentsInsightsV2Response.md
index b418146..e9010e0 100644
--- a/docs/models/components/AgentsInsightsV2Response.md
+++ b/docs/models/components/AgentsInsightsV2Response.md
@@ -14,4 +14,6 @@
| `topAgentsInsights` | List\<[PerAgentInsight](../../models/components/PerAgentInsight.md)> | :heavy_minus_sign: | N/A |
| `agentsUsageByDepartmentInsights` | List\<[AgentsUsageByDepartmentInsight](../../models/components/AgentsUsageByDepartmentInsight.md)> | :heavy_minus_sign: | N/A |
| `agentUsersInsights` | List\<[AgentUsersInsight](../../models/components/AgentUsersInsight.md)> | :heavy_minus_sign: | N/A |
-| `dailyAgentRunsTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
+| `dailyAgentRunsTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A |
+| `upvotesTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A |
+| `downvotesTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/docs/models/components/PerAgentInsight.md b/docs/models/components/PerAgentInsight.md
index 3c70e04..3261de3 100644
--- a/docs/models/components/PerAgentInsight.md
+++ b/docs/models/components/PerAgentInsight.md
@@ -9,4 +9,6 @@
| `agentName` | *Optional\* | :heavy_minus_sign: | Agent name | |
| `icon` | [Optional\](../../models/components/IconConfig.md) | :heavy_minus_sign: | Defines how to render an icon | {
"color": "#343CED",
"key": "person_icon",
"iconType": "GLYPH",
"name": "user"
} |
| `userCount` | *Optional\* | :heavy_minus_sign: | Total number of users for this agent over the specified time period. | |
-| `runCount` | *Optional\* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | |
\ No newline at end of file
+| `runCount` | *Optional\* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | |
+| `upvoteCount` | *Optional\* | :heavy_minus_sign: | Total number of upvotes for this agent over the specified time period. | |
+| `downvoteCount` | *Optional\* | :heavy_minus_sign: | Total number of downvotes for this agent over the specified time period. | |
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
index 25e47d6..9222333 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
groupId=com.glean.api-client
artifactId=glean-api-client
-version=0.11.1
+version=0.11.2
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
index a5e2a82..82ddfc9 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
@@ -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.11.1";
- public static final String GEN_VERSION = "2.730.5";
+ public static final String SDK_VERSION = "0.11.2";
+ public static final String GEN_VERSION = "2.731.4";
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",
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Response.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Response.java
index 6dba8ec..340c19a 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Response.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Response.java
@@ -74,6 +74,16 @@ public class AgentsInsightsV2Response {
@JsonProperty("dailyAgentRunsTimeseries")
private Optional extends LabeledCountInfo> dailyAgentRunsTimeseries;
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("upvotesTimeseries")
+ private Optional extends LabeledCountInfo> upvotesTimeseries;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("downvotesTimeseries")
+ private Optional extends LabeledCountInfo> downvotesTimeseries;
+
@JsonCreator
public AgentsInsightsV2Response(
@JsonProperty("monthlyActiveUsers") Optional monthlyActiveUsers,
@@ -85,7 +95,9 @@ public AgentsInsightsV2Response(
@JsonProperty("topAgentsInsights") Optional extends List> topAgentsInsights,
@JsonProperty("agentsUsageByDepartmentInsights") Optional extends List> agentsUsageByDepartmentInsights,
@JsonProperty("agentUsersInsights") Optional extends List> agentUsersInsights,
- @JsonProperty("dailyAgentRunsTimeseries") Optional extends LabeledCountInfo> dailyAgentRunsTimeseries) {
+ @JsonProperty("dailyAgentRunsTimeseries") Optional extends LabeledCountInfo> dailyAgentRunsTimeseries,
+ @JsonProperty("upvotesTimeseries") Optional extends LabeledCountInfo> upvotesTimeseries,
+ @JsonProperty("downvotesTimeseries") Optional extends LabeledCountInfo> downvotesTimeseries) {
Utils.checkNotNull(monthlyActiveUsers, "monthlyActiveUsers");
Utils.checkNotNull(weeklyActiveUsers, "weeklyActiveUsers");
Utils.checkNotNull(monthlyActiveUserTimeseries, "monthlyActiveUserTimeseries");
@@ -96,6 +108,8 @@ public AgentsInsightsV2Response(
Utils.checkNotNull(agentsUsageByDepartmentInsights, "agentsUsageByDepartmentInsights");
Utils.checkNotNull(agentUsersInsights, "agentUsersInsights");
Utils.checkNotNull(dailyAgentRunsTimeseries, "dailyAgentRunsTimeseries");
+ Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries");
+ Utils.checkNotNull(downvotesTimeseries, "downvotesTimeseries");
this.monthlyActiveUsers = monthlyActiveUsers;
this.weeklyActiveUsers = weeklyActiveUsers;
this.monthlyActiveUserTimeseries = monthlyActiveUserTimeseries;
@@ -106,13 +120,15 @@ public AgentsInsightsV2Response(
this.agentsUsageByDepartmentInsights = agentsUsageByDepartmentInsights;
this.agentUsersInsights = agentUsersInsights;
this.dailyAgentRunsTimeseries = dailyAgentRunsTimeseries;
+ this.upvotesTimeseries = upvotesTimeseries;
+ this.downvotesTimeseries = downvotesTimeseries;
}
public AgentsInsightsV2Response() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty());
+ Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -181,6 +197,18 @@ public Optional dailyAgentRunsTimeseries() {
return (Optional) dailyAgentRunsTimeseries;
}
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional upvotesTimeseries() {
+ return (Optional) upvotesTimeseries;
+ }
+
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional downvotesTimeseries() {
+ return (Optional) downvotesTimeseries;
+ }
+
public static Builder builder() {
return new Builder();
}
@@ -334,6 +362,32 @@ public AgentsInsightsV2Response withDailyAgentRunsTimeseries(Optional extends
return this;
}
+ public AgentsInsightsV2Response withUpvotesTimeseries(LabeledCountInfo upvotesTimeseries) {
+ Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries");
+ this.upvotesTimeseries = Optional.ofNullable(upvotesTimeseries);
+ return this;
+ }
+
+
+ public AgentsInsightsV2Response withUpvotesTimeseries(Optional extends LabeledCountInfo> upvotesTimeseries) {
+ Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries");
+ this.upvotesTimeseries = upvotesTimeseries;
+ return this;
+ }
+
+ public AgentsInsightsV2Response withDownvotesTimeseries(LabeledCountInfo downvotesTimeseries) {
+ Utils.checkNotNull(downvotesTimeseries, "downvotesTimeseries");
+ this.downvotesTimeseries = Optional.ofNullable(downvotesTimeseries);
+ return this;
+ }
+
+
+ public AgentsInsightsV2Response withDownvotesTimeseries(Optional extends LabeledCountInfo> downvotesTimeseries) {
+ Utils.checkNotNull(downvotesTimeseries, "downvotesTimeseries");
+ this.downvotesTimeseries = downvotesTimeseries;
+ return this;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -353,7 +407,9 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.topAgentsInsights, other.topAgentsInsights) &&
Utils.enhancedDeepEquals(this.agentsUsageByDepartmentInsights, other.agentsUsageByDepartmentInsights) &&
Utils.enhancedDeepEquals(this.agentUsersInsights, other.agentUsersInsights) &&
- Utils.enhancedDeepEquals(this.dailyAgentRunsTimeseries, other.dailyAgentRunsTimeseries);
+ Utils.enhancedDeepEquals(this.dailyAgentRunsTimeseries, other.dailyAgentRunsTimeseries) &&
+ Utils.enhancedDeepEquals(this.upvotesTimeseries, other.upvotesTimeseries) &&
+ Utils.enhancedDeepEquals(this.downvotesTimeseries, other.downvotesTimeseries);
}
@Override
@@ -362,7 +418,7 @@ public int hashCode() {
monthlyActiveUsers, weeklyActiveUsers, monthlyActiveUserTimeseries,
weeklyActiveUserTimeseries, dailyActiveUserTimeseries, sharedAgentsCount,
topAgentsInsights, agentsUsageByDepartmentInsights, agentUsersInsights,
- dailyAgentRunsTimeseries);
+ dailyAgentRunsTimeseries, upvotesTimeseries, downvotesTimeseries);
}
@Override
@@ -377,7 +433,9 @@ public String toString() {
"topAgentsInsights", topAgentsInsights,
"agentsUsageByDepartmentInsights", agentsUsageByDepartmentInsights,
"agentUsersInsights", agentUsersInsights,
- "dailyAgentRunsTimeseries", dailyAgentRunsTimeseries);
+ "dailyAgentRunsTimeseries", dailyAgentRunsTimeseries,
+ "upvotesTimeseries", upvotesTimeseries,
+ "downvotesTimeseries", downvotesTimeseries);
}
@SuppressWarnings("UnusedReturnValue")
@@ -403,6 +461,10 @@ public final static class Builder {
private Optional extends LabeledCountInfo> dailyAgentRunsTimeseries = Optional.empty();
+ private Optional extends LabeledCountInfo> upvotesTimeseries = Optional.empty();
+
+ private Optional extends LabeledCountInfo> downvotesTimeseries = Optional.empty();
+
private Builder() {
// force use of static builder() method
}
@@ -555,13 +617,39 @@ public Builder dailyAgentRunsTimeseries(Optional extends LabeledCountInfo> dai
return this;
}
+
+ public Builder upvotesTimeseries(LabeledCountInfo upvotesTimeseries) {
+ Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries");
+ this.upvotesTimeseries = Optional.ofNullable(upvotesTimeseries);
+ return this;
+ }
+
+ public Builder upvotesTimeseries(Optional extends LabeledCountInfo> upvotesTimeseries) {
+ Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries");
+ this.upvotesTimeseries = upvotesTimeseries;
+ return this;
+ }
+
+
+ public Builder downvotesTimeseries(LabeledCountInfo downvotesTimeseries) {
+ Utils.checkNotNull(downvotesTimeseries, "downvotesTimeseries");
+ this.downvotesTimeseries = Optional.ofNullable(downvotesTimeseries);
+ return this;
+ }
+
+ public Builder downvotesTimeseries(Optional extends LabeledCountInfo> downvotesTimeseries) {
+ Utils.checkNotNull(downvotesTimeseries, "downvotesTimeseries");
+ this.downvotesTimeseries = downvotesTimeseries;
+ return this;
+ }
+
public AgentsInsightsV2Response build() {
return new AgentsInsightsV2Response(
monthlyActiveUsers, weeklyActiveUsers, monthlyActiveUserTimeseries,
weeklyActiveUserTimeseries, dailyActiveUserTimeseries, sharedAgentsCount,
topAgentsInsights, agentsUsageByDepartmentInsights, agentUsersInsights,
- dailyAgentRunsTimeseries);
+ dailyAgentRunsTimeseries, upvotesTimeseries, downvotesTimeseries);
}
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PerAgentInsight.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PerAgentInsight.java
index d667a89..7eb719b 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PerAgentInsight.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PerAgentInsight.java
@@ -52,28 +52,49 @@ public class PerAgentInsight {
@JsonProperty("runCount")
private Optional runCount;
+ /**
+ * Total number of upvotes for this agent over the specified time period.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("upvoteCount")
+ private Optional upvoteCount;
+
+ /**
+ * Total number of downvotes for this agent over the specified time period.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("downvoteCount")
+ private Optional downvoteCount;
+
@JsonCreator
public PerAgentInsight(
@JsonProperty("agentId") Optional agentId,
@JsonProperty("agentName") Optional agentName,
@JsonProperty("icon") Optional extends IconConfig> icon,
@JsonProperty("userCount") Optional userCount,
- @JsonProperty("runCount") Optional runCount) {
+ @JsonProperty("runCount") Optional runCount,
+ @JsonProperty("upvoteCount") Optional upvoteCount,
+ @JsonProperty("downvoteCount") Optional downvoteCount) {
Utils.checkNotNull(agentId, "agentId");
Utils.checkNotNull(agentName, "agentName");
Utils.checkNotNull(icon, "icon");
Utils.checkNotNull(userCount, "userCount");
Utils.checkNotNull(runCount, "runCount");
+ Utils.checkNotNull(upvoteCount, "upvoteCount");
+ Utils.checkNotNull(downvoteCount, "downvoteCount");
this.agentId = agentId;
this.agentName = agentName;
this.icon = icon;
this.userCount = userCount;
this.runCount = runCount;
+ this.upvoteCount = upvoteCount;
+ this.downvoteCount = downvoteCount;
}
public PerAgentInsight() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty(), Optional.empty());
+ Optional.empty(), Optional.empty(), Optional.empty(),
+ Optional.empty());
}
/**
@@ -117,6 +138,22 @@ public Optional runCount() {
return runCount;
}
+ /**
+ * Total number of upvotes for this agent over the specified time period.
+ */
+ @JsonIgnore
+ public Optional upvoteCount() {
+ return upvoteCount;
+ }
+
+ /**
+ * Total number of downvotes for this agent over the specified time period.
+ */
+ @JsonIgnore
+ public Optional downvoteCount() {
+ return downvoteCount;
+ }
+
public static Builder builder() {
return new Builder();
}
@@ -217,6 +254,44 @@ public PerAgentInsight withRunCount(Optional runCount) {
return this;
}
+ /**
+ * Total number of upvotes for this agent over the specified time period.
+ */
+ public PerAgentInsight withUpvoteCount(long upvoteCount) {
+ Utils.checkNotNull(upvoteCount, "upvoteCount");
+ this.upvoteCount = Optional.ofNullable(upvoteCount);
+ return this;
+ }
+
+
+ /**
+ * Total number of upvotes for this agent over the specified time period.
+ */
+ public PerAgentInsight withUpvoteCount(Optional upvoteCount) {
+ Utils.checkNotNull(upvoteCount, "upvoteCount");
+ this.upvoteCount = upvoteCount;
+ return this;
+ }
+
+ /**
+ * Total number of downvotes for this agent over the specified time period.
+ */
+ public PerAgentInsight withDownvoteCount(long downvoteCount) {
+ Utils.checkNotNull(downvoteCount, "downvoteCount");
+ this.downvoteCount = Optional.ofNullable(downvoteCount);
+ return this;
+ }
+
+
+ /**
+ * Total number of downvotes for this agent over the specified time period.
+ */
+ public PerAgentInsight withDownvoteCount(Optional downvoteCount) {
+ Utils.checkNotNull(downvoteCount, "downvoteCount");
+ this.downvoteCount = downvoteCount;
+ return this;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -231,14 +306,17 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.agentName, other.agentName) &&
Utils.enhancedDeepEquals(this.icon, other.icon) &&
Utils.enhancedDeepEquals(this.userCount, other.userCount) &&
- Utils.enhancedDeepEquals(this.runCount, other.runCount);
+ Utils.enhancedDeepEquals(this.runCount, other.runCount) &&
+ Utils.enhancedDeepEquals(this.upvoteCount, other.upvoteCount) &&
+ Utils.enhancedDeepEquals(this.downvoteCount, other.downvoteCount);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
agentId, agentName, icon,
- userCount, runCount);
+ userCount, runCount, upvoteCount,
+ downvoteCount);
}
@Override
@@ -248,7 +326,9 @@ public String toString() {
"agentName", agentName,
"icon", icon,
"userCount", userCount,
- "runCount", runCount);
+ "runCount", runCount,
+ "upvoteCount", upvoteCount,
+ "downvoteCount", downvoteCount);
}
@SuppressWarnings("UnusedReturnValue")
@@ -264,6 +344,10 @@ public final static class Builder {
private Optional runCount = Optional.empty();
+ private Optional upvoteCount = Optional.empty();
+
+ private Optional downvoteCount = Optional.empty();
+
private Builder() {
// force use of static builder() method
}
@@ -363,11 +447,50 @@ public Builder runCount(Optional runCount) {
return this;
}
+
+ /**
+ * Total number of upvotes for this agent over the specified time period.
+ */
+ public Builder upvoteCount(long upvoteCount) {
+ Utils.checkNotNull(upvoteCount, "upvoteCount");
+ this.upvoteCount = Optional.ofNullable(upvoteCount);
+ return this;
+ }
+
+ /**
+ * Total number of upvotes for this agent over the specified time period.
+ */
+ public Builder upvoteCount(Optional upvoteCount) {
+ Utils.checkNotNull(upvoteCount, "upvoteCount");
+ this.upvoteCount = upvoteCount;
+ return this;
+ }
+
+
+ /**
+ * Total number of downvotes for this agent over the specified time period.
+ */
+ public Builder downvoteCount(long downvoteCount) {
+ Utils.checkNotNull(downvoteCount, "downvoteCount");
+ this.downvoteCount = Optional.ofNullable(downvoteCount);
+ return this;
+ }
+
+ /**
+ * Total number of downvotes for this agent over the specified time period.
+ */
+ public Builder downvoteCount(Optional downvoteCount) {
+ Utils.checkNotNull(downvoteCount, "downvoteCount");
+ this.downvoteCount = downvoteCount;
+ return this;
+ }
+
public PerAgentInsight build() {
return new PerAgentInsight(
agentId, agentName, icon,
- userCount, runCount);
+ userCount, runCount, upvoteCount,
+ downvoteCount);
}
}