diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index b32b6a68..5654fc60 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: 2dcefd4e1803d98e97ba5e2c1b4b7b06
+ docChecksum: 648d674fdd05aad794f8dd9965d820b5
docVersion: 0.9.0
speakeasyVersion: 1.650.0
generationVersion: 2.743.2
- releaseVersion: 0.11.12
- configChecksum: 7941039f0518afe3bb105c684232260d
+ releaseVersion: 0.11.14
+ configChecksum: ceccdd78049847212e98f17e1f761752
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 1bc5e635..350797d3 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -30,7 +30,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
- version: 0.11.12
+ version: 0.11.14
additionalDependencies:
dev: {}
main: {}
diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml
index 9c580dd5..e9d8fb95 100644
--- a/.speakeasy/glean-merged-spec.yaml
+++ b/.speakeasy/glean-merged-spec.yaml
@@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
- x-source-commit-sha: 8f565e6072898e4f6fca86fa97978efc4ea33975
+ x-source-commit-sha: 3c1d4f5f7b2de021e7e5ab5dff962254c16aa5db
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.
@@ -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: 82065b6c142bd74beb1f8c2e670ac7dd81e45ebd
+ x-open-api-commit-sha: b20a53af8a9aee1fd48c351fe14b4b12c8eefd12
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
@@ -11240,7 +11240,8 @@ components:
The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**'
id:
type: string
- description: The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length.
+ description: |
+ The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025
summary:
$ref: "#/components/schemas/ContentDefinition"
body:
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 61448b9a..ec305e05 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -2,11 +2,11 @@ speakeasyVersion: 1.650.0
sources:
Glean API:
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:fd35d47c584495c0f29e30f502ee3f6bde461142a6d2bb69c0822440494c1d41
- sourceBlobDigest: sha256:de7302488181d96aed6b8d230db6667f83ec481bf6c1c5295778c358a32ebb68
+ sourceRevisionDigest: sha256:32fce82d031f7f53e3ac040caae0f7ff32686e08ab3ed5291b710a6a4cc19e97
+ sourceBlobDigest: sha256:1161e7578cd01452b8aa987120ec26127f910ccff14897b24601c9f78a1e44d0
tags:
- latest
- - speakeasy-sdk-regen-1763156875
+ - speakeasy-sdk-regen-1763167768
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:fd35d47c584495c0f29e30f502ee3f6bde461142a6d2bb69c0822440494c1d41
- sourceBlobDigest: sha256:de7302488181d96aed6b8d230db6667f83ec481bf6c1c5295778c358a32ebb68
+ sourceRevisionDigest: sha256:32fce82d031f7f53e3ac040caae0f7ff32686e08ab3ed5291b710a6a4cc19e97
+ sourceBlobDigest: sha256:1161e7578cd01452b8aa987120ec26127f910ccff14897b24601c9f78a1e44d0
codeSamplesNamespace: glean-api-specs-python-code-samples
- codeSamplesRevisionDigest: sha256:9a224cc91f138da2d105f51f3996008ae0bc5c34a4276b0aa4cabd1f6a57c28d
+ codeSamplesRevisionDigest: sha256:b3fef6598b035770b97aec02d552dcc779a69b61bee9d07e0943d125588eaa14
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index 3a489ad9..eff6c7d9 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -398,4 +398,14 @@ Based on:
### Generated
- [python v0.11.12] .
### Releases
-- [PyPI v0.11.12] https://pypi.org/project/glean/0.11.12 - .
\ No newline at end of file
+- [PyPI v0.11.12] https://pypi.org/project/glean/0.11.12 - .
+
+## 2025-11-17 11:23:35
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v0.11.14] .
+### Releases
+- [PyPI v0.11.14] https://pypi.org/project/glean/0.11.14 - .
\ No newline at end of file
diff --git a/docs/models/documentdefinition.md b/docs/models/documentdefinition.md
index 054c6871..497f8be3 100644
--- a/docs/models/documentdefinition.md
+++ b/docs/models/documentdefinition.md
@@ -15,7 +15,7 @@ Indexable document structure
| `datasource` | *str* | :heavy_check_mark: | N/A |
| `object_type` | *Optional[str]* | :heavy_minus_sign: | The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ |
| `view_url` | *Optional[str]* | :heavy_minus_sign: | The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**'
|
-| `id` | *Optional[str]* | :heavy_minus_sign: | The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. |
+| `id` | *Optional[str]* | :heavy_minus_sign: | The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025
|
| `summary` | [Optional[models.ContentDefinition]](../models/contentdefinition.md) | :heavy_minus_sign: | Describes text content or base64 encoded binary content |
| `body` | [Optional[models.ContentDefinition]](../models/contentdefinition.md) | :heavy_minus_sign: | Describes text content or base64 encoded binary content |
| `author` | [Optional[models.UserReferenceDefinition]](../models/userreferencedefinition.md) | :heavy_minus_sign: | Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. |
diff --git a/pyproject.toml b/pyproject.toml
index 7e84ca71..3402c23a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "glean-api-client"
-version = "0.11.12"
+version = "0.11.14"
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 084469ea..becaf6b4 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.12"
+__version__: str = "0.11.14"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.743.2"
-__user_agent__: str = "speakeasy-sdk/python 0.11.12 2.743.2 0.9.0 glean"
+__user_agent__: str = "speakeasy-sdk/python 0.11.14 2.743.2 0.9.0 glean"
try:
if __package__ is not None:
diff --git a/src/glean/api_client/models/documentdefinition.py b/src/glean/api_client/models/documentdefinition.py
index 65450e74..0bb465bc 100644
--- a/src/glean/api_client/models/documentdefinition.py
+++ b/src/glean/api_client/models/documentdefinition.py
@@ -43,7 +43,9 @@ class DocumentDefinitionTypedDict(TypedDict):
"""
id: NotRequired[str]
- r"""The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length."""
+ r"""The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025
+
+ """
summary: NotRequired[ContentDefinitionTypedDict]
r"""Describes text content or base64 encoded binary content"""
body: NotRequired[ContentDefinitionTypedDict]
@@ -106,7 +108,9 @@ class DocumentDefinition(BaseModel):
"""
id: Optional[str] = None
- r"""The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length."""
+ r"""The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025
+
+ """
summary: Optional[ContentDefinition] = None
r"""Describes text content or base64 encoded binary content"""
diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go
index 371b9023..5c99a0ad 100644
--- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go
+++ b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go
@@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
operations.ResponseBody2{
Collection: &components.Collection{
Name: "",
- Description: "whole busily jive hawk gee basic minus hence",
+ Description: "motionless whenever paintwork import over cuckoo",
AddedRoles: []components.UserRoleSpecification{
components.UserRoleSpecification{
Person: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
},
- Role: components.UserRoleAnswerModerator,
+ Role: components.UserRoleOwner,
},
},
RemovedRoles: []components.UserRoleSpecification{
@@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ID: 158969,
+ ID: 363711,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
Items: []components.CollectionItem{
components.CollectionItem{
- CollectionID: 110375,
+ CollectionID: 570197,
CreatedBy: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -266,13 +266,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
Name: "George Clooney",
ObfuscatedID: "abc123",
},
- Role: components.UserRoleEditor,
+ Role: components.UserRoleAnswerModerator,
},
},
},
Collection: &components.Collection{
Name: "",
- Description: "wedge colorfully orientate rally",
+ Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do",
AudienceFilters: []components.FacetFilter{
components.FacetFilter{
FieldName: types.String("type"),
@@ -288,7 +288,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ID: 131797,
+ ID: 643990,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
Children: []components.Collection{
components.Collection{
Name: "",
- Description: "outside yippee sidetrack mature regularly mouser inject worth",
+ Description: "woot purse salty even as advanced",
AudienceFilters: []components.FacetFilter{
components.FacetFilter{
FieldName: types.String("type"),
@@ -316,7 +316,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ID: 149448,
+ ID: 359978,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ItemType: components.CollectionItemItemTypeCollection,
+ ItemType: components.CollectionItemItemTypeURL,
},
},
},
diff --git a/tests/mockserver/internal/sdk/models/components/documentdefinition.go b/tests/mockserver/internal/sdk/models/components/documentdefinition.go
index b0bbd077..beac1f1c 100644
--- a/tests/mockserver/internal/sdk/models/components/documentdefinition.go
+++ b/tests/mockserver/internal/sdk/models/components/documentdefinition.go
@@ -20,7 +20,8 @@ type DocumentDefinition struct {
// The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**'
//
ViewURL *string `json:"viewURL,omitempty"`
- // The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length.
+ // The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025
+ //
ID *string `json:"id,omitempty"`
// Describes text content or base64 encoded binary content
Summary *ContentDefinition `json:"summary,omitempty"`
diff --git a/tests/test_summarize.py b/tests/test_summarize.py
index 63b4eb85..cac8e978 100644
--- a/tests/test_summarize.py
+++ b/tests/test_summarize.py
@@ -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
@@ -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": "",
+ "ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
+ "content_id": 602763,
},
]
)