diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 148fb886..6c39039c 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: 8ae285580d0d1b8f551ae7190470dc1b 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: 4e074d1c-d34b-4e4d-8ede-0309d9b02fbd + pristine_commit_hash: 6c07864cddf7e7a181319da3193c539db735b5a7 + pristine_tree_hash: 5cea8d265d29ebd42975d09a8df18315cb333e14 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 @@ -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 @@ -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,9 @@ 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** 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..35e59e89 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: 7cd01919b796c950ca54c51503238f534fa48e00 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: 6b032e8b28e48c2a0260b4efd845179a94c7771a 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: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index efcbacc5..1b8e5eb8 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:fc067faeb611e9c238be68e0bdac11779a451008f5921cf10f970d381c44644c + sourceBlobDigest: sha256:61fb034ef017be733fa3cb01aab6a132d15007b2c0a38aad9e2f4c1a8097b5f8 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:fc067faeb611e9c238be68e0bdac11779a451008f5921cf10f970d381c44644c + sourceBlobDigest: sha256:61fb034ef017be733fa3cb01aab6a132d15007b2c0a38aad9e2f4c1a8097b5f8 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..6b780847 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 06:56:46 +### 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/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); + } + + } +}