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
5 changes: 0 additions & 5 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@

<div align="center">
<a href="https://codespaces.new/gleanwork/api-client-python.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
</div>
<br>

> **Remember to shutdown a GitHub Codespace when it is not in use!**

# Dev Containers Quick Start
Expand Down
385 changes: 187 additions & 198 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

255,189 changes: 124,669 additions & 130,520 deletions .speakeasy/tests.arazzo.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ speakeasyVersion: 1.561.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:def878110682ba33071e9369f2fc13e9ace94ee3de38b09cbcc5ad93fa083bfb
sourceRevisionDigest: sha256:4d55e9d4c5116b88a5959816fd40df895912309a293908485e2016008d31a1f4
sourceBlobDigest: sha256:eceb178c5d2537e6d21c0461c81f6af1dc245da2c327fdf5305a8191184eff94
tags:
- latest
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:def878110682ba33071e9369f2fc13e9ace94ee3de38b09cbcc5ad93fa083bfb
sourceRevisionDigest: sha256:4d55e9d4c5116b88a5959816fd40df895912309a293908485e2016008d31a1f4
sourceBlobDigest: sha256:eceb178c5d2537e6d21c0461c81f6af1dc245da2c327fdf5305a8191184eff94
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:8acf66e50535d8fa865214fd70de55e2f04e299bae90925154b6ebb3bbb936c6
codeSamplesRevisionDigest: sha256:04b4dd94d8ee358b8a408e1f8f46005a73c9bd86790e5abc631c5503ec22ff8f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,7 @@ with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

res = glean.client.chat.upload_files(files=[
{
"file_name": "example.file",
"content": open("example.file", "rb"),
},
])
res = glean.client.chat.upload_files(files=[])

# Handle response
print(res)
Expand Down
70,287 changes: 1,928 additions & 68,359 deletions docs/sdks/announcements/README.md

Large diffs are not rendered by default.

2,168 changes: 5 additions & 2,163 deletions docs/sdks/answers/README.md

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions docs/sdks/clientchat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,7 @@ with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

res = glean.client.chat.upload_files(files=[
{
"file_name": "example.file",
"content": open("example.file", "rb"),
},
])
res = glean.client.chat.upload_files(files=[])

# Handle response
print(res)
Expand Down
19 changes: 0 additions & 19 deletions docs/sdks/clientdocuments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,6 @@ with Glean(
},
],
},
{
"filters": [
{
"field_name": "type",
"values": [
{
"value": "Spreadsheet",
"relation_type": models.RelationType.EQUALS,
},
{
"value": "Presentation",
"relation_type": models.RelationType.EQUALS,
},
],
},
],
},
],
})

Expand Down Expand Up @@ -181,8 +164,6 @@ with Glean(

res = glean.client.documents.summarize(document_specs=[
{},
{},
{},
])

# Handle response
Expand Down
4,395 changes: 3 additions & 4,392 deletions docs/sdks/clientshortcuts/README.md

Large diffs are not rendered by default.

1,646 changes: 5 additions & 1,641 deletions docs/sdks/collections/README.md

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions docs/sdks/indexingdocuments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,7 @@ with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

res = glean.indexing.documents.debug_many(datasource="<value>", debug_documents=[
{
"object_type": "Article",
"doc_id": "art123",
},
])
res = glean.indexing.documents.debug_many(datasource="<value>", debug_documents=[])

# Handle response
print(res)
Expand Down
13 changes: 0 additions & 13 deletions docs/sdks/indexingpermissions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ with Glean(
"email": "Ivory_Cummerata@hotmail.com",
"name": "<value>",
},
{
"email": "Ivory_Cummerata@hotmail.com",
"name": "<value>",
},
{
"email": "Ivory_Cummerata@hotmail.com",
"name": "<value>",
},
])

# Use the SDK ...
Expand Down Expand Up @@ -205,9 +197,6 @@ with Glean(
{
"name": "<value>",
},
{
"name": "<value>",
},
])

# Use the SDK ...
Expand Down Expand Up @@ -288,8 +277,6 @@ with Glean(

glean.indexing.permissions.bulk_index_memberships(upload_id="<id>", datasource="<value>", memberships=[
{},
{},
{},
])

# Use the SDK ...
Expand Down
16 changes: 0 additions & 16 deletions docs/sdks/indexingshortcuts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ with Glean(
"created_by": "<value>",
"intermediate_url": "https://lean-sightseeing.net",
},
{
"input_alias": "<value>",
"destination_url": "https://plump-tune-up.biz/",
"created_by": "<value>",
"intermediate_url": "https://lean-sightseeing.net",
},
])

# Use the SDK ...
Expand Down Expand Up @@ -80,16 +74,6 @@ with Glean(
"destination_url": "https://majestic-pharmacopoeia.info/",
"created_by": "<value>",
},
{
"input_alias": "<value>",
"destination_url": "https://majestic-pharmacopoeia.info/",
"created_by": "<value>",
},
{
"input_alias": "<value>",
"destination_url": "https://majestic-pharmacopoeia.info/",
"created_by": "<value>",
},
])

# Use the SDK ...
Expand Down
2 changes: 0 additions & 2 deletions docs/sdks/insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ with Glean(

res = glean.client.insights.retrieve(categories=[
models.InsightsRequestCategory.COLLECTIONS,
models.InsightsRequestCategory.SHORTCUTS,
models.InsightsRequestCategory.ANNOUNCEMENTS,
])

# Handle response
Expand Down
64 changes: 3 additions & 61 deletions docs/sdks/people/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,26 +173,6 @@ with Glean(
},
],
},
{
"email": "Robin.Stoltenberg@yahoo.com",
"department": "<value>",
"datasource_profiles": [
{
"datasource": "github",
"handle": "<value>",
},
],
},
{
"email": "Robin.Stoltenberg@yahoo.com",
"department": "<value>",
"datasource_profiles": [
{
"datasource": "github",
"handle": "<value>",
},
],
},
])

# Use the SDK ...
Expand Down Expand Up @@ -309,18 +289,10 @@ with Glean(
"datasource": "github",
"handle": "<value>",
},
{
"datasource": "github",
"handle": "<value>",
},
{
"datasource": "github",
"handle": "<value>",
},
],
"members": [
{
"email": "Nasir.Hilll73@hotmail.com",
"email": "Valerie9@gmail.com",
},
],
})
Expand Down Expand Up @@ -401,42 +373,12 @@ with Glean(
"datasource": "github",
"handle": "<value>",
},
{
"datasource": "github",
"handle": "<value>",
},
],
"members": [],
},
{
"id": "<id>",
"name": "<value>",
"datasource_profiles": [
{
"datasource": "github",
"handle": "<value>",
},
{
"datasource": "github",
"handle": "<value>",
},
],
"members": [],
},
{
"id": "<id>",
"name": "<value>",
"datasource_profiles": [
"members": [
{
"datasource": "github",
"handle": "<value>",
},
{
"datasource": "github",
"handle": "<value>",
"email": "Nina_Erdman16@gmail.com",
},
],
"members": [],
},
])

Expand Down
42 changes: 4 additions & 38 deletions docs/sdks/search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ with Glean(
],
),
],
facet_bucket_size=421489,
facet_bucket_size=723824,
), timeout_millis=5000, people=[
models.Person(
name="George Clooney",
Expand Down Expand Up @@ -341,7 +341,7 @@ with Glean(
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
author=models.Person(
name="name",
obfuscated_id="abc123",
obfuscated_id="<id>",
),
components=[
"Backend",
Expand Down Expand Up @@ -371,40 +371,6 @@ with Glean(
),
],
),
models.FacetFilterSet(
filters=[
models.FacetFilter(
field_name="type",
values=[
models.FacetFilterValue(
value="Spreadsheet",
relation_type=models.RelationType.EQUALS,
),
models.FacetFilterValue(
value="Presentation",
relation_type=models.RelationType.EQUALS,
),
],
),
],
),
models.FacetFilterSet(
filters=[
models.FacetFilter(
field_name="type",
values=[
models.FacetFilterValue(
value="Spreadsheet",
relation_type=models.RelationType.EQUALS,
),
models.FacetFilterValue(
value="Presentation",
relation_type=models.RelationType.EQUALS,
),
],
),
],
),
],
context=models.Document(
container_document=models.Document(
Expand Down Expand Up @@ -466,7 +432,7 @@ with Glean(
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
author=models.Person(
name="name",
obfuscated_id="abc123",
obfuscated_id="<id>",
),
components=[
"Backend",
Expand Down Expand Up @@ -625,7 +591,7 @@ with Glean(
],
),
],
facet_bucket_size=400611,
facet_bucket_size=939520,
), timeout_millis=5000, people=[
models.Person(
name="George Clooney",
Expand Down
5 changes: 1 addition & 4 deletions docs/sdks/tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ with Glean(
) as glean:

res = glean.client.tools.run(name="<value>", parameters={
"key": {
"name": "<value>",
"value": "<value>",
},

})

# Handle response
Expand Down
2 changes: 0 additions & 2 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN}

poetry run python scripts/prepare_readme.py

poetry publish --build --skip-existing
Loading
Loading