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
42 changes: 21 additions & 21 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: 3be52ee7a303bf39c41ccf8047c15000
docChecksum: 34cd4112e4c32279bed69c71c169040f
docVersion: 0.9.0
speakeasyVersion: 1.757.0
generationVersion: 2.866.0
releaseVersion: 0.12.13
configChecksum: 5de570f13d2b03d0e15e4e2d4a730a51
speakeasyVersion: 1.757.1
generationVersion: 2.866.2
releaseVersion: 0.12.14
configChecksum: 9101adbd96ff3027e03617cf0da0c24c
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
persistentEdits:
generation_id: c7ed3b67-3031-4979-99ca-61389b07d6f3
pristine_commit_hash: 200cb24aeba06bcde05bbbaedecfa83d4cf6fc42
pristine_tree_hash: 3a21f7179e55e97e6935296efc59fcc25e9a9b72
generation_id: c5b12447-adb2-4889-8afa-21659c2165ea
pristine_commit_hash: 1e2decd2b1ff4202b2d933dc682c3171bda7049a
pristine_tree_hash: 6a647f2d8f18d407db515f9a0bc7c8b25aad15c9
features:
python:
additionalDependencies: 1.0.0
Expand Down Expand Up @@ -2347,8 +2347,8 @@ trackedFiles:
pristine_git_object: 1c9f1f7a61215cbb3c04665585c956bd7a7d0b54
docs/models/timepoint.md:
id: f494f2342453
last_write_checksum: sha1:1ca2a2001008369af2cf9cc7b9dc0aa2f0df0927
pristine_git_object: ce76aa4f29610312035738601c00322a49297a97
last_write_checksum: sha1:6d90a970b179a9ca4cab7d43f037366125124d7b
pristine_git_object: e187bd0dead115985ce5cb20bfe3af3026b40880
docs/models/timerange.md:
id: 6866f2e2889a
last_write_checksum: sha1:91e09f4232153c0f8378809d09077223568988b4
Expand Down Expand Up @@ -2771,8 +2771,8 @@ trackedFiles:
pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:a4aecc36cd0be7b687dc1b7a2329c733f5758f73
pristine_git_object: 7bc3d229c87b5855c4a258006bd87329bbc65730
last_write_checksum: sha1:18a372ed7a9fcaba4a08e62b84063ca1704ba7fd
pristine_git_object: aea68fdb35c403f287520b73de0f161384a3b72a
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
Expand All @@ -2799,8 +2799,8 @@ trackedFiles:
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
src/glean/api_client/_version.py:
id: 0ce22b26136b
last_write_checksum: sha1:18c1b8b6f13bdbed1a4cbc1b4acf59e678c939b9
pristine_git_object: bd68179b68b295de5b8d3abe0ce4cf06b6528ff5
last_write_checksum: sha1:f531c1b9c58d5b8d58fa4569ea7c0733c97914d3
pristine_git_object: f186e92857305494dc28675dddba067eb67606d5
src/glean/api_client/agents.py:
id: b925701a9217
last_write_checksum: sha1:ee99ae3d58f7f77ac2eba99c104d04d53c16c09c
Expand Down Expand Up @@ -4747,8 +4747,8 @@ trackedFiles:
pristine_git_object: b9dc81f9a345f2d2bb564847a37c1df49df5ad5c
src/glean/api_client/models/timepoint.py:
id: a7733c748aad
last_write_checksum: sha1:3f62245e7d556bbfaf91016e7c2e9464ed1100c6
pristine_git_object: 66bac1cf115489de64e164a35a7de1f18a86a2b9
last_write_checksum: sha1:c20944d39d4f0e62eb1026c6763c1851d91735db
pristine_git_object: 64b09feaa92b4b0829e9c5a27567ae7936f98c49
src/glean/api_client/models/timerange.py:
id: 781aa895d3c7
last_write_checksum: sha1:01b81d6451d3f463730d7e5bd2ffaa9c4abb08f8
Expand Down Expand Up @@ -6094,7 +6094,7 @@ trackedFiles:
tests/mockserver/internal/sdk/models/components/timeinterval.go:
last_write_checksum: sha1:81705bb1ecaf99d821e06bab433ae8acb7f0a06f
tests/mockserver/internal/sdk/models/components/timepoint.go:
last_write_checksum: sha1:67f919859cc4a59b8fad0788eb53c825d84f3dd2
last_write_checksum: sha1:f8729435a86cb935d5af211ecbd5cf1f2ef9e28e
tests/mockserver/internal/sdk/models/components/timerange.go:
last_write_checksum: sha1:128b8dd617902f688dd9dec7a0c09ad9c2572415
tests/mockserver/internal/sdk/models/components/timerangefilter.go:
Expand Down Expand Up @@ -6567,8 +6567,8 @@ trackedFiles:
pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9
tests/test_messages.py:
id: be23089b1f8b
last_write_checksum: sha1:5db8087e85104ab50b362638150fa1f6686a3c30
pristine_git_object: c0fd29dab7d365ef9d78c0c291b925e6b9fd7298
last_write_checksum: sha1:2404e23964ef6a1f5ddc900402b34e597d2d9617
pristine_git_object: 132005ec7d1e35f805b6a8c28e07e043bce22f0a
tests/test_people.py:
id: 37c243940039
last_write_checksum: sha1:7c7268ffeebe48d81ed25e9b1cfc3a395abf5c1f
Expand All @@ -6591,8 +6591,8 @@ trackedFiles:
pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99
tests/test_summarize.py:
id: a255d8a6f627
last_write_checksum: sha1:4f50b660d414adea1d509dfc957eb74a12654ee4
pristine_git_object: 63b4eb8541c2b110dab6dda746fef9ac074611f1
last_write_checksum: sha1:0d48676ceee44c83f3d45fe057aad051747fe161
pristine_git_object: 5d5ff652e42e7799c18edd2064d53842ef85c577
tests/test_tools.py:
id: 70889bdf7321
last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995
Expand Down
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.13
version: 0.12.14
additionalDependencies:
dev: {}
main: {}
Expand Down
6 changes: 3 additions & 3 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: 1734098e8c292697aa81acbd73ade97b548b3ed8
x-source-commit-sha: b82cd7608fd801b317cf9df15ebfb73f83d9febc
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: d94e031ce5d7c5306a0f2f35f49b41733825cdb9
x-open-api-commit-sha: 0b2689b6010d15de5b45dc85490080ea14936ea6
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -5688,7 +5688,7 @@ components:
description: Epoch seconds. Has precedence over daysFromNow.
daysFromNow:
type: integer
description: The number of days from now. Specification relative to current time. Can be negative.
description: Number of days in the past, relative to the current date.
Period:
properties:
minDaysFromNow:
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.757.0
speakeasyVersion: 1.757.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:e1c9ddcaf1a9bb21ceabaae271714d5d910c99d4ee10f942035a063dd9f5eb4d
sourceBlobDigest: sha256:14cbe7c2990577df3b121ee1cb3d437dcbbe1bc701e78f73305f40857c33b950
sourceRevisionDigest: sha256:cd1b70d6a8034c274c2032fa245dc1f410d81cba955c6954a85f47f8e64d6f2f
sourceBlobDigest: sha256:82d37f119622340b0c9d7352ac8a90c2df320b24c8e49c396d6531f9fe2b890b
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:e1c9ddcaf1a9bb21ceabaae271714d5d910c99d4ee10f942035a063dd9f5eb4d
sourceBlobDigest: sha256:14cbe7c2990577df3b121ee1cb3d437dcbbe1bc701e78f73305f40857c33b950
sourceRevisionDigest: sha256:cd1b70d6a8034c274c2032fa245dc1f410d81cba955c6954a85f47f8e64d6f2f
sourceBlobDigest: sha256:82d37f119622340b0c9d7352ac8a90c2df320b24c8e49c396d6531f9fe2b890b
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:c8e7e8527cbdd99d403e95130e80daa0c4abac7c78e3da3204ecdd67226b3289
codeSamplesRevisionDigest: sha256:7a291d2a4b8025032ea44dba8d459ea5bf19f8bb4d96efb84902d9ae31053a3d
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 @@ -638,4 +638,14 @@ Based on:
### Generated
- [python v0.12.13] .
### Releases
- [PyPI v0.12.13] https://pypi.org/project/glean-api-client/0.12.13 - .
- [PyPI v0.12.13] https://pypi.org/project/glean-api-client/0.12.13 - .

## 2026-03-19 14:04:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.757.1 (2.866.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.14] .
### Releases
- [PyPI v0.12.14] https://pypi.org/project/glean-api-client/0.12.14 - .
8 changes: 4 additions & 4 deletions docs/models/timepoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `epoch_seconds` | *Optional[int]* | :heavy_minus_sign: | Epoch seconds. Has precedence over daysFromNow. |
| `days_from_now` | *Optional[int]* | :heavy_minus_sign: | The number of days from now. Specification relative to current time. Can be negative. |
| Field | Type | Required | Description |
| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
| `epoch_seconds` | *Optional[int]* | :heavy_minus_sign: | Epoch seconds. Has precedence over daysFromNow. |
| `days_from_now` | *Optional[int]* | :heavy_minus_sign: | Number of days in the past, relative to the current date. |
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.13"
version = "0.12.14"
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.13"
__version__: str = "0.12.14"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.866.0"
__user_agent__: str = "speakeasy-sdk/python 0.12.13 2.866.0 0.9.0 glean-api-client"
__gen_version__: str = "2.866.2"
__user_agent__: str = "speakeasy-sdk/python 0.12.14 2.866.2 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/glean/api_client/models/timepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class TimePointTypedDict(TypedDict):
epoch_seconds: NotRequired[int]
r"""Epoch seconds. Has precedence over daysFromNow."""
days_from_now: NotRequired[int]
r"""The number of days from now. Specification relative to current time. Can be negative."""
r"""Number of days in the past, relative to the current date."""


class TimePoint(BaseModel):
epoch_seconds: Annotated[Optional[int], pydantic.Field(alias="epochSeconds")] = None
r"""Epoch seconds. Has precedence over daysFromNow."""

days_from_now: Annotated[Optional[int], pydantic.Field(alias="daysFromNow")] = None
r"""The number of days from now. Specification relative to current time. Can be negative."""
r"""Number of days in the past, relative to the current date."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
Expand Down

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.SLACK,
datasource=models.Datasource.FACEBOOKWORKPLACE,
timestamp_millis=558834,
)
assert res is not None
7 changes: 4 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,11 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
"url": "https://dim-glider.com/",
"ugc_type": models.DocumentSpecUgcType2.ANNOUNCEMENTS,
"ugc_id": "<id>",
},
{
"id": "<id>",
"url": "https://potable-pine.org",
},
]
)
Expand Down
Loading