Skip to content
Merged
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
30 changes: 15 additions & 15 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
management:
docChecksum: e61f09454154d7eb019991c03f6d19eb
docChecksum: ec7e84fe9ae49de24ac676fbc253b201
docVersion: 0.9.0
speakeasyVersion: 1.722.7
generationVersion: 2.832.9
releaseVersion: 0.12.22
configChecksum: a0a3cf529b78d6008f01b4b4a8685b95
releaseVersion: 0.12.23
configChecksum: b6f4009a53cf9967ce7f6806eb726a74
repoURL: https://github.com/gleanwork/api-client-java.git
published: true
persistentEdits:
generation_id: 976557d4-4a59-48aa-95e8-6bd551aa3f9f
pristine_commit_hash: 02ea073c3a2c08e4c8348a9912bc85005bd00254
pristine_tree_hash: ff6884bb1ba8bc2d8fef0a14c3bb351483fbf196
generation_id: eca3ba63-ba74-4799-9915-cd29da6221a0
pristine_commit_hash: 042cd019b81d5145e264574e1a3e1f18564bb098
pristine_tree_hash: 38f8c08e012aea6032375fdbc28ae887b39f2697
features:
java:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -394,8 +394,8 @@ trackedFiles:
pristine_git_object: 5198bb58bd0d8c917de9acab2571e321ce52ddfa
docs/models/components/CheckDatasourceAuthResponse.md:
id: 252713b09ff9
last_write_checksum: sha1:537d7b1ba49e363f558014b8260fe462669e43b1
pristine_git_object: c715f548854dd487feda560d3dd9db2310bc5e15
last_write_checksum: sha1:820e30c076651352426d1c7ec4a09432da8d0d8d
pristine_git_object: 87541f3ea67ee228bf05eaa811208cc1aff4c208
docs/models/components/CheckDocumentAccessRequest.md:
id: 99922a67ce1c
last_write_checksum: sha1:0896a9dc3bd2922d4b7afa0ecb24b03d516ec772
Expand Down Expand Up @@ -3166,8 +3166,8 @@ trackedFiles:
pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a
gradle.properties:
id: 2afbb999f001
last_write_checksum: sha1:85b56ce4d8a62914530676a473a289672aa3c686
pristine_git_object: f0f849bc4e9d07c16489605f89dcaecc5fb7b533
last_write_checksum: sha1:07b0849383dc2c1dfa1564ac7180ce719818df0c
pristine_git_object: 46e86b408b9a43c7441d1028a8c69e51190b627f
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
Expand Down Expand Up @@ -3478,8 +3478,8 @@ trackedFiles:
pristine_git_object: 5e30515ba0d212914ac9a195db6019330b6b0a2b
src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java:
id: d5fcc61f5992
last_write_checksum: sha1:5c96cfc81c45d9cf9714775098c3c7ebee517be0
pristine_git_object: 048e5f1ad6581107be55c169bb6a222366c90cb0
last_write_checksum: sha1:d27cf4fa216f716e2e28e88197c13065072630f3
pristine_git_object: 9a76d7e37692e8d7db8bc70851a808f944946b89
src/main/java/com/glean/api_client/glean_api_client/Search.java:
id: f22d94b920b5
last_write_checksum: sha1:36e225a42ff566cb610d877bb5f41fc09e3e49e5
Expand Down Expand Up @@ -3850,8 +3850,8 @@ trackedFiles:
pristine_git_object: b7d2d996ac18c4ae8df89a17d29cb9396b3758e9
src/main/java/com/glean/api_client/glean_api_client/models/components/CheckDatasourceAuthResponse.java:
id: 33eb619b4e56
last_write_checksum: sha1:e8b14050f23039ecbebb84b743559d466cf904fa
pristine_git_object: e8f951f1acd1dbb44314b42abecb81011163197e
last_write_checksum: sha1:921c24642f513edff9b49f5c370957af1f9541a4
pristine_git_object: 14777ad3f30d004d004dcdaebd6d4e1afce02569
src/main/java/com/glean/api_client/glean_api_client/models/components/CheckDocumentAccessRequest.java:
id: bfccebbc44e6
last_write_checksum: sha1:816268104ea78da5af836792df98290f64adf508
Expand Down Expand Up @@ -9497,7 +9497,7 @@ generatedTests:
listpolicies: "2025-06-09T18:03:44Z"
releaseNotes: |
## Java SDK Changes:
* `glean.authentication.checkdatasourceauth()`: **Added**
* `glean.authentication.checkdatasourceauth()`: `response.unauthorizedDatasourceInstances` **Changed**
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 @@ -28,7 +28,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.12.22
version: 0.12.23
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
8 changes: 5 additions & 3 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
x-source-commit-sha: 204dc378669e42116b8b928d58d5fddabb228aef
x-source-commit-sha: b9ea91029b2b66b64b5145cea87d0bbfc2dd6a6e
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 All @@ -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: 8a4d8a857ef07a135526624459142e85f9444ec2
x-open-api-commit-sha: ef44a085147b249f40ce92e135abb4c6e5439d7d
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -7367,11 +7367,13 @@ components:
description: |
Relative path to initiate or resume OAuth for the current user and instance, including a one-time authentication token as a query parameter. Clients should prepend their configured Glean backend base URL.
CheckDatasourceAuthResponse:
required:
- unauthorizedDatasourceInstances
properties:
unauthorizedDatasourceInstances:
type: array
description: |
Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
items:
$ref: "#/components/schemas/UnauthorizedDatasourceInstance"
CreateAuthTokenResponse:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ speakeasyVersion: 1.722.7
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
sourceRevisionDigest: sha256:d5821c86abba62ae5c86977e91a4226c5f3c60081aca52768fb6924cc1f4e721
sourceBlobDigest: sha256:25bbf44aeb95dac432ddbae594ee0954e8df205a2b24bac7855b1f3e56624d83
tags:
- latest
- speakeasy-sdk-regen-1771469318
- speakeasy-sdk-regen-1771525186
Glean-OAS:
sourceNamespace: glean-oas
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
Expand All @@ -18,10 +18,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
sourceRevisionDigest: sha256:d5821c86abba62ae5c86977e91a4226c5f3c60081aca52768fb6924cc1f4e721
sourceBlobDigest: sha256:25bbf44aeb95dac432ddbae594ee0954e8df205a2b24bac7855b1f3e56624d83
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:4c9aa475880ad397e86aef7b1d718a1b1d94262b5473e9e0a954b4b0573681cc
codeSamplesRevisionDigest: sha256:20200550df64700f76dee5b1c099271d649b72a7a845352b2162c87dd708b0a2
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 @@ -66,15 +66,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.12.22'
implementation 'com.glean.api-client:glean-api-client:0.12.23'
```

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

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

## 2026-02-20 02:42:11
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.722.7 (2.832.9) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.12.23] .
### Releases
- [Maven Central v0.12.23] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.23 - .
6 changes: 3 additions & 3 deletions docs/models/components/CheckDatasourceAuthResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `unauthorizedDatasourceInstances` | List\<[UnauthorizedDatasourceInstance](../../models/components/UnauthorizedDatasourceInstance.md)> | :heavy_minus_sign: | Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.<br/> |
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `unauthorizedDatasourceInstances` | List\<[UnauthorizedDatasourceInstance](../../models/components/UnauthorizedDatasourceInstance.md)> | :heavy_check_mark: | Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.<br/> |
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.12.22
version=0.12.23
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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.22";
public static final String SDK_VERSION = "0.12.23";
public static final String GEN_VERSION = "2.832.9";
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
public static final String USER_AGENT =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,35 @@

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.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.List;
import java.util.Optional;


public class CheckDatasourceAuthResponse {
/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
* are authorized.
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
* authorized.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("unauthorizedDatasourceInstances")
private Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances;
private List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances;

@JsonCreator
public CheckDatasourceAuthResponse(
@JsonProperty("unauthorizedDatasourceInstances") Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances) {
@JsonProperty("unauthorizedDatasourceInstances") List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances) {
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
this.unauthorizedDatasourceInstances = unauthorizedDatasourceInstances;
}

public CheckDatasourceAuthResponse() {
this(Optional.empty());
}

/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
* are authorized.
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
* authorized.
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional<List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances() {
return (Optional<List<UnauthorizedDatasourceInstance>>) unauthorizedDatasourceInstances;
public List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances() {
return unauthorizedDatasourceInstances;
}

public static Builder builder() {
Expand All @@ -52,21 +42,10 @@ public static Builder builder() {


/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
* are authorized.
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
* authorized.
*/
public CheckDatasourceAuthResponse withUnauthorizedDatasourceInstances(List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances) {
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
this.unauthorizedDatasourceInstances = Optional.ofNullable(unauthorizedDatasourceInstances);
return this;
}


/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
* are authorized.
*/
public CheckDatasourceAuthResponse withUnauthorizedDatasourceInstances(Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances) {
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
this.unauthorizedDatasourceInstances = unauthorizedDatasourceInstances;
return this;
Expand Down Expand Up @@ -100,28 +79,18 @@ public String toString() {
@SuppressWarnings("UnusedReturnValue")
public final static class Builder {

private Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances = Optional.empty();
private List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances;

private Builder() {
// force use of static builder() method
}


/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
* are authorized.
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
* authorized.
*/
public Builder unauthorizedDatasourceInstances(List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances) {
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
this.unauthorizedDatasourceInstances = Optional.ofNullable(unauthorizedDatasourceInstances);
return this;
}

/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
* are authorized.
*/
public Builder unauthorizedDatasourceInstances(Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances) {
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
this.unauthorizedDatasourceInstances = unauthorizedDatasourceInstances;
return this;
Expand Down