Skip to content
Closed
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,972 changes: 1,613 additions & 1,359 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,457 changes: 1,167 additions & 290 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

55 changes: 54 additions & 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 Expand Up @@ -159751,3 +159751,56 @@ workflows:
type: simple
x-speakeasy-test-group: users
x-speakeasy-test-rebuild: true
- workflowId: platform-documents-get-by-url
steps:
- stepId: test
operationId: platform-documents-get-by-url
parameters:
- name: url
in: query
value: '{url}'
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"document":{"document_id":"<id>","url":"https://exotic-typewriter.net/","title":"<value>","datasource":"<value>","document_type":"<value>","updated_at":null,"created_at":"2025-02-04T03:38:50.354Z"},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: documents_SDK
x-speakeasy-test-rebuild: true
- workflowId: platform-documents-get
steps:
- stepId: test
operationId: platform-documents-get
parameters:
- name: document_id
in: path
value: '{document_id}'
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"document":{"document_id":"<id>","url":"https://bulky-marimba.net/","title":"<value>","datasource":"<value>","document_type":"<value>","updated_at":"2026-12-04T01:22:07.759Z","created_at":"2025-11-15T08:00:14.405Z"},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: documents_SDK
x-speakeasy-test-rebuild: true
- workflowId: platform-documents-batch
steps:
- stepId: test
operationId: platform-documents-batch
requestBody:
contentType: application/json
payload:
document_specs:
- document_id: '{document_id}'
- url: https://company.atlassian.net/wiki/spaces/ENG/pages/12345
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[],"warnings":[{"code":"<value>","message":"<value>","context":{"index":700576}}],"request_id":"<id>"}
type: simple
x-speakeasy-test-group: documents_SDK
x-speakeasy-test-rebuild: true
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:2284f81d3585a2b8b63199d87829704816cbf46119f15ff7f80d61a7c67cd3c5
sourceBlobDigest: sha256:871e14c7c66ed4dd4272de8c5e79645609f7bd9864adfedc57a9ebe02e4f7f02
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:2284f81d3585a2b8b63199d87829704816cbf46119f15ff7f80d61a7c67cd3c5
sourceBlobDigest: sha256:871e14c7c66ed4dd4272de8c5e79645609f7bd9864adfedc57a9ebe02e4f7f02
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:2c03e1592badb94d5c70fc3678d3becd1c647e74e041d183259a24911a958cb9
codeSamplesRevisionDigest: sha256:bb1d558b06e9bb8152d0b85fb6ed37d9a2d6be00d669a6c0f2d08b171f57cee8
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
36 changes: 22 additions & 14 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 @@ -504,6 +504,12 @@ For more information on obtaining the appropriate token type, please contact you
* [list](docs/sdks/departments/README.md#list) - List departments
* [get](docs/sdks/departments/README.md#get) - Get a department

### [Documents](docs/sdks/documentssdk/README.md)

* [get_by_url](docs/sdks/documentssdk/README.md#get_by_url) - Get document by URL
* [get_by_id](docs/sdks/documentssdk/README.md#get_by_id) - Get document by ID
* [batch](docs/sdks/documentssdk/README.md#batch) - Batch get documents

### [Indexing.Authentication](docs/sdks/indexingauthentication/README.md)

* [rotate_token](docs/sdks/indexingauthentication/README.md#rotate_token) - Rotate token
Expand Down Expand Up @@ -639,7 +645,7 @@ 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={
Expand Down Expand Up @@ -693,7 +699,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 +726,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 +746,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 +862,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 +882,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 +901,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 +1024,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-06 05:30:05
### 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. |
Loading
Loading