Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
typescript:
version: 0.12.0
version: 0.12.1
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
Expand Down
3 changes: 3 additions & 0 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8639,6 +8639,9 @@ components:
agentName:
type: string
description: Agent name
icon:
$ref: "#/components/schemas/IconConfig"
description: Agent icon configuration
userCount:
type: integer
description: Total number of users for this agent over the specified time period.
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.635.3
speakeasyVersion: 1.636.2
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:9c88586528e71ab61d6ab430aae0133ce42899151af73f3917d776b7d45785a5
sourceBlobDigest: sha256:ce64a4e209ccf3f1af32689bd1d7c3aea9bf764b2b047ccb8decbc87dbdd3c1e
sourceRevisionDigest: sha256:3f099971b20cdaba1d53693ee90708d1461530957b1e44009e457250d4441b05
sourceBlobDigest: sha256:02db6ddd119e9c20b2130f2318039c2b6e19b0487ecb3bd5aed5e92acfe203cc
tags:
- latest
- speakeasy-sdk-regen-1759451489
- speakeasy-sdk-regen-1759915417
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301
Expand All @@ -18,10 +18,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:9c88586528e71ab61d6ab430aae0133ce42899151af73f3917d776b7d45785a5
sourceBlobDigest: sha256:ce64a4e209ccf3f1af32689bd1d7c3aea9bf764b2b047ccb8decbc87dbdd3c1e
sourceRevisionDigest: sha256:3f099971b20cdaba1d53693ee90708d1461530957b1e44009e457250d4441b05
sourceBlobDigest: sha256:02db6ddd119e9c20b2130f2318039c2b6e19b0487ecb3bd5aed5e92acfe203cc
codeSamplesNamespace: glean-api-specs-typescript-code-samples
codeSamplesRevisionDigest: sha256:41f19d20a3534531237d946c0b3cec575723451ce480611b26e2af8e0e113d20
codeSamplesRevisionDigest: sha256:c24bf6b805ddcd919f4e6046bdb9c6e393b354afb822c06e44804e236c6c6cdb
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,14 @@ Based on:
### Generated
- [typescript v0.12.0] .
### Releases
- [NPM v0.12.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.12.0 - .
- [NPM v0.12.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.12.0 - .

## 2025-10-09 01:10:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.636.2 (2.723.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.12.1] .
### Releases
- [NPM v0.12.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.12.1 - .
12 changes: 6 additions & 6 deletions RUNTIMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:

* [Web Fetch API][web-fetch]
* [Web Streams API][web-streams] and in particular `ReadableStream`
* [Async iterables][async-iter] using `Symbol.asyncIterator`
- [Web Fetch API][web-fetch]
- [Web Streams API][web-streams] and in particular `ReadableStream`
- [Async iterables][async-iter] using `Symbol.asyncIterator`

[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
Expand All @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:

The following `tsconfig.json` options are recommended for projects using this
SDK in order to get static type support for features like async iterables,
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
so on):

Expand All @@ -38,11 +38,11 @@ so on):
{
"compilerOptions": {
"target": "es2020", // or higher
"lib": ["es2020", "dom", "dom.iterable"],
"lib": ["es2020", "dom", "dom.iterable"]
}
}
```

While `target` can be set to older ECMAScript versions, it may result in extra,
unnecessary compatibility code being generated if you are not targeting old
runtimes.
runtimes.
10 changes: 10 additions & 0 deletions docs/models/components/agentsinsightsv2response.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
import { AgentsInsightsV2Response } from "@gleanwork/api-client/models/components";

let value: AgentsInsightsV2Response = {
topAgentsInsights: [
{
icon: {
color: "#343CED",
key: "person_icon",
iconType: "GLYPH",
name: "user",
},
},
],
agentUsersInsights: [
{
person: {
Expand Down
10 changes: 10 additions & 0 deletions docs/models/components/insightsresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,16 @@ let value: InsightsResponse = {
],
},
agentsResponse: {
topAgentsInsights: [
{
icon: {
color: "#343CED",
key: "person_icon",
iconType: "GLYPH",
name: "user",
},
},
],
agentUsersInsights: [
{
person: {
Expand Down
22 changes: 15 additions & 7 deletions docs/models/components/peragentinsight.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@
```typescript
import { PerAgentInsight } from "@gleanwork/api-client/models/components";

let value: PerAgentInsight = {};
let value: PerAgentInsight = {
icon: {
color: "#343CED",
key: "person_icon",
iconType: "GLYPH",
name: "user",
},
};
```

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `agentId` | *string* | :heavy_minus_sign: | Agent ID |
| `agentName` | *string* | :heavy_minus_sign: | Agent name |
| `userCount` | *number* | :heavy_minus_sign: | Total number of users for this agent over the specified time period. |
| `runCount` | *number* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. |
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `agentId` | *string* | :heavy_minus_sign: | Agent ID | |
| `agentName` | *string* | :heavy_minus_sign: | Agent name | |
| `icon` | [components.IconConfig](../../models/components/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {<br/>"color": "#343CED",<br/>"key": "person_icon",<br/>"iconType": "GLYPH",<br/>"name": "user"<br/>} |
| `userCount` | *number* | :heavy_minus_sign: | Total number of users for this agent over the specified time period. | |
| `runCount` | *number* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | |
2 changes: 1 addition & 1 deletion examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@gleanwork/api-client",
"version": "0.12.0",
"version": "0.12.1",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gleanwork/api-client",
"version": "0.12.0",
"version": "0.12.1",
"author": "Speakeasy",
"type": "module",
"tshy": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/__tests__/summarize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ test("Summarize Summarize", async () => {
const result = await glean.client.documents.summarize({
documentSpecs: [
{
url: "https://dim-glider.com/",
ugcType: "SHORTCUTS",
contentId: 602763,
},
{
id: "<id>",
ugcType: "SHORTCUTS",
contentId: 602763,
},
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientActivityFeedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "feedback",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientActivityReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "activity",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAgentsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "searchAgents",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAgentsRetrieve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "getAgent",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAgentsRetrieveSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "getAgentSchemas",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAgentsRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "createAndWaitRun",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAgentsRunStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "createAndStreamRun",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnnouncementsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "createannouncement",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnnouncementsDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "deleteannouncement",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnnouncementsUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "updateannouncement",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnswersCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "createanswer",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnswersDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "deleteanswer",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnswersList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "listanswers",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnswersRetrieve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "getanswer",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/clientAnswersUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function $do(
options: client._options,
baseURL: options?.serverURL ?? client._baseURL ?? "",
operationID: "editanswer",
oAuth2Scopes: [],
oAuth2Scopes: null,

resolvedSecurity: requestSecurity,

Expand Down
Loading