Skip to content

Commit 42d8acf

Browse files
Merge pull request #14 from gleanwork/speakeasy-sdk-regen-1747427766
chore: 🐝 Update SDK - Generate 0.4.1
2 parents d747e05 + d267e0c commit 42d8acf

Some content is hidden

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

60 files changed

+3293
-665
lines changed

.speakeasy/gen.lock

Lines changed: 31 additions & 31 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
@@ -22,7 +22,7 @@ generation:
2222
generateNewTests: true
2323
skipResponseBodyAssertions: true
2424
go:
25-
version: 0.4.0
25+
version: 0.4.1
2626
additionalDependencies: {}
2727
allowUnknownFieldsInWeakUnions: false
2828
clientServerStatusCodesAsErrors: true

.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-1747098848
9+
- speakeasy-sdk-regen-1747427766
1010
petstore-oas:
1111
sourceNamespace: petstore-oas
1212
sourceRevisionDigest: sha256:97b2eff2f43ce14276d28efc41ec5de8034cde61db8445f12b626e4dc88ea40e
@@ -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-go-code-samples
24-
codeSamplesRevisionDigest: sha256:e4137153692fd1e07d2c889e4ec676bcd7ef08921d9c4e4609116210fa28e985
24+
codeSamplesRevisionDigest: sha256:8218591547ac9ccde3ac57db8a4c660a39a6d57cbb6d9652e0387ed571127f83
2525
petstore:
2626
source: petstore-oas
2727
sourceNamespace: petstore-oas

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func main() {
8282

8383
s := apiclientgo.New(
8484
apiclientgo.WithSecurity(components.Security{
85-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
85+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
8686
}),
8787
)
8888

@@ -125,7 +125,7 @@ func main() {
125125

126126
s := apiclientgo.New(
127127
apiclientgo.WithSecurity(components.Security{
128-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
128+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
129129
}),
130130
)
131131

@@ -158,10 +158,10 @@ func main() {
158158

159159
This SDK supports the following security schemes globally:
160160

161-
| Name | Type | Scheme | Environment Variable |
162-
| ------------------ | ------ | ------- | --------------------------- |
163-
| `ActAsBearerToken` | apiKey | API key | `GLEAN_ACT_AS_BEARER_TOKEN` |
164-
| `CookieAuth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
161+
| Name | Type | Scheme | Environment Variable |
162+
| ------------ | ------ | ----------- | -------------------- |
163+
| `APIToken` | http | HTTP Bearer | `GLEAN_API_TOKEN` |
164+
| `CookieAuth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
165165

166166
You can set the security parameters through the `WithSecurity` option 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:
167167
```go
@@ -181,7 +181,7 @@ func main() {
181181

182182
s := apiclientgo.New(
183183
apiclientgo.WithSecurity(components.Security{
184-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
184+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
185185
}),
186186
)
187187

@@ -485,7 +485,7 @@ func main() {
485485

486486
s := apiclientgo.New(
487487
apiclientgo.WithSecurity(components.Security{
488-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
488+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
489489
}),
490490
)
491491

@@ -565,7 +565,7 @@ func main() {
565565
RetryConnectionErrors: false,
566566
}),
567567
apiclientgo.WithSecurity(components.Security{
568-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
568+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
569569
}),
570570
)
571571

@@ -641,7 +641,7 @@ func main() {
641641

642642
s := apiclientgo.New(
643643
apiclientgo.WithSecurity(components.Security{
644-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
644+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
645645
}),
646646
)
647647

@@ -1359,7 +1359,7 @@ func main() {
13591359
s := apiclientgo.New(
13601360
apiclientgo.WithInstance("<value>"),
13611361
apiclientgo.WithSecurity(components.Security{
1362-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
1362+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
13631363
}),
13641364
)
13651365

@@ -1420,7 +1420,7 @@ func main() {
14201420
s := apiclientgo.New(
14211421
apiclientgo.WithServerURL("https://instance-name-be.glean.com"),
14221422
apiclientgo.WithSecurity(components.Security{
1423-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
1423+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
14241424
}),
14251425
)
14261426

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
- [go v0.4.0] .
5050
### Releases
51-
- [Go v0.4.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.4.0 - .
51+
- [Go v0.4.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.4.0 - .
52+
53+
## 2025-05-16 20:35:49
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+
- [go v0.4.1] .
60+
### Releases
61+
- [Go v0.4.1] https://github.com/gleanwork/api-client-go/releases/tag/v0.4.1 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515

1616
s := apiclientgo.New(
1717
apiclientgo.WithSecurity(components.Security{
18-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
18+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
1919
}),
2020
)
2121

@@ -56,7 +56,7 @@ func main() {
5656

5757
s := apiclientgo.New(
5858
apiclientgo.WithSecurity(components.Security{
59-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
59+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
6060
}),
6161
)
6262

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` | **string* | :heavy_minus_sign: | N/A |
8+
| `APIToken` | **string* | :heavy_minus_sign: | N/A |
99
| `CookieAuth` | **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
@@ -31,7 +31,7 @@ func main() {
3131

3232
s := apiclientgo.New(
3333
apiclientgo.WithSecurity(components.Security{
34-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
34+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
3535
}),
3636
)
3737

@@ -110,7 +110,7 @@ func main() {
110110

111111
s := apiclientgo.New(
112112
apiclientgo.WithSecurity(components.Security{
113-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
113+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
114114
}),
115115
)
116116

docs/sdks/agents/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333

3434
s := apiclientgo.New(
3535
apiclientgo.WithSecurity(components.Security{
36-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
36+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
3737
}),
3838
)
3939

@@ -88,7 +88,7 @@ func main() {
8888

8989
s := apiclientgo.New(
9090
apiclientgo.WithSecurity(components.Security{
91-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
91+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
9292
}),
9393
)
9494

@@ -143,7 +143,7 @@ func main() {
143143

144144
s := apiclientgo.New(
145145
apiclientgo.WithSecurity(components.Security{
146-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
146+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
147147
}),
148148
)
149149

@@ -197,7 +197,7 @@ func main() {
197197

198198
s := apiclientgo.New(
199199
apiclientgo.WithSecurity(components.Security{
200-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
200+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
201201
}),
202202
)
203203

@@ -251,7 +251,7 @@ func main() {
251251

252252
s := apiclientgo.New(
253253
apiclientgo.WithSecurity(components.Security{
254-
ActAsBearerToken: apiclientgo.String(os.Getenv("GLEAN_ACT_AS_BEARER_TOKEN")),
254+
APIToken: apiclientgo.String(os.Getenv("GLEAN_API_TOKEN")),
255255
}),
256256
)
257257

0 commit comments

Comments
 (0)