Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 43 additions & 43 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
management:
docChecksum: 89c2eac364945e9c2e201f80cb8a2d72
docChecksum: 7e87ed5a374c0e4c90b16c9cca228ad5
docVersion: 0.9.0
speakeasyVersion: 1.795.1
speakeasyVersion: 1.795.3
generationVersion: 2.932.9
releaseVersion: 0.16.0
configChecksum: 05a83106bf0460e0e41a3965278c7a79
releaseVersion: 0.16.1
configChecksum: 48d2ac7302ce9a63522c253c9c4a471c
repoURL: https://github.com/gleanwork/api-client-java.git
installationURL: https://github.com/gleanwork/api-client-java
published: true
persistentEdits:
generation_id: 47ae3e51-6749-481b-afbe-49fc66a8c649
pristine_commit_hash: 710f40aaa4df20a0fa775afb567f06e43495580d
pristine_tree_hash: ddac7f43d9b5deacfe24b76a44ddcb307c28c023
generation_id: 7fa7448b-a054-4f7f-a68d-6d87e8ebe032
pristine_commit_hash: 5e25a0f9ab4385004fd952999a9e44481972e60e
pristine_tree_hash: 4cf4dbd9ca51225f09d11cc726585e4ec10ff92a
features:
java:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -437,8 +437,8 @@ trackedFiles:
pristine_git_object: 235e7b43733c93c935c589d0c8ea224ff5c8f976
docs/models/components/ChatMessageFragment.md:
id: 998e5c5b431f
last_write_checksum: sha1:faf23b9edd3dc87c519210e4686dfe21f535f788
pristine_git_object: 5a63122a95e107b0e56727757114e0bd08fe7d53
last_write_checksum: sha1:2c33fb950c1a4879055f65e4f169df0fe1f2962f
pristine_git_object: 6b3784453654331bc970d443341260e220f4d60c
docs/models/components/ChatMetadata.md:
id: cc43eff646ef
last_write_checksum: sha1:f594ff1895ab08264e1029f275a3c9bfc1c9b748
Expand Down Expand Up @@ -2597,16 +2597,16 @@ trackedFiles:
pristine_git_object: ca9d9d2d2967e287cfc51bfd31253f9fce6b9800
docs/models/components/ServerToolRequestRequestType.md:
id: e03c37fb8df1
last_write_checksum: sha1:86a9d45016aee61f48b0f4152949a776603a0497
pristine_git_object: fea3c7738cfc15d5c99a3146c8416c33c98f3c9a
last_write_checksum: sha1:f4f5ef2fbd9d3c0f1cbd31d2982029bc194deeb3
pristine_git_object: 337eaa64b6591dfb1fcdcd4560dbb4ac6ffac54b
docs/models/components/ServerToolResponse.md:
id: 321ae6bbc38c
last_write_checksum: sha1:dd318bdec66752c55cafb370053e38d3d10f313e
pristine_git_object: 3d365d8f117f8547ec1cf19c756e56656e5f31c7
last_write_checksum: sha1:4c550a16bfd876448edb40dcb69d159486d52184
pristine_git_object: bf6a7b338607ad3eb99e4bdcbef8a7d4c8010447
docs/models/components/ServerToolResponseRequestType.md:
id: 0758c2646390
last_write_checksum: sha1:9307693e1fa90cdcdd84700129e00af145a56774
pristine_git_object: 0e9b4702876be671623cc42ea140612244344a89
last_write_checksum: sha1:6faca6eecd71767a0965dd5e3390a5fe12f95483
pristine_git_object: f7afd9bc3eb6c88e4bc57f2911ffdddb2be226d3
docs/models/components/SessionInfo.md:
id: 39dc62adea74
last_write_checksum: sha1:8ea632cff00745aa3ef4746f798693b6a3bd6635
Expand Down Expand Up @@ -3685,8 +3685,8 @@ trackedFiles:
pristine_git_object: 7ec951818fbef87d1867f6c1756937757ce80b4f
docs/models/operations/PlatformAgentsCreateRunRequest.md:
id: 2f5db74d38b8
last_write_checksum: sha1:6e41fce8e34041c52aceb856120088a71e219b71
pristine_git_object: 5824662e101dec34cea7d95571b953f34c9cbf0f
last_write_checksum: sha1:a7778577c151d610ffded94a2e24466ebd91343e
pristine_git_object: 9661efaa7b454fcd8a948a1d62417588476b4040
docs/models/operations/PlatformAgentsCreateRunResponse.md:
id: 8d49f44f776a
last_write_checksum: sha1:87760fd7793a4f9bf8b1a8bd8b230a19350b887b
Expand Down Expand Up @@ -3813,8 +3813,8 @@ trackedFiles:
pristine_git_object: ab107473ae2b09689ac83c86f8236ed354609ee9
docs/models/operations/PlatformSkillsUpdateRequest.md:
id: 2692217b61e5
last_write_checksum: sha1:b5e6532d7511db810fade1fb26262851b4bd5cd3
pristine_git_object: 09e62ae8d0ba522ea19b5ce6474d5c261a9aa6bb
last_write_checksum: sha1:4f33e4a7bf96793d19e817bf1c94c08c16f87c66
pristine_git_object: 5cdfc3b9e3ed9818357d78f689250eb6a424b567
docs/models/operations/PlatformSkillsUpdateResponse.md:
id: 6057bcad9a86
last_write_checksum: sha1:1d43e00eeadd464570e5eded37d4b800dfcdbdf2
Expand Down Expand Up @@ -4213,8 +4213,8 @@ trackedFiles:
pristine_git_object: f3ecb5fda2b888721a48e50acb4e541bcc09a757
docs/sdks/agents/README.md:
id: 5965d8232fd8
last_write_checksum: sha1:f16716509e89dd8d19a1a5c7dc391dcad4375493
pristine_git_object: 0a59344534a59d2476be83b11d2c666caf2d09eb
last_write_checksum: sha1:e94641869ee01675bab21e5a9d95c5e7e4d4c7d6
pristine_git_object: 533ce032f047619546e1ee660ba66f5678bab8ca
docs/sdks/announcements/README.md:
id: 3d2e130a217c
last_write_checksum: sha1:d518fe37c613bdef6f738b2e1ef52918bc782324
Expand All @@ -4225,8 +4225,8 @@ trackedFiles:
pristine_git_object: 6603db8c8828357d67059a746ee541aee6c45301
docs/sdks/chat/README.md:
id: 393193527c2c
last_write_checksum: sha1:36c595a0690289f5cf94877d506c537b7e366f18
pristine_git_object: 3996d64f769ae6b62e3749561467d9257cdb3d1a
last_write_checksum: sha1:aa8e2380bd25a27804130a980ef4c944518b9578
pristine_git_object: 5b57b52cddaf421eba965b743f88a4ef1d18cdd0
docs/sdks/clientagents/README.md:
id: 8e00e6d6b64e
last_write_checksum: sha1:615a2f97f25e280e0396d9af0beb3931ecb67c42
Expand Down Expand Up @@ -4325,8 +4325,8 @@ trackedFiles:
pristine_git_object: bbc29f620235b3508b12b22e9e1551f4ef8958ee
docs/sdks/skills/README.md:
id: 3a14a5c90791
last_write_checksum: sha1:2cc2175160f0d48c3176bd58fd82e9c73e19baa2
pristine_git_object: b6e66173eedbb1a5067244dd1fd727313e18dc23
last_write_checksum: sha1:1b61b775e75e104b21a0b908613f01f7db486dd5
pristine_git_object: 028bc2a4155874c35c16ee30b744aa551df9e1bd
docs/sdks/tools/README.md:
id: 044286549bac
last_write_checksum: sha1:a27f265c26b26d70b8b11dcfd1289ac92c7f8dde
Expand All @@ -4349,8 +4349,8 @@ trackedFiles:
pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a
gradle.properties:
id: 2afbb999f001
last_write_checksum: sha1:f73a2a3237328e1d3d4410a4b9d3d5612fe6d0a8
pristine_git_object: 34dfd5c9d0aad531c5deab951442253e7a5f944b
last_write_checksum: sha1:0768003c524b3e51f5ae9cfcb87250ccd5af56e4
pristine_git_object: c482e4d00d808621b14f8c303ffa48dbe7ab048f
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
Expand Down Expand Up @@ -4673,8 +4673,8 @@ trackedFiles:
pristine_git_object: ffae914775eb41ff311371f62504344a59d090fd
src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java:
id: d5fcc61f5992
last_write_checksum: sha1:f1fb999dfd444c61579db75f4fe04ffdd4744aad
pristine_git_object: 053e9244ad818fde213e2587cfa9daf56d5a99b4
last_write_checksum: sha1:10cc7201e955c02b33802b56a9b79036f7771be0
pristine_git_object: 0edfb78753136e4fbf29910a31445ec7436fb467
src/main/java/com/glean/api_client/glean_api_client/Search.java:
id: f22d94b920b5
last_write_checksum: sha1:14e024607aebae4b1197445ad31984898c4735a3
Expand Down Expand Up @@ -5093,8 +5093,8 @@ trackedFiles:
pristine_git_object: 2546c775b695452bcc1a8d8e134e99c2a70c9976
src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java:
id: c22528520aec
last_write_checksum: sha1:c85711c365cbbfffbf3a57ae201a83c7def0f9b4
pristine_git_object: d2653b525807e0772994134636ceccee0c8d498e
last_write_checksum: sha1:6673a4bdb67f5620d0c1a7fe446a63ab4b5d4c59
pristine_git_object: bea60ac335b6e1f8595b6e2289999de245c574c3
src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMetadata.java:
id: b6d2e9d21bd1
last_write_checksum: sha1:400c3443ecc621cf6e43f7e6855c7fcbdcd97e36
Expand Down Expand Up @@ -7261,16 +7261,16 @@ trackedFiles:
pristine_git_object: 9049008ca617ac2b7b0b8bae694f597bbf1a2bcf
src/main/java/com/glean/api_client/glean_api_client/models/components/ServerToolRequestRequestType.java:
id: 81b43757fd9f
last_write_checksum: sha1:e2ec7e57ea2e8e9cd7dac87c6bbfdea17beaaab9
pristine_git_object: 919d6f6683f2c8fa2b92ed0dba7e526d1199eb51
last_write_checksum: sha1:be2ba483fcd291f728295b62b2e29951b8615682
pristine_git_object: b63ae210e960ed6049578a54aa53e640f874705b
src/main/java/com/glean/api_client/glean_api_client/models/components/ServerToolResponse.java:
id: eaf5337ab5b0
last_write_checksum: sha1:7b5ff6372620b3b928f17e2ff36506c7d466c826
pristine_git_object: f99f596211293fb341759b7ddecc5c8124275e2e
last_write_checksum: sha1:471cfbf470c60204515613b6c79cf6815b140756
pristine_git_object: 2097dfe1e52cdbda2ad0afedf6ca18413b4a3045
src/main/java/com/glean/api_client/glean_api_client/models/components/ServerToolResponseRequestType.java:
id: 200aa88b7317
last_write_checksum: sha1:28864f16fa852c3122a2fab6b1ac75384c700fda
pristine_git_object: ece0a53d2c8f4e3d51c2b2608f5c95caa8fe9f0c
last_write_checksum: sha1:1117c5f1718e7588f4328aaebbef0ba53d54e3cf
pristine_git_object: 16fab3c40b3a0160032d19965ef26bcd411c90bf
src/main/java/com/glean/api_client/glean_api_client/models/components/SessionInfo.java:
id: ad7b0e031edf
last_write_checksum: sha1:3d997e0f6931e66eebac4a8269640e7233299f47
Expand Down Expand Up @@ -12804,7 +12804,7 @@ examples:
path:
agent_id: "<id>"
requestBody:
application/json: {"messages": [{"role": "USER", "content": []}], "stream": false}
application/json: {"messages": [{"role": "USER", "content": [{"text": "What is our parental leave policy?", "type": "text"}]}], "stream": false}
responses:
"200":
application/json: {"run": {"agent_id": "<id>", "messages": [{"role": "USER", "content": []}], "status": "error"}, "messages": [{"role": "USER", "content": []}], "request_id": "<id>"}
Expand Down Expand Up @@ -12969,7 +12969,7 @@ examples:
platform-chat-create:
speakeasy-default-platform-chat-create:
requestBody:
application/json: {"input": "<value>", "stream": false, "store": true}
application/json: {"input": "What is our parental leave policy?", "stream": false, "store": true}
responses:
"200":
application/json: {"id": "<id>", "object": "RESPONSE", "created_at": "2026-05-19T05:32:52.505Z", "status": "COMPLETED", "output": [{"type": "MESSAGE", "role": "ASSISTANT", "content": [{"type": "OUTPUT_TEXT", "text": "<value>"}]}], "store": false, "request_id": "<id>"}
Expand All @@ -12981,7 +12981,7 @@ examples:
platform-skills-import:
speakeasy-default-platform-skills-import:
requestBody:
application/json: {"source_urls": ["<value 1>"]}
application/json: {"source_urls": ["https://github.com/anthropics/skills/tree/main/skills/skill-creator"]}
responses:
"200":
application/json: {"skills": [], "request_id": "<id>"}
Expand All @@ -12992,7 +12992,7 @@ examples:
platform-skills-preview-source:
speakeasy-default-platform-skills-preview-source:
requestBody:
application/json: {"source_url": "https://ugly-information.name/", "stream": false}
application/json: {"source_url": "https://github.com/anthropics/skills", "stream": false}
responses:
"200":
application/json: {"skills": [], "failures": [{"source_url": "https://slimy-availability.org", "code": "SKILL_FETCH_FAILED", "detail": "<value>"}], "request_id": "<id>"}
Expand All @@ -13007,7 +13007,7 @@ examples:
path:
skill_id: "<id>"
requestBody:
application/json: {"status": "DISABLED"}
application/json: {"status": "ENABLED"}
responses:
"200":
application/json: {"skill": {"id": "<id>", "display_name": "Afton14", "description": "taut netsuke duh sonata boastfully elegantly management come", "latest_version": 425795, "latest_minor_version": 741364, "status": "DISABLED", "origin": "CUSTOM", "owner": {"name": "<value>"}, "created_at": "2024-12-20T01:31:39.364Z", "updated_at": "2025-12-04T02:59:37.124Z"}, "request_id": "<id>"}
Expand Down Expand Up @@ -13333,7 +13333,7 @@ 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.chat.create()`: \n * `request.input.union(Array<PlatformChatInputMessage>)[].role` **Changed** (Breaking ⚠)\n * `response` **Changed** (Breaking ⚠)\n* `glean.triggers.listPresets()`: **Added**\n* `glean.triggers.listPresetInputValues()`: **Added**\n* `glean.triggers.update()`: **Added**\n* `glean.triggers.delete()`: **Added**\n* `glean.triggers.searchEvents()`: **Added**\n* `glean.triggers.create()`: **Added**\n* `glean.triggers.getPreset()`: **Added**\n* `glean.triggers.get()`: **Added**\n* `glean.triggers.searchPresetEvents()`: **Added**\n* `glean.triggers.list()`: **Added**\n* `glean.client.chat.create()`: \n * `request.chatRequest.messages[].citations[].sourceSkill` **Added**\n * `response.messages[].citations[].sourceSkill` **Added**\n* `glean.client.chat.retrieve()`: `response.chatResult.chat.messages[].citations[].sourceSkill` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].citations[].sourceSkill` **Added**\n* `glean.client.search.retrieveFeed()`: \n * `request.feedRequest.categories[]` **Changed**\n * `response.results[]` **Changed**\n"
releaseNotes: "## Java SDK Changes:\n* `glean.client.chat.create()`: \n * `request.chatRequest.messages[].fragments[]` **Changed**\n * `response.messages[].fragments[]` **Changed**\n* `glean.client.chat.retrieve()`: `response.chatResult.chat.messages[].fragments[]` **Changed**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].fragments[]` **Changed**\n* `glean.client.agents.runStream()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added**\n* `glean.client.agents.run()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added**\n"
generatedFiles:
- .gitattributes
- USAGE.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.16.0
version: 0.16.1
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
27 changes: 25 additions & 2 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ openapi: 3.0.0
info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: ae20e37cc1d6786192c975f846fbe57527d94d7e
x-open-api-commit-sha: 68a8939fe1b80a3a659ea78c778a5ddfdcb8e999
x-source-commit-sha: 57c5ed97e505b6f223d7a45ad5a2a341e256c949
x-open-api-commit-sha: 9ada039d29c22a526e3f2aedf1e2592fa53f9662
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.
Expand Down Expand Up @@ -6747,6 +6747,8 @@ components:
PlatformAgentsSearchRequest:
type: object
additionalProperties: false
example:
name: HR Policy Agent
properties:
name:
type: string
Expand Down Expand Up @@ -7070,6 +7072,12 @@ components:
additionalProperties: false
description: |
Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents).
example:
messages:
- role: USER
content:
- text: What is our parental leave policy?
type: text
properties:
input:
type: object
Expand Down Expand Up @@ -7186,6 +7194,8 @@ components:
additionalProperties: false
required:
- input
example:
input: What is our parental leave policy?
properties:
input:
description: |
Expand Down Expand Up @@ -7586,6 +7596,9 @@ components:
additionalProperties: false
required:
- source_urls
example:
source_urls:
- https://github.com/anthropics/skills/tree/main/skills/skill-creator
properties:
source_urls:
type: array
Expand Down Expand Up @@ -7678,6 +7691,8 @@ components:
additionalProperties: false
required:
- source_url
example:
source_url: https://github.com/anthropics/skills
properties:
source_url:
type: string
Expand Down Expand Up @@ -7800,6 +7815,8 @@ components:
additionalProperties: false
required:
- status
example:
status: ENABLED
properties:
status:
$ref: "#/components/schemas/PlatformSkillUpdateStatus"
Expand Down Expand Up @@ -12896,15 +12913,18 @@ components:
- EXECUTION
- AUTHENTICATION_SUGGESTION
- VOTE_SUGGESTION
- SANDBOX_EGRESS
description: The type of request made to the user.
x-enumDescriptions:
EXECUTION: Request for approving execution of the tool.
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
x-speakeasy-enum-descriptions:
EXECUTION: Request for approving execution of the tool.
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
requestId:
type: string
description: Unique identifier for this request.
Expand Down Expand Up @@ -13004,6 +13024,9 @@ components:

For VOTE_SUGGESTION requests:
- voted: whether the user voted for this tool

For SANDBOX_EGRESS requests:
- isGranted: whether the sandbox egress call is approved
x-visibility: Preview
x-glean-experimental:
id: 3eae3ee7-2c06-4027-be14-98260a3ce608
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.795.1
speakeasyVersion: 1.795.3
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
sourceRevisionDigest: sha256:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3
sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6
tags:
- latest
Glean-OAS:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
sourceRevisionDigest: sha256:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3
sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:ddf9dd5cbbd862309aa41daa91879d560ebe98abe45b256ed28022e253b91eb1
codeSamplesRevisionDigest: sha256:7156be7e486f10278fd9af21f32cb7d781183cfe96ac1ffaaa880b1ea5858389
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.16.0'
implementation 'com.glean.api-client:glean-api-client:0.16.1'
```

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

Expand Down
Loading