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
94 changes: 47 additions & 47 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.12.10
version: 0.12.11
additionalDependencies:
dev: {}
main: {}
Expand Down
32 changes: 28 additions & 4 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
x-source-commit-sha: a5baf32ff20e181a9adf12f9b9eba1c2421e5024
x-source-commit-sha: 7a7b088ee2579f06e8c75700cf68d3021ff77c5f
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 All @@ -22,7 +22,7 @@ info:
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
x-logo:
url: https://app.glean.com/images/glean-text2.svg
x-open-api-commit-sha: 238bce820eef8f0f78d4793d3424d4e78944d066
x-open-api-commit-sha: b44ae5cd8ae20dd697ad17378df510a0c3f6d340
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -6582,6 +6582,7 @@ components:
introduced: "2026-02-05"
message: Use 'text' field instead
removal: "2026-10-15"
x-includeEmpty: true
x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use 'text' field instead"
example:
snippet: snippet
Expand Down Expand Up @@ -8297,6 +8298,8 @@ components:
chatId:
type: string
description: The id of the associated Chat the messages belong to, if one exists.
chat:
$ref: "#/components/schemas/ChatMetadata"
followUpPrompts:
type: array
items:
Expand Down Expand Up @@ -10112,6 +10115,12 @@ components:
- ZERO_STATE_WORKFLOW_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
- DAILY_DIGEST
- TASK
- PLAN_MY_DAY
- END_MY_DAY
- STARTER_KIT
- MID_DAY_CATCH_UP
- QUERY_SUGGESTION
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
requestOptions:
$ref: "#/components/schemas/FeedRequestOptions"
Expand Down Expand Up @@ -10431,13 +10440,22 @@ components:
$ref: "#/components/schemas/UserRoleSpecification"
UgcType:
enum:
- AGENT_TYPE
- ANNOUNCEMENTS_TYPE
- ANSWERS_TYPE
- CHATS_TYPE
- COLLECTIONS_TYPE
- EMAIL_TYPE
- HTML_CODE_TYPE
- IMAGE_TYPE
- MESSAGE_TYPE
- PAPER_TYPE
- PRISM_VIEWS_TYPE
- PROMPT_TEMPLATES_TYPE
- SCRIBES_TYPE
- SHORTCUTS_TYPE
- SLIDE_TYPE
- WORKFLOWS_TYPE
- PROMPT_TEMPLATES_TYPE
- PRISM_VIEWS_TYPE
FavoriteInfo:
type: object
properties:
Expand Down Expand Up @@ -10599,6 +10617,10 @@ components:
- STARTER_KIT_EXTENSION
- STARTER_KIT_ORG_CHART
- STARTER_KIT_ADD_DOC
- MEETING_RECAP
- ACTIVE_DISCUSSION
- MID_DAY_CATCH_UP
- QUERY_SUGGESTION
description: Type of the justification.
justification:
type: string
Expand Down Expand Up @@ -10675,6 +10697,8 @@ components:
- PLAN_MY_DAY
- END_MY_DAY
- STARTER_KIT
- MID_DAY_CATCH_UP
- QUERY_SUGGESTION
description: Category of the result, one of the requested categories in incoming request.
primaryEntry:
$ref: "#/components/schemas/FeedEntry"
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.751.0
speakeasyVersion: 1.755.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:f166c61c7e7a52f62d5ddcc80f0e1247867cfa9a89d6bdf2679daca84d0efadc
sourceBlobDigest: sha256:a5efacbcf3c78ffd7268b357723e4892a115562dd5392fbcd6ab6141c014516f
sourceRevisionDigest: sha256:db4d1b0e0b2d0d7f2a68642d8f04dd9235db9277c46ea9ae836bb9e3ff77b732
sourceBlobDigest: sha256:40e4b60b39db239ee858446a99a1816379c1b7dc19397d3947bd27588a5a3e8d
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:f166c61c7e7a52f62d5ddcc80f0e1247867cfa9a89d6bdf2679daca84d0efadc
sourceBlobDigest: sha256:a5efacbcf3c78ffd7268b357723e4892a115562dd5392fbcd6ab6141c014516f
sourceRevisionDigest: sha256:db4d1b0e0b2d0d7f2a68642d8f04dd9235db9277c46ea9ae836bb9e3ff77b732
sourceBlobDigest: sha256:40e4b60b39db239ee858446a99a1816379c1b7dc19397d3947bd27588a5a3e8d
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:dac0cc25e8448625efa55da8fa7c5d7da718e204f3c52763fe7bcce62d679838
codeSamplesRevisionDigest: sha256:f4615b6dd347d241e08a8623565822a3000c595656b93a0b0b374f359e7693b6
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 @@ -608,4 +608,14 @@ Based on:
### Generated
- [python v0.12.10] .
### Releases
- [PyPI v0.12.10] https://pypi.org/project/glean-api-client/0.12.10 - .
- [PyPI v0.12.10] https://pypi.org/project/glean-api-client/0.12.10 - .

## 2026-03-16 02:33:55
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.755.0 (2.865.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.11] .
### Releases
- [PyPI v0.12.11] https://pypi.org/project/glean-api-client/0.12.11 - .
15 changes: 8 additions & 7 deletions docs/models/chatresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ A single response from the /chat backend.

## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | N/A | |
| `chat_id` | *Optional[str]* | :heavy_minus_sign: | The id of the associated Chat the messages belong to, if one exists. | |
| `follow_up_prompts` | List[*str*] | :heavy_minus_sign: | Follow-up prompts for the user to potentially use | |
| `backend_time_millis` | *Optional[int]* | :heavy_minus_sign: | Time in milliseconds the backend took to respond to the request. | 1100 |
| `chat_session_tracking_token` | *Optional[str]* | :heavy_minus_sign: | A token that is used to track the session. | |
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | N/A | |
| `chat_id` | *Optional[str]* | :heavy_minus_sign: | The id of the associated Chat the messages belong to, if one exists. | |
| `chat` | [Optional[models.ChatMetadata]](../models/chatmetadata.md) | :heavy_minus_sign: | Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. | |
| `follow_up_prompts` | List[*str*] | :heavy_minus_sign: | Follow-up prompts for the user to potentially use | |
| `backend_time_millis` | *Optional[int]* | :heavy_minus_sign: | Time in milliseconds the backend took to respond to the request. | 1100 |
| `chat_session_tracking_token` | *Optional[str]* | :heavy_minus_sign: | A token that is used to track the session. | |
8 changes: 7 additions & 1 deletion docs/models/feedrequestcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
| `ZERO_STATE_WORKFLOW_RECENT` | ZERO_STATE_WORKFLOW_RECENT |
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
| `PERSONALIZED_CHAT_SUGGESTION` | PERSONALIZED_CHAT_SUGGESTION |
| `DAILY_DIGEST` | DAILY_DIGEST |
| `DAILY_DIGEST` | DAILY_DIGEST |
| `TASK` | TASK |
| `PLAN_MY_DAY` | PLAN_MY_DAY |
| `END_MY_DAY` | END_MY_DAY |
| `STARTER_KIT` | STARTER_KIT |
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |
4 changes: 3 additions & 1 deletion docs/models/feedresultcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ value = FeedResultCategory.DOCUMENT_SUGGESTION
| `TASK` | TASK |
| `PLAN_MY_DAY` | PLAN_MY_DAY |
| `END_MY_DAY` | END_MY_DAY |
| `STARTER_KIT` | STARTER_KIT |
| `STARTER_KIT` | STARTER_KIT |
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |
6 changes: 5 additions & 1 deletion docs/models/justificationtype.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ value = JustificationType.FREQUENTLY_ACCESSED
| `END_MY_DAY` | END_MY_DAY |
| `STARTER_KIT_EXTENSION` | STARTER_KIT_EXTENSION |
| `STARTER_KIT_ORG_CHART` | STARTER_KIT_ORG_CHART |
| `STARTER_KIT_ADD_DOC` | STARTER_KIT_ADD_DOC |
| `STARTER_KIT_ADD_DOC` | STARTER_KIT_ADD_DOC |
| `MEETING_RECAP` | MEETING_RECAP |
| `ACTIVE_DISCUSSION` | ACTIVE_DISCUSSION |
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |
17 changes: 13 additions & 4 deletions docs/models/ugctype.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```python
from glean.api_client.models import UgcType

value = UgcType.ANNOUNCEMENTS_TYPE
value = UgcType.AGENT_TYPE

# Open enum: unrecognized values are captured as UnrecognizedStr
```
Expand All @@ -15,10 +15,19 @@ value = UgcType.ANNOUNCEMENTS_TYPE

| Name | Value |
| ----------------------- | ----------------------- |
| `AGENT_TYPE` | AGENT_TYPE |
| `ANNOUNCEMENTS_TYPE` | ANNOUNCEMENTS_TYPE |
| `ANSWERS_TYPE` | ANSWERS_TYPE |
| `CHATS_TYPE` | CHATS_TYPE |
| `COLLECTIONS_TYPE` | COLLECTIONS_TYPE |
| `SHORTCUTS_TYPE` | SHORTCUTS_TYPE |
| `WORKFLOWS_TYPE` | WORKFLOWS_TYPE |
| `EMAIL_TYPE` | EMAIL_TYPE |
| `HTML_CODE_TYPE` | HTML_CODE_TYPE |
| `IMAGE_TYPE` | IMAGE_TYPE |
| `MESSAGE_TYPE` | MESSAGE_TYPE |
| `PAPER_TYPE` | PAPER_TYPE |
| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE |
| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE |
| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE |
| `SCRIBES_TYPE` | SCRIBES_TYPE |
| `SHORTCUTS_TYPE` | SHORTCUTS_TYPE |
| `SLIDE_TYPE` | SLIDE_TYPE |
| `WORKFLOWS_TYPE` | WORKFLOWS_TYPE |
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.12.10"
version = "0.12.11"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." },]
readme = "README-PYPI.md"
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-api-client"
__version__: str = "0.12.10"
__version__: str = "0.12.11"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.858.2"
__user_agent__: str = "speakeasy-sdk/python 0.12.10 2.858.2 0.9.0 glean-api-client"
__gen_version__: str = "2.865.2"
__user_agent__: str = "speakeasy-sdk/python 0.12.11 2.865.2 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
7 changes: 7 additions & 0 deletions src/glean/api_client/models/chatresponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations
from .chatmessage import ChatMessage, ChatMessageTypedDict
from .chatmetadata import ChatMetadata, ChatMetadataTypedDict
from glean.api_client.types import BaseModel, UNSET_SENTINEL
import pydantic
from pydantic import model_serializer
Expand All @@ -15,6 +16,8 @@ class ChatResponseTypedDict(TypedDict):
messages: NotRequired[List[ChatMessageTypedDict]]
chat_id: NotRequired[str]
r"""The id of the associated Chat the messages belong to, if one exists."""
chat: NotRequired[ChatMetadataTypedDict]
r"""Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content."""
follow_up_prompts: NotRequired[List[str]]
r"""Follow-up prompts for the user to potentially use"""
backend_time_millis: NotRequired[int]
Expand All @@ -31,6 +34,9 @@ class ChatResponse(BaseModel):
chat_id: Annotated[Optional[str], pydantic.Field(alias="chatId")] = None
r"""The id of the associated Chat the messages belong to, if one exists."""

chat: Optional[ChatMetadata] = None
r"""Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content."""

follow_up_prompts: Annotated[
Optional[List[str]], pydantic.Field(alias="followUpPrompts")
] = None
Expand All @@ -52,6 +58,7 @@ def serialize_model(self, handler):
[
"messages",
"chatId",
"chat",
"followUpPrompts",
"backendTimeMillis",
"chatSessionTrackingToken",
Expand Down
4 changes: 4 additions & 0 deletions src/glean/api_client/models/feedentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ class JustificationType(str, Enum, metaclass=utils.OpenEnumMeta):
STARTER_KIT_EXTENSION = "STARTER_KIT_EXTENSION"
STARTER_KIT_ORG_CHART = "STARTER_KIT_ORG_CHART"
STARTER_KIT_ADD_DOC = "STARTER_KIT_ADD_DOC"
MEETING_RECAP = "MEETING_RECAP"
ACTIVE_DISCUSSION = "ACTIVE_DISCUSSION"
MID_DAY_CATCH_UP = "MID_DAY_CATCH_UP"
QUERY_SUGGESTION = "QUERY_SUGGESTION"


class FeedEntryTypedDict(TypedDict):
Expand Down
6 changes: 6 additions & 0 deletions src/glean/api_client/models/feedrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ class FeedRequestCategory(str, Enum):
ZERO_STATE_WORKFLOW_SUGGESTION = "ZERO_STATE_WORKFLOW_SUGGESTION"
PERSONALIZED_CHAT_SUGGESTION = "PERSONALIZED_CHAT_SUGGESTION"
DAILY_DIGEST = "DAILY_DIGEST"
TASK = "TASK"
PLAN_MY_DAY = "PLAN_MY_DAY"
END_MY_DAY = "END_MY_DAY"
STARTER_KIT = "STARTER_KIT"
MID_DAY_CATCH_UP = "MID_DAY_CATCH_UP"
QUERY_SUGGESTION = "QUERY_SUGGESTION"


class FeedRequestTypedDict(TypedDict):
Expand Down
2 changes: 2 additions & 0 deletions src/glean/api_client/models/feedresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class FeedResultCategory(str, Enum, metaclass=utils.OpenEnumMeta):
PLAN_MY_DAY = "PLAN_MY_DAY"
END_MY_DAY = "END_MY_DAY"
STARTER_KIT = "STARTER_KIT"
MID_DAY_CATCH_UP = "MID_DAY_CATCH_UP"
QUERY_SUGGESTION = "QUERY_SUGGESTION"


class FeedResultTypedDict(TypedDict):
Expand Down
Loading
Loading