Skip to content

Commit e96c570

Browse files
Merge pull request #25 from gleanwork/speakeasy-sdk-regen-1747427746
chore: 🐝 Update SDK - Generate 0.4.1
2 parents 26f76a9 + e966b7d commit e96c570

Some content is hidden

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

66 files changed

+6494
-1239
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
typescript:
27-
version: 0.4.0
27+
version: 0.4.1
2828
additionalDependencies:
2929
dependencies: {}
3030
devDependencies: {}

.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-1747098990
9+
- speakeasy-sdk-regen-1747427746
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301
@@ -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-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:d0cc6c5bfe55ccaddec8b91e31d2b327222431d05a97a44159ed1d4f2c478c90
24+
codeSamplesRevisionDigest: sha256:1358474b54e3d4dbaa921df804234dfec0581c47c68ef033043c2ae1bf1e9083
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { SDKValidationError } from "@gleanwork/api-client/models/errors/sdkvalid
2727
// You can create one instance of it to use across an application.
2828
const glean = new GleanCore({
2929
security: {
30-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
30+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3131
},
3232
});
3333

REACT_QUERY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { GleanProvider } from "@gleanwork/api-client/react-query";
2424
const queryClient = new QueryClient();
2525
const glean = new GleanCore({
2626
security: {
27-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
27+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2828
},
2929
});
3030

@@ -251,7 +251,7 @@ import { useClientAgentsRetrieveSuspense } from "@gleanwork/api-client/react-que
251251
const queryClient = new QueryClient();
252252
const glean = new GleanCore({
253253
security: {
254-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
254+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
255255
},
256256
});
257257

@@ -309,7 +309,7 @@ export default async function Page() {
309309
const queryClient = new QueryClient();
310310
const glean = new GleanCore({
311311
security: {
312-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
312+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
313313
},
314314
});
315315

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ import { Glean } from "@gleanwork/api-client";
141141

142142
const glean = new Glean({
143143
security: {
144-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
144+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
145145
},
146146
});
147147

@@ -173,7 +173,7 @@ import { Glean } from "@gleanwork/api-client";
173173

174174
const glean = new Glean({
175175
security: {
176-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
176+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
177177
},
178178
});
179179

@@ -206,18 +206,18 @@ run();
206206

207207
This SDK supports the following security schemes globally:
208208

209-
| Name | Type | Scheme | Environment Variable |
210-
| ------------------ | ------ | ------- | --------------------------- |
211-
| `actAsBearerToken` | apiKey | API key | `GLEAN_ACT_AS_BEARER_TOKEN` |
212-
| `cookieAuth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
209+
| Name | Type | Scheme | Environment Variable |
210+
| ------------ | ------ | ----------- | -------------------- |
211+
| `apiToken` | http | HTTP Bearer | `GLEAN_API_TOKEN` |
212+
| `cookieAuth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
213213

214214
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:
215215
```typescript
216216
import { Glean } from "@gleanwork/api-client";
217217

218218
const glean = new Glean({
219219
security: {
220-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
220+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
221221
},
222222
});
223223

@@ -771,7 +771,7 @@ import { Glean } from "@gleanwork/api-client";
771771

772772
const glean = new Glean({
773773
security: {
774-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
774+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
775775
},
776776
});
777777

@@ -835,7 +835,7 @@ const glean = new Glean({
835835
retryConnectionErrors: false,
836836
},
837837
security: {
838-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
838+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
839839
},
840840
});
841841

@@ -955,7 +955,7 @@ import { Glean } from "@gleanwork/api-client";
955955
const glean = new Glean({
956956
instance: "<value>",
957957
security: {
958-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
958+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
959959
},
960960
});
961961

@@ -1001,7 +1001,7 @@ import { Glean } from "@gleanwork/api-client";
10011001
const glean = new Glean({
10021002
serverURL: "https://instance-name-be.glean.com",
10031003
security: {
1004-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
1004+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
10051005
},
10061006
});
10071007

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,14 @@ Based on:
118118
### Generated
119119
- [typescript v0.4.0] .
120120
### Releases
121-
- [NPM v0.4.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.0 - .
121+
- [NPM v0.4.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.0 - .
122+
123+
## 2025-05-16 20:35:28
124+
### Changes
125+
Based on:
126+
- OpenAPI Doc
127+
- Speakeasy CLI 1.546.1 (2.604.2) https://github.com/speakeasy-api/speakeasy
128+
### Generated
129+
- [typescript v0.4.1] .
130+
### Releases
131+
- [NPM v0.4.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.1 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Glean } from "@gleanwork/api-client";
44

55
const glean = new Glean({
66
security: {
7-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
7+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
88
},
99
});
1010

@@ -34,7 +34,7 @@ import { Glean } from "@gleanwork/api-client";
3434

3535
const glean = new Glean({
3636
security: {
37-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
37+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3838
},
3939
});
4040

docs/models/components/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ let value: Security = {};
1212

1313
| Field | Type | Required | Description |
1414
| ------------------ | ------------------ | ------------------ | ------------------ |
15-
| `actAsBearerToken` | *string* | :heavy_minus_sign: | N/A |
15+
| `apiToken` | *string* | :heavy_minus_sign: | N/A |
1616
| `cookieAuth` | *string* | :heavy_minus_sign: | N/A |

docs/sdks/activity/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Glean } from "@gleanwork/api-client";
1919

2020
const glean = new Glean({
2121
security: {
22-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
22+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2323
},
2424
});
2525

@@ -69,7 +69,7 @@ import { clientActivityReport } from "@gleanwork/api-client/funcs/clientActivity
6969
// You can create one instance of it to use across an application.
7070
const glean = new GleanCore({
7171
security: {
72-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
72+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
7373
},
7474
});
7575

@@ -160,7 +160,7 @@ import { Glean } from "@gleanwork/api-client";
160160

161161
const glean = new Glean({
162162
security: {
163-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
163+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
164164
},
165165
});
166166

@@ -190,7 +190,7 @@ import { clientActivityFeedback } from "@gleanwork/api-client/funcs/clientActivi
190190
// You can create one instance of it to use across an application.
191191
const glean = new GleanCore({
192192
security: {
193-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
193+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
194194
},
195195
});
196196

docs/sdks/agents/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Glean } from "@gleanwork/api-client";
2222

2323
const glean = new Glean({
2424
security: {
25-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
25+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2626
},
2727
});
2828

@@ -48,7 +48,7 @@ import { clientAgentsRetrieve } from "@gleanwork/api-client/funcs/clientAgentsRe
4848
// You can create one instance of it to use across an application.
4949
const glean = new GleanCore({
5050
security: {
51-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
51+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
5252
},
5353
});
5454

@@ -127,7 +127,7 @@ import { Glean } from "@gleanwork/api-client";
127127

128128
const glean = new Glean({
129129
security: {
130-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
130+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
131131
},
132132
});
133133

@@ -153,7 +153,7 @@ import { clientAgentsRetrieveSchemas } from "@gleanwork/api-client/funcs/clientA
153153
// You can create one instance of it to use across an application.
154154
const glean = new GleanCore({
155155
security: {
156-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
156+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
157157
},
158158
});
159159

@@ -232,7 +232,7 @@ import { Glean } from "@gleanwork/api-client";
232232

233233
const glean = new Glean({
234234
security: {
235-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
235+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
236236
},
237237
});
238238

@@ -258,7 +258,7 @@ import { clientAgentsList } from "@gleanwork/api-client/funcs/clientAgentsList.j
258258
// You can create one instance of it to use across an application.
259259
const glean = new GleanCore({
260260
security: {
261-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
261+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
262262
},
263263
});
264264

@@ -325,7 +325,7 @@ import { Glean } from "@gleanwork/api-client";
325325

326326
const glean = new Glean({
327327
security: {
328-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
328+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
329329
},
330330
});
331331

@@ -351,7 +351,7 @@ import { clientAgentsRunStream } from "@gleanwork/api-client/funcs/clientAgentsR
351351
// You can create one instance of it to use across an application.
352352
const glean = new GleanCore({
353353
security: {
354-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
354+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
355355
},
356356
});
357357

@@ -418,7 +418,7 @@ import { Glean } from "@gleanwork/api-client";
418418

419419
const glean = new Glean({
420420
security: {
421-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
421+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
422422
},
423423
});
424424

@@ -444,7 +444,7 @@ import { clientAgentsRun } from "@gleanwork/api-client/funcs/clientAgentsRun.js"
444444
// You can create one instance of it to use across an application.
445445
const glean = new GleanCore({
446446
security: {
447-
actAsBearerToken: process.env["GLEAN_ACT_AS_BEARER_TOKEN"] ?? "",
447+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
448448
},
449449
});
450450

0 commit comments

Comments
 (0)