Skip to content

Commit ffc6675

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.546.2
1 parent d924704 commit ffc6675

File tree

38 files changed

+222
-558
lines changed

38 files changed

+222
-558
lines changed

.speakeasy/gen.lock

Lines changed: 20 additions & 19 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
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: true
1818
java:
19-
version: 0.4.1
19+
version: 0.4.2
2020
additionalDependencies: []
2121
additionalPlugins: []
2222
artifactID: glean-api-client

.speakeasy/glean-merged-spec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ servers:
3232
description: The instance name (typically the email domain without the TLD) that determines the deployment backend.
3333
security:
3434
- APIToken: []
35-
- cookieAuth: []
3635
paths:
3736
/rest/api/v1/activity:
3837
post:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.546.1
1+
speakeasyVersion: 1.546.2
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:81bbab1ab458be7ad4d3b4e052629504f2dc32e0554426fc4bac347061fad35c
6-
sourceBlobDigest: sha256:f2a2721aa0c1960218fc0a261ef3f689e2e78c399b36b7e6602e6ad8650206ac
5+
sourceRevisionDigest: sha256:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
6+
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747427761
9+
- speakeasy-sdk-regen-1747525161
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:81bbab1ab458be7ad4d3b4e052629504f2dc32e0554426fc4bac347061fad35c
22-
sourceBlobDigest: sha256:f2a2721aa0c1960218fc0a261ef3f689e2e78c399b36b7e6602e6ad8650206ac
21+
sourceRevisionDigest: sha256:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
22+
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
2323
codeSamplesNamespace: glean-api-specs-java-code-samples
24-
codeSamplesRevisionDigest: sha256:bc74ab905dce8c7b6ea9d5cef2a12d9d4fbc65f472b81df571c12d4e540c63e0
24+
codeSamplesRevisionDigest: sha256:0b46ab4097e15d17344cf0509aefaa993164f1613c88d17cdec06abdb29679ad
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 13 additions & 26 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.4.1'
65+
implementation 'com.glean.api-client:glean-api-client:0.4.2'
6666
```
6767

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

@@ -131,9 +131,7 @@ public class Application {
131131
public static void main(String[] args) throws Exception {
132132

133133
Glean sdk = Glean.builder()
134-
.security(Security.builder()
135-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
136-
.build())
134+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
137135
.build();
138136

139137
ChatResponse res = sdk.client().chat().create()
@@ -171,9 +169,7 @@ public class Application {
171169
public static void main(String[] args) throws Exception {
172170

173171
Glean sdk = Glean.builder()
174-
.security(Security.builder()
175-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
176-
.build())
172+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
177173
.build();
178174

179175
ChatStreamResponse res = sdk.client().chat().createStream()
@@ -201,14 +197,13 @@ public class Application {
201197

202198
### Per-Client Security Schemes
203199

204-
This SDK supports the following security schemes globally:
200+
This SDK supports the following security scheme globally:
205201

206-
| Name | Type | Scheme |
207-
| ------------ | ------ | ----------- |
208-
| `apiToken` | http | HTTP Bearer |
209-
| `cookieAuth` | apiKey | API key |
202+
| Name | Type | Scheme |
203+
| ---------- | ---- | ----------- |
204+
| `apiToken` | http | HTTP Bearer |
210205

211-
You can set the security parameters through the `security` builder method when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
206+
To authenticate with the API the `apiToken` parameter must be set when initializing the SDK client instance. For example:
212207
```java
213208
package hello.world;
214209

@@ -224,9 +219,7 @@ public class Application {
224219
public static void main(String[] args) throws Exception {
225220

226221
Glean sdk = Glean.builder()
227-
.security(Security.builder()
228-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
229-
.build())
222+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
230223
.build();
231224

232225
Activity req = Activity.builder()
@@ -535,9 +528,7 @@ public class Application {
535528
public static void main(String[] args) throws CollectionError, Exception {
536529

537530
Glean sdk = Glean.builder()
538-
.security(Security.builder()
539-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
540-
.build())
531+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
541532
.build();
542533

543534
CreateCollectionRequest req = CreateCollectionRequest.builder()
@@ -1180,9 +1171,7 @@ public class Application {
11801171

11811172
Glean sdk = Glean.builder()
11821173
.instance("<value>")
1183-
.security(Security.builder()
1184-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
1185-
.build())
1174+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
11861175
.build();
11871176

11881177
Activity req = Activity.builder()
@@ -1239,9 +1228,7 @@ public class Application {
12391228

12401229
Glean sdk = Glean.builder()
12411230
.serverURL("https://instance-name-be.glean.com")
1242-
.security(Security.builder()
1243-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
1244-
.build())
1231+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
12451232
.build();
12461233

12471234
Activity req = Activity.builder()

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,14 @@ Based on:
5858
### Generated
5959
- [java v0.4.1] .
6060
### Releases
61-
- [Maven Central v0.4.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.1 - .
61+
- [Maven Central v0.4.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.1 - .
62+
63+
## 2025-05-17 23:39:05
64+
### Changes
65+
Based on:
66+
- OpenAPI Doc
67+
- Speakeasy CLI 1.546.2 (2.604.4) https://github.com/speakeasy-api/speakeasy
68+
### Generated
69+
- [java v0.4.2] .
70+
### Releases
71+
- [Maven Central v0.4.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.2 - .

USAGE.md

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

1515
Glean sdk = Glean.builder()
16-
.security(Security.builder()
17-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
18-
.build())
16+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
1917
.build();
2018

2119
ChatResponse res = sdk.client().chat().create()
@@ -51,9 +49,7 @@ public class Application {
5149
public static void main(String[] args) throws Exception {
5250

5351
Glean sdk = Glean.builder()
54-
.security(Security.builder()
55-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
56-
.build())
52+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
5753
.build();
5854

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

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ publishing {
103103
// https://github.com/gradle/gradle/issues/18619
104104
groupId = "com.glean.api-client"
105105
artifactId = "glean-api-client"
106-
version = "0.4.1"
106+
version = "0.4.2"
107107

108108
from components.java
109109

docs/models/components/Security.md

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

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------- | ------------------- | ------------------- | ------------------- |
8-
| `apiToken` | *Optional\<String>* | :heavy_minus_sign: | N/A |
9-
| `cookieAuth` | *Optional\<String>* | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `apiToken` | *String* | :heavy_check_mark: | N/A |

docs/sdks/activity/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ public class Application {
2929
public static void main(String[] args) throws Exception {
3030

3131
Glean sdk = Glean.builder()
32-
.security(Security.builder()
33-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
34-
.build())
32+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
3533
.build();
3634

3735
Activity req = Activity.builder()
@@ -95,7 +93,8 @@ Report events that happen to results within a Glean client UI, such as search re
9593
package hello.world;
9694

9795
import com.glean.api_client.glean_api_client.Glean;
98-
import com.glean.api_client.glean_api_client.models.components.*;
96+
import com.glean.api_client.glean_api_client.models.components.Event;
97+
import com.glean.api_client.glean_api_client.models.components.Feedback;
9998
import com.glean.api_client.glean_api_client.models.operations.FeedbackResponse;
10099
import java.lang.Exception;
101100
import java.util.List;
@@ -105,9 +104,7 @@ public class Application {
105104
public static void main(String[] args) throws Exception {
106105

107106
Glean sdk = Glean.builder()
108-
.security(Security.builder()
109-
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
110-
.build())
107+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
111108
.build();
112109

113110
FeedbackResponse res = sdk.client().activity().feedback()

0 commit comments

Comments
 (0)