Skip to content

Commit 571c90a

Browse files
Merge pull request #27 from gleanwork/speakeasy-sdk-regen-1747525140
chore: 🐝 Update SDK - Generate 0.4.2
2 parents e96c570 + e76cbec commit 571c90a

File tree

258 files changed

+800
-1379
lines changed

Some content is hidden

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

258 files changed

+800
-1379
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
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: true
2525
skipResponseBodyAssertions: true
2626
typescript:
27-
version: 0.4.1
27+
version: 0.4.2
2828
additionalDependencies:
2929
dependencies: {}
3030
devDependencies: {}

.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-1747427746
9+
- speakeasy-sdk-regen-1747525140
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:81bbab1ab458be7ad4d3b4e052629504f2dc32e0554426fc4bac347061fad35c
22-
sourceBlobDigest: sha256:f2a2721aa0c1960218fc0a261ef3f689e2e78c399b36b7e6602e6ad8650206ac
21+
sourceRevisionDigest: sha256:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
22+
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
2323
codeSamplesNamespace: glean-api-specs-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:1358474b54e3d4dbaa921df804234dfec0581c47c68ef033043c2ae1bf1e9083
24+
codeSamplesRevisionDigest: sha256:9a5c91033699caa82c4c90f8ec92f3a1404ca8e85f72482308e415e70cc2d853
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import { SDKValidationError } from "@gleanwork/api-client/models/errors/sdkvalid
2626
// Use `GleanCore` for best tree-shaking performance.
2727
// You can create one instance of it to use across an application.
2828
const glean = new GleanCore({
29-
security: {
30-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
31-
},
29+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3230
});
3331

3432
async function run() {

REACT_QUERY.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ import { GleanProvider } from "@gleanwork/api-client/react-query";
2323

2424
const queryClient = new QueryClient();
2525
const glean = new GleanCore({
26-
security: {
27-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
28-
},
26+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2927
});
3028

3129
// Retries are handled by the underlying SDK.
@@ -250,9 +248,7 @@ import { useClientAgentsRetrieveSuspense } from "@gleanwork/api-client/react-que
250248

251249
const queryClient = new QueryClient();
252250
const glean = new GleanCore({
253-
security: {
254-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
255-
},
251+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
256252
});
257253

258254
export function App() {
@@ -308,9 +304,7 @@ import { prefetchClientAgentsRetrieve } from "@gleanwork/api-client/react-query/
308304
export default async function Page() {
309305
const queryClient = new QueryClient();
310306
const glean = new GleanCore({
311-
security: {
312-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
313-
},
307+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
314308
});
315309

316310
await prefetchClientAgentsRetrieve(queryClient, glean, "<id>");

README.md

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
140140
import { Glean } from "@gleanwork/api-client";
141141

142142
const glean = new Glean({
143-
security: {
144-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
145-
},
143+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
146144
});
147145

148146
async function run() {
@@ -172,9 +170,7 @@ run();
172170
import { Glean } from "@gleanwork/api-client";
173171

174172
const glean = new Glean({
175-
security: {
176-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
177-
},
173+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
178174
});
179175

180176
async function run() {
@@ -204,21 +200,18 @@ run();
204200

205201
### Per-Client Security Schemes
206202

207-
This SDK supports the following security schemes globally:
203+
This SDK supports the following security scheme globally:
208204

209-
| Name | Type | Scheme | Environment Variable |
210-
| ------------ | ------ | ----------- | -------------------- |
211-
| `apiToken` | http | HTTP Bearer | `GLEAN_API_TOKEN` |
212-
| `cookieAuth` | apiKey | API key | `GLEAN_COOKIE_AUTH` |
205+
| Name | Type | Scheme | Environment Variable |
206+
| ---------- | ---- | ----------- | -------------------- |
207+
| `apiToken` | http | HTTP Bearer | `GLEAN_API_TOKEN` |
213208

214-
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:
209+
To authenticate with the API the `apiToken` parameter must be set when initializing the SDK client instance. For example:
215210
```typescript
216211
import { Glean } from "@gleanwork/api-client";
217212

218213
const glean = new Glean({
219-
security: {
220-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
221-
},
214+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
222215
});
223216

224217
async function run() {
@@ -770,9 +763,7 @@ To change the default retry strategy for a single API call, simply provide a ret
770763
import { Glean } from "@gleanwork/api-client";
771764

772765
const glean = new Glean({
773-
security: {
774-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
775-
},
766+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
776767
});
777768

778769
async function run() {
@@ -834,9 +825,7 @@ const glean = new Glean({
834825
},
835826
retryConnectionErrors: false,
836827
},
837-
security: {
838-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
839-
},
828+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
840829
});
841830

842831
async function run() {
@@ -954,9 +943,7 @@ import { Glean } from "@gleanwork/api-client";
954943

955944
const glean = new Glean({
956945
instance: "<value>",
957-
security: {
958-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
959-
},
946+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
960947
});
961948

962949
async function run() {
@@ -1000,9 +987,7 @@ import { Glean } from "@gleanwork/api-client";
1000987

1001988
const glean = new Glean({
1002989
serverURL: "https://instance-name-be.glean.com",
1003-
security: {
1004-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1005-
},
990+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1006991
});
1007992

1008993
async function run() {

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,14 @@ Based on:
128128
### Generated
129129
- [typescript v0.4.1] .
130130
### Releases
131-
- [NPM v0.4.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.1 - .
131+
- [NPM v0.4.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.1 - .
132+
133+
## 2025-05-17 23:38:40
134+
### Changes
135+
Based on:
136+
- OpenAPI Doc
137+
- Speakeasy CLI 1.546.2 (2.604.4) https://github.com/speakeasy-api/speakeasy
138+
### Generated
139+
- [typescript v0.4.2] .
140+
### Releases
141+
- [NPM v0.4.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.2 - .

USAGE.md

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

55
const glean = new Glean({
6-
security: {
7-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
8-
},
6+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
97
});
108

119
async function run() {
@@ -33,9 +31,7 @@ run();
3331
import { Glean } from "@gleanwork/api-client";
3432

3533
const glean = new Glean({
36-
security: {
37-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
38-
},
34+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
3935
});
4036

4137
async function run() {

docs/models/components/security.md

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

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

0 commit comments

Comments
 (0)