Skip to content

Commit d924704

Browse files
Merge pull request #11 from gleanwork/speakeasy-sdk-regen-1747427761
chore: 🐝 Update SDK - Generate 0.4.1
2 parents e002d52 + 121b76f commit d924704

File tree

37 files changed

+3105
-607
lines changed

37 files changed

+3105
-607
lines changed

.speakeasy/gen.lock

Lines changed: 32 additions & 32 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.0
19+
version: 0.4.1
2020
additionalDependencies: []
2121
additionalPlugins: []
2222
artifactID: glean-api-client

.speakeasy/glean-merged-spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ servers:
3131
default: instance-name
3232
description: The instance name (typically the email domain without the TLD) that determines the deployment backend.
3333
security:
34-
- actAsBearerToken: []
34+
- APIToken: []
3535
- cookieAuth: []
3636
paths:
3737
/rest/api/v1/activity:

.speakeasy/workflow.lock

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

README.md

Lines changed: 12 additions & 12 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.0'
65+
implementation 'com.glean.api-client:glean-api-client:0.4.1'
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.0</version>
73+
<version>0.4.1</version>
7474
</dependency>
7575
```
7676

@@ -132,7 +132,7 @@ public class Application {
132132

133133
Glean sdk = Glean.builder()
134134
.security(Security.builder()
135-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
135+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
136136
.build())
137137
.build();
138138

@@ -172,7 +172,7 @@ public class Application {
172172

173173
Glean sdk = Glean.builder()
174174
.security(Security.builder()
175-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
175+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
176176
.build())
177177
.build();
178178

@@ -203,10 +203,10 @@ public class Application {
203203

204204
This SDK supports the following security schemes globally:
205205

206-
| Name | Type | Scheme |
207-
| ------------------ | ------ | ------- |
208-
| `actAsBearerToken` | apiKey | API key |
209-
| `cookieAuth` | apiKey | API key |
206+
| Name | Type | Scheme |
207+
| ------------ | ------ | ----------- |
208+
| `apiToken` | http | HTTP Bearer |
209+
| `cookieAuth` | apiKey | API key |
210210

211211
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:
212212
```java
@@ -225,7 +225,7 @@ public class Application {
225225

226226
Glean sdk = Glean.builder()
227227
.security(Security.builder()
228-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
228+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
229229
.build())
230230
.build();
231231

@@ -536,7 +536,7 @@ public class Application {
536536

537537
Glean sdk = Glean.builder()
538538
.security(Security.builder()
539-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
539+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
540540
.build())
541541
.build();
542542

@@ -1181,7 +1181,7 @@ public class Application {
11811181
Glean sdk = Glean.builder()
11821182
.instance("<value>")
11831183
.security(Security.builder()
1184-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
1184+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
11851185
.build())
11861186
.build();
11871187

@@ -1240,7 +1240,7 @@ public class Application {
12401240
Glean sdk = Glean.builder()
12411241
.serverURL("https://instance-name-be.glean.com")
12421242
.security(Security.builder()
1243-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
1243+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
12441244
.build())
12451245
.build();
12461246

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@ Based on:
4848
### Generated
4949
- [java v0.4.0] .
5050
### Releases
51-
- [Maven Central v0.4.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.0 - .
51+
- [Maven Central v0.4.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.0 - .
52+
53+
## 2025-05-16 20:35:44
54+
### Changes
55+
Based on:
56+
- OpenAPI Doc
57+
- Speakeasy CLI 1.546.1 (2.604.2) https://github.com/speakeasy-api/speakeasy
58+
### Generated
59+
- [java v0.4.1] .
60+
### Releases
61+
- [Maven Central v0.4.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.1 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Application {
1414

1515
Glean sdk = Glean.builder()
1616
.security(Security.builder()
17-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
17+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
1818
.build())
1919
.build();
2020

@@ -52,7 +52,7 @@ public class Application {
5252

5353
Glean sdk = Glean.builder()
5454
.security(Security.builder()
55-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
55+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
5656
.build())
5757
.build();
5858

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.0"
106+
version = "0.4.1"
107107

108108
from components.java
109109

docs/models/components/Security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
| Field | Type | Required | Description |
77
| ------------------- | ------------------- | ------------------- | ------------------- |
8-
| `actAsBearerToken` | *Optional\<String>* | :heavy_minus_sign: | N/A |
8+
| `apiToken` | *Optional\<String>* | :heavy_minus_sign: | N/A |
99
| `cookieAuth` | *Optional\<String>* | :heavy_minus_sign: | N/A |

docs/sdks/activity/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Application {
3030

3131
Glean sdk = Glean.builder()
3232
.security(Security.builder()
33-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
33+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
3434
.build())
3535
.build();
3636

@@ -106,7 +106,7 @@ public class Application {
106106

107107
Glean sdk = Glean.builder()
108108
.security(Security.builder()
109-
.actAsBearerToken("<YOUR_API_KEY_HERE>")
109+
.apiToken("<YOUR_BEARER_TOKEN_HERE>")
110110
.build())
111111
.build();
112112

0 commit comments

Comments
 (0)