Skip to content

Commit 44b2765

Browse files
Merge pull request #76 from gleanwork/speakeasy-sdk-regen-1771525186
chore: 🐝 Update SDK - Generate 0.12.23
2 parents 61130f5 + df34898 commit 44b2765

File tree

10 files changed

+58
-77
lines changed

10 files changed

+58
-77
lines changed

.speakeasy/gen.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
lockVersion: 2.0.0
22
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
33
management:
4-
docChecksum: e61f09454154d7eb019991c03f6d19eb
4+
docChecksum: ec7e84fe9ae49de24ac676fbc253b201
55
docVersion: 0.9.0
66
speakeasyVersion: 1.722.7
77
generationVersion: 2.832.9
8-
releaseVersion: 0.12.22
9-
configChecksum: a0a3cf529b78d6008f01b4b4a8685b95
8+
releaseVersion: 0.12.23
9+
configChecksum: b6f4009a53cf9967ce7f6806eb726a74
1010
repoURL: https://github.com/gleanwork/api-client-java.git
1111
published: true
1212
persistentEdits:
13-
generation_id: 976557d4-4a59-48aa-95e8-6bd551aa3f9f
14-
pristine_commit_hash: 02ea073c3a2c08e4c8348a9912bc85005bd00254
15-
pristine_tree_hash: ff6884bb1ba8bc2d8fef0a14c3bb351483fbf196
13+
generation_id: eca3ba63-ba74-4799-9915-cd29da6221a0
14+
pristine_commit_hash: 042cd019b81d5145e264574e1a3e1f18564bb098
15+
pristine_tree_hash: 38f8c08e012aea6032375fdbc28ae887b39f2697
1616
features:
1717
java:
1818
additionalDependencies: 0.1.0
@@ -394,8 +394,8 @@ trackedFiles:
394394
pristine_git_object: 5198bb58bd0d8c917de9acab2571e321ce52ddfa
395395
docs/models/components/CheckDatasourceAuthResponse.md:
396396
id: 252713b09ff9
397-
last_write_checksum: sha1:537d7b1ba49e363f558014b8260fe462669e43b1
398-
pristine_git_object: c715f548854dd487feda560d3dd9db2310bc5e15
397+
last_write_checksum: sha1:820e30c076651352426d1c7ec4a09432da8d0d8d
398+
pristine_git_object: 87541f3ea67ee228bf05eaa811208cc1aff4c208
399399
docs/models/components/CheckDocumentAccessRequest.md:
400400
id: 99922a67ce1c
401401
last_write_checksum: sha1:0896a9dc3bd2922d4b7afa0ecb24b03d516ec772
@@ -3166,8 +3166,8 @@ trackedFiles:
31663166
pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a
31673167
gradle.properties:
31683168
id: 2afbb999f001
3169-
last_write_checksum: sha1:85b56ce4d8a62914530676a473a289672aa3c686
3170-
pristine_git_object: f0f849bc4e9d07c16489605f89dcaecc5fb7b533
3169+
last_write_checksum: sha1:07b0849383dc2c1dfa1564ac7180ce719818df0c
3170+
pristine_git_object: 46e86b408b9a43c7441d1028a8c69e51190b627f
31713171
gradle/wrapper/gradle-wrapper.jar:
31723172
id: ec27dae6e852
31733173
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
@@ -3478,8 +3478,8 @@ trackedFiles:
34783478
pristine_git_object: 5e30515ba0d212914ac9a195db6019330b6b0a2b
34793479
src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java:
34803480
id: d5fcc61f5992
3481-
last_write_checksum: sha1:5c96cfc81c45d9cf9714775098c3c7ebee517be0
3482-
pristine_git_object: 048e5f1ad6581107be55c169bb6a222366c90cb0
3481+
last_write_checksum: sha1:d27cf4fa216f716e2e28e88197c13065072630f3
3482+
pristine_git_object: 9a76d7e37692e8d7db8bc70851a808f944946b89
34833483
src/main/java/com/glean/api_client/glean_api_client/Search.java:
34843484
id: f22d94b920b5
34853485
last_write_checksum: sha1:36e225a42ff566cb610d877bb5f41fc09e3e49e5
@@ -3850,8 +3850,8 @@ trackedFiles:
38503850
pristine_git_object: b7d2d996ac18c4ae8df89a17d29cb9396b3758e9
38513851
src/main/java/com/glean/api_client/glean_api_client/models/components/CheckDatasourceAuthResponse.java:
38523852
id: 33eb619b4e56
3853-
last_write_checksum: sha1:e8b14050f23039ecbebb84b743559d466cf904fa
3854-
pristine_git_object: e8f951f1acd1dbb44314b42abecb81011163197e
3853+
last_write_checksum: sha1:921c24642f513edff9b49f5c370957af1f9541a4
3854+
pristine_git_object: 14777ad3f30d004d004dcdaebd6d4e1afce02569
38553855
src/main/java/com/glean/api_client/glean_api_client/models/components/CheckDocumentAccessRequest.java:
38563856
id: bfccebbc44e6
38573857
last_write_checksum: sha1:816268104ea78da5af836792df98290f64adf508
@@ -9497,7 +9497,7 @@ generatedTests:
94979497
listpolicies: "2025-06-09T18:03:44Z"
94989498
releaseNotes: |
94999499
## Java SDK Changes:
9500-
* `glean.authentication.checkdatasourceauth()`: **Added**
9500+
* `glean.authentication.checkdatasourceauth()`: `response.unauthorizedDatasourceInstances` **Changed**
95019501
generatedFiles:
95029502
- .gitattributes
95039503
- USAGE.md

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ generation:
2828
generateNewTests: false
2929
skipResponseBodyAssertions: false
3030
java:
31-
version: 0.12.22
31+
version: 0.12.23
3232
additionalDependencies: []
3333
additionalPlugins: []
3434
artifactID: glean-api-client

.speakeasy/glean-merged-spec.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: 204dc378669e42116b8b928d58d5fddabb228aef
5+
x-source-commit-sha: b9ea91029b2b66b64b5145cea87d0bbfc2dd6a6e
66
description: |
77
# Introduction
88
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:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: 8a4d8a857ef07a135526624459142e85f9444ec2
25+
x-open-api-commit-sha: ef44a085147b249f40ce92e135abb4c6e5439d7d
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -7367,11 +7367,13 @@ components:
73677367
description: |
73687368
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.
73697369
CheckDatasourceAuthResponse:
7370+
required:
7371+
- unauthorizedDatasourceInstances
73707372
properties:
73717373
unauthorizedDatasourceInstances:
73727374
type: array
73737375
description: |
7374-
Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
7376+
Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
73757377
items:
73767378
$ref: "#/components/schemas/UnauthorizedDatasourceInstance"
73777379
CreateAuthTokenResponse:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ speakeasyVersion: 1.722.7
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
6-
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
5+
sourceRevisionDigest: sha256:d5821c86abba62ae5c86977e91a4226c5f3c60081aca52768fb6924cc1f4e721
6+
sourceBlobDigest: sha256:25bbf44aeb95dac432ddbae594ee0954e8df205a2b24bac7855b1f3e56624d83
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771469318
9+
- speakeasy-sdk-regen-1771525186
1010
Glean-OAS:
1111
sourceNamespace: glean-oas
1212
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -18,10 +18,10 @@ targets:
1818
glean:
1919
source: Glean API
2020
sourceNamespace: glean-api-specs
21-
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
22-
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
21+
sourceRevisionDigest: sha256:d5821c86abba62ae5c86977e91a4226c5f3c60081aca52768fb6924cc1f4e721
22+
sourceBlobDigest: sha256:25bbf44aeb95dac432ddbae594ee0954e8df205a2b24bac7855b1f3e56624d83
2323
codeSamplesNamespace: glean-api-specs-java-code-samples
24-
codeSamplesRevisionDigest: sha256:4c9aa475880ad397e86aef7b1d718a1b1d94262b5473e9e0a954b4b0573681cc
24+
codeSamplesRevisionDigest: sha256:20200550df64700f76dee5b1c099271d649b72a7a845352b2162c87dd708b0a2
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

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

6767
Gradle:
6868
```groovy
69-
implementation 'com.glean.api-client:glean-api-client:0.12.22'
69+
implementation 'com.glean.api-client:glean-api-client:0.12.23'
7070
```
7171

7272
Maven:
7373
```xml
7474
<dependency>
7575
<groupId>com.glean.api-client</groupId>
7676
<artifactId>glean-api-client</artifactId>
77-
<version>0.12.22</version>
77+
<version>0.12.23</version>
7878
</dependency>
7979
```
8080

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,4 +568,14 @@ Based on:
568568
### Generated
569569
- [java v0.12.22] .
570570
### Releases
571-
- [Maven Central v0.12.22] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.22 - .
571+
- [Maven Central v0.12.22] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.22 - .
572+
573+
## 2026-02-20 02:42:11
574+
### Changes
575+
Based on:
576+
- OpenAPI Doc
577+
- Speakeasy CLI 1.722.7 (2.832.9) https://github.com/speakeasy-api/speakeasy
578+
### Generated
579+
- [java v0.12.23] .
580+
### Releases
581+
- [Maven Central v0.12.23] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.23 - .

docs/models/components/CheckDatasourceAuthResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
8-
| `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/> |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
8+
| `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/> |

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
groupId=com.glean.api-client
22
artifactId=glean-api-client
3-
version=0.12.22
3+
version=0.12.23
44
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g

src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class SDKConfiguration {
2424

2525
private static final String LANGUAGE = "java";
2626
public static final String OPENAPI_DOC_VERSION = "0.9.0";
27-
public static final String SDK_VERSION = "0.12.22";
27+
public static final String SDK_VERSION = "0.12.23";
2828
public static final String GEN_VERSION = "2.832.9";
2929
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
3030
public static final String USER_AGENT =

src/main/java/com/glean/api_client/glean_api_client/models/components/CheckDatasourceAuthResponse.java

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,35 @@
55

66
import com.fasterxml.jackson.annotation.JsonCreator;
77
import com.fasterxml.jackson.annotation.JsonIgnore;
8-
import com.fasterxml.jackson.annotation.JsonInclude.Include;
9-
import com.fasterxml.jackson.annotation.JsonInclude;
108
import com.fasterxml.jackson.annotation.JsonProperty;
119
import com.glean.api_client.glean_api_client.utils.Utils;
1210
import java.lang.Override;
1311
import java.lang.String;
14-
import java.lang.SuppressWarnings;
1512
import java.util.List;
16-
import java.util.Optional;
1713

1814

1915
public class CheckDatasourceAuthResponse {
2016
/**
21-
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
22-
* are authorized.
17+
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
18+
* authorized.
2319
*/
24-
@JsonInclude(Include.NON_ABSENT)
2520
@JsonProperty("unauthorizedDatasourceInstances")
26-
private Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances;
21+
private List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances;
2722

2823
@JsonCreator
2924
public CheckDatasourceAuthResponse(
30-
@JsonProperty("unauthorizedDatasourceInstances") Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances) {
25+
@JsonProperty("unauthorizedDatasourceInstances") List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances) {
3126
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
3227
this.unauthorizedDatasourceInstances = unauthorizedDatasourceInstances;
3328
}
34-
35-
public CheckDatasourceAuthResponse() {
36-
this(Optional.empty());
37-
}
3829

3930
/**
40-
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
41-
* are authorized.
31+
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
32+
* authorized.
4233
*/
43-
@SuppressWarnings("unchecked")
4434
@JsonIgnore
45-
public Optional<List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances() {
46-
return (Optional<List<UnauthorizedDatasourceInstance>>) unauthorizedDatasourceInstances;
35+
public List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances() {
36+
return unauthorizedDatasourceInstances;
4737
}
4838

4939
public static Builder builder() {
@@ -52,21 +42,10 @@ public static Builder builder() {
5242

5343

5444
/**
55-
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
56-
* are authorized.
45+
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
46+
* authorized.
5747
*/
5848
public CheckDatasourceAuthResponse withUnauthorizedDatasourceInstances(List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances) {
59-
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
60-
this.unauthorizedDatasourceInstances = Optional.ofNullable(unauthorizedDatasourceInstances);
61-
return this;
62-
}
63-
64-
65-
/**
66-
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
67-
* are authorized.
68-
*/
69-
public CheckDatasourceAuthResponse withUnauthorizedDatasourceInstances(Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances) {
7049
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
7150
this.unauthorizedDatasourceInstances = unauthorizedDatasourceInstances;
7251
return this;
@@ -100,28 +79,18 @@ public String toString() {
10079
@SuppressWarnings("UnusedReturnValue")
10180
public final static class Builder {
10281

103-
private Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances = Optional.empty();
82+
private List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances;
10483

10584
private Builder() {
10685
// force use of static builder() method
10786
}
10887

10988

11089
/**
111-
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
112-
* are authorized.
90+
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are
91+
* authorized.
11392
*/
11493
public Builder unauthorizedDatasourceInstances(List<UnauthorizedDatasourceInstance> unauthorizedDatasourceInstances) {
115-
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
116-
this.unauthorizedDatasourceInstances = Optional.ofNullable(unauthorizedDatasourceInstances);
117-
return this;
118-
}
119-
120-
/**
121-
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources
122-
* are authorized.
123-
*/
124-
public Builder unauthorizedDatasourceInstances(Optional<? extends List<UnauthorizedDatasourceInstance>> unauthorizedDatasourceInstances) {
12594
Utils.checkNotNull(unauthorizedDatasourceInstances, "unauthorizedDatasourceInstances");
12695
this.unauthorizedDatasourceInstances = unauthorizedDatasourceInstances;
12796
return this;

0 commit comments

Comments
 (0)