Skip to content

Commit 2b2fdfe

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.723.0
1 parent 128c3ef commit 2b2fdfe

File tree

120 files changed

+1453
-449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1453
-449
lines changed

.speakeasy/gen.lock

Lines changed: 233 additions & 236 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ generation:
1717
securityFeb2025: true
1818
sharedErrorComponentsApr2025: true
1919
sharedNestedComponentsJan2026: false
20+
nameOverrideFeb2026: false
2021
auth:
2122
oAuth2ClientCredentialsEnabled: false
2223
oAuth2PasswordEnabled: false
@@ -33,7 +34,7 @@ generation:
3334
generateNewTests: true
3435
skipResponseBodyAssertions: true
3536
python:
36-
version: 0.12.8
37+
version: 0.12.9
3738
additionalDependencies:
3839
dev: {}
3940
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: 56c08697ca3b6869022a262114e61f1385914425
5+
x-source-commit-sha: 8554e632c3cffe30402ae999e7076b66552cda6d
66
description: |
77
# Introduction
88
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.
@@ -22,7 +22,7 @@ info:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: daa8736a6f0763faffd2c1079da8a42345536ed7
25+
x-open-api-commit-sha: 169bc76bf299fac421d382d74229a29ff498dd1d
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.722.7
1+
speakeasyVersion: 1.723.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
6-
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
5+
sourceRevisionDigest: sha256:30f5531923a821554a72e0119cb17c20961f678ae296d69d8b727aad7649807f
6+
sourceBlobDigest: sha256:05026f80d8c1d95fdd6c04988987a17bbd2f4e3656e7f05026a88961a158b4e3
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771525162
9+
- speakeasy-sdk-regen-1771639536
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
21-
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
20+
sourceRevisionDigest: sha256:30f5531923a821554a72e0119cb17c20961f678ae296d69d8b727aad7649807f
21+
sourceBlobDigest: sha256:05026f80d8c1d95fdd6c04988987a17bbd2f4e3656e7f05026a88961a158b4e3
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:07c1eebc0272335ffeb2b98c0b094c73bfefcf74858173515c00c683b16702f6
23+
codeSamplesRevisionDigest: sha256:c1f1f0ae5b17ac431db51035244955b0d0e299f6e6c33730e3a430f91385ad20
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,4 +588,14 @@ Based on:
588588
### Generated
589589
- [python v0.12.8] .
590590
### Releases
591-
- [PyPI v0.12.8] https://pypi.org/project/glean-api-client/0.12.8 - .
591+
- [PyPI v0.12.8] https://pypi.org/project/glean-api-client/0.12.8 - .
592+
593+
## 2026-02-22 02:22:27
594+
### Changes
595+
Based on:
596+
- OpenAPI Doc
597+
- Speakeasy CLI 1.723.0 (2.835.2) https://github.com/speakeasy-api/speakeasy
598+
### Generated
599+
- [python v0.12.9] .
600+
### Releases
601+
- [PyPI v0.12.9] https://pypi.org/project/glean-api-client/0.12.9 - .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "glean-api-client"
4-
version = "0.12.8"
4+
version = "0.12.9"
55
description = "Python Client SDK Generated by Speakeasy."
66
authors = [{ name = "Glean Technologies, Inc." },]
77
readme = "README-PYPI.md"

src/glean/api_client/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "glean-api-client"
6-
__version__: str = "0.12.8"
6+
__version__: str = "0.12.9"
77
__openapi_doc_version__: str = "0.9.0"
8-
__gen_version__: str = "2.832.9"
9-
__user_agent__: str = "speakeasy-sdk/python 0.12.8 2.832.9 0.9.0 glean-api-client"
8+
__gen_version__: str = "2.835.2"
9+
__user_agent__: str = "speakeasy-sdk/python 0.12.9 2.835.2 0.9.0 glean-api-client"
1010

1111
try:
1212
if __package__ is not None:

src/glean/api_client/models/agentconfig.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
from __future__ import annotations
44
from .toolsets import ToolSets, ToolSetsTypedDict
55
from enum import Enum
6+
from glean.api_client import models, utils
67
from glean.api_client.types import BaseModel, UNSET_SENTINEL
78
import pydantic
8-
from pydantic import model_serializer
9+
from pydantic import field_serializer, model_serializer
910
from typing import Optional
1011
from typing_extensions import Annotated, NotRequired, TypedDict
1112

1213

13-
class AgentEnum(str, Enum):
14+
class AgentEnum(str, Enum, metaclass=utils.OpenEnumMeta):
1415
r"""Name of the agent."""
1516

1617
# Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values
@@ -27,7 +28,7 @@ class AgentEnum(str, Enum):
2728
AUTO = "AUTO"
2829

2930

30-
class Mode(str, Enum):
31+
class Mode(str, Enum, metaclass=utils.OpenEnumMeta):
3132
r"""Top level modes to run GleanChat in."""
3233

3334
# Used if no mode supplied.
@@ -66,6 +67,24 @@ class AgentConfig(BaseModel):
6667
] = None
6768
r"""Whether the agent should create an image."""
6869

70+
@field_serializer("agent")
71+
def serialize_agent(self, value):
72+
if isinstance(value, str):
73+
try:
74+
return models.AgentEnum(value)
75+
except ValueError:
76+
return value
77+
return value
78+
79+
@field_serializer("mode")
80+
def serialize_mode(self, value):
81+
if isinstance(value, str):
82+
try:
83+
return models.Mode(value)
84+
except ValueError:
85+
return value
86+
return value
87+
6988
@model_serializer(mode="wrap")
7089
def serialize_model(self, handler):
7190
optional_fields = set(["agent", "toolSets", "mode", "useImageGeneration"])

src/glean/api_client/models/agentexecutionstatus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
from __future__ import annotations
44
from enum import Enum
5+
from glean.api_client import utils
56

67

7-
class AgentExecutionStatus(str, Enum):
8+
class AgentExecutionStatus(str, Enum, metaclass=utils.OpenEnumMeta):
89
r"""The status of the run. One of 'error', 'success'."""
910

1011
ERROR = "error"

src/glean/api_client/models/agentrun.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from __future__ import annotations
44
from .agentexecutionstatus import AgentExecutionStatus
55
from .message import Message, MessageTypedDict
6+
from glean.api_client import models
67
from glean.api_client.types import BaseModel, UNSET_SENTINEL
7-
from pydantic import model_serializer
8+
from pydantic import field_serializer, model_serializer
89
from typing import Any, Dict, List, Optional
910
from typing_extensions import NotRequired, TypedDict
1011

@@ -42,6 +43,15 @@ class AgentRun(BaseModel):
4243
status: Optional[AgentExecutionStatus] = None
4344
r"""The status of the run. One of 'error', 'success'."""
4445

46+
@field_serializer("status")
47+
def serialize_status(self, value):
48+
if isinstance(value, str):
49+
try:
50+
return models.AgentExecutionStatus(value)
51+
except ValueError:
52+
return value
53+
return value
54+
4555
@model_serializer(mode="wrap")
4656
def serialize_model(self, handler):
4757
optional_fields = set(["input", "messages", "metadata", "status"])

0 commit comments

Comments
 (0)