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
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: f83688cf1540bc7d583e1661684632b8
docChecksum: ef00a2f5125097d9f584f0bbb5436f00
docVersion: 0.9.0
speakeasyVersion: 1.636.2
generationVersion: 2.723.8
releaseVersion: 0.10.1
configChecksum: 07523009c906e4ce8da02892efe34042
speakeasyVersion: 1.636.3
generationVersion: 2.723.11
releaseVersion: 0.10.2
configChecksum: 0df6a87cbbcb2fcac2bba9f5d9a53017
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
Expand Down Expand Up @@ -2744,4 +2744,4 @@ generatedTests:
updateshortcut: "2025-06-12T19:13:52-04:00"
releaseNotes: |
## Python SDK Changes Detected:
* `glean.client.insights.retrieve()`: `response.agents_response.top_agents_insights.[].icon` **Added**
* `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.digest.sections.[].updates.[].urls` **Added**
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
python:
version: 0.10.1
version: 0.10.2
additionalDependencies:
dev: {}
main: {}
Expand Down
5 changes: 5 additions & 0 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9723,6 +9723,11 @@ components:
DigestUpdate:
type: object
properties:
urls:
type: array
description: List of URLs for similar updates that are grouped together and rendered as a single update.
items:
type: string
url:
type: string
description: URL link to the content or document.
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.636.2
speakeasyVersion: 1.636.3
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:3f099971b20cdaba1d53693ee90708d1461530957b1e44009e457250d4441b05
sourceBlobDigest: sha256:02db6ddd119e9c20b2130f2318039c2b6e19b0487ecb3bd5aed5e92acfe203cc
sourceRevisionDigest: sha256:784ebb76d989e40e13173fd5583545b5c83afb48be4d97b2c129cc90e2998f3f
sourceBlobDigest: sha256:7d1478805de16c63a0e5c784706e64b229cb94f7e0b4d438aa52f764be944544
tags:
- latest
- speakeasy-sdk-regen-1759915420
- speakeasy-sdk-regen-1760121026
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:3f099971b20cdaba1d53693ee90708d1461530957b1e44009e457250d4441b05
sourceBlobDigest: sha256:02db6ddd119e9c20b2130f2318039c2b6e19b0487ecb3bd5aed5e92acfe203cc
sourceRevisionDigest: sha256:784ebb76d989e40e13173fd5583545b5c83afb48be4d97b2c129cc90e2998f3f
sourceBlobDigest: sha256:7d1478805de16c63a0e5c784706e64b229cb94f7e0b4d438aa52f764be944544
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:a4e8c70388ad6f5de8d9a9f574d8c2fbfbcb5dbbb39aec928142f828023631c5
codeSamplesRevisionDigest: sha256:0c78dc6fe3fd8e0ce3f9c12806901702b8ee76b252cce8dd81e313f35a75635f
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 @@ -288,4 +288,14 @@ Based on:
### Generated
- [python v0.10.1] .
### Releases
- [PyPI v0.10.1] https://pypi.org/project/glean/0.10.1 - .
- [PyPI v0.10.1] https://pypi.org/project/glean/0.10.1 - .

## 2025-10-10 18:30:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.10.2] .
### Releases
- [PyPI v0.10.2] https://pypi.org/project/glean/0.10.2 - .
15 changes: 8 additions & 7 deletions docs/models/digestupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `url` | *Optional[str]* | :heavy_minus_sign: | URL link to the content or document. |
| `title` | *Optional[str]* | :heavy_minus_sign: | Title or headline of the update. |
| `datasource` | *Optional[str]* | :heavy_minus_sign: | Name or identifier of the data source (e.g., slack, confluence, etc.). |
| `summary` | *Optional[str]* | :heavy_minus_sign: | Brief summary or description of the update content. |
| `type` | [Optional[models.UpdateType]](../models/updatetype.md) | :heavy_minus_sign: | Optional type classification for the update. |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `urls` | List[*str*] | :heavy_minus_sign: | List of URLs for similar updates that are grouped together and rendered as a single update. |
| `url` | *Optional[str]* | :heavy_minus_sign: | URL link to the content or document. |
| `title` | *Optional[str]* | :heavy_minus_sign: | Title or headline of the update. |
| `datasource` | *Optional[str]* | :heavy_minus_sign: | Name or identifier of the data source (e.g., slack, confluence, etc.). |
| `summary` | *Optional[str]* | :heavy_minus_sign: | Brief summary or description of the update content. |
| `type` | [Optional[models.UpdateType]](../models/updatetype.md) | :heavy_minus_sign: | Optional type classification for the update. |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "glean-api-client"
version = "0.10.1"
version = "0.10.2"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." }]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion speakeasyusagegen/.speakeasy/logs/naming.log
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ FeedResponse (HttpMeta: HTTPMetadata, FeedResponse: FeedResponse)
Digest (podcastFileId: string, podcastDuration: float32, digestDate: string ...)
DigestSection (id: string, type: SectionType, displayName: string ...)
SectionType (enum: CHANNEL, MENTIONS, TOPIC)
DigestUpdate (url: string, title: string, datasource: string ...)
DigestUpdate (urls: array, url: string, title: string ...)
UpdateType (enum: ACTIONABLE, INFORMATIVE)
ChatSuggestion (query: string, feature: string)
PromptTemplateResult (promptTemplate: PromptTemplate, trackingToken: string, favoriteInfo: FavoriteInfo ...)
Expand Down
6 changes: 3 additions & 3 deletions src/glean/api_client/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "glean"
__version__: str = "0.10.1"
__version__: str = "0.10.2"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.723.8"
__user_agent__: str = "speakeasy-sdk/python 0.10.1 2.723.8 0.9.0 glean"
__gen_version__: str = "2.723.11"
__user_agent__: str = "speakeasy-sdk/python 0.10.2 2.723.11 0.9.0 glean"

try:
if __package__ is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/glean/api_client/errors/collectionerror.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CollectionErrorData(BaseModel):
]


@dataclass(frozen=True)
@dataclass(unsafe_hash=True)
class CollectionError(GleanBaseError):
data: CollectionErrorData = field(hash=False)

Expand Down
2 changes: 1 addition & 1 deletion src/glean/api_client/errors/gleanbaseerror.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass, field


@dataclass(frozen=True)
@dataclass(unsafe_hash=True)
class GleanBaseError(Exception):
"""The base class for all HTTP error responses."""

Expand Down
2 changes: 1 addition & 1 deletion src/glean/api_client/errors/gleandataerror.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GleanDataErrorData(BaseModel):
] = None


@dataclass(frozen=True)
@dataclass(unsafe_hash=True)
class GleanDataError(GleanBaseError):
data: GleanDataErrorData = field(hash=False)

Expand Down
2 changes: 1 addition & 1 deletion src/glean/api_client/errors/gleanerror.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
MAX_MESSAGE_LEN = 10_000


@dataclass(frozen=True)
@dataclass(unsafe_hash=True)
class GleanError(GleanBaseError):
"""The fallback error class if no more specific error class is matched."""

Expand Down
2 changes: 1 addition & 1 deletion src/glean/api_client/errors/no_response_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dataclasses import dataclass


@dataclass(frozen=True)
@dataclass(unsafe_hash=True)
class NoResponseError(Exception):
"""Error raised when no HTTP response is received from the server."""

Expand Down
2 changes: 1 addition & 1 deletion src/glean/api_client/errors/responsevalidationerror.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from glean.api_client.errors import GleanBaseError


@dataclass(frozen=True)
@dataclass(unsafe_hash=True)
class ResponseValidationError(GleanBaseError):
"""Error raised when there is a type mismatch between the response data and the expected Pydantic model."""

Expand Down
7 changes: 6 additions & 1 deletion src/glean/api_client/models/digestupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
from __future__ import annotations
from .updatetype import UpdateType
from glean.api_client.types import BaseModel
from typing import Optional
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class DigestUpdateTypedDict(TypedDict):
urls: NotRequired[List[str]]
r"""List of URLs for similar updates that are grouped together and rendered as a single update."""
url: NotRequired[str]
r"""URL link to the content or document."""
title: NotRequired[str]
Expand All @@ -21,6 +23,9 @@ class DigestUpdateTypedDict(TypedDict):


class DigestUpdate(BaseModel):
urls: Optional[List[str]] = None
r"""List of URLs for similar updates that are grouped together and rendered as a single update."""

url: Optional[str] = None
r"""URL link to the content or document."""

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.

8 changes: 5 additions & 3 deletions tests/test_summarize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from glean.api_client import Glean
from glean.api_client import Glean, models
import os
from tests.test_client import create_test_http_client

Expand All @@ -18,10 +18,12 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
"url": "https://dim-glider.com/",
"ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
"content_id": 602763,
},
{
"id": "<id>",
"ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
"content_id": 602763,
},
]
)
Expand Down