From 055bd4937200a22f27ceb27ac9e6dd8b3dfe2c79 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 29 Oct 2025 01:23:42 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes Detected: * `glean.client.insights.retrieve()`: `response.agentsresponse` **Changed** --- .speakeasy/gen.lock | 10 ++++++---- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 10 ++++++++++ .speakeasy/workflow.lock | 12 +++++------ RELEASES.md | 12 ++++++++++- .../components/agentsinsightsv2response.md | 4 +++- docs/models/components/peragentinsight.md | 4 +++- examples/package-lock.json | 2 +- jsr.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/__tests__/messages.test.ts | 2 +- .../pathpostrestapiv1createcollection.go | 20 +++++++++---------- .../handler/pathpostrestapiv1getchat.go | 4 ++-- .../components/agentsinsightsv2response.go | 16 +++++++++++++++ .../sdk/models/components/peragentinsight.go | 18 +++++++++++++++++ src/__tests__/summarize.test.ts | 6 +++--- src/lib/config.ts | 4 ++-- .../components/agentsinsightsv2response.ts | 8 ++++++++ src/models/components/peragentinsight.ts | 14 +++++++++++++ 20 files changed, 119 insertions(+), 37 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a1b06a3b..335027bc 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 664aaca5-a41f-4434-8f2a-642dba92fe68 management: - docChecksum: a88d9955d9cbdc1c97388b62e19647f9 + docChecksum: 2ffc5de135d861194642d3cb0a9e3bb4 docVersion: 0.9.0 speakeasyVersion: 1.642.1 generationVersion: 2.731.4 - releaseVersion: 0.13.1 - configChecksum: 45eb2134b6f9222b55a1081fc682234f + releaseVersion: 0.13.2 + configChecksum: 82244f60cc8b73c7294d00c1e83c8b08 repoURL: https://github.com/gleanwork/api-client-typescript.git installationURL: https://github.com/gleanwork/api-client-typescript published: true @@ -2979,4 +2979,6 @@ generatedTests: createpolicy: "2025-06-09T18:05:10Z" createreport: "2025-06-09T18:05:10Z" setdocvisibility: "2025-06-09T18:05:10Z" -releaseNotes: "## Typescript SDK Changes Detected:\n* `glean.client.announcements.create()`: \n * `request.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.announcements.update()`: \n * `request.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.body.structuredList.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.create()`: \n * `request.data.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.addedroles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.update()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.addedroles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.retrieve()`: `response.answerresult.answer.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.answers.list()`: `response.answerresults.[].answer.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.create()`: \n * `request.chatrequest.messages.[].citations.[].sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.messages.[].citations.[].sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.retrieve()`: `response.chatresult.chat.createdBy.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.list()`: `response.chatresults.[].chat.createdBy.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatrequest.messages.[].citations.[].sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.addItems()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.create()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.[class].collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.deleteItem()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.update()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.addedroles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.updateItem()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.collections.list()`: `response.collections.[].addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.documents.retrieve()`: `response.documents.{}` **Changed**\n* `glean.client.documents.retrieveByFacets()`: `response.documents.[].metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.insights.retrieve()`: `response.users.activityInsights.[].user.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.messages.retrieve()`: `response.searchresponse.results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.update()`: `response.attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.list()`: `response.pins.[].attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.pins.create()`: `response.attribution.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.queryAsAdmin()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.retrieveFeed()`: `response.results.[].primaryEntry.createdBy.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.recommendations()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.results.[].structuredResults.[].chat` **Added**\n* `glean.client.search.query()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.results.[].structuredResults.[].chat` **Added**\n* `glean.client.entities.list()`: `response.results.[].relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.entities.readPeople()`: `response.results.[].relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.create()`: \n * `request.data.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.shortcut.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.list()`: `response.shortcuts.[].addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.shortcuts.update()`: \n * `request.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n * `response.shortcut.addedRoles.[].person.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.verification.addReminder()`: `response.metadata.lastVerifier.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.verification.list()`: `response.documents.[].metadata.lastVerifier.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n* `glean.client.verification.verify()`: `response.metadata.lastVerifier.relatedDocuments.[].results.[].structuredResults.[].chat` **Added**\n" +releaseNotes: | + ## Typescript SDK Changes Detected: + * `glean.client.insights.retrieve()`: `response.agentsresponse` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 2a4260ed..cba5fe00 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true typescript: - version: 0.13.1 + version: 0.13.2 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index a75837ae..4d2645b7 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -8663,6 +8663,12 @@ components: runCount: type: integer description: Total number of runs for this agent over the specified time period. + upvoteCount: + type: integer + description: Total number of upvotes for this agent over the specified time period. + downvoteCount: + type: integer + description: Total number of downvotes for this agent over the specified time period. AgentsUsageByDepartmentInsight: properties: department: @@ -8732,6 +8738,10 @@ components: $ref: "#/components/schemas/AgentUsersInsight" dailyAgentRunsTimeseries: $ref: "#/components/schemas/LabeledCountInfo" + upvotesTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" + downvotesTimeseries: + $ref: "#/components/schemas/LabeledCountInfo" InsightsResponse: properties: timeseries: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b991047a..bcbfbf38 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,11 +2,11 @@ speakeasyVersion: 1.642.1 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:9185501d1d898cebc99ebe94e5727ae819ab99ac594dd3e5b54c26212ea70b47 - sourceBlobDigest: sha256:a1f24fbc23ef924e4ec1955c22b78a7437b9c77b601fde39bcb9537daa8ce4cd + sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32 + sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048 tags: - latest - - speakeasy-sdk-regen-1761265134 + - speakeasy-sdk-regen-1761685669 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301 @@ -18,10 +18,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:9185501d1d898cebc99ebe94e5727ae819ab99ac594dd3e5b54c26212ea70b47 - sourceBlobDigest: sha256:a1f24fbc23ef924e4ec1955c22b78a7437b9c77b601fde39bcb9537daa8ce4cd + sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32 + sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048 codeSamplesNamespace: glean-api-specs-typescript-code-samples - codeSamplesRevisionDigest: sha256:0de483fe13b70f742f1fb5fa63f9e7b861609cfd1aae9690781b8e63ae0ad9e6 + codeSamplesRevisionDigest: sha256:557641d7a1d5a4ab63047f64d2d3496a001d53e538ea5c017a60664f1154ce50 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 3cb19d98..95e78d97 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -368,4 +368,14 @@ Based on: ### Generated - [typescript v0.13.1] . ### Releases -- [NPM v0.13.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.1 - . \ No newline at end of file +- [NPM v0.13.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.1 - . + +## 2025-10-29 01:17:08 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.642.1 (2.731.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.13.2] . +### Releases +- [NPM v0.13.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.2 - . \ No newline at end of file diff --git a/docs/models/components/agentsinsightsv2response.md b/docs/models/components/agentsinsightsv2response.md index f2bed2da..c7edb964 100644 --- a/docs/models/components/agentsinsightsv2response.md +++ b/docs/models/components/agentsinsightsv2response.md @@ -40,4 +40,6 @@ let value: AgentsInsightsV2Response = { | `topAgentsInsights` | [components.PerAgentInsight](../../models/components/peragentinsight.md)[] | :heavy_minus_sign: | N/A | | `agentsUsageByDepartmentInsights` | [components.AgentsUsageByDepartmentInsight](../../models/components/agentsusagebydepartmentinsight.md)[] | :heavy_minus_sign: | N/A | | `agentUsersInsights` | [components.AgentUsersInsight](../../models/components/agentusersinsight.md)[] | :heavy_minus_sign: | N/A | -| `dailyAgentRunsTimeseries` | [components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `dailyAgentRunsTimeseries` | [components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `upvotesTimeseries` | [components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `downvotesTimeseries` | [components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/peragentinsight.md b/docs/models/components/peragentinsight.md index 45b2e99e..a0a20869 100644 --- a/docs/models/components/peragentinsight.md +++ b/docs/models/components/peragentinsight.md @@ -23,4 +23,6 @@ let value: PerAgentInsight = { | `agentName` | *string* | :heavy_minus_sign: | Agent name | | | `icon` | [components.IconConfig](../../models/components/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {
"color": "#343CED",
"key": "person_icon",
"iconType": "GLYPH",
"name": "user"
} | | `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. | | \ No newline at end of file +| `runCount` | *number* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | | +| `upvoteCount` | *number* | :heavy_minus_sign: | Total number of upvotes for this agent over the specified time period. | | +| `downvoteCount` | *number* | :heavy_minus_sign: | Total number of downvotes for this agent over the specified time period. | | \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index e3c53d40..3aa926d9 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@gleanwork/api-client", - "version": "0.13.1", + "version": "0.13.2", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index 6fef08ce..0c534704 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@gleanwork/api-client", - "version": "0.13.1", + "version": "0.13.2", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index e06ab8d6..eb4487e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gleanwork/api-client", - "version": "0.13.1", + "version": "0.13.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gleanwork/api-client", - "version": "0.13.1", + "version": "0.13.2", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index f15e9df3..fee3fdb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gleanwork/api-client", - "version": "0.13.1", + "version": "0.13.2", "author": "Speakeasy", "type": "module", "tshy": { diff --git a/src/__tests__/messages.test.ts b/src/__tests__/messages.test.ts index db4c9928..1dc01de3 100644 --- a/src/__tests__/messages.test.ts +++ b/src/__tests__/messages.test.ts @@ -19,7 +19,7 @@ test("Messages Messages", async () => { idType: "CONVERSATION_ID", id: "", timestampMillis: 558834, - datasource: "SLACK", + datasource: "GCHAT", }); expect(result).toBeDefined(); }); diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 5c99a0ad..371b9023 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "motionless whenever paintwork import over cuckoo", + Description: "whole busily jive hawk gee basic minus hence", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleOwner, + Role: components.UserRoleAnswerModerator, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 363711, + ID: 158969, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 570197, + CollectionID: 110375, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -266,13 +266,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleEditor, }, }, }, Collection: &components.Collection{ Name: "", - Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", + Description: "wedge colorfully orientate rally", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -288,7 +288,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 643990, + ID: 131797, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "woot purse salty even as advanced", + Description: "outside yippee sidetrack mature regularly mouser inject worth", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -316,7 +316,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 359978, + ID: 149448, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeURL, + ItemType: components.CollectionItemItemTypeCollection, }, }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go index 35e69d35..f8469b5b 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 848009, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/src/__tests__/mockserver/internal/sdk/models/components/agentsinsightsv2response.go b/src/__tests__/mockserver/internal/sdk/models/components/agentsinsightsv2response.go index 0100b922..590fe93f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/agentsinsightsv2response.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/agentsinsightsv2response.go @@ -16,6 +16,8 @@ type AgentsInsightsV2Response struct { AgentsUsageByDepartmentInsights []AgentsUsageByDepartmentInsight `json:"agentsUsageByDepartmentInsights,omitempty"` AgentUsersInsights []AgentUsersInsight `json:"agentUsersInsights,omitempty"` DailyAgentRunsTimeseries *LabeledCountInfo `json:"dailyAgentRunsTimeseries,omitempty"` + UpvotesTimeseries *LabeledCountInfo `json:"upvotesTimeseries,omitempty"` + DownvotesTimeseries *LabeledCountInfo `json:"downvotesTimeseries,omitempty"` } func (o *AgentsInsightsV2Response) GetMonthlyActiveUsers() *int64 { @@ -87,3 +89,17 @@ func (o *AgentsInsightsV2Response) GetDailyAgentRunsTimeseries() *LabeledCountIn } return o.DailyAgentRunsTimeseries } + +func (o *AgentsInsightsV2Response) GetUpvotesTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.UpvotesTimeseries +} + +func (o *AgentsInsightsV2Response) GetDownvotesTimeseries() *LabeledCountInfo { + if o == nil { + return nil + } + return o.DownvotesTimeseries +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/peragentinsight.go b/src/__tests__/mockserver/internal/sdk/models/components/peragentinsight.go index cd969e1b..51092165 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/peragentinsight.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/peragentinsight.go @@ -13,6 +13,10 @@ type PerAgentInsight struct { UserCount *int64 `json:"userCount,omitempty"` // Total number of runs for this agent over the specified time period. RunCount *int64 `json:"runCount,omitempty"` + // Total number of upvotes for this agent over the specified time period. + UpvoteCount *int64 `json:"upvoteCount,omitempty"` + // Total number of downvotes for this agent over the specified time period. + DownvoteCount *int64 `json:"downvoteCount,omitempty"` } func (o *PerAgentInsight) GetAgentID() *string { @@ -49,3 +53,17 @@ func (o *PerAgentInsight) GetRunCount() *int64 { } return o.RunCount } + +func (o *PerAgentInsight) GetUpvoteCount() *int64 { + if o == nil { + return nil + } + return o.UpvoteCount +} + +func (o *PerAgentInsight) GetDownvoteCount() *int64 { + if o == nil { + return nil + } + return o.DownvoteCount +} diff --git a/src/__tests__/summarize.test.ts b/src/__tests__/summarize.test.ts index 0d6e81fd..50bd00d5 100644 --- a/src/__tests__/summarize.test.ts +++ b/src/__tests__/summarize.test.ts @@ -18,11 +18,11 @@ test("Summarize Summarize", async () => { const result = await glean.client.documents.summarize({ documentSpecs: [ { - ugcType: "ANNOUNCEMENTS", - contentId: 936916, + url: "https://ashamed-replacement.net", }, { - url: "https://ruddy-massage.net", + ugcType: "SHORTCUTS", + contentId: 42139, }, ], }); diff --git a/src/lib/config.ts b/src/lib/config.ts index 14980539..3847ef43 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.9.0", - sdkVersion: "0.13.1", + sdkVersion: "0.13.2", genVersion: "2.731.4", userAgent: - "speakeasy-sdk/typescript 0.13.1 2.731.4 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.13.2 2.731.4 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/models/components/agentsinsightsv2response.ts b/src/models/components/agentsinsightsv2response.ts index 6a94d018..4871d7db 100644 --- a/src/models/components/agentsinsightsv2response.ts +++ b/src/models/components/agentsinsightsv2response.ts @@ -53,6 +53,8 @@ export type AgentsInsightsV2Response = { | undefined; agentUsersInsights?: Array | undefined; dailyAgentRunsTimeseries?: LabeledCountInfo | undefined; + upvotesTimeseries?: LabeledCountInfo | undefined; + downvotesTimeseries?: LabeledCountInfo | undefined; }; /** @internal */ @@ -73,6 +75,8 @@ export const AgentsInsightsV2Response$inboundSchema: z.ZodType< ).optional(), agentUsersInsights: z.array(AgentUsersInsight$inboundSchema).optional(), dailyAgentRunsTimeseries: LabeledCountInfo$inboundSchema.optional(), + upvotesTimeseries: LabeledCountInfo$inboundSchema.optional(), + downvotesTimeseries: LabeledCountInfo$inboundSchema.optional(), }); /** @internal */ @@ -89,6 +93,8 @@ export type AgentsInsightsV2Response$Outbound = { | undefined; agentUsersInsights?: Array | undefined; dailyAgentRunsTimeseries?: LabeledCountInfo$Outbound | undefined; + upvotesTimeseries?: LabeledCountInfo$Outbound | undefined; + downvotesTimeseries?: LabeledCountInfo$Outbound | undefined; }; /** @internal */ @@ -109,6 +115,8 @@ export const AgentsInsightsV2Response$outboundSchema: z.ZodType< ).optional(), agentUsersInsights: z.array(AgentUsersInsight$outboundSchema).optional(), dailyAgentRunsTimeseries: LabeledCountInfo$outboundSchema.optional(), + upvotesTimeseries: LabeledCountInfo$outboundSchema.optional(), + downvotesTimeseries: LabeledCountInfo$outboundSchema.optional(), }); /** diff --git a/src/models/components/peragentinsight.ts b/src/models/components/peragentinsight.ts index 7b68b3fd..0823fb82 100644 --- a/src/models/components/peragentinsight.ts +++ b/src/models/components/peragentinsight.ts @@ -34,6 +34,14 @@ export type PerAgentInsight = { * Total number of runs for this agent over the specified time period. */ runCount?: number | undefined; + /** + * Total number of upvotes for this agent over the specified time period. + */ + upvoteCount?: number | undefined; + /** + * Total number of downvotes for this agent over the specified time period. + */ + downvoteCount?: number | undefined; }; /** @internal */ @@ -47,6 +55,8 @@ export const PerAgentInsight$inboundSchema: z.ZodType< icon: IconConfig$inboundSchema.optional(), userCount: z.number().int().optional(), runCount: z.number().int().optional(), + upvoteCount: z.number().int().optional(), + downvoteCount: z.number().int().optional(), }); /** @internal */ @@ -56,6 +66,8 @@ export type PerAgentInsight$Outbound = { icon?: IconConfig$Outbound | undefined; userCount?: number | undefined; runCount?: number | undefined; + upvoteCount?: number | undefined; + downvoteCount?: number | undefined; }; /** @internal */ @@ -69,6 +81,8 @@ export const PerAgentInsight$outboundSchema: z.ZodType< icon: IconConfig$outboundSchema.optional(), userCount: z.number().int().optional(), runCount: z.number().int().optional(), + upvoteCount: z.number().int().optional(), + downvoteCount: z.number().int().optional(), }); /** From 07c69e0b46c1916bfca9612f2f7748b467d3044f Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 01:24:06 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow