Skip to content

Commit 78ce1f6

Browse files
committed
## Java SDK Changes:
* `glean.client.chat.create()`: * `request.chatRequest.messages[].fragments[]` **Changed** * `response.messages[].fragments[]` **Changed** * `glean.client.chat.retrieve()`: `response.chatResult.chat.messages[].fragments[]` **Changed** * `glean.client.chat.createStream()`: * `request.chatRequest.messages[].fragments[]` **Changed** * `glean.client.agents.runStream()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added** * `glean.client.agents.run()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added**
1 parent 10e64f8 commit 78ce1f6

24 files changed

Lines changed: 245 additions & 161 deletions

.speakeasy/gen.lock

Lines changed: 51 additions & 51 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: false
3131
skipResponseBodyAssertions: false
3232
java:
33-
version: 0.16.0
33+
version: 0.16.1
3434
additionalDependencies: []
3535
additionalPlugins: []
3636
artifactID: glean-api-client

.speakeasy/glean-merged-spec.yaml

Lines changed: 69 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
openapi: 3.0.0
1+
openapi: 3.1.0
22
info:
33
version: "0.9.0"
44
title: Glean API
5-
x-source-commit-sha: ae20e37cc1d6786192c975f846fbe57527d94d7e
6-
x-open-api-commit-sha: 68a8939fe1b80a3a659ea78c778a5ddfdcb8e999
5+
x-source-commit-sha: 4bd95a5c20ad16b43df86860ba08a134dfadb7fc
6+
x-open-api-commit-sha: 1c90c01f18f45d3d8298a423a5a18d9924b88c1f
77
description: |
88
# Introduction
99
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.
@@ -6747,6 +6747,8 @@ components:
67476747
PlatformAgentsSearchRequest:
67486748
type: object
67496749
additionalProperties: false
6750+
example:
6751+
name: HR Policy Agent
67506752
properties:
67516753
name:
67526754
type: string
@@ -7070,6 +7072,12 @@ components:
70707072
additionalProperties: false
70717073
description: |
70727074
Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents).
7075+
example:
7076+
messages:
7077+
- role: USER
7078+
content:
7079+
- text: What is our parental leave policy?
7080+
type: text
70737081
properties:
70747082
input:
70757083
type: object
@@ -7186,6 +7194,8 @@ components:
71867194
additionalProperties: false
71877195
required:
71887196
- input
7197+
example:
7198+
input: What is our parental leave policy?
71897199
properties:
71907200
input:
71917201
description: |
@@ -7327,8 +7337,9 @@ components:
73277337
type: string
73287338
minLength: 1
73297339
page_number:
7330-
type: integer
7331-
nullable: true
7340+
type:
7341+
- integer
7342+
- "null"
73327343
PlatformChatCitationAnnotation:
73337344
type: object
73347345
additionalProperties: false
@@ -7346,16 +7357,19 @@ components:
73467357
items:
73477358
$ref: "#/components/schemas/PlatformChatCitationSource"
73487359
start_index:
7349-
type: integer
7360+
type:
7361+
- integer
7362+
- "null"
73507363
minimum: 0
7351-
nullable: true
73527364
end_index:
7353-
type: integer
7365+
type:
7366+
- integer
7367+
- "null"
73547368
minimum: 0
7355-
nullable: true
73567369
snippets:
7357-
type: array
7358-
nullable: true
7370+
type:
7371+
- array
7372+
- "null"
73597373
items:
73607374
$ref: "#/components/schemas/PlatformChatCitationSnippet"
73617375
PlatformChatOutputTextContent:
@@ -7432,9 +7446,10 @@ components:
74327446
store:
74337447
type: boolean
74347448
conversation_id:
7435-
type: string
7449+
type:
7450+
- string
7451+
- "null"
74367452
minLength: 1
7437-
nullable: true
74387453
description: Present when the interaction was persisted.
74397454
request_id:
74407455
type: string
@@ -7554,8 +7569,9 @@ components:
75547569
type: boolean
75557570
description: Whether additional results are available.
75567571
next_cursor:
7557-
type: string
7558-
nullable: true
7572+
type:
7573+
- string
7574+
- "null"
75597575
description: Cursor for the next page, or null when no more results are available.
75607576
request_id:
75617577
type: string
@@ -7586,6 +7602,9 @@ components:
75867602
additionalProperties: false
75877603
required:
75887604
- source_urls
7605+
example:
7606+
source_urls:
7607+
- https://github.com/anthropics/skills/tree/main/skills/skill-creator
75897608
properties:
75907609
source_urls:
75917610
type: array
@@ -7678,6 +7697,8 @@ components:
76787697
additionalProperties: false
76797698
required:
76807699
- source_url
7700+
example:
7701+
source_url: https://github.com/anthropics/skills
76817702
properties:
76827703
source_url:
76837704
type: string
@@ -7800,6 +7821,8 @@ components:
78007821
additionalProperties: false
78017822
required:
78027823
- status
7824+
example:
7825+
status: ENABLED
78037826
properties:
78047827
status:
78057828
$ref: "#/components/schemas/PlatformSkillUpdateStatus"
@@ -7891,8 +7914,9 @@ components:
78917914
type: boolean
78927915
description: Whether additional results are available.
78937916
next_cursor:
7894-
type: string
7895-
nullable: true
7917+
type:
7918+
- string
7919+
- "null"
78967920
description: Cursor for the next page, or null when no more results are available.
78977921
request_id:
78987922
type: string
@@ -8011,11 +8035,11 @@ components:
80118035
default: 10
80128036
description: Number of results to return per page.
80138037
cursor:
8014-
type: string
8015-
nullable: true
8038+
type:
8039+
- string
8040+
- "null"
80168041
description: |
80178042
Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request.
8018-
example: ""
80198043
datasources:
80208044
type: array
80218045
minItems: 1
@@ -8066,8 +8090,9 @@ components:
80668090
description: The datasource this result originates from.
80678091
example: confluence
80688092
document_type:
8069-
type: string
8070-
nullable: true
8093+
type:
8094+
- string
8095+
- "null"
80718096
minLength: 1
80728097
description: The document type within the datasource.
80738098
example: page
@@ -8076,14 +8101,16 @@ components:
80768101
owner:
80778102
$ref: "#/components/schemas/PlatformPersonReference"
80788103
updated_at:
8079-
type: string
8104+
type:
8105+
- string
8106+
- "null"
80808107
format: date-time
8081-
nullable: true
80828108
description: When the result was last modified.
80838109
created_at:
8084-
type: string
8110+
type:
8111+
- string
8112+
- "null"
80858113
format: date-time
8086-
nullable: true
80878114
description: When the result was created.
80888115
PlatformSearchResponse:
80898116
type: object
@@ -8105,8 +8132,9 @@ components:
81058132
type: boolean
81068133
description: Indicates whether additional pages of results are available.
81078134
next_cursor:
8108-
type: string
8109-
nullable: true
8135+
type:
8136+
- string
8137+
- "null"
81108138
description: Opaque token to pass as `cursor` in the next request.
81118139
request_id:
81128140
type: string
@@ -8283,8 +8311,9 @@ components:
82838311
type: boolean
82848312
description: Whether additional results are available.
82858313
next_cursor:
8286-
type: string
8287-
nullable: true
8314+
type:
8315+
- string
8316+
- "null"
82888317
description: Cursor for the next page, or null when no more results are available.
82898318
request_id:
82908319
type: string
@@ -8644,8 +8673,9 @@ components:
86448673
type: boolean
86458674
description: Whether additional results are available.
86468675
next_cursor:
8647-
type: string
8648-
nullable: true
8676+
type:
8677+
- string
8678+
- "null"
86498679
description: Cursor for the next page, or null when no more results are available.
86508680
request_id:
86518681
type: string
@@ -12896,15 +12926,18 @@ components:
1289612926
- EXECUTION
1289712927
- AUTHENTICATION_SUGGESTION
1289812928
- VOTE_SUGGESTION
12929+
- SANDBOX_EGRESS
1289912930
description: The type of request made to the user.
1290012931
x-enumDescriptions:
1290112932
EXECUTION: Request for approving execution of the tool.
1290212933
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
1290312934
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
12935+
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
1290412936
x-speakeasy-enum-descriptions:
1290512937
EXECUTION: Request for approving execution of the tool.
1290612938
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
1290712939
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
12940+
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
1290812941
requestId:
1290912942
type: string
1291012943
description: Unique identifier for this request.
@@ -13004,6 +13037,9 @@ components:
1300413037

1300513038
For VOTE_SUGGESTION requests:
1300613039
- voted: whether the user voted for this tool
13040+
13041+
For SANDBOX_EGRESS requests:
13042+
- isGranted: whether the sandbox egress call is approved
1300713043
x-visibility: Preview
1300813044
x-glean-experimental:
1300913045
id: 3eae3ee7-2c06-4027-be14-98260a3ce608
@@ -13590,7 +13626,7 @@ components:
1359013626
isDraft:
1359113627
type: boolean
1359213628
description: |
13593-
When true, validates and stores a draft preview without publishing (used for PR preview links). Takes precedence over `syncMode`: when `isDraft` is true, `syncMode` is ignored.
13629+
Deprecated. Draft mutation semantics are not supported for transient previews. Use transient and parentWorkflowId instead.
1359413630
required:
1359513631
- bundle
1359613632
ImportAgentStatus:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.795.1
1+
speakeasyVersion: 1.796.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
6-
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
5+
sourceRevisionDigest: sha256:a97a48e1f532dccfa0aa0c50faadb73f9b7500fceba0b24e6f0d5d8ee5c087db
6+
sourceBlobDigest: sha256:225bcbf6dbebd4a4cd455e794872dca72a30182cac69265e5bd03dfbd51f4d46
77
tags:
88
- latest
99
Glean-OAS:
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
21-
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
20+
sourceRevisionDigest: sha256:a97a48e1f532dccfa0aa0c50faadb73f9b7500fceba0b24e6f0d5d8ee5c087db
21+
sourceBlobDigest: sha256:225bcbf6dbebd4a4cd455e794872dca72a30182cac69265e5bd03dfbd51f4d46
2222
codeSamplesNamespace: glean-api-specs-java-code-samples
23-
codeSamplesRevisionDigest: sha256:ddf9dd5cbbd862309aa41daa91879d560ebe98abe45b256ed28022e253b91eb1
23+
codeSamplesRevisionDigest: sha256:7156be7e486f10278fd9af21f32cb7d781183cfe96ac1ffaaa880b1ea5858389
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ The samples below show how a published SDK artifact is used:
6767

6868
Gradle:
6969
```groovy
70-
implementation 'com.glean.api-client:glean-api-client:0.16.0'
70+
implementation 'com.glean.api-client:glean-api-client:0.16.1'
7171
```
7272

7373
Maven:
7474
```xml
7575
<dependency>
7676
<groupId>com.glean.api-client</groupId>
7777
<artifactId>glean-api-client</artifactId>
78-
<version>0.16.0</version>
78+
<version>0.16.1</version>
7979
</dependency>
8080
```
8181

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,4 +828,14 @@ Based on:
828828
### Generated
829829
- [java v0.16.0] .
830830
### Releases
831-
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.16.0 - .
831+
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.16.0 - .
832+
833+
## 2026-08-27 08:46:13
834+
### Changes
835+
Based on:
836+
- OpenAPI Doc
837+
- Speakeasy CLI 1.796.0 (2.932.15) https://github.com/speakeasy-api/speakeasy
838+
### Generated
839+
- [java v0.16.1] .
840+
### Releases
841+
- [Maven Central v0.16.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.16.1 - .

0 commit comments

Comments
 (0)