Skip to content

Commit ba40a8a

Browse files
Merge pull request #27 from gleanwork/speakeasy-sdk-regen-1750453706
chore: 🐝 Update SDK - Generate 0.6.0
2 parents b087302 + 50a4a6f commit ba40a8a

File tree

1,653 files changed

+120584
-19220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,653 files changed

+120584
-19220
lines changed

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: true
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1923
java:
20-
version: 0.5.6
24+
version: 0.6.0
2125
additionalDependencies: []
2226
additionalPlugins: []
2327
artifactID: glean-api-client
@@ -41,6 +45,7 @@ java:
4145
shared: models/components
4246
webhooks: models/webhooks
4347
inputModelSuffix: input
48+
languageVersion: 11
4449
license:
4550
name: The MIT License (MIT)
4651
shortName: MIT

.speakeasy/glean-merged-spec.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ paths:
17951795
tags:
17961796
- Entities
17971797
summary: List entities
1798-
description: List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint.
1798+
description: List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities.
17991799
operationId: listentities
18001800
x-visibility: Public
18011801
x-codegen-request-body-name: payload
@@ -4122,6 +4122,7 @@ components:
41224122
- ID_EQUALS
41234123
- LT
41244124
- GT
4125+
- NOT_EQUALS
41254126
example: EQUALS
41264127
isNegated:
41274128
type: boolean
@@ -4868,7 +4869,8 @@ components:
48684869
example: From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.
48694870
boardId:
48704871
type: integer
4871-
description: The parent board ID of this Answer, or 0 if it's a floating Answer.
4872+
description: The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted.
4873+
deprecated: true
48724874
audienceFilters:
48734875
type: array
48744876
description: Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search.
@@ -5640,11 +5642,13 @@ components:
56405642
- ATTACHMENT
56415643
- CANONICAL
56425644
- CASE
5645+
- contact
56435646
- CONTACT
56445647
- CONVERSATION_MESSAGES
56455648
- EXPERT
56465649
- FROM
56475650
- HIGHLIGHT
5651+
- opportunity
56485652
- OPPORTUNITY
56495653
- RECENT
56505654
- SOURCE
@@ -7523,6 +7527,7 @@ components:
75237527
type: string
75247528
title: Role
75257529
description: The role of the message.
7530+
example: USER
75267531
content:
75277532
title: Content
75287533
description: The content of the message.
@@ -8415,6 +8420,7 @@ components:
84158420
- COPYPASTED_QUOTES
84168421
- INVALID_OPERATOR
84178422
- MAYBE_INVALID_FACET_QUERY
8423+
- TOO_MANY_DATASOURCE_GROUPS
84188424
description: The type of the warning.
84198425
lastUsedTerm:
84208426
type: string
@@ -9058,6 +9064,7 @@ components:
90589064
- DISPLAYABLE_LIST
90599065
- SOCIAL_LINK
90609066
- EXTERNAL_TASKS
9067+
- WORKFLOW_COLLECTIONS
90619068
- ZERO_STATE_CHAT_SUGGESTION
90629069
- ZERO_STATE_CHAT_TOOL_SUGGESTION
90639070
- ZERO_STATE_WORKFLOW_CREATED_BY_ME
@@ -9632,6 +9639,16 @@ components:
96329639
source:
96339640
type: string
96349641
description: A string denoting the search surface from which the endpoint is called.
9642+
requestType:
9643+
type: string
9644+
default: STANDARD
9645+
description: The type of request being made.
9646+
x-enumDescriptions:
9647+
STANDARD: Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities.
9648+
FULL_DIRECTORY: Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations.
9649+
enum:
9650+
- STANDARD
9651+
- FULL_DIRECTORY
96359652
EntitiesSortOrder:
96369653
type: string
96379654
description: Different ways of sorting entities
@@ -11745,6 +11762,10 @@ components:
1174511762
type: string
1174611763
description: end time of the time range, applicable for the CUSTOM type.
1174711764
format: date-time
11765+
lastNDaysValue:
11766+
type: integer
11767+
description: The number of days to look back from the current time, applicable for the LAST_N_DAYS type.
11768+
format: int64
1174811769
InputOptions:
1174911770
description: Controls which data-sources and what time-range to include in scans.
1175011771
properties:
@@ -11779,6 +11800,7 @@ components:
1177911800
- PAST_YEAR
1178011801
- PAST_DAY
1178111802
- CUSTOM
11803+
- LAST_N_DAYS
1178211804
customTimeRange:
1178311805
$ref: "#/components/schemas/TimeRange"
1178411806
SharingOptions:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.563.2
1+
speakeasyVersion: 1.576.1
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:766f374184dd7d6b119aef718a826e26e7e690a65bd8edd8e326c75699c9c0f5
6-
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
5+
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
6+
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1749670145
9+
- speakeasy-sdk-regen-1750453706
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:766f374184dd7d6b119aef718a826e26e7e690a65bd8edd8e326c75699c9c0f5
22-
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
21+
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
22+
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
2323
codeSamplesNamespace: glean-api-specs-java-code-samples
24-
codeSamplesRevisionDigest: sha256:d644e6736c249dfb5aab7f2f6899ae480a6fbebde39c8bb385cf233f3b5689d4
24+
codeSamplesRevisionDigest: sha256:0b38a88f263a55a5ce1d7a0938446b8192c36e32ab974acc6c9dff2a62fc28d1
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

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

6363
Gradle:
6464
```groovy
65-
implementation 'com.glean.api-client:glean-api-client:0.5.6'
65+
implementation 'com.glean.api-client:glean-api-client:0.6.0'
6666
```
6767

6868
Maven:
6969
```xml
7070
<dependency>
7171
<groupId>com.glean.api-client</groupId>
7272
<artifactId>glean-api-client</artifactId>
73-
<version>0.5.6</version>
73+
<version>0.6.0</version>
7474
</dependency>
7575
```
7676

@@ -91,9 +91,11 @@ gradlew.bat publishToMavenLocal -Pskip.signing
9191
### Logging
9292
A logging framework/facade has not yet been adopted but is under consideration.
9393

94-
For request and response logging (especially json bodies) use:
94+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
9595
```java
96-
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
96+
SDK.builder()
97+
.enableHTTPDebugLogging(true)
98+
.build();
9799
```
98100
Example output:
99101
```
@@ -107,7 +109,9 @@ Response body:
107109
"token": "global"
108110
}
109111
```
110-
WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
112+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
113+
114+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
111115

112116
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
113117
<!-- End SDK Installation [installation] -->
@@ -131,7 +135,7 @@ public class Application {
131135
public static void main(String[] args) throws Exception {
132136

133137
Glean sdk = Glean.builder()
134-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
138+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
135139
.build();
136140

137141
ChatResponse res = sdk.client().chat().create()
@@ -169,7 +173,7 @@ public class Application {
169173
public static void main(String[] args) throws Exception {
170174

171175
Glean sdk = Glean.builder()
172-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
176+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
173177
.build();
174178

175179
ChatStreamResponse res = sdk.client().chat().createStream()
@@ -219,7 +223,7 @@ public class Application {
219223
public static void main(String[] args) throws Exception {
220224

221225
Glean sdk = Glean.builder()
222-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
226+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
223227
.build();
224228

225229
Activity req = Activity.builder()
@@ -526,7 +530,7 @@ public class Application {
526530
public static void main(String[] args) throws CollectionError, Exception {
527531

528532
Glean sdk = Glean.builder()
529-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
533+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
530534
.build();
531535

532536
CreateCollectionRequest req = CreateCollectionRequest.builder()
@@ -1169,7 +1173,7 @@ public class Application {
11691173

11701174
Glean sdk = Glean.builder()
11711175
.instance("<value>")
1172-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
1176+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
11731177
.build();
11741178

11751179
Activity req = Activity.builder()
@@ -1226,7 +1230,7 @@ public class Application {
12261230

12271231
Glean sdk = Glean.builder()
12281232
.serverURL("https://instance-name-be.glean.com")
1229-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
1233+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
12301234
.build();
12311235

12321236
Activity req = Activity.builder()

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [java v0.5.6] .
160160
### Releases
161-
- [Maven Central v0.5.6] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.6 - .
161+
- [Maven Central v0.5.6] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.6 - .
162+
163+
## 2025-07-07 23:17:04
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.576.1 (2.651.2) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [java v0.6.0] .
170+
### Releases
171+
- [Maven Central v0.6.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.6.0 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Application {
1313
public static void main(String[] args) throws Exception {
1414

1515
Glean sdk = Glean.builder()
16-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
16+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
1717
.build();
1818

1919
ChatResponse res = sdk.client().chat().create()
@@ -49,7 +49,7 @@ public class Application {
4949
public static void main(String[] args) throws Exception {
5050

5151
Glean sdk = Glean.builder()
52-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
52+
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
5353
.build();
5454

5555
ChatStreamResponse res = sdk.client().chat().createStream()

build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ repositories {
2828
}
2929

3030
java {
31-
sourceCompatibility = JavaVersion.VERSION_11
32-
targetCompatibility = JavaVersion.VERSION_11
3331
withSourcesJar()
3432
withJavadocJar()
3533
}
@@ -66,6 +64,10 @@ tasks.withType(Javadoc) {
6664
options.addStringOption('Xdoclint:none', '-quiet')
6765
}
6866

67+
tasks.withType(JavaCompile).configureEach {
68+
options.release = 11
69+
}
70+
6971
sourcesJar {
7072
archiveBaseName = "${artifactId}"
7173
}
@@ -104,11 +106,15 @@ publishing {
104106
// https://github.com/gradle/gradle/issues/18619
105107
groupId = "com.glean.api-client"
106108
artifactId = "glean-api-client"
107-
version = "0.5.6"
109+
version = "0.6.0"
108110

109111
from components.java
110112

111113
pom {
114+
properties = [
115+
'maven.compiler.source': '11',
116+
'maven.compiler.target': '11',
117+
]
112118
name = 'Glean Java SDK'
113119
description = 'SDK enabling Java developers to easily integrate with the Glean API.'
114120
url = 'https://github.com/gleanwork/api-client-java'
@@ -201,4 +207,4 @@ dependencies {
201207
antJUnit 'org.apache.ant:ant-junit:1.9.7'
202208
}
203209

204-
apply from: 'build-extras.gradle'
210+
apply from: 'build-extras.gradle'

0 commit comments

Comments
 (0)