diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5a13cfa..d3c1bea 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: a88d9955d9cbdc1c97388b62e19647f9 + docChecksum: 2ffc5de135d861194642d3cb0a9e3bb4 docVersion: 0.9.0 - speakeasyVersion: 1.640.0 - generationVersion: 2.730.5 - releaseVersion: 0.11.1 - configChecksum: bb1467025d7bf2904c0bb214996b3c72 + speakeasyVersion: 1.642.1 + generationVersion: 2.731.4 + releaseVersion: 0.11.2 + configChecksum: 681112b04101028f6621f6ef2b0c3257 repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true @@ -2742,4 +2742,6 @@ generatedTests: editcollection: "2025-06-12T19:13:52-04:00" createshortcut: "2025-06-12T19:13:52-04:00" updateshortcut: "2025-06-12T19:13:52-04:00" -releaseNotes: "## Python SDK Changes Detected:\n* `glean.client.announcements.create()`: \n * `request.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.announcements.update()`: \n * `request.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.answers.create()`: \n * `request.data.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.answers.update()`: \n * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.answers.retrieve()`: `response.answer_result.answer.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.answers.list()`: `response.answer_results.[].answer.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.chat.create()`: \n * `request.messages.[].citations.[].source_document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.messages.[].citations.[].source_document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.created_by.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.chat.list()`: `response.chat_results.[].chat.created_by.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages.[].citations.[].source_document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.add_items()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.create()`: \n * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.[class].collection.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.delete_item()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.update()`: \n * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.update_item()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.collections.list()`: `response.collections.[].added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.documents.retrieve()`: `response.documents.{}` **Changed**\n* `glean.client.documents.retrieve_by_facets()`: `response.documents.[].metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.insights.retrieve()`: `response.users.activity_insights.[].user.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.messages.retrieve()`: `response.search_response.results.[].structured_results.[].chat` **Added**\n* `glean.client.pins.update()`: `response.attribution.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.pins.list()`: `response.pins.[].attribution.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.pins.create()`: `response.attribution.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.search.query_as_admin()`: \n * `request.source_document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.results.[].structured_results.[].chat` **Added**\n* `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.created_by.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.search.recommendations()`: \n * `request.source_document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.results.[].structured_results.[].chat` **Added**\n* `glean.client.search.query()`: \n * `request.source_document.metadata.author.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.results.[].structured_results.[].chat` **Added**\n* `glean.client.entities.list()`: `response.results.[].related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.entities.read_people()`: `response.results.[].related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.shortcuts.create()`: \n * `request.data.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.shortcut.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.shortcuts.list()`: `response.shortcuts.[].added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.shortcuts.update()`: \n * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n * `response.shortcut.added_roles.[].person.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.verification.add_reminder()`: `response.metadata.last_verifier.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.verification.list()`: `response.documents.[].metadata.last_verifier.related_documents.[].results.[].structured_results.[].chat` **Added**\n* `glean.client.verification.verify()`: `response.metadata.last_verifier.related_documents.[].results.[].structured_results.[].chat` **Added**\n" +releaseNotes: | + ## Python SDK Changes Detected: + * `glean.client.insights.retrieve()`: `response.agents_response` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 803b54d..d1734d0 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.11.1 + version: 0.11.2 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index a75837a..4d2645b 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 fca463e..3e0b49d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.640.0 +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-1761265125 + - speakeasy-sdk-regen-1761685663 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2 @@ -17,10 +17,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-python-code-samples - codeSamplesRevisionDigest: sha256:4e1cc49586d643adff420c664d0a7b9142acdb353658039e7f9282846611b82f + codeSamplesRevisionDigest: sha256:05f915b94763a1499036f686db919aff002fb8e42c8feb22fef55e1208b96383 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index cc2fd60..992c532 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -328,4 +328,14 @@ Based on: ### Generated - [python v0.11.1] . ### Releases -- [PyPI v0.11.1] https://pypi.org/project/glean/0.11.1 - . \ No newline at end of file +- [PyPI v0.11.1] https://pypi.org/project/glean/0.11.1 - . + +## 2025-10-29 01:41:52 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.642.1 (2.731.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.11.2] . +### Releases +- [PyPI v0.11.2] https://pypi.org/project/glean/0.11.2 - . \ No newline at end of file diff --git a/docs/models/agentsinsightsv2response.md b/docs/models/agentsinsightsv2response.md index d047332..c081233 100644 --- a/docs/models/agentsinsightsv2response.md +++ b/docs/models/agentsinsightsv2response.md @@ -14,4 +14,6 @@ | `top_agents_insights` | List[[models.PerAgentInsight](../models/peragentinsight.md)] | :heavy_minus_sign: | N/A | | `agents_usage_by_department_insights` | List[[models.AgentsUsageByDepartmentInsight](../models/agentsusagebydepartmentinsight.md)] | :heavy_minus_sign: | N/A | | `agent_users_insights` | List[[models.AgentUsersInsight](../models/agentusersinsight.md)] | :heavy_minus_sign: | N/A | -| `daily_agent_runs_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `daily_agent_runs_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `upvotes_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A | +| `downvotes_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/peragentinsight.md b/docs/models/peragentinsight.md index b193deb..67d61cd 100644 --- a/docs/models/peragentinsight.md +++ b/docs/models/peragentinsight.md @@ -9,4 +9,6 @@ | `agent_name` | *Optional[str]* | :heavy_minus_sign: | Agent name | | | `icon` | [Optional[models.IconConfig]](../models/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {
"color": "#343CED",
"key": "person_icon",
"iconType": "GLYPH",
"name": "user"
} | | `user_count` | *Optional[int]* | :heavy_minus_sign: | Total number of users for this agent over the specified time period. | | -| `run_count` | *Optional[int]* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | | \ No newline at end of file +| `run_count` | *Optional[int]* | :heavy_minus_sign: | Total number of runs for this agent over the specified time period. | | +| `upvote_count` | *Optional[int]* | :heavy_minus_sign: | Total number of upvotes for this agent over the specified time period. | | +| `downvote_count` | *Optional[int]* | :heavy_minus_sign: | Total number of downvotes for this agent over the specified time period. | | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f8bb450..0d86a33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "glean-api-client" -version = "0.11.1" +version = "0.11.2" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." }] license = "MIT" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index cfc1399..ea64d62 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean" -__version__: str = "0.11.1" +__version__: str = "0.11.2" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.730.5" -__user_agent__: str = "speakeasy-sdk/python 0.11.1 2.730.5 0.9.0 glean" +__gen_version__: str = "2.731.4" +__user_agent__: str = "speakeasy-sdk/python 0.11.2 2.731.4 0.9.0 glean" try: if __package__ is not None: diff --git a/src/glean/api_client/models/agentsinsightsv2response.py b/src/glean/api_client/models/agentsinsightsv2response.py index 5d04b15..031c53f 100644 --- a/src/glean/api_client/models/agentsinsightsv2response.py +++ b/src/glean/api_client/models/agentsinsightsv2response.py @@ -30,6 +30,8 @@ class AgentsInsightsV2ResponseTypedDict(TypedDict): ] agent_users_insights: NotRequired[List[AgentUsersInsightTypedDict]] daily_agent_runs_timeseries: NotRequired[LabeledCountInfoTypedDict] + upvotes_timeseries: NotRequired[LabeledCountInfoTypedDict] + downvotes_timeseries: NotRequired[LabeledCountInfoTypedDict] class AgentsInsightsV2Response(BaseModel): @@ -76,3 +78,11 @@ class AgentsInsightsV2Response(BaseModel): daily_agent_runs_timeseries: Annotated[ Optional[LabeledCountInfo], pydantic.Field(alias="dailyAgentRunsTimeseries") ] = None + + upvotes_timeseries: Annotated[ + Optional[LabeledCountInfo], pydantic.Field(alias="upvotesTimeseries") + ] = None + + downvotes_timeseries: Annotated[ + Optional[LabeledCountInfo], pydantic.Field(alias="downvotesTimeseries") + ] = None diff --git a/src/glean/api_client/models/peragentinsight.py b/src/glean/api_client/models/peragentinsight.py index ad86f9c..0712c36 100644 --- a/src/glean/api_client/models/peragentinsight.py +++ b/src/glean/api_client/models/peragentinsight.py @@ -19,6 +19,10 @@ class PerAgentInsightTypedDict(TypedDict): r"""Total number of users for this agent over the specified time period.""" run_count: NotRequired[int] r"""Total number of runs for this agent over the specified time period.""" + upvote_count: NotRequired[int] + r"""Total number of upvotes for this agent over the specified time period.""" + downvote_count: NotRequired[int] + r"""Total number of downvotes for this agent over the specified time period.""" class PerAgentInsight(BaseModel): @@ -36,3 +40,11 @@ class PerAgentInsight(BaseModel): run_count: Annotated[Optional[int], pydantic.Field(alias="runCount")] = None r"""Total number of runs for this agent over the specified time period.""" + + upvote_count: Annotated[Optional[int], pydantic.Field(alias="upvoteCount")] = None + r"""Total number of upvotes for this agent over the specified time period.""" + + downvote_count: Annotated[Optional[int], pydantic.Field(alias="downvoteCount")] = ( + None + ) + r"""Total number of downvotes for this agent over the specified time period.""" diff --git a/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go b/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go index 0100b92..590fe93 100644 --- a/tests/mockserver/internal/sdk/models/components/agentsinsightsv2response.go +++ b/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/tests/mockserver/internal/sdk/models/components/peragentinsight.go b/tests/mockserver/internal/sdk/models/components/peragentinsight.go index cd969e1..5109216 100644 --- a/tests/mockserver/internal/sdk/models/components/peragentinsight.go +++ b/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 +}