From 954e2006ba4b50bfef3705cc0580ef22e14c7497 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 8 Apr 2026 19:57:18 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `glean.client.insights.retrieve()`: `response.agentsResponse` **Changed** * `glean.client.search.retrieveFeed()`: `response.results[].primaryEntry.promptTemplate.favoriteInfo.ugcType.enum(spreadsheetType)` **Added** --- .speakeasy/gen.lock | 51 +- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 37 +- .speakeasy/workflow.lock | 10 +- README.md | 4 +- RELEASES.md | 12 +- .../components/AgentsInsightsV2Response.md | 4 + .../components/AgentsTimeSavedInsight.md | 13 + docs/models/components/UgcType.md | 1 + gradle.properties | 2 +- .../glean_api_client/SDKConfiguration.java | 2 +- .../components/AgentsInsightsV2Response.java | 205 +++++++- .../components/AgentsTimeSavedInsight.java | 437 ++++++++++++++++++ .../models/components/UgcType.java | 4 + 14 files changed, 748 insertions(+), 36 deletions(-) create mode 100644 docs/models/components/AgentsTimeSavedInsight.md create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsTimeSavedInsight.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 148fb886..33428662 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: b07e1adf6a3fe531134f91a3ec3e8d6d + docChecksum: 4dd6c0c87a3b0f62b055517872b7eb1a docVersion: 0.9.0 speakeasyVersion: 1.761.1 generationVersion: 2.879.6 - releaseVersion: 0.12.34 - configChecksum: 88231ae2cc621a73a11ba40a1cb03598 + releaseVersion: 0.12.35 + configChecksum: 83bde3a02ebecca1253cf3ca3f95dd10 repoURL: https://github.com/gleanwork/api-client-java.git installationURL: https://github.com/gleanwork/api-client-java published: true persistentEdits: - generation_id: 5b1e227e-941c-4d63-89fc-c5b092081799 - pristine_commit_hash: 12950ff1af52396b0a278c8a4e1bbe0e465d55e7 - pristine_tree_hash: 1855efc4416047334e13e591e6e74c1d03a57dbe + generation_id: f67085be-d525-41d0-8093-c3d6cfae8d51 + pristine_commit_hash: febaca41b70ee61c42d76b5b0af83420b181f4bf + pristine_tree_hash: beeb3befaf908726471bfc54ce9d8c37abed8760 features: java: additionalDependencies: 0.1.0 @@ -139,8 +139,12 @@ trackedFiles: pristine_git_object: 070eb3f18d120de8e59b1e88a6cf4e982d33c60c docs/models/components/AgentsInsightsV2Response.md: id: d4153d9001d6 - last_write_checksum: sha1:94af447e67c29d78dd11c394935452ab29abea05 - pristine_git_object: e9010e02007c66e493ad5805b0faca2da2ff3778 + last_write_checksum: sha1:dfb1720be93ddecec133908e640299336fd9e96c + pristine_git_object: a7445ae69aa5a40a36cfeba9873dc296ce4be8fd + docs/models/components/AgentsTimeSavedInsight.md: + id: a6b9d40adfea + last_write_checksum: sha1:a92122381797dcd13f9bc88051901c79a23e28f5 + pristine_git_object: bc38ab566899944ebe2d85a337eb997c97440edb docs/models/components/AgentsUsageByDepartmentInsight.md: id: 28489701e7da last_write_checksum: sha1:402ddfbffd49b46c6e864fa506bd1ef2c3342d7d @@ -2115,8 +2119,8 @@ trackedFiles: pristine_git_object: bd49396b8d7cd30cec42c478f1dbb9a5973eae5b docs/models/components/UgcType.md: id: 15d7c1cbb511 - last_write_checksum: sha1:70aa3475bacd501d20f8862fad530be94e75adce - pristine_git_object: 4b545beb40941aae63365cce1ce420e723d4b5b6 + last_write_checksum: sha1:9d09e64d8f85fee8b0a7661a34e8bf93764f1216 + pristine_git_object: 38cabf9338e76f859b1a33dbebbad31f1c95d5a3 docs/models/components/UiConfig.md: id: 7b2325b9a499 last_write_checksum: sha1:16c1b7ddda6f305a85f53949ae5acdfbc043883e @@ -3211,8 +3215,8 @@ trackedFiles: pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:dd1e99f7c3f58640834c6d23b7ba6cc4510445fd - pristine_git_object: 887e0004cabd3139767145c91c5ec07cce5b36ea + last_write_checksum: sha1:4115239384e197b953644df268aee28e2db3dfd0 + pristine_git_object: f26f51daa231fbe95bb2b9d1750c8f2a60188dd9 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3531,8 +3535,8 @@ trackedFiles: pristine_git_object: ffae914775eb41ff311371f62504344a59d090fd src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java: id: d5fcc61f5992 - last_write_checksum: sha1:c51d7b55a7f94b71840d67b4bff8159212b4d4b6 - pristine_git_object: 00a7ee526dcaee295b3d5c5a85d3d1bd5c18f894 + last_write_checksum: sha1:15e986138d06a97a3ac25fba4247957228aaca84 + pristine_git_object: 46f030c8a9a93bebc1763194b375321853979679 src/main/java/com/glean/api_client/glean_api_client/Search.java: id: f22d94b920b5 last_write_checksum: sha1:ac38d1ed47be207940dd6fb7e4c688dddccc6a8b @@ -3647,8 +3651,12 @@ trackedFiles: pristine_git_object: e0113f89bd5372f836e995cd085f603065f25d86 src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Response.java: id: a3dea5a9588a - last_write_checksum: sha1:e71b248b2f4d32fccdeee697c7868297ce2bbff0 - pristine_git_object: 5bc83fb248b5f5c2a5b93d92e1c29c88443e65d7 + last_write_checksum: sha1:22768ffeebe43c578d93fd77b3154c9b58f725af + pristine_git_object: 229f6f44ccd82aca1813abc68fc7d07d1652c4dc + src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsTimeSavedInsight.java: + id: 4cd0a2b44815 + last_write_checksum: sha1:505ecdb23293861978d190a2291243106bd5eb9a + pristine_git_object: 382b5876a0b46a7c82900322e79f41ada7952967 src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsUsageByDepartmentInsight.java: id: 4c3687028ff5 last_write_checksum: sha1:dd2067286e0e38b6f8cd8476e63888335ee9282e @@ -5623,8 +5631,8 @@ trackedFiles: pristine_git_object: 7cd618713ae1d537f4161be77a1bdceb52985973 src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java: id: 799738fed61d - last_write_checksum: sha1:89eeca1731fb341b49f37ee5e85a974e12b4b55f - pristine_git_object: 0db2f3647341ff23664fba39749ca3f7111e951e + last_write_checksum: sha1:59f5b4521b3f189fad1ab538994a917e2c73d235 + pristine_git_object: f61988046532dca2454c298e7c3de19d57440263 src/main/java/com/glean/api_client/glean_api_client/models/components/UiConfig.java: id: 4a03695e2c2e last_write_checksum: sha1:048a07117a3d72dc3981db90b927cef33c445819 @@ -9048,7 +9056,7 @@ examples: application/json: {} responses: "200": - application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "customFields": [{"label": "", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}} + application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "customFields": [{"label": "", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}], "agentsTimeSavedInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}} messages: speakeasy-default-messages: requestBody: @@ -9656,7 +9664,10 @@ 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:\n* `glean.client.announcements.create()`: \n * `request.createAnnouncementRequest.body.structuredList[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.body.structuredList[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.announcements.update()`: \n * `request.updateAnnouncementRequest.body.structuredList[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.body.structuredList[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.answers.create()`: \n * `request.createAnswerRequest.data.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.answers.update()`: \n * `request.editAnswerRequest.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.answers.retrieve()`: `response.answerResult.answer.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.answers.list()`: `response.answerResults[].answer.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.chat.create()`: \n * `request.chatRequest.messages[].citations[].sourceDocument.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.messages[].citations[].sourceDocument.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.chat.retrieve()`: `response.chatResult.chat.createdBy.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.chat.list()`: `response.chatResults[].chat.createdBy.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].citations[].sourceDocument.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.addItems()`: `response.collection.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.create()`: \n * `request.createCollectionRequest.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.union(class (0)).collection.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.deleteItem()`: `response.collection.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.update()`: \n * `request.editCollectionRequest.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.updateItem()`: `response.collection.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.collections.list()`: `response.collections[].addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.documents.retrieve()`: \n * `request.getDocumentsRequest.documentSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.documents.Map.union(Document).metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.documents.retrieveByFacets()`: `response.documents[].metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.documents.summarize()`: \n * `request.summarizeRequest.documentSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.insights.retrieve()`: `response.gleanAssist.activityInsights[].user.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.messages.retrieve()`: `response.searchResponse.results[].structuredResults[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.pins.update()`: `response.attribution.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.pins.list()`: `response.pins[].attribution.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.pins.create()`: `response.attribution.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.search.queryAsAdmin()`: \n * `request.searchRequest.sourceDocument.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.results[].structuredResults[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.search.autocomplete()`: `response.results[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.search.retrieveFeed()`: \n * `request.feedRequest.categories[]` **Changed**\n * `response.results[]` **Changed**\n* `glean.client.search.recommendations()`: \n * `request.recommendationsRequest.sourceDocument.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.results[].structuredResults[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.search.query()`: \n * `request.searchRequest.sourceDocument.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.results[].structuredResults[].document.metadata.author.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.entities.list()`: `response.results[].relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.entities.readPeople()`: `response.results[].relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.shortcuts.create()`: \n * `request.createShortcutRequest.data.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.shortcut.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.shortcuts.list()`: `response.shortcuts[].addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.shortcuts.update()`: \n * `request.updateShortcutRequest.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n * `response.shortcut.addedRoles[].sourceDocumentSpec.union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.verification.addReminder()`: `response.metadata.lastVerifier.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.verification.list()`: `response.documents[].metadata.lastVerifier.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n* `glean.client.verification.verify()`: `response.metadata.lastVerifier.relatedDocuments[].querySuggestion.requestOptions.inclusions.containerSpecs[].union(class (3)).ugcType.enum(artifacts)` **Added**\n" +releaseNotes: | + ## Java SDK Changes: + * `glean.client.insights.retrieve()`: `response.agentsResponse` **Changed** + * `glean.client.search.retrieveFeed()`: `response.results[].primaryEntry.promptTemplate.favoriteInfo.ugcType.enum(spreadsheetType)` **Added** generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ab46be40..ed35a63e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.12.34 + version: 0.12.35 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index ab3e19e1..866cadc7 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: 8a0e3a32d5d6639d10ef809d104942a79d54d1a0 + x-source-commit-sha: 1483d637252dd129c04a2f4e297e25ad17a26adf description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: f89c07f572daff630aa6a660c5c20e8aa3227322 + x-open-api-commit-sha: 8b6a13c7746970643b1e02b27f20dd9d3bc9d2cd x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -9329,6 +9329,27 @@ components: runCount: type: integer description: Total number of agent runs for this user over the specified time period. + AgentsTimeSavedInsight: + properties: + agentId: + type: string + description: Agent ID + agentName: + type: string + description: Agent name + icon: + $ref: "#/components/schemas/IconConfig" + description: Agent icon configuration + isDeleted: + type: boolean + description: Indicates whether the agent has been deleted + runCount: + type: integer + description: Total number of runs for this agent over the specified time period. + minsPerRun: + type: number + format: float + description: Average minutes saved per run for this agent over the specified time period. AgentsInsightsV2Response: allOf: - $ref: "#/components/schemas/CurrentActiveUsers" @@ -9355,8 +9376,19 @@ components: type: array items: $ref: "#/components/schemas/AgentUsersInsight" + agentsTimeSavedInsights: + type: array + items: + $ref: "#/components/schemas/AgentsTimeSavedInsight" + description: Insights for agents time saved over the specified time period. dailyAgentRunsTimeseries: $ref: "#/components/schemas/LabeledCountInfo" + successfulRunsTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + failedRunsTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + pausedRunsTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" upvotesTimeseries: $ref: "#/components/schemas/LabeledCountInfo" downvotesTimeseries: @@ -10493,6 +10525,7 @@ components: - SCRIBES_TYPE - SHORTCUTS_TYPE - SLIDE_TYPE + - SPREADSHEET_TYPE - WORKFLOWS_TYPE FavoriteInfo: type: object diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index efcbacc5..15121f7a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.761.1 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:0f10e7b25d98791a46b0ed9fffad9d56ce1e52d63ca5d8c2598ff2fda3df6321 - sourceBlobDigest: sha256:59995e53d0ac0527b824756126d89dd7c4638fffb3b57711446f35604d0012a0 + sourceRevisionDigest: sha256:41039d025447acd69f087c76b6ff0d2476ebdc747f7221c8307543652c0c5e19 + sourceBlobDigest: sha256:194fd5e4394d01049448906387b1e4d44b0aa8631ce0e79019d9bcd7a9072285 tags: - latest Glean-OAS: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:0f10e7b25d98791a46b0ed9fffad9d56ce1e52d63ca5d8c2598ff2fda3df6321 - sourceBlobDigest: sha256:59995e53d0ac0527b824756126d89dd7c4638fffb3b57711446f35604d0012a0 + sourceRevisionDigest: sha256:41039d025447acd69f087c76b6ff0d2476ebdc747f7221c8307543652c0c5e19 + sourceBlobDigest: sha256:194fd5e4394d01049448906387b1e4d44b0aa8631ce0e79019d9bcd7a9072285 codeSamplesNamespace: glean-api-specs-java-code-samples - codeSamplesRevisionDigest: sha256:9ab0315247aac25275abe5e58debea4324923b23bb0d9cbaeeff8d7b97b4e40f + codeSamplesRevisionDigest: sha256:5a975fc6470aeb56ecb3b09866af9686aaf63ddfd671a298abfe17286f5d9a66 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 9df0de04..f4c03e63 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.12.34' +implementation 'com.glean.api-client:glean-api-client:0.12.35' ``` Maven: @@ -75,7 +75,7 @@ Maven: com.glean.api-client glean-api-client - 0.12.34 + 0.12.35 ``` diff --git a/RELEASES.md b/RELEASES.md index f98b5188..b2b0d545 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -688,4 +688,14 @@ Based on: ### Generated - [java v0.12.34] . ### Releases -- [Maven Central v0.12.34] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.34 - . \ No newline at end of file +- [Maven Central v0.12.34] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.34 - . + +## 2026-04-08 19:52:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.12.35] . +### Releases +- [Maven Central v0.12.35] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.35 - . \ No newline at end of file diff --git a/docs/models/components/AgentsInsightsV2Response.md b/docs/models/components/AgentsInsightsV2Response.md index e9010e02..a7445ae6 100644 --- a/docs/models/components/AgentsInsightsV2Response.md +++ b/docs/models/components/AgentsInsightsV2Response.md @@ -14,6 +14,10 @@ | `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 | +| `agentsTimeSavedInsights` | List\<[AgentsTimeSavedInsight](../../models/components/AgentsTimeSavedInsight.md)> | :heavy_minus_sign: | Insights for agents time saved over the specified time period. | | `dailyAgentRunsTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A | +| `successfulRunsTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A | +| `failedRunsTimeseries` | [Optional\](../../models/components/LabeledCountInfo.md) | :heavy_minus_sign: | N/A | +| `pausedRunsTimeseries` | [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/AgentsTimeSavedInsight.md b/docs/models/components/AgentsTimeSavedInsight.md new file mode 100644 index 00000000..bc38ab56 --- /dev/null +++ b/docs/models/components/AgentsTimeSavedInsight.md @@ -0,0 +1,13 @@ +# AgentsTimeSavedInsight + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `agentId` | *Optional\* | :heavy_minus_sign: | Agent ID | | +| `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"
} | +| `isDeleted` | *Optional\* | :heavy_minus_sign: | Indicates whether the agent has been deleted | | +| `runCount` | *Optional\* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | | +| `minsPerRun` | *Optional\* | :heavy_minus_sign: | Average minutes saved per run for this agent over the specified time period. | | \ No newline at end of file diff --git a/docs/models/components/UgcType.md b/docs/models/components/UgcType.md index 4b545beb..38cabf93 100644 --- a/docs/models/components/UgcType.md +++ b/docs/models/components/UgcType.md @@ -32,4 +32,5 @@ UgcType custom = UgcType.of("custom_value"); | `SCRIBES_TYPE` | SCRIBES_TYPE | | `SHORTCUTS_TYPE` | SHORTCUTS_TYPE | | `SLIDE_TYPE` | SLIDE_TYPE | +| `SPREADSHEET_TYPE` | SPREADSHEET_TYPE | | `WORKFLOWS_TYPE` | WORKFLOWS_TYPE | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 887e0004..f26f51da 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.12.34 +version=0.12.35 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 00a7ee52..46f030c8 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 @@ -25,7 +25,7 @@ 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.12.34"; + public static final String SDK_VERSION = "0.12.35"; public static final String GEN_VERSION = "2.879.6"; private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client"; public static final String USER_AGENT = 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 5bc83fb2..229f6f44 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 @@ -70,12 +70,34 @@ public class AgentsInsightsV2Response { @JsonProperty("agentUsersInsights") private Optional> agentUsersInsights; + /** + * Insights for agents time saved over the specified time period. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("agentsTimeSavedInsights") + private Optional> agentsTimeSavedInsights; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("dailyAgentRunsTimeseries") private Optional dailyAgentRunsTimeseries; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("successfulRunsTimeseries") + private Optional successfulRunsTimeseries; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("failedRunsTimeseries") + private Optional failedRunsTimeseries; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pausedRunsTimeseries") + private Optional pausedRunsTimeseries; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("upvotesTimeseries") private Optional upvotesTimeseries; @@ -96,7 +118,11 @@ public AgentsInsightsV2Response( @JsonProperty("topAgentsInsights") Optional> topAgentsInsights, @JsonProperty("agentsUsageByDepartmentInsights") Optional> agentsUsageByDepartmentInsights, @JsonProperty("agentUsersInsights") Optional> agentUsersInsights, + @JsonProperty("agentsTimeSavedInsights") Optional> agentsTimeSavedInsights, @JsonProperty("dailyAgentRunsTimeseries") Optional dailyAgentRunsTimeseries, + @JsonProperty("successfulRunsTimeseries") Optional successfulRunsTimeseries, + @JsonProperty("failedRunsTimeseries") Optional failedRunsTimeseries, + @JsonProperty("pausedRunsTimeseries") Optional pausedRunsTimeseries, @JsonProperty("upvotesTimeseries") Optional upvotesTimeseries, @JsonProperty("downvotesTimeseries") Optional downvotesTimeseries) { Utils.checkNotNull(monthlyActiveUsers, "monthlyActiveUsers"); @@ -108,7 +134,11 @@ public AgentsInsightsV2Response( Utils.checkNotNull(topAgentsInsights, "topAgentsInsights"); Utils.checkNotNull(agentsUsageByDepartmentInsights, "agentsUsageByDepartmentInsights"); Utils.checkNotNull(agentUsersInsights, "agentUsersInsights"); + Utils.checkNotNull(agentsTimeSavedInsights, "agentsTimeSavedInsights"); Utils.checkNotNull(dailyAgentRunsTimeseries, "dailyAgentRunsTimeseries"); + Utils.checkNotNull(successfulRunsTimeseries, "successfulRunsTimeseries"); + Utils.checkNotNull(failedRunsTimeseries, "failedRunsTimeseries"); + Utils.checkNotNull(pausedRunsTimeseries, "pausedRunsTimeseries"); Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries"); Utils.checkNotNull(downvotesTimeseries, "downvotesTimeseries"); this.monthlyActiveUsers = monthlyActiveUsers; @@ -120,7 +150,11 @@ public AgentsInsightsV2Response( this.topAgentsInsights = topAgentsInsights; this.agentsUsageByDepartmentInsights = agentsUsageByDepartmentInsights; this.agentUsersInsights = agentUsersInsights; + this.agentsTimeSavedInsights = agentsTimeSavedInsights; this.dailyAgentRunsTimeseries = dailyAgentRunsTimeseries; + this.successfulRunsTimeseries = successfulRunsTimeseries; + this.failedRunsTimeseries = failedRunsTimeseries; + this.pausedRunsTimeseries = pausedRunsTimeseries; this.upvotesTimeseries = upvotesTimeseries; this.downvotesTimeseries = downvotesTimeseries; } @@ -129,7 +163,9 @@ 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(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -192,12 +228,39 @@ public Optional> agentUsersInsights() { return (Optional>) agentUsersInsights; } + /** + * Insights for agents time saved over the specified time period. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> agentsTimeSavedInsights() { + return (Optional>) agentsTimeSavedInsights; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional dailyAgentRunsTimeseries() { return (Optional) dailyAgentRunsTimeseries; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional successfulRunsTimeseries() { + return (Optional) successfulRunsTimeseries; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional failedRunsTimeseries() { + return (Optional) failedRunsTimeseries; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional pausedRunsTimeseries() { + return (Optional) pausedRunsTimeseries; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional upvotesTimeseries() { @@ -350,6 +413,25 @@ public AgentsInsightsV2Response withAgentUsersInsights(Optional agentsTimeSavedInsights) { + Utils.checkNotNull(agentsTimeSavedInsights, "agentsTimeSavedInsights"); + this.agentsTimeSavedInsights = Optional.ofNullable(agentsTimeSavedInsights); + return this; + } + + + /** + * Insights for agents time saved over the specified time period. + */ + public AgentsInsightsV2Response withAgentsTimeSavedInsights(Optional> agentsTimeSavedInsights) { + Utils.checkNotNull(agentsTimeSavedInsights, "agentsTimeSavedInsights"); + this.agentsTimeSavedInsights = agentsTimeSavedInsights; + return this; + } + public AgentsInsightsV2Response withDailyAgentRunsTimeseries(LabeledCountInfo dailyAgentRunsTimeseries) { Utils.checkNotNull(dailyAgentRunsTimeseries, "dailyAgentRunsTimeseries"); this.dailyAgentRunsTimeseries = Optional.ofNullable(dailyAgentRunsTimeseries); @@ -363,6 +445,45 @@ public AgentsInsightsV2Response withDailyAgentRunsTimeseries(Optional successfulRunsTimeseries) { + Utils.checkNotNull(successfulRunsTimeseries, "successfulRunsTimeseries"); + this.successfulRunsTimeseries = successfulRunsTimeseries; + return this; + } + + public AgentsInsightsV2Response withFailedRunsTimeseries(LabeledCountInfo failedRunsTimeseries) { + Utils.checkNotNull(failedRunsTimeseries, "failedRunsTimeseries"); + this.failedRunsTimeseries = Optional.ofNullable(failedRunsTimeseries); + return this; + } + + + public AgentsInsightsV2Response withFailedRunsTimeseries(Optional failedRunsTimeseries) { + Utils.checkNotNull(failedRunsTimeseries, "failedRunsTimeseries"); + this.failedRunsTimeseries = failedRunsTimeseries; + return this; + } + + public AgentsInsightsV2Response withPausedRunsTimeseries(LabeledCountInfo pausedRunsTimeseries) { + Utils.checkNotNull(pausedRunsTimeseries, "pausedRunsTimeseries"); + this.pausedRunsTimeseries = Optional.ofNullable(pausedRunsTimeseries); + return this; + } + + + public AgentsInsightsV2Response withPausedRunsTimeseries(Optional pausedRunsTimeseries) { + Utils.checkNotNull(pausedRunsTimeseries, "pausedRunsTimeseries"); + this.pausedRunsTimeseries = pausedRunsTimeseries; + return this; + } + public AgentsInsightsV2Response withUpvotesTimeseries(LabeledCountInfo upvotesTimeseries) { Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries"); this.upvotesTimeseries = Optional.ofNullable(upvotesTimeseries); @@ -408,7 +529,11 @@ 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.agentsTimeSavedInsights, other.agentsTimeSavedInsights) && Utils.enhancedDeepEquals(this.dailyAgentRunsTimeseries, other.dailyAgentRunsTimeseries) && + Utils.enhancedDeepEquals(this.successfulRunsTimeseries, other.successfulRunsTimeseries) && + Utils.enhancedDeepEquals(this.failedRunsTimeseries, other.failedRunsTimeseries) && + Utils.enhancedDeepEquals(this.pausedRunsTimeseries, other.pausedRunsTimeseries) && Utils.enhancedDeepEquals(this.upvotesTimeseries, other.upvotesTimeseries) && Utils.enhancedDeepEquals(this.downvotesTimeseries, other.downvotesTimeseries); } @@ -419,7 +544,9 @@ public int hashCode() { monthlyActiveUsers, weeklyActiveUsers, monthlyActiveUserTimeseries, weeklyActiveUserTimeseries, dailyActiveUserTimeseries, sharedAgentsCount, topAgentsInsights, agentsUsageByDepartmentInsights, agentUsersInsights, - dailyAgentRunsTimeseries, upvotesTimeseries, downvotesTimeseries); + agentsTimeSavedInsights, dailyAgentRunsTimeseries, successfulRunsTimeseries, + failedRunsTimeseries, pausedRunsTimeseries, upvotesTimeseries, + downvotesTimeseries); } @Override @@ -434,7 +561,11 @@ public String toString() { "topAgentsInsights", topAgentsInsights, "agentsUsageByDepartmentInsights", agentsUsageByDepartmentInsights, "agentUsersInsights", agentUsersInsights, + "agentsTimeSavedInsights", agentsTimeSavedInsights, "dailyAgentRunsTimeseries", dailyAgentRunsTimeseries, + "successfulRunsTimeseries", successfulRunsTimeseries, + "failedRunsTimeseries", failedRunsTimeseries, + "pausedRunsTimeseries", pausedRunsTimeseries, "upvotesTimeseries", upvotesTimeseries, "downvotesTimeseries", downvotesTimeseries); } @@ -460,8 +591,16 @@ public final static class Builder { private Optional> agentUsersInsights = Optional.empty(); + private Optional> agentsTimeSavedInsights = Optional.empty(); + private Optional dailyAgentRunsTimeseries = Optional.empty(); + private Optional successfulRunsTimeseries = Optional.empty(); + + private Optional failedRunsTimeseries = Optional.empty(); + + private Optional pausedRunsTimeseries = Optional.empty(); + private Optional upvotesTimeseries = Optional.empty(); private Optional downvotesTimeseries = Optional.empty(); @@ -606,6 +745,25 @@ public Builder agentUsersInsights(Optional> ag } + /** + * Insights for agents time saved over the specified time period. + */ + public Builder agentsTimeSavedInsights(List agentsTimeSavedInsights) { + Utils.checkNotNull(agentsTimeSavedInsights, "agentsTimeSavedInsights"); + this.agentsTimeSavedInsights = Optional.ofNullable(agentsTimeSavedInsights); + return this; + } + + /** + * Insights for agents time saved over the specified time period. + */ + public Builder agentsTimeSavedInsights(Optional> agentsTimeSavedInsights) { + Utils.checkNotNull(agentsTimeSavedInsights, "agentsTimeSavedInsights"); + this.agentsTimeSavedInsights = agentsTimeSavedInsights; + return this; + } + + public Builder dailyAgentRunsTimeseries(LabeledCountInfo dailyAgentRunsTimeseries) { Utils.checkNotNull(dailyAgentRunsTimeseries, "dailyAgentRunsTimeseries"); this.dailyAgentRunsTimeseries = Optional.ofNullable(dailyAgentRunsTimeseries); @@ -619,6 +777,45 @@ public Builder dailyAgentRunsTimeseries(Optional dai } + public Builder successfulRunsTimeseries(LabeledCountInfo successfulRunsTimeseries) { + Utils.checkNotNull(successfulRunsTimeseries, "successfulRunsTimeseries"); + this.successfulRunsTimeseries = Optional.ofNullable(successfulRunsTimeseries); + return this; + } + + public Builder successfulRunsTimeseries(Optional successfulRunsTimeseries) { + Utils.checkNotNull(successfulRunsTimeseries, "successfulRunsTimeseries"); + this.successfulRunsTimeseries = successfulRunsTimeseries; + return this; + } + + + public Builder failedRunsTimeseries(LabeledCountInfo failedRunsTimeseries) { + Utils.checkNotNull(failedRunsTimeseries, "failedRunsTimeseries"); + this.failedRunsTimeseries = Optional.ofNullable(failedRunsTimeseries); + return this; + } + + public Builder failedRunsTimeseries(Optional failedRunsTimeseries) { + Utils.checkNotNull(failedRunsTimeseries, "failedRunsTimeseries"); + this.failedRunsTimeseries = failedRunsTimeseries; + return this; + } + + + public Builder pausedRunsTimeseries(LabeledCountInfo pausedRunsTimeseries) { + Utils.checkNotNull(pausedRunsTimeseries, "pausedRunsTimeseries"); + this.pausedRunsTimeseries = Optional.ofNullable(pausedRunsTimeseries); + return this; + } + + public Builder pausedRunsTimeseries(Optional pausedRunsTimeseries) { + Utils.checkNotNull(pausedRunsTimeseries, "pausedRunsTimeseries"); + this.pausedRunsTimeseries = pausedRunsTimeseries; + return this; + } + + public Builder upvotesTimeseries(LabeledCountInfo upvotesTimeseries) { Utils.checkNotNull(upvotesTimeseries, "upvotesTimeseries"); this.upvotesTimeseries = Optional.ofNullable(upvotesTimeseries); @@ -650,7 +847,9 @@ public AgentsInsightsV2Response build() { monthlyActiveUsers, weeklyActiveUsers, monthlyActiveUserTimeseries, weeklyActiveUserTimeseries, dailyActiveUserTimeseries, sharedAgentsCount, topAgentsInsights, agentsUsageByDepartmentInsights, agentUsersInsights, - dailyAgentRunsTimeseries, upvotesTimeseries, downvotesTimeseries); + agentsTimeSavedInsights, dailyAgentRunsTimeseries, successfulRunsTimeseries, + failedRunsTimeseries, pausedRunsTimeseries, upvotesTimeseries, + downvotesTimeseries); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsTimeSavedInsight.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsTimeSavedInsight.java new file mode 100644 index 00000000..382b5876 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsTimeSavedInsight.java @@ -0,0 +1,437 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 4cd0a2b44815 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.Float; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class AgentsTimeSavedInsight { + /** + * Agent ID + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("agentId") + private Optional agentId; + + /** + * Agent name + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("agentName") + private Optional agentName; + + /** + * Defines how to render an icon + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("icon") + private Optional icon; + + /** + * Indicates whether the agent has been deleted + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("isDeleted") + private Optional isDeleted; + + /** + * Total number of runs for this agent over the specified time period. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("runCount") + private Optional runCount; + + /** + * Average minutes saved per run for this agent over the specified time period. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("minsPerRun") + private Optional minsPerRun; + + @JsonCreator + public AgentsTimeSavedInsight( + @JsonProperty("agentId") Optional agentId, + @JsonProperty("agentName") Optional agentName, + @JsonProperty("icon") Optional icon, + @JsonProperty("isDeleted") Optional isDeleted, + @JsonProperty("runCount") Optional runCount, + @JsonProperty("minsPerRun") Optional minsPerRun) { + Utils.checkNotNull(agentId, "agentId"); + Utils.checkNotNull(agentName, "agentName"); + Utils.checkNotNull(icon, "icon"); + Utils.checkNotNull(isDeleted, "isDeleted"); + Utils.checkNotNull(runCount, "runCount"); + Utils.checkNotNull(minsPerRun, "minsPerRun"); + this.agentId = agentId; + this.agentName = agentName; + this.icon = icon; + this.isDeleted = isDeleted; + this.runCount = runCount; + this.minsPerRun = minsPerRun; + } + + public AgentsTimeSavedInsight() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Agent ID + */ + @JsonIgnore + public Optional agentId() { + return agentId; + } + + /** + * Agent name + */ + @JsonIgnore + public Optional agentName() { + return agentName; + } + + /** + * Defines how to render an icon + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional icon() { + return (Optional) icon; + } + + /** + * Indicates whether the agent has been deleted + */ + @JsonIgnore + public Optional isDeleted() { + return isDeleted; + } + + /** + * Total number of runs for this agent over the specified time period. + */ + @JsonIgnore + public Optional runCount() { + return runCount; + } + + /** + * Average minutes saved per run for this agent over the specified time period. + */ + @JsonIgnore + public Optional minsPerRun() { + return minsPerRun; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Agent ID + */ + public AgentsTimeSavedInsight withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = Optional.ofNullable(agentId); + return this; + } + + + /** + * Agent ID + */ + public AgentsTimeSavedInsight withAgentId(Optional agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + /** + * Agent name + */ + public AgentsTimeSavedInsight withAgentName(String agentName) { + Utils.checkNotNull(agentName, "agentName"); + this.agentName = Optional.ofNullable(agentName); + return this; + } + + + /** + * Agent name + */ + public AgentsTimeSavedInsight withAgentName(Optional agentName) { + Utils.checkNotNull(agentName, "agentName"); + this.agentName = agentName; + return this; + } + + /** + * Defines how to render an icon + */ + public AgentsTimeSavedInsight withIcon(IconConfig icon) { + Utils.checkNotNull(icon, "icon"); + this.icon = Optional.ofNullable(icon); + return this; + } + + + /** + * Defines how to render an icon + */ + public AgentsTimeSavedInsight withIcon(Optional icon) { + Utils.checkNotNull(icon, "icon"); + this.icon = icon; + return this; + } + + /** + * Indicates whether the agent has been deleted + */ + public AgentsTimeSavedInsight withIsDeleted(boolean isDeleted) { + Utils.checkNotNull(isDeleted, "isDeleted"); + this.isDeleted = Optional.ofNullable(isDeleted); + return this; + } + + + /** + * Indicates whether the agent has been deleted + */ + public AgentsTimeSavedInsight withIsDeleted(Optional isDeleted) { + Utils.checkNotNull(isDeleted, "isDeleted"); + this.isDeleted = isDeleted; + return this; + } + + /** + * Total number of runs for this agent over the specified time period. + */ + public AgentsTimeSavedInsight withRunCount(long runCount) { + Utils.checkNotNull(runCount, "runCount"); + this.runCount = Optional.ofNullable(runCount); + return this; + } + + + /** + * Total number of runs for this agent over the specified time period. + */ + public AgentsTimeSavedInsight withRunCount(Optional runCount) { + Utils.checkNotNull(runCount, "runCount"); + this.runCount = runCount; + return this; + } + + /** + * Average minutes saved per run for this agent over the specified time period. + */ + public AgentsTimeSavedInsight withMinsPerRun(float minsPerRun) { + Utils.checkNotNull(minsPerRun, "minsPerRun"); + this.minsPerRun = Optional.ofNullable(minsPerRun); + return this; + } + + + /** + * Average minutes saved per run for this agent over the specified time period. + */ + public AgentsTimeSavedInsight withMinsPerRun(Optional minsPerRun) { + Utils.checkNotNull(minsPerRun, "minsPerRun"); + this.minsPerRun = minsPerRun; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AgentsTimeSavedInsight other = (AgentsTimeSavedInsight) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId) && + Utils.enhancedDeepEquals(this.agentName, other.agentName) && + Utils.enhancedDeepEquals(this.icon, other.icon) && + Utils.enhancedDeepEquals(this.isDeleted, other.isDeleted) && + Utils.enhancedDeepEquals(this.runCount, other.runCount) && + Utils.enhancedDeepEquals(this.minsPerRun, other.minsPerRun); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId, agentName, icon, + isDeleted, runCount, minsPerRun); + } + + @Override + public String toString() { + return Utils.toString(AgentsTimeSavedInsight.class, + "agentId", agentId, + "agentName", agentName, + "icon", icon, + "isDeleted", isDeleted, + "runCount", runCount, + "minsPerRun", minsPerRun); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional agentId = Optional.empty(); + + private Optional agentName = Optional.empty(); + + private Optional icon = Optional.empty(); + + private Optional isDeleted = Optional.empty(); + + private Optional runCount = Optional.empty(); + + private Optional minsPerRun = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Agent ID + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = Optional.ofNullable(agentId); + return this; + } + + /** + * Agent ID + */ + public Builder agentId(Optional agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + /** + * Agent name + */ + public Builder agentName(String agentName) { + Utils.checkNotNull(agentName, "agentName"); + this.agentName = Optional.ofNullable(agentName); + return this; + } + + /** + * Agent name + */ + public Builder agentName(Optional agentName) { + Utils.checkNotNull(agentName, "agentName"); + this.agentName = agentName; + return this; + } + + + /** + * 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 icon) { + Utils.checkNotNull(icon, "icon"); + this.icon = icon; + return this; + } + + + /** + * Indicates whether the agent has been deleted + */ + public Builder isDeleted(boolean isDeleted) { + Utils.checkNotNull(isDeleted, "isDeleted"); + this.isDeleted = Optional.ofNullable(isDeleted); + return this; + } + + /** + * Indicates whether the agent has been deleted + */ + public Builder isDeleted(Optional isDeleted) { + Utils.checkNotNull(isDeleted, "isDeleted"); + this.isDeleted = isDeleted; + return this; + } + + + /** + * Total number of runs for this agent over the specified time period. + */ + public Builder runCount(long runCount) { + Utils.checkNotNull(runCount, "runCount"); + this.runCount = Optional.ofNullable(runCount); + return this; + } + + /** + * Total number of runs for this agent over the specified time period. + */ + public Builder runCount(Optional runCount) { + Utils.checkNotNull(runCount, "runCount"); + this.runCount = runCount; + return this; + } + + + /** + * Average minutes saved per run for this agent over the specified time period. + */ + public Builder minsPerRun(float minsPerRun) { + Utils.checkNotNull(minsPerRun, "minsPerRun"); + this.minsPerRun = Optional.ofNullable(minsPerRun); + return this; + } + + /** + * Average minutes saved per run for this agent over the specified time period. + */ + public Builder minsPerRun(Optional minsPerRun) { + Utils.checkNotNull(minsPerRun, "minsPerRun"); + this.minsPerRun = minsPerRun; + return this; + } + + public AgentsTimeSavedInsight build() { + + return new AgentsTimeSavedInsight( + agentId, agentName, icon, + isDeleted, runCount, minsPerRun); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java index 0db2f364..f6198804 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java @@ -37,6 +37,7 @@ public class UgcType { public static final UgcType SCRIBES_TYPE = new UgcType("SCRIBES_TYPE"); public static final UgcType SHORTCUTS_TYPE = new UgcType("SHORTCUTS_TYPE"); public static final UgcType SLIDE_TYPE = new UgcType("SLIDE_TYPE"); + public static final UgcType SPREADSHEET_TYPE = new UgcType("SPREADSHEET_TYPE"); public static final UgcType WORKFLOWS_TYPE = new UgcType("WORKFLOWS_TYPE"); // This map will grow whenever a Color gets created with a new @@ -127,6 +128,7 @@ private static final Map createValuesMap() { map.put("SCRIBES_TYPE", SCRIBES_TYPE); map.put("SHORTCUTS_TYPE", SHORTCUTS_TYPE); map.put("SLIDE_TYPE", SLIDE_TYPE); + map.put("SPREADSHEET_TYPE", SPREADSHEET_TYPE); map.put("WORKFLOWS_TYPE", WORKFLOWS_TYPE); return map; } @@ -149,6 +151,7 @@ private static final Map createEnumsMap() { map.put("SCRIBES_TYPE", UgcTypeEnum.SCRIBES_TYPE); map.put("SHORTCUTS_TYPE", UgcTypeEnum.SHORTCUTS_TYPE); map.put("SLIDE_TYPE", UgcTypeEnum.SLIDE_TYPE); + map.put("SPREADSHEET_TYPE", UgcTypeEnum.SPREADSHEET_TYPE); map.put("WORKFLOWS_TYPE", UgcTypeEnum.WORKFLOWS_TYPE); return map; } @@ -172,6 +175,7 @@ public enum UgcTypeEnum { SCRIBES_TYPE("SCRIBES_TYPE"), SHORTCUTS_TYPE("SHORTCUTS_TYPE"), SLIDE_TYPE("SLIDE_TYPE"), + SPREADSHEET_TYPE("SPREADSHEET_TYPE"), WORKFLOWS_TYPE("WORKFLOWS_TYPE"),; private final String value; From 9e90a9ea45bc8100d760e233912279b354f1813e Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 19:57:39 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow