Skip to content

Commit ca8c09b

Browse files
Merge pull request #7 from gleanwork/speakeasy-sdk-regen-1746034495
chore: 🐝 Update SDK - Generate 0.1.0-beta.1
2 parents d1c10af + 3346fdf commit ca8c09b

File tree

15 files changed

+1048
-98
lines changed

15 files changed

+1048
-98
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.speakeasy/logs/
12
.speakeasy/temp/
23
.DS_Store
34
/models

.speakeasy/gen.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 9e4b1e83-7853-4088-b960-4cbc5769b62c
33
management:
4-
docChecksum: 1a2c49930fef57ea7cddf2ed9b486f1d
4+
docChecksum: 5f39e048571bfcd8aae3cc610c7d8852
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.540.1
7-
generationVersion: 2.593.4
8-
releaseVersion: 0.1.0-beta
9-
configChecksum: 385d1e516bba00f162736f14ce7aa499
6+
speakeasyVersion: 1.541.0
7+
generationVersion: 2.595.2
8+
releaseVersion: 0.1.0-beta.1
9+
configChecksum: 4d72514137c7e0629ea2992e39a79487
1010
repoURL: https://github.com/gleanwork/api-client-typescript.git
1111
installationURL: https://github.com/gleanwork/api-client-typescript
1212
published: true
@@ -21,6 +21,7 @@ features:
2121
devContainers: 2.90.0
2222
enumUnions: 0.1.0
2323
envVarSecurityUsage: 0.1.2
24+
examples: 2.81.5
2425
flattening: 2.82.1
2526
globalSecurity: 2.82.13
2627
globalSecurityCallbacks: 0.1.0

.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.1.0-beta
27+
version: 0.1.0-beta.1
2828
additionalDependencies:
2929
dependencies: {}
3030
devDependencies: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ paths:
522522
description: Too Many Requests
523523
x-speakeasy-group: client.chat
524524
x-speakeasy-name-override: start
525+
x-speakeasy-usage-example: true
525526
/rest/api/v1/deleteallchats:
526527
post:
527528
tags:

.speakeasy/workflow.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
speakeasyVersion: 1.540.1
1+
speakeasyVersion: 1.541.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:bb693058375d00f6308376d62438b7a64826195f9aa3d8063780acde0a58cbea
6-
sourceBlobDigest: sha256:02dae61341a702b82c050ed3828f22d5a82de8e9f2fa6a99ddab6ad0dfe4a38a
5+
sourceRevisionDigest: sha256:1756c09ecbe23405704c2ca0a7fc16f744e0104dd7eae3eea4f70d5a04348c16
6+
sourceBlobDigest: sha256:774205fd75a3374e402da1109732bc48f7fcd38efe41d5709663e17ac4f28898
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1746034495
910
Glean Client API:
1011
sourceNamespace: glean-client-api
1112
sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301
@@ -17,8 +18,10 @@ targets:
1718
glean:
1819
source: Glean API
1920
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:bb693058375d00f6308376d62438b7a64826195f9aa3d8063780acde0a58cbea
21-
sourceBlobDigest: sha256:02dae61341a702b82c050ed3828f22d5a82de8e9f2fa6a99ddab6ad0dfe4a38a
21+
sourceRevisionDigest: sha256:1756c09ecbe23405704c2ca0a7fc16f744e0104dd7eae3eea4f70d5a04348c16
22+
sourceBlobDigest: sha256:774205fd75a3374e402da1109732bc48f7fcd38efe41d5709663e17ac4f28898
23+
codeSamplesNamespace: glean-api-specs-typescript-code-samples
24+
codeSamplesRevisionDigest: sha256:837ee35dad1dd584148f11525d5ff859e25218924d6e8cd895ccc860a24a1862
2225
workflow:
2326
workflowVersion: 1.0.0
2427
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ specific category of applications.
2020

2121
```typescript
2222
import { GleanCore } from "@gleanwork/api-client/core.js";
23-
import { clientActivityReport } from "@gleanwork/api-client/funcs/clientActivityReport.js";
23+
import { clientChatStart } from "@gleanwork/api-client/funcs/clientChatStart.js";
2424
import { SDKValidationError } from "@gleanwork/api-client/models/errors/sdkvalidationerror.js";
2525

2626
// Use `GleanCore` for best tree-shaking performance.
@@ -30,29 +30,14 @@ const glean = new GleanCore({
3030
});
3131

3232
async function run() {
33-
const res = await clientActivityReport(glean, {
34-
events: [
33+
const res = await clientChatStart(glean, {
34+
messages: [
3535
{
36-
action: "HISTORICAL_VIEW",
37-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
38-
url: "https://example.com/",
39-
},
40-
{
41-
action: "SEARCH",
42-
params: {
43-
query: "query",
44-
},
45-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
46-
url: "https://example.com/search?q=query",
47-
},
48-
{
49-
action: "VIEW",
50-
params: {
51-
duration: 20,
52-
referrer: "https://example.com/document",
53-
},
54-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
55-
url: "https://example.com/",
36+
fragments: [
37+
{
38+
text: "What are the company holidays this year?",
39+
},
40+
],
5641
},
5742
],
5843
});
@@ -76,7 +61,8 @@ async function run() {
7661

7762
const { value: result } = res;
7863

79-
64+
// Handle the result
65+
console.log(result);
8066
}
8167

8268
run();

README.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -89,32 +89,20 @@ const glean = new Glean({
8989
});
9090

9191
async function run() {
92-
await glean.client.activity.report({
93-
events: [
92+
const result = await glean.client.chat.start({
93+
messages: [
9494
{
95-
action: "HISTORICAL_VIEW",
96-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
97-
url: "https://example.com/",
98-
},
99-
{
100-
action: "SEARCH",
101-
params: {
102-
query: "query",
103-
},
104-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
105-
url: "https://example.com/search?q=query",
106-
},
107-
{
108-
action: "VIEW",
109-
params: {
110-
duration: 20,
111-
referrer: "https://example.com/document",
112-
},
113-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
114-
url: "https://example.com/",
95+
fragments: [
96+
{
97+
text: "What are the company holidays this year?",
98+
},
99+
],
115100
},
116101
],
117102
});
103+
104+
// Handle the result
105+
console.log(result);
118106
}
119107

120108
run();

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [typescript v0.1.0-beta] .
1010
### Releases
11-
- [NPM v0.1.0-beta] https://www.npmjs.com/package/@gleanwork/api-client/v/0.1.0-beta - .
11+
- [NPM v0.1.0-beta] https://www.npmjs.com/package/@gleanwork/api-client/v/0.1.0-beta - .
12+
13+
## 2025-04-30 17:34:38
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc
17+
- Speakeasy CLI 1.541.0 (2.595.2) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [typescript v0.1.0-beta.1] .
20+
### Releases
21+
- [NPM v0.1.0-beta.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.1.0-beta.1 - .

USAGE.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,20 @@ const glean = new Glean({
77
});
88

99
async function run() {
10-
await glean.client.activity.report({
11-
events: [
10+
const result = await glean.client.chat.start({
11+
messages: [
1212
{
13-
action: "HISTORICAL_VIEW",
14-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
15-
url: "https://example.com/",
16-
},
17-
{
18-
action: "SEARCH",
19-
params: {
20-
query: "query",
21-
},
22-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
23-
url: "https://example.com/search?q=query",
24-
},
25-
{
26-
action: "VIEW",
27-
params: {
28-
duration: 20,
29-
referrer: "https://example.com/document",
30-
},
31-
timestamp: new Date("2000-01-23T04:56:07.000Z"),
32-
url: "https://example.com/",
13+
fragments: [
14+
{
15+
text: "What are the company holidays this year?",
16+
},
17+
],
3318
},
3419
],
3520
});
21+
22+
// Handle the result
23+
console.log(result);
3624
}
3725

3826
run();

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@gleanwork/api-client",
5-
"version": "0.1.0-beta",
5+
"version": "0.1.0-beta.1",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

0 commit comments

Comments
 (0)