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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2,758 changes: 1,393 additions & 1,365 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.17.18
version: 0.17.19
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -87,13 +87,15 @@ python:
methodArguments: infer-optional-args
methodTimeoutArgument: timeout-ms
methodTimeoutUnits: milliseconds
modelSerializationMethods: false
moduleName: glean.api_client
multipartArrayFormat: standard
optionalDependencies: {}
outputModelSuffix: output
packageManager: poetry
packageName: glean-api-client
preApplyUnionDiscriminators: false
preserveUnknownFields: false
pytestFilterWarnings: []
pytestTimeout: 0
rawResponseHelpers: false
Expand Down
1,082 changes: 788 additions & 294 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159696,7 +159696,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"client":{"client_id":"<id>","display_name":"Janie_Von32","registration_type":"STATIC","grant_types":[],"redirect_uris":["<value 1>"],"is_active":false},"request_id":"<id>"}
{"client":{"client_id":"<id>","display_name":"Janie_Von32","registration_type":"STATIC","grant_types":[],"redirect_uris":["<value 1>"],"is_enabled":true},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: clients
x-speakeasy-test-rebuild: true
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.803.1
speakeasyVersion: 1.806.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:e0d6fab09b60a5caa02a27906e8f29a80d3544ef8a1418c923ebafa06ffc3dee
sourceBlobDigest: sha256:0f2bbe5dc4673e325c8bcbf3bf7343affc5c7a4a3a36f55d1fc4d1dd88de66c7
sourceRevisionDigest: sha256:0072aeaf5471534f446db601e5ea3099d52ab65b4ab4d1f08cd64bff665735fe
sourceBlobDigest: sha256:652d8c9d15de78b5546fd849fa432a6d3c43cacb3f31cd9d8c89f9d20093ab26
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:e0d6fab09b60a5caa02a27906e8f29a80d3544ef8a1418c923ebafa06ffc3dee
sourceBlobDigest: sha256:0f2bbe5dc4673e325c8bcbf3bf7343affc5c7a4a3a36f55d1fc4d1dd88de66c7
sourceRevisionDigest: sha256:0072aeaf5471534f446db601e5ea3099d52ab65b4ab4d1f08cd64bff665735fe
sourceBlobDigest: sha256:652d8c9d15de78b5546fd849fa432a6d3c43cacb3f31cd9d8c89f9d20093ab26
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:2c03e1592badb94d5c70fc3678d3becd1c647e74e041d183259a24911a958cb9
codeSamplesRevisionDigest: sha256:c92c8c9751a33528e6be47d9b893efd26b5d31edb33816edbb29a083c8c850fd
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create(messages=[
Expand Down Expand Up @@ -173,7 +173,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_async(messages=[
Expand Down Expand Up @@ -201,7 +201,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create_stream(messages=[
Expand Down Expand Up @@ -231,7 +231,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_stream_async(messages=[
Expand Down Expand Up @@ -269,7 +269,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand Down Expand Up @@ -639,10 +639,10 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.chat.create_stream(input="Summarize our parental leave policy as JSON.", store=True, text={
res = glean.chat.create_stream(input="Summarize our parental leave policy as JSON.", store=True, model="GPT5_6_LUNA", text={
"format_": {
"type": models.PlatformChatJSONSchemaFormatType.JSON_SCHEMA,
"name": "policy_summary",
Expand Down Expand Up @@ -693,7 +693,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.skills.create(file={
Expand All @@ -720,7 +720,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent",
Expand All @@ -740,7 +740,7 @@ import os

with Glean(
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand Down Expand Up @@ -856,7 +856,7 @@ import os
with Glean(
server_idx=0,
instance="instance-name",
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand All @@ -876,7 +876,7 @@ import os

with Glean(
server_url="https://instance-name-be.glean.com",
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.agents.search(name="HR Policy Agent")
Expand All @@ -895,7 +895,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.indexing.datasources.submit(datasource_instance="<value>", type_="<value>", request_body={
Expand Down Expand Up @@ -1018,18 +1018,20 @@ import os
def main():

with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:
# Rest of application here...
pass


# Or when using async:
async def amain():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:
# Rest of application here...
pass
```
<!-- End Resource Management [resource-management] -->

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1038,4 +1038,14 @@ Based on:
### Generated
- [python v0.17.18] .
### Releases
- [PyPI v0.17.18] https://pypi.org/project/glean-api-client/0.17.18 - .
- [PyPI v0.17.18] https://pypi.org/project/glean-api-client/0.17.18 - .

## 2026-11-04 05:08:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.806.0 (2.956.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.17.19] .
### Releases
- [PyPI v0.17.19] https://pypi.org/project/glean-api-client/0.17.19 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create(messages=[
Expand Down Expand Up @@ -36,7 +36,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_async(messages=[
Expand All @@ -62,7 +62,7 @@ import os


with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = glean.client.chat.create_stream(messages=[
Expand Down Expand Up @@ -92,7 +92,7 @@ import os
async def main():

async with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
api_token=os.getenv("GLEAN_API_TOKEN"),
) as glean:

res = await glean.client.chat.create_stream_async(messages=[
Expand Down
3 changes: 2 additions & 1 deletion docs/models/doccategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ value = DocCategory.UNCATEGORIZED
| `CALENDAR` | CALENDAR |
| `AGENTS` | AGENTS |
| `AI_CONVERSATION` | AI_CONVERSATION |
| `AI_ARTIFACT` | AI_ARTIFACT |
| `AI_ARTIFACT` | AI_ARTIFACT |
| `UGC_SKILL` | UGC_SKILL |
1 change: 1 addition & 0 deletions docs/models/feedrequestcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
| `PROJECT_FOCUS_BLOCK` | PROJECT_FOCUS_BLOCK |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
| `DEMO_CARD` | DEMO_CARD |
| `PERSONAL_AGENT_NUX` | PERSONAL_AGENT_NUX |
| `RESOLVE_MEETING_CONFLICT` | RESOLVE_MEETING_CONFLICT |
| `FINDING_MEETING_ROOM` | FINDING_MEETING_ROOM |
| `OOO_PLANNER` | OOO_PLANNER |
Expand Down
1 change: 1 addition & 0 deletions docs/models/feedresultcategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ value = FeedResultCategory.DOCUMENT_SUGGESTION
| `PROJECT_FOCUS_BLOCK` | PROJECT_FOCUS_BLOCK |
| `PROJECT_NEXT_STEP` | PROJECT_NEXT_STEP |
| `DEMO_CARD` | DEMO_CARD |
| `PERSONAL_AGENT_NUX` | PERSONAL_AGENT_NUX |
| `RESOLVE_MEETING_CONFLICT` | RESOLVE_MEETING_CONFLICT |
| `FINDING_MEETING_ROOM` | FINDING_MEETING_ROOM |
| `OOO_PLANNER` | OOO_PLANNER |
Expand Down
13 changes: 13 additions & 0 deletions docs/models/getchatpagination.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# GetChatPagination

Pagination cursors and page flags for a getchat message page.


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `start_cursor` | *Optional[str]* | :heavy_minus_sign: | Cursor of the first (oldest) returned message. Omitted for an empty page. |
| `end_cursor` | *Optional[str]* | :heavy_minus_sign: | Cursor of the last (newest) returned message. Omitted for an empty page. |
| `has_next_page` | *bool* | :heavy_check_mark: | Whether visible messages exist after endCursor in chronological order. |
| `has_previous_page` | *bool* | :heavy_check_mark: | Whether visible messages exist before startCursor in chronological order. |
12 changes: 9 additions & 3 deletions docs/models/getchatrequest.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# GetChatRequest

Retrieves a Chat. Omit pagination fields to return the full message history. When paginating, messages are returned in chronological order. Allowed combinations: last alone (latest page), last with before (older messages), first alone (earliest page), or first with after (newer messages). first and last are mutually exclusive; before and after are mutually exclusive; first cannot be combined with before; last cannot be combined with after.


## Fields

| Field | Type | Required | Description |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| `id` | *str* | :heavy_check_mark: | The id of the Chat to be retrieved. |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` | *str* | :heavy_check_mark: | The id of the Chat to be retrieved. |
| `first` | *Optional[int]* | :heavy_minus_sign: | Maximum number of messages to return from the start of the chat, or after the cursor when after is set. Pair with after for newer messages; alone returns the earliest messages. Mutually exclusive with last and before. |
| `after` | *Optional[str]* | :heavy_minus_sign: | An opaque message cursor from this chat. Returns messages strictly newer than this cursor. Pair with first. Mutually exclusive with before; cannot be combined with last. |
| `last` | *Optional[int]* | :heavy_minus_sign: | Maximum number of messages to return from the end of the chat, or before the cursor when before is set. Alone returns the latest messages; pair with before for older messages. Mutually exclusive with first and after. |
| `before` | *Optional[str]* | :heavy_minus_sign: | An opaque message cursor from this chat. Returns messages strictly older than this cursor. Pair with last. Mutually exclusive with after; cannot be combined with first. |
Loading
Loading