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
1,417 changes: 709 additions & 708 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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.17.14
version: 0.17.15
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
7 changes: 5 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.1.0
info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: 31a8965bc9e49871a44c872a19d7442c25790b41
x-open-api-commit-sha: 50797dafaa6c32f59f7dd18b9a5766b5321fffaa
x-source-commit-sha: 0461f17f3b00fc8415b90117486d7d8669304926
x-open-api-commit-sha: 22c889b55a92c203e454b258679f81da4acb9a60
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 @@ -15935,6 +15935,7 @@ components:
- KNOWLEDGE_GAP
- ARTIFACT_CREATION
- EDIT_DOC
- CHAT_TO_ARTIFACT
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
requestOptions:
$ref: '#/components/schemas/FeedRequestOptions'
Expand Down Expand Up @@ -16408,6 +16409,7 @@ components:
- KNOWLEDGE_GAP
- ARTIFACT_CREATION
- EDIT_DOC
- CHAT_TO_ARTIFACT
description: Type of the justification.
justification:
type: string
Expand Down Expand Up @@ -16504,6 +16506,7 @@ components:
- KNOWLEDGE_GAP
- ARTIFACT_CREATION
- EDIT_DOC
- CHAT_TO_ARTIFACT
description: Category of the result, one of the requested categories in incoming request.
primaryEntry:
$ref: '#/components/schemas/FeedEntry'
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.796.4
speakeasyVersion: 1.797.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:09eb059f0216714606cd4c098bf2c97994e46c67ba091ffd108681cf9ae831a5
sourceBlobDigest: sha256:a9418b93b4aaa7cd6d428375e23d233ffca2418e04be1fee988a029e3cb02931
sourceRevisionDigest: sha256:1ab7e86e627c462a4b512a2a817058f7c3a4cb3e775af8522c5a7ca1eca2e859
sourceBlobDigest: sha256:a789ea66560700f9494430a493d1967f1d3274827c976b49436a6c2e527ffe90
tags:
- latest
Glean-OAS:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:09eb059f0216714606cd4c098bf2c97994e46c67ba091ffd108681cf9ae831a5
sourceBlobDigest: sha256:a9418b93b4aaa7cd6d428375e23d233ffca2418e04be1fee988a029e3cb02931
sourceRevisionDigest: sha256:1ab7e86e627c462a4b512a2a817058f7c3a4cb3e775af8522c5a7ca1eca2e859
sourceBlobDigest: sha256:a789ea66560700f9494430a493d1967f1d3274827c976b49436a6c2e527ffe90
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:13ba0f64170303bfca3e3b8e3fc150b75313cd11e52e5b15e728be9b52276ce3
codeSamplesRevisionDigest: sha256:8a27311007d2922f2847ae047b7507dc84d1b27f52b29e4c9ea9921606914b30
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 @@ -68,15 +68,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.17.14'
implementation 'com.glean.api-client:glean-api-client:0.17.15'
```

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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -998,4 +998,14 @@ Based on:
### Generated
- [java v0.17.14] .
### Releases
- [Maven Central v0.17.14] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.17.14 - .
- [Maven Central v0.17.14] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.17.14 - .

## 2026-09-15 04:29:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.797.0 (2.937.18) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.17.15] .
### Releases
- [Maven Central v0.17.15] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.17.15 - .
3 changes: 2 additions & 1 deletion docs/models/components/FeedRequestCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ FeedRequestCategory value = FeedRequestCategory.DOCUMENT_SUGGESTION;
| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER |
| `KNOWLEDGE_GAP` | KNOWLEDGE_GAP |
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
| `EDIT_DOC` | EDIT_DOC |
| `EDIT_DOC` | EDIT_DOC |
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
3 changes: 2 additions & 1 deletion docs/models/components/FeedResultCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ FeedResultCategory custom = FeedResultCategory.of("custom_value");
| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER |
| `KNOWLEDGE_GAP` | KNOWLEDGE_GAP |
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
| `EDIT_DOC` | EDIT_DOC |
| `EDIT_DOC` | EDIT_DOC |
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
3 changes: 2 additions & 1 deletion docs/models/components/JustificationType.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ JustificationType custom = JustificationType.of("custom_value");
| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER |
| `KNOWLEDGE_GAP` | KNOWLEDGE_GAP |
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
| `EDIT_DOC` | EDIT_DOC |
| `EDIT_DOC` | EDIT_DOC |
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
groupId=com.glean.api-client
artifactId=glean-api-client
version=0.17.14
version=0.17.15
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class SDKConfiguration {

private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.9.0";
public static final String SDK_VERSION = "0.17.14";
public static final String GEN_VERSION = "2.935.1";
public static final String SDK_VERSION = "0.17.15";
public static final String GEN_VERSION = "2.937.18";
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public enum FeedRequestCategory {
ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),
KNOWLEDGE_GAP("KNOWLEDGE_GAP"),
ARTIFACT_CREATION("ARTIFACT_CREATION"),
EDIT_DOC("EDIT_DOC");
EDIT_DOC("EDIT_DOC"),
CHAT_TO_ARTIFACT("CHAT_TO_ARTIFACT");

@JsonValue
private final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class FeedResultCategory {
public static final FeedResultCategory KNOWLEDGE_GAP = new FeedResultCategory("KNOWLEDGE_GAP");
public static final FeedResultCategory ARTIFACT_CREATION = new FeedResultCategory("ARTIFACT_CREATION");
public static final FeedResultCategory EDIT_DOC = new FeedResultCategory("EDIT_DOC");
public static final FeedResultCategory CHAT_TO_ARTIFACT = new FeedResultCategory("CHAT_TO_ARTIFACT");

// This map will grow whenever a Color gets created with a new
// unrecognized value (a potential memory leak if the user is not
Expand Down Expand Up @@ -199,6 +200,7 @@ private static final Map<String, FeedResultCategory> createValuesMap() {
map.put("KNOWLEDGE_GAP", KNOWLEDGE_GAP);
map.put("ARTIFACT_CREATION", ARTIFACT_CREATION);
map.put("EDIT_DOC", EDIT_DOC);
map.put("CHAT_TO_ARTIFACT", CHAT_TO_ARTIFACT);
return map;
}

Expand Down Expand Up @@ -254,6 +256,7 @@ private static final Map<String, FeedResultCategoryEnum> createEnumsMap() {
map.put("KNOWLEDGE_GAP", FeedResultCategoryEnum.KNOWLEDGE_GAP);
map.put("ARTIFACT_CREATION", FeedResultCategoryEnum.ARTIFACT_CREATION);
map.put("EDIT_DOC", FeedResultCategoryEnum.EDIT_DOC);
map.put("CHAT_TO_ARTIFACT", FeedResultCategoryEnum.CHAT_TO_ARTIFACT);
return map;
}

Expand Down Expand Up @@ -309,7 +312,8 @@ public enum FeedResultCategoryEnum {
ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),
KNOWLEDGE_GAP("KNOWLEDGE_GAP"),
ARTIFACT_CREATION("ARTIFACT_CREATION"),
EDIT_DOC("EDIT_DOC"),;
EDIT_DOC("EDIT_DOC"),
CHAT_TO_ARTIFACT("CHAT_TO_ARTIFACT"),;

private final String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class JustificationType {
public static final JustificationType KNOWLEDGE_GAP = new JustificationType("KNOWLEDGE_GAP");
public static final JustificationType ARTIFACT_CREATION = new JustificationType("ARTIFACT_CREATION");
public static final JustificationType EDIT_DOC = new JustificationType("EDIT_DOC");
public static final JustificationType CHAT_TO_ARTIFACT = new JustificationType("CHAT_TO_ARTIFACT");

// This map will grow whenever a Color gets created with a new
// unrecognized value (a potential memory leak if the user is not
Expand Down Expand Up @@ -227,6 +228,7 @@ private static final Map<String, JustificationType> createValuesMap() {
map.put("KNOWLEDGE_GAP", KNOWLEDGE_GAP);
map.put("ARTIFACT_CREATION", ARTIFACT_CREATION);
map.put("EDIT_DOC", EDIT_DOC);
map.put("CHAT_TO_ARTIFACT", CHAT_TO_ARTIFACT);
return map;
}

Expand Down Expand Up @@ -296,6 +298,7 @@ private static final Map<String, JustificationTypeEnum> createEnumsMap() {
map.put("KNOWLEDGE_GAP", JustificationTypeEnum.KNOWLEDGE_GAP);
map.put("ARTIFACT_CREATION", JustificationTypeEnum.ARTIFACT_CREATION);
map.put("EDIT_DOC", JustificationTypeEnum.EDIT_DOC);
map.put("CHAT_TO_ARTIFACT", JustificationTypeEnum.CHAT_TO_ARTIFACT);
return map;
}

Expand Down Expand Up @@ -365,7 +368,8 @@ public enum JustificationTypeEnum {
ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),
KNOWLEDGE_GAP("KNOWLEDGE_GAP"),
ARTIFACT_CREATION("ARTIFACT_CREATION"),
EDIT_DOC("EDIT_DOC"),;
EDIT_DOC("EDIT_DOC"),
CHAT_TO_ARTIFACT("CHAT_TO_ARTIFACT"),;

private final String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@ public AccessRequestPermissionDeniedResponseException(
* the resulting AccessRequestPermissionDeniedResponseException instance will have a null data() value and a non-null deserializationException().
*/
public static AccessRequestPermissionDeniedResponseException from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new AccessRequestPermissionDeniedResponseException(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new AccessRequestPermissionDeniedResponseException(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new AccessRequestPermissionDeniedResponseException(response.statusCode(), null, response, null, e);
return new AccessRequestPermissionDeniedResponseException(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ public CollectionError(
* the resulting CollectionError instance will have a null data() value and a non-null deserializationException().
*/
public static CollectionError from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new CollectionError(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new CollectionError(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new CollectionError(response.statusCode(), null, response, null, e);
return new CollectionError(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ public ErrorInfoResponse(
* the resulting ErrorInfoResponse instance will have a null data() value and a non-null deserializationException().
*/
public static ErrorInfoResponse from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new ErrorInfoResponse(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new ErrorInfoResponse(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new ErrorInfoResponse(response.statusCode(), null, response, null, e);
return new ErrorInfoResponse(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,17 @@ public ErrorResponse(
* the resulting ErrorResponse instance will have a null data() value and a non-null deserializationException().
*/
public static ErrorResponse from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new ErrorResponse(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new ErrorResponse(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new ErrorResponse(response.statusCode(), null, response, null, e);
return new ErrorResponse(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ public GleanDataError(
* the resulting GleanDataError instance will have a null data() value and a non-null deserializationException().
*/
public static GleanDataError from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new GleanDataError(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new GleanDataError(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new GleanDataError(response.statusCode(), null, response, null, e);
return new GleanDataError(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ public PlatformProblemDetailException(
* the resulting PlatformProblemDetailException instance will have a null data() value and a non-null deserializationException().
*/
public static PlatformProblemDetailException from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new PlatformProblemDetailException(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new PlatformProblemDetailException(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new PlatformProblemDetailException(response.statusCode(), null, response, null, e);
return new PlatformProblemDetailException(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ public PlatformUnauthorizedAgentToolsProblemException(
* the resulting PlatformUnauthorizedAgentToolsProblemException instance will have a null data() value and a non-null deserializationException().
*/
public static PlatformUnauthorizedAgentToolsProblemException from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new PlatformUnauthorizedAgentToolsProblemException(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new PlatformUnauthorizedAgentToolsProblemException(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new PlatformUnauthorizedAgentToolsProblemException(response.statusCode(), null, response, null, e);
return new PlatformUnauthorizedAgentToolsProblemException(response.statusCode(), bytes, response, null, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ public UnauthorizedAgentToolsError(
* the resulting UnauthorizedAgentToolsError instance will have a null data() value and a non-null deserializationException().
*/
public static UnauthorizedAgentToolsError from(HttpResponse<InputStream> response) {
byte[] bytes;
try {
bytes = Utils.extractByteArrayFromBody(response);
} catch (Exception e) {
return new UnauthorizedAgentToolsError(response.statusCode(), null, response, null, e);
}
try {
byte[] bytes = Utils.extractByteArrayFromBody(response);
Data data = Utils.mapper().readValue(bytes, Data.class);
return new UnauthorizedAgentToolsError(response.statusCode(), bytes, response, data, null);
} catch (Exception e) {
return new UnauthorizedAgentToolsError(response.statusCode(), null, response, null, e);
return new UnauthorizedAgentToolsError(response.statusCode(), bytes, response, null, e);
}
}

Expand Down