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 |

docs/sdks/activity/README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ Report user activity that occurs on indexed documents such as viewing or editing
1818
import { Glean } from "@gleanwork/api-client";
1919

2020
const glean = new Glean({
21-
security: {
22-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
23-
},
21+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2422
});
2523

2624
async function run() {
@@ -68,9 +66,7 @@ import { clientActivityReport } from "@gleanwork/api-client/funcs/clientActivity
6866
// Use `GleanCore` for best tree-shaking performance.
6967
// You can create one instance of it to use across an application.
7068
const glean = new GleanCore({
71-
security: {
72-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
73-
},
69+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
7470
});
7571

7672
async function run() {
@@ -159,9 +155,7 @@ Report events that happen to results within a Glean client UI, such as search re
159155
import { Glean } from "@gleanwork/api-client";
160156

161157
const glean = new Glean({
162-
security: {
163-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
164-
},
158+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
165159
});
166160

167161
async function run() {
@@ -189,9 +183,7 @@ import { clientActivityFeedback } from "@gleanwork/api-client/funcs/clientActivi
189183
// Use `GleanCore` for best tree-shaking performance.
190184
// You can create one instance of it to use across an application.
191185
const glean = new GleanCore({
192-
security: {
193-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
194-
},
186+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
195187
});
196188

197189
async function run() {

docs/sdks/agents/README.md

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ Get an agent by ID. This endpoint implements the LangChain Agent Protocol, speci
2121
import { Glean } from "@gleanwork/api-client";
2222

2323
const glean = new Glean({
24-
security: {
25-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
26-
},
24+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
2725
});
2826

2927
async function run() {
@@ -47,9 +45,7 @@ import { clientAgentsRetrieve } from "@gleanwork/api-client/funcs/clientAgentsRe
4745
// Use `GleanCore` for best tree-shaking performance.
4846
// You can create one instance of it to use across an application.
4947
const glean = new GleanCore({
50-
security: {
51-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
52-
},
48+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
5349
});
5450

5551
async function run() {
@@ -126,9 +122,7 @@ Get an agent's schemas by ID. This endpoint implements the LangChain Agent Proto
126122
import { Glean } from "@gleanwork/api-client";
127123

128124
const glean = new Glean({
129-
security: {
130-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
131-
},
125+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
132126
});
133127

134128
async function run() {
@@ -152,9 +146,7 @@ import { clientAgentsRetrieveSchemas } from "@gleanwork/api-client/funcs/clientA
152146
// Use `GleanCore` for best tree-shaking performance.
153147
// You can create one instance of it to use across an application.
154148
const glean = new GleanCore({
155-
security: {
156-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
157-
},
149+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
158150
});
159151

160152
async function run() {
@@ -231,9 +223,7 @@ List Agents available in this service. This endpoint implements the LangChain Ag
231223
import { Glean } from "@gleanwork/api-client";
232224

233225
const glean = new Glean({
234-
security: {
235-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
236-
},
226+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
237227
});
238228

239229
async function run() {
@@ -257,9 +247,7 @@ import { clientAgentsList } from "@gleanwork/api-client/funcs/clientAgentsList.j
257247
// Use `GleanCore` for best tree-shaking performance.
258248
// You can create one instance of it to use across an application.
259249
const glean = new GleanCore({
260-
security: {
261-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
262-
},
250+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
263251
});
264252

265253
async function run() {
@@ -324,9 +312,7 @@ Creates and triggers a run of an agent. Streams the output in SSE format. This e
324312
import { Glean } from "@gleanwork/api-client";
325313

326314
const glean = new Glean({
327-
security: {
328-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
329-
},
315+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
330316
});
331317

332318
async function run() {
@@ -350,9 +336,7 @@ import { clientAgentsRunStream } from "@gleanwork/api-client/funcs/clientAgentsR
350336
// Use `GleanCore` for best tree-shaking performance.
351337
// You can create one instance of it to use across an application.
352338
const glean = new GleanCore({
353-
security: {
354-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
355-
},
339+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
356340
});
357341

358342
async function run() {
@@ -417,9 +401,7 @@ Creates and triggers a run of an agent. Waits for final output and then returns
417401
import { Glean } from "@gleanwork/api-client";
418402

419403
const glean = new Glean({
420-
security: {
421-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
422-
},
404+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
423405
});
424406

425407
async function run() {
@@ -443,9 +425,7 @@ import { clientAgentsRun } from "@gleanwork/api-client/funcs/clientAgentsRun.js"
443425
// Use `GleanCore` for best tree-shaking performance.
444426
// You can create one instance of it to use across an application.
445427
const glean = new GleanCore({
446-
security: {
447-
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
448-
},
428+
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
449429
});
450430

451431
async function run() {

0 commit comments

Comments
 (0)