Skip to content
Open
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
78 changes: 39 additions & 39 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 @@ -34,7 +34,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.17.16
version: 0.17.17
additionalDependencies:
dev: {}
main: {}
Expand Down
13 changes: 11 additions & 2 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ openapi: 3.1.0
info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: 4b199fd04d49e624f6d8ad288c8758f99c4d1f6d
x-open-api-commit-sha: 4406c02294b5d882d37de283a55aa9bd4b4a339b
x-source-commit-sha: 728ea95527ea6f9e63d561d593054dee48ac98b3
x-open-api-commit-sha: 7c96f94c03e90c36cd46bc2efd8b5772dd100a43
description: |
# Introduction
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
Expand Down Expand Up @@ -9614,6 +9614,7 @@ components:
- READY_FOR_REVIEW
- CONVERTED_TO_DRAFT
- WEBHOOK_UPDATED
- WEBHOOK_CREATED
x-enumDescriptions:
CREATED: The document was created.
UPDATED: The document was updated.
Expand All @@ -9628,6 +9629,7 @@ components:
READY_FOR_REVIEW: A draft was marked ready for review.
CONVERTED_TO_DRAFT: The item was converted back to a draft.
WEBHOOK_UPDATED: The source system sent a webhook update.
WEBHOOK_CREATED: The source system sent a webhook creation event.
x-speakeasy-enum-descriptions:
CREATED: The document was created.
UPDATED: The document was updated.
Expand All @@ -9642,6 +9644,7 @@ components:
READY_FOR_REVIEW: A draft was marked ready for review.
CONVERTED_TO_DRAFT: The item was converted back to a draft.
WEBHOOK_UPDATED: The source system sent a webhook update.
WEBHOOK_CREATED: The source system sent a webhook creation event.
PlatformTriggerEvent:
type: object
required:
Expand Down Expand Up @@ -12805,6 +12808,10 @@ components:
type: string
format: url
description: Link to profile.
iconUrl:
type: string
format: url
description: URL of the icon to display for this social network, when available.
required:
- name
- profileUrl
Expand Down Expand Up @@ -16987,6 +16994,7 @@ components:
- ZERO_STATE_CHAT_TOOL_SUGGESTION
- ZERO_STATE_WORKFLOW_CREATED_BY_ME
- ZERO_STATE_WORKFLOW_FAVORITES
- ZERO_STATE_GLEAN_AGENT_COWORKERS
- ZERO_STATE_WORKFLOW_POPULAR
- ZERO_STATE_WORKFLOW_RECENT
- ZERO_STATE_WORKFLOW_SUGGESTION
Expand Down Expand Up @@ -17582,6 +17590,7 @@ components:
- ZERO_STATE_CHAT_TOOL_SUGGESTION
- ZERO_STATE_WORKFLOW_CREATED_BY_ME
- ZERO_STATE_WORKFLOW_FAVORITES
- ZERO_STATE_GLEAN_AGENT_COWORKERS
- ZERO_STATE_WORKFLOW_POPULAR
- ZERO_STATE_WORKFLOW_RECENT
- ZERO_STATE_WORKFLOW_SUGGESTION
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ speakeasyVersion: 1.800.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:05e3971be4fa72f84e875d8aa438c2b043bfbe3514333699ffe437d475237773
sourceBlobDigest: sha256:45258e9abc405d9a60201089c3113b8cc27705016b80fbabdf489eed6ff600aa
sourceRevisionDigest: sha256:487172dde0330536492446e81059e0ff25902c893bbf18dae06465945ff77b74
sourceBlobDigest: sha256:17434edfa4f6f7caf862c77eeed93c3a9c3876113eb433c266fe5821e909da4a
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:05e3971be4fa72f84e875d8aa438c2b043bfbe3514333699ffe437d475237773
sourceBlobDigest: sha256:45258e9abc405d9a60201089c3113b8cc27705016b80fbabdf489eed6ff600aa
sourceRevisionDigest: sha256:487172dde0330536492446e81059e0ff25902c893bbf18dae06465945ff77b74
sourceBlobDigest: sha256:17434edfa4f6f7caf862c77eeed93c3a9c3876113eb433c266fe5821e909da4a
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:cdce7efd2330ac7fdb670c272d8c770046ec3450cc0de514c044fe4cac218906
codeSamplesRevisionDigest: sha256:b3fe9181ec0b8f77c815b2bf87b8877710aa9597eb75a32c902b929594284735
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 @@ -1018,4 +1018,14 @@ Based on:
### Generated
- [python v0.17.16] .
### Releases
- [PyPI v0.17.16] https://pypi.org/project/glean-api-client/0.17.16 - .
- [PyPI v0.17.16] https://pypi.org/project/glean-api-client/0.17.16 - .

## 2026-10-06 05:15:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.800.1 (2.943.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.17.17] .
### Releases
- [PyPI v0.17.17] https://pypi.org/project/glean-api-client/0.17.17 - .
1 change: 1 addition & 0 deletions docs/models/feedrequestcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
| `ZERO_STATE_CHAT_TOOL_SUGGESTION` | ZERO_STATE_CHAT_TOOL_SUGGESTION |
| `ZERO_STATE_WORKFLOW_CREATED_BY_ME` | ZERO_STATE_WORKFLOW_CREATED_BY_ME |
| `ZERO_STATE_WORKFLOW_FAVORITES` | ZERO_STATE_WORKFLOW_FAVORITES |
| `ZERO_STATE_GLEAN_AGENT_COWORKERS` | ZERO_STATE_GLEAN_AGENT_COWORKERS |
| `ZERO_STATE_WORKFLOW_POPULAR` | ZERO_STATE_WORKFLOW_POPULAR |
| `ZERO_STATE_WORKFLOW_RECENT` | ZERO_STATE_WORKFLOW_RECENT |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
Expand Down
1 change: 1 addition & 0 deletions docs/models/feedresultcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ value = FeedResultCategory.DOCUMENT_SUGGESTION
| `ZERO_STATE_CHAT_TOOL_SUGGESTION` | ZERO_STATE_CHAT_TOOL_SUGGESTION |
| `ZERO_STATE_WORKFLOW_CREATED_BY_ME` | ZERO_STATE_WORKFLOW_CREATED_BY_ME |
| `ZERO_STATE_WORKFLOW_FAVORITES` | ZERO_STATE_WORKFLOW_FAVORITES |
| `ZERO_STATE_GLEAN_AGENT_COWORKERS` | ZERO_STATE_GLEAN_AGENT_COWORKERS |
| `ZERO_STATE_WORKFLOW_POPULAR` | ZERO_STATE_WORKFLOW_POPULAR |
| `ZERO_STATE_WORKFLOW_RECENT` | ZERO_STATE_WORKFLOW_RECENT |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
Expand Down
3 changes: 2 additions & 1 deletion docs/models/platformtriggereventreason.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ value = PlatformTriggerEventReason.CREATED
| `REVIEW_REQUEST_REMOVED` | REVIEW_REQUEST_REMOVED |
| `READY_FOR_REVIEW` | READY_FOR_REVIEW |
| `CONVERTED_TO_DRAFT` | CONVERTED_TO_DRAFT |
| `WEBHOOK_UPDATED` | WEBHOOK_UPDATED |
| `WEBHOOK_UPDATED` | WEBHOOK_UPDATED |
| `WEBHOOK_CREATED` | WEBHOOK_CREATED |
11 changes: 6 additions & 5 deletions docs/models/socialnetwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| `name` | *str* | :heavy_check_mark: | Possible values are "twitter", "linkedin". |
| `profile_name` | *Optional[str]* | :heavy_minus_sign: | Human-readable profile name. |
| `profile_url` | *str* | :heavy_check_mark: | Link to profile. |
| Field | Type | Required | Description |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `name` | *str* | :heavy_check_mark: | Possible values are "twitter", "linkedin". |
| `profile_name` | *Optional[str]* | :heavy_minus_sign: | Human-readable profile name. |
| `profile_url` | *str* | :heavy_check_mark: | Link to profile. |
| `icon_url` | *Optional[str]* | :heavy_minus_sign: | URL of the icon to display for this social network, when available. |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[project]
name = "glean-api-client"
version = "0.17.16"
version = "0.17.17"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 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-api-client"
__version__: str = "0.17.16"
__version__: str = "0.17.17"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.943.0"
__user_agent__: str = "speakeasy-sdk/python 0.17.16 2.943.0 0.9.0 glean-api-client"
__user_agent__: str = "speakeasy-sdk/python 0.17.17 2.943.0 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
1 change: 1 addition & 0 deletions src/glean/api_client/models/feedrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class FeedRequestCategory(str, Enum):
ZERO_STATE_CHAT_TOOL_SUGGESTION = "ZERO_STATE_CHAT_TOOL_SUGGESTION"
ZERO_STATE_WORKFLOW_CREATED_BY_ME = "ZERO_STATE_WORKFLOW_CREATED_BY_ME"
ZERO_STATE_WORKFLOW_FAVORITES = "ZERO_STATE_WORKFLOW_FAVORITES"
ZERO_STATE_GLEAN_AGENT_COWORKERS = "ZERO_STATE_GLEAN_AGENT_COWORKERS"
ZERO_STATE_WORKFLOW_POPULAR = "ZERO_STATE_WORKFLOW_POPULAR"
ZERO_STATE_WORKFLOW_RECENT = "ZERO_STATE_WORKFLOW_RECENT"
ZERO_STATE_WORKFLOW_SUGGESTION = "ZERO_STATE_WORKFLOW_SUGGESTION"
Expand Down
1 change: 1 addition & 0 deletions src/glean/api_client/models/feedresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class FeedResultCategory(str, Enum, metaclass=utils.OpenEnumMeta):
ZERO_STATE_CHAT_TOOL_SUGGESTION = "ZERO_STATE_CHAT_TOOL_SUGGESTION"
ZERO_STATE_WORKFLOW_CREATED_BY_ME = "ZERO_STATE_WORKFLOW_CREATED_BY_ME"
ZERO_STATE_WORKFLOW_FAVORITES = "ZERO_STATE_WORKFLOW_FAVORITES"
ZERO_STATE_GLEAN_AGENT_COWORKERS = "ZERO_STATE_GLEAN_AGENT_COWORKERS"
ZERO_STATE_WORKFLOW_POPULAR = "ZERO_STATE_WORKFLOW_POPULAR"
ZERO_STATE_WORKFLOW_RECENT = "ZERO_STATE_WORKFLOW_RECENT"
ZERO_STATE_WORKFLOW_SUGGESTION = "ZERO_STATE_WORKFLOW_SUGGESTION"
Expand Down
2 changes: 2 additions & 0 deletions src/glean/api_client/models/platformtriggereventreason.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ class PlatformTriggerEventReason(str, Enum, metaclass=utils.OpenEnumMeta):
CONVERTED_TO_DRAFT = "CONVERTED_TO_DRAFT"
# The source system sent a webhook update.
WEBHOOK_UPDATED = "WEBHOOK_UPDATED"
# The source system sent a webhook creation event.
WEBHOOK_CREATED = "WEBHOOK_CREATED"
7 changes: 6 additions & 1 deletion src/glean/api_client/models/socialnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class SocialNetworkTypedDict(TypedDict):
r"""Link to profile."""
profile_name: NotRequired[str]
r"""Human-readable profile name."""
icon_url: NotRequired[str]
r"""URL of the icon to display for this social network, when available."""


class SocialNetwork(BaseModel):
Expand All @@ -27,9 +29,12 @@ class SocialNetwork(BaseModel):
profile_name: Annotated[Optional[str], pydantic.Field(alias="profileName")] = None
r"""Human-readable profile name."""

icon_url: Annotated[Optional[str], pydantic.Field(alias="iconUrl")] = None
r"""URL of the icon to display for this social network, when available."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["profileName"])
optional_fields = set(["profileName", "iconUrl"])
serialized = handler(self)
m = {}

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.

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.

2 changes: 1 addition & 1 deletion tests/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_messages_messages():
res = glean.client.messages.retrieve(
id_type=models.IDType.CONVERSATION_ID,
id="<id>",
datasource=models.Datasource.SLACKENTGRID,
datasource=models.Datasource.SLACK,
timestamp_millis=558834,
)
assert res is not None
6 changes: 3 additions & 3 deletions tests/test_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
"ugc_type": models.DocumentSpecUgcType1.COLLECTIONS,
"content_id": 993975,
"url": "https://ashamed-alert.biz/",
},
{
"id": "<id>",
"ugc_type": models.DocumentSpecUgcType2.ARTIFACTS,
"ugc_id": "<id>",
},
]
)
Expand Down
Loading