Skip to content

Commit 01372bd

Browse files
Merge pull request #17 from gleanwork/speakeasy-sdk-regen-1747427742
chore: 🐝 Update SDK - Generate 0.4.1
2 parents 2bfa527 + f5ace13 commit 01372bd

Some content is hidden

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

62 files changed

+3332
-704
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
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: true
2525
skipResponseBodyAssertions: true
2626
python:
27-
version: 0.4.0
27+
version: 0.4.1
2828
additionalDependencies:
2929
dev: {}
3030
main: {}

.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-1747100451
9+
- speakeasy-sdk-regen-1747427742
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:12025ddda6d78666c39b69cec5ea04504ae09fc142cbdb3c33b0c4018d9e7493
21-
sourceBlobDigest: sha256:2ad51e5bc2b18513ffbe1cce35e497bba4fc3a86bdf55f9ffe2463b8f7e154ee
20+
sourceRevisionDigest: sha256:81bbab1ab458be7ad4d3b4e052629504f2dc32e0554426fc4bac347061fad35c
21+
sourceBlobDigest: sha256:f2a2721aa0c1960218fc0a261ef3f689e2e78c399b36b7e6602e6ad8650206ac
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:8e5b4274391e4d233c3f3763a738f01d9b2e9a7e89b411ebeabce138609d2a53
23+
codeSamplesRevisionDigest: sha256:77c663e0da7182a41d5bfbf2d40c5c3c5510eaade3541631d7ecacbbb2ec31bd
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ import os
142142

143143
with Glean(
144144
security=models.Security(
145-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
145+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
146146
),
147147
) as g_client:
148148

@@ -173,7 +173,7 @@ async def main():
173173

174174
async with Glean(
175175
security=models.Security(
176-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
176+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
177177
),
178178
) as g_client:
179179

@@ -203,7 +203,7 @@ import os
203203

204204
with Glean(
205205
security=models.Security(
206-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
206+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
207207
),
208208
) as g_client:
209209

@@ -234,7 +234,7 @@ async def main():
234234

235235
async with Glean(
236236
security=models.Security(
237-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
237+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
238238
),
239239
) as g_client:
240240

@@ -262,10 +262,10 @@ asyncio.run(main())
262262

263263
This SDK supports the following security schemes globally:
264264

265-
| Name | Type | Scheme | Environment Variable |
266-
| --------------------- | ------ | ------- | --------------------------- |
267-
| `act_as_bearer_token` | apiKey | API key | `GLEAN_ACT_AS_BEARER_TOKEN` |
268-
| `cookie_auth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
265+
| Name | Type | Scheme | Environment Variable |
266+
| ------------- | ------ | ----------- | -------------------- |
267+
| `api_token` | http | HTTP Bearer | `GLEAN_API_TOKEN` |
268+
| `cookie_auth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
269269

270270
You can set the security parameters through the `security` optional parameter 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:
271271
```python
@@ -276,7 +276,7 @@ import os
276276

277277
with Glean(
278278
security=models.Security(
279-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
279+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
280280
),
281281
) as g_client:
282282

@@ -562,7 +562,7 @@ import os
562562

563563
with Glean(
564564
security=models.Security(
565-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
565+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
566566
),
567567
) as g_client:
568568

@@ -606,7 +606,7 @@ import os
606606
with Glean(
607607
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
608608
security=models.Security(
609-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
609+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
610610
),
611611
) as g_client:
612612

@@ -746,7 +746,7 @@ import os
746746
with Glean(
747747
instance="<value>"
748748
security=models.Security(
749-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
749+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
750750
),
751751
) as g_client:
752752

@@ -791,7 +791,7 @@ import os
791791
with Glean(
792792
server_url="https://instance-name-be.glean.com",
793793
security=models.Security(
794-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
794+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
795795
),
796796
) as g_client:
797797

@@ -920,7 +920,7 @@ def main():
920920

921921
with Glean(
922922
security=models.Security(
923-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
923+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
924924
),
925925
) as g_client:
926926
# Rest of application here...
@@ -931,7 +931,7 @@ async def amain():
931931

932932
async with Glean(
933933
security=models.Security(
934-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
934+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
935935
),
936936
) as g_client:
937937
# Rest of application here...

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
- [python v0.4.0] .
5050
### Releases
51-
- [PyPI v0.4.0] https://pypi.org/project/glean/0.4.0 - .
51+
- [PyPI v0.4.0] https://pypi.org/project/glean/0.4.0 - .
52+
53+
## 2025-05-16 20:35:24
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+
- [python v0.4.1] .
60+
### Releases
61+
- [PyPI v0.4.1] https://pypi.org/project/glean/0.4.1 - .

USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import os
77

88
with Glean(
99
security=models.Security(
10-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
10+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
1111
),
1212
) as g_client:
1313

@@ -38,7 +38,7 @@ async def main():
3838

3939
async with Glean(
4040
security=models.Security(
41-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
41+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
4242
),
4343
) as g_client:
4444

@@ -66,7 +66,7 @@ import os
6666

6767
with Glean(
6868
security=models.Security(
69-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
69+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
7070
),
7171
) as g_client:
7272

@@ -97,7 +97,7 @@ async def main():
9797

9898
async with Glean(
9999
security=models.Security(
100-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
100+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
101101
),
102102
) as g_client:
103103

docs/models/security.md

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

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------- | --------------------- | --------------------- | --------------------- |
8-
| `act_as_bearer_token` | *Optional[str]* | :heavy_minus_sign: | N/A |
9-
| `cookie_auth` | *Optional[str]* | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `api_token` | *Optional[str]* | :heavy_minus_sign: | N/A |
9+
| `cookie_auth` | *Optional[str]* | :heavy_minus_sign: | N/A |

docs/sdks/agents/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import os
2424

2525
with Glean(
2626
security=models.Security(
27-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
27+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
2828
),
2929
) as g_client:
3030

@@ -66,7 +66,7 @@ import os
6666

6767
with Glean(
6868
security=models.Security(
69-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
69+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
7070
),
7171
) as g_client:
7272

@@ -108,7 +108,7 @@ import os
108108

109109
with Glean(
110110
security=models.Security(
111-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
111+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
112112
),
113113
) as g_client:
114114

@@ -149,7 +149,7 @@ import os
149149

150150
with Glean(
151151
security=models.Security(
152-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
152+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
153153
),
154154
) as g_client:
155155

@@ -190,7 +190,7 @@ import os
190190

191191
with Glean(
192192
security=models.Security(
193-
act_as_bearer_token=os.getenv("GLEAN_ACT_AS_BEARER_TOKEN", ""),
193+
api_token=os.getenv("GLEAN_API_TOKEN", ""),
194194
),
195195
) as g_client:
196196

0 commit comments

Comments
 (0)