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
108 changes: 54 additions & 54 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.18
version: 0.12.19
additionalDependencies:
dev: {}
main: {}
Expand Down
37 changes: 34 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: 0962a428c0094dd8c0a2c12b828a1ee04b69ef00
x-source-commit-sha: 1d7c9fce4b503a2cb087ac91ad02744ad676c97c
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: da0ed02e776d66daccdd2defaabb872cd5b9cee4
x-open-api-commit-sha: 6091976de1f81034d18ec7d40802b66d34df089a
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -3459,7 +3459,7 @@ paths:
/api/index/v1/bulkindexshortcuts:
post:
summary: Bulk index external shortcuts
description: Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page.
description: Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://docs.glean.com/user-guide/knowledge/go-links/how-go-links-work) page.
tags:
- Shortcuts
security:
Expand Down Expand Up @@ -4917,6 +4917,7 @@ components:
enum:
- ANNOUNCEMENTS
- ANSWERS
- ARTIFACTS
- COLLECTIONS
- SHORTCUTS
- CHATS
Expand Down Expand Up @@ -6495,6 +6496,23 @@ components:
- TICKET
- TRANSCRIPT
- WITH
x-enum-varnames:
- ATTACHMENT
- CANONICAL
- CASE
- CONTACT_LOWERCASE
- CONTACT
- CONVERSATION_MESSAGES
- EXPERT
- FROM
- HIGHLIGHT
- OPPORTUNITY_LOWERCASE
- OPPORTUNITY
- RECENT
- SOURCE
- TICKET
- TRANSCRIPT
- WITH
x-enumDescriptions:
CANONICAL: Canonical documents for the entity, such as overview docs, architecture docs elastic.
x-speakeasy-enum-descriptions:
Expand Down Expand Up @@ -10134,6 +10152,10 @@ components:
- MID_DAY_CATCH_UP
- QUERY_SUGGESTION
- WEEKLY_MEETINGS
- FOLLOW_UP
- MILESTONE_TIMELINE_CHECK
- PROJECT_DISCUSSION_DIGEST
- PROJECT_NEXT_STEP
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
requestOptions:
$ref: "#/components/schemas/FeedRequestOptions"
Expand Down Expand Up @@ -10465,6 +10487,7 @@ components:
- PAPER_TYPE
- PRISM_VIEWS_TYPE
- PROMPT_TEMPLATES_TYPE
- PINS_TYPE
- SCRIBES_TYPE
- SHORTCUTS_TYPE
- SLIDE_TYPE
Expand Down Expand Up @@ -10635,6 +10658,10 @@ components:
- MID_DAY_CATCH_UP
- QUERY_SUGGESTION
- WEEKLY_MEETINGS
- FOLLOW_UP
- MILESTONE_TIMELINE_CHECK
- PROJECT_DISCUSSION_DIGEST
- PROJECT_NEXT_STEP
description: Type of the justification.
justification:
type: string
Expand Down Expand Up @@ -10714,6 +10741,10 @@ components:
- MID_DAY_CATCH_UP
- QUERY_SUGGESTION
- WEEKLY_MEETINGS
- FOLLOW_UP
- MILESTONE_TIMELINE_CHECK
- PROJECT_DISCUSSION_DIGEST
- PROJECT_NEXT_STEP
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.759.3
speakeasyVersion: 1.761.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1734cb8cc2eedc7ba5751830b3f320257a058953130ab965ef482396b82dbf7f
sourceBlobDigest: sha256:996519bf46dc22d2b818df15645ba6f843a3879cc8410561f5983fab6bb99f6f
sourceRevisionDigest: sha256:52aa61e876f0353862e2fc6322d35ed8c61b895083a1c0ce0f679582d72376c4
sourceBlobDigest: sha256:65201900855c6beeca4292f578c3ee678f7278fa86372f981c2e692248f80bee
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1734cb8cc2eedc7ba5751830b3f320257a058953130ab965ef482396b82dbf7f
sourceBlobDigest: sha256:996519bf46dc22d2b818df15645ba6f843a3879cc8410561f5983fab6bb99f6f
sourceRevisionDigest: sha256:52aa61e876f0353862e2fc6322d35ed8c61b895083a1c0ce0f679582d72376c4
sourceBlobDigest: sha256:65201900855c6beeca4292f578c3ee678f7278fa86372f981c2e692248f80bee
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:c955fa0218781c3e4fc1d95d0fa51ae5051cd077ff1730432ded1238b9a40532
codeSamplesRevisionDigest: sha256:97795efcbae3db6986718ffba511ae7bc145269ba1f5012d30d69bc48b6e5772
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 @@ -688,4 +688,14 @@ Based on:
### Generated
- [python v0.12.18] .
### Releases
- [PyPI v0.12.18] https://pypi.org/project/glean-api-client/0.12.18 - .
- [PyPI v0.12.18] https://pypi.org/project/glean-api-client/0.12.18 - .

## 2026-04-04 02:22:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.19] .
### Releases
- [PyPI v0.12.19] https://pypi.org/project/glean-api-client/0.12.19 - .
1 change: 1 addition & 0 deletions docs/models/documentspecugctype2.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ value = DocumentSpecUgcType2.ANNOUNCEMENTS
| --------------- | --------------- |
| `ANNOUNCEMENTS` | ANNOUNCEMENTS |
| `ANSWERS` | ANSWERS |
| `ARTIFACTS` | ARTIFACTS |
| `COLLECTIONS` | COLLECTIONS |
| `SHORTCUTS` | SHORTCUTS |
| `CHATS` | CHATS |
6 changes: 5 additions & 1 deletion docs/models/feedrequestcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
| `STARTER_KIT` | STARTER_KIT |
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |
| `WEEKLY_MEETINGS` | WEEKLY_MEETINGS |
| `WEEKLY_MEETINGS` | WEEKLY_MEETINGS |
| `FOLLOW_UP` | FOLLOW_UP |
| `MILESTONE_TIMELINE_CHECK` | MILESTONE_TIMELINE_CHECK |
| `PROJECT_DISCUSSION_DIGEST` | PROJECT_DISCUSSION_DIGEST |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
6 changes: 5 additions & 1 deletion docs/models/feedresultcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ value = FeedResultCategory.DOCUMENT_SUGGESTION
| `STARTER_KIT` | STARTER_KIT |
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |
| `WEEKLY_MEETINGS` | WEEKLY_MEETINGS |
| `WEEKLY_MEETINGS` | WEEKLY_MEETINGS |
| `FOLLOW_UP` | FOLLOW_UP |
| `MILESTONE_TIMELINE_CHECK` | MILESTONE_TIMELINE_CHECK |
| `PROJECT_DISCUSSION_DIGEST` | PROJECT_DISCUSSION_DIGEST |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
6 changes: 5 additions & 1 deletion docs/models/justificationtype.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@ value = JustificationType.FREQUENTLY_ACCESSED
| `ACTIVE_DISCUSSION` | ACTIVE_DISCUSSION |
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |
| `WEEKLY_MEETINGS` | WEEKLY_MEETINGS |
| `WEEKLY_MEETINGS` | WEEKLY_MEETINGS |
| `FOLLOW_UP` | FOLLOW_UP |
| `MILESTONE_TIMELINE_CHECK` | MILESTONE_TIMELINE_CHECK |
| `PROJECT_DISCUSSION_DIGEST` | PROJECT_DISCUSSION_DIGEST |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
1 change: 1 addition & 0 deletions docs/models/ugctype.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ value = UgcType.AGENT_TYPE
| `PAPER_TYPE` | PAPER_TYPE |
| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE |
| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE |
| `PINS_TYPE` | PINS_TYPE |
| `SCRIBES_TYPE` | SCRIBES_TYPE |
| `SHORTCUTS_TYPE` | SHORTCUTS_TYPE |
| `SLIDE_TYPE` | SLIDE_TYPE |
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/indexingshortcuts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## bulk_index

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page.
Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://docs.glean.com/user-guide/knowledge/go-links/how-go-links-work) page.

### Example Usage

Expand Down
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.18"
version = "0.12.19"
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.18"
__version__: str = "0.12.19"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.869.25"
__user_agent__: str = "speakeasy-sdk/python 0.12.18 2.869.25 0.9.0 glean-api-client"
__gen_version__: str = "2.879.6"
__user_agent__: str = "speakeasy-sdk/python 0.12.19 2.879.6 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
9 changes: 8 additions & 1 deletion src/glean/api_client/basesdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _build_request_async(
url_override: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
allow_empty_value: Optional[List[str]] = None,
allowed_fields: Optional[List[str]] = None,
) -> httpx.Request:
client = self.sdk_configuration.async_client
return self._build_request_with_client(
Expand All @@ -87,6 +88,7 @@ def _build_request_async(
url_override,
http_headers,
allow_empty_value,
allowed_fields,
)

def _build_request(
Expand All @@ -110,6 +112,7 @@ def _build_request(
url_override: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
allow_empty_value: Optional[List[str]] = None,
allowed_fields: Optional[List[str]] = None,
) -> httpx.Request:
client = self.sdk_configuration.client
return self._build_request_with_client(
Expand All @@ -131,6 +134,7 @@ def _build_request(
url_override,
http_headers,
allow_empty_value,
allowed_fields,
)

def _build_request_with_client(
Expand All @@ -155,6 +159,7 @@ def _build_request_with_client(
url_override: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
allow_empty_value: Optional[List[str]] = None,
allowed_fields: Optional[List[str]] = None,
) -> httpx.Request:
query_params = {}

Expand Down Expand Up @@ -188,7 +193,9 @@ def _build_request_with_client(
security = security()
security = utils.get_security_from_env(security, models.Security)
if security is not None:
security_headers, security_query_params = utils.get_security(security)
security_headers, security_query_params = utils.get_security(
security, allowed_fields
)
headers = {**headers, **security_headers}
query_params = {**query_params, **security_query_params}

Expand Down
4 changes: 2 additions & 2 deletions src/glean/api_client/indexing_shortcuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def bulk_index(
):
r"""Bulk index external shortcuts

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page.
Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://docs.glean.com/user-guide/knowledge/go-links/how-go-links-work) page.

:param upload_id: Unique id that must be used for this bulk upload instance
:param shortcuts: Batch of shortcuts information
Expand Down Expand Up @@ -129,7 +129,7 @@ async def bulk_index_async(
):
r"""Bulk index external shortcuts

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page.
Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://docs.glean.com/user-guide/knowledge/go-links/how-go-links-work) page.

:param upload_id: Unique id that must be used for this bulk upload instance
:param shortcuts: Batch of shortcuts information
Expand Down
1 change: 1 addition & 0 deletions src/glean/api_client/models/documentspec_union.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class DocumentSpecUgcType2(str, Enum, metaclass=utils.OpenEnumMeta):

ANNOUNCEMENTS = "ANNOUNCEMENTS"
ANSWERS = "ANSWERS"
ARTIFACTS = "ARTIFACTS"
COLLECTIONS = "COLLECTIONS"
SHORTCUTS = "SHORTCUTS"
CHATS = "CHATS"
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 @@ -115,6 +115,10 @@ class JustificationType(str, Enum, metaclass=utils.OpenEnumMeta):
MID_DAY_CATCH_UP = "MID_DAY_CATCH_UP"
QUERY_SUGGESTION = "QUERY_SUGGESTION"
WEEKLY_MEETINGS = "WEEKLY_MEETINGS"
FOLLOW_UP = "FOLLOW_UP"
MILESTONE_TIMELINE_CHECK = "MILESTONE_TIMELINE_CHECK"
PROJECT_DISCUSSION_DIGEST = "PROJECT_DISCUSSION_DIGEST"
PROJECT_NEXT_STEP = "PROJECT_NEXT_STEP"


class FeedEntryTypedDict(TypedDict):
Expand Down
4 changes: 4 additions & 0 deletions src/glean/api_client/models/feedrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class FeedRequestCategory(str, Enum):
MID_DAY_CATCH_UP = "MID_DAY_CATCH_UP"
QUERY_SUGGESTION = "QUERY_SUGGESTION"
WEEKLY_MEETINGS = "WEEKLY_MEETINGS"
FOLLOW_UP = "FOLLOW_UP"
MILESTONE_TIMELINE_CHECK = "MILESTONE_TIMELINE_CHECK"
PROJECT_DISCUSSION_DIGEST = "PROJECT_DISCUSSION_DIGEST"
PROJECT_NEXT_STEP = "PROJECT_NEXT_STEP"


class FeedRequestTypedDict(TypedDict):
Expand Down
4 changes: 4 additions & 0 deletions src/glean/api_client/models/feedresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class FeedResultCategory(str, Enum, metaclass=utils.OpenEnumMeta):
MID_DAY_CATCH_UP = "MID_DAY_CATCH_UP"
QUERY_SUGGESTION = "QUERY_SUGGESTION"
WEEKLY_MEETINGS = "WEEKLY_MEETINGS"
FOLLOW_UP = "FOLLOW_UP"
MILESTONE_TIMELINE_CHECK = "MILESTONE_TIMELINE_CHECK"
PROJECT_DISCUSSION_DIGEST = "PROJECT_DISCUSSION_DIGEST"
PROJECT_NEXT_STEP = "PROJECT_NEXT_STEP"


class FeedResultTypedDict(TypedDict):
Expand Down
1 change: 1 addition & 0 deletions src/glean/api_client/models/ugctype.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class UgcType(str, Enum, metaclass=utils.OpenEnumMeta):
PAPER_TYPE = "PAPER_TYPE"
PRISM_VIEWS_TYPE = "PRISM_VIEWS_TYPE"
PROMPT_TEMPLATES_TYPE = "PROMPT_TEMPLATES_TYPE"
PINS_TYPE = "PINS_TYPE"
SCRIBES_TYPE = "SCRIBES_TYPE"
SHORTCUTS_TYPE = "SHORTCUTS_TYPE"
SLIDE_TYPE = "SLIDE_TYPE"
Expand Down
1 change: 1 addition & 0 deletions src/glean/api_client/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class SecurityMetadata:
scheme_type: Optional[str] = None
sub_type: Optional[str] = None
field_name: Optional[str] = None
composite: bool = False

def get_field_name(self, default: str) -> str:
return self.field_name or default
Expand Down
Loading
Loading