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
672 changes: 346 additions & 326 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@ generation:
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
sharedErrorComponentsApr2025: false
sharedNestedComponentsJan2026: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
versioningStrategy: automatic
persistentEdits: {}
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 1.15.1
version: 2.0.0
additionalDependencies:
dev: {}
main: {}
Expand All @@ -47,10 +49,14 @@ python:
enableCustomCodeRegions: false
enumFormat: enum
fixFlags:
asyncPaginationSep2025: false
conflictResistantModelImportsFeb2026: false
responseRequiredSep2024: false
flattenGlobalSecurity: true
flattenRequests: false
flatteningOrder: parameters-first
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
imports:
option: openapi
paths:
Expand All @@ -76,3 +82,4 @@ python:
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
useAsyncHooks: false
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.682.0
speakeasyVersion: 1.722.0
sources:
Ragie-OAS:
sourceNamespace: ragie-oas
sourceRevisionDigest: sha256:bbff923159484b6f5a7027ee8c16c13a60ce2d9e9f523603fcba9243d1b38da7
sourceBlobDigest: sha256:e781f18c8b4e50249a130e038774b0f9e647fa416eb773f6d638506da7b70f14
sourceRevisionDigest: sha256:bfc5bad9c8984c3bf35578fa48e02ba85e78fd754b81079b1eaa6a5045c991a5
sourceBlobDigest: sha256:87fea93ab7fcbe92d948c3a162cfd526c63b763a9e6624ec9a8d3c63ca51b351
tags:
- latest
- speakeasy-sdk-regen-1765152535
- speakeasy-sdk-regen-1767917334
- 1.0.0
targets:
ragie:
source: Ragie-OAS
sourceNamespace: ragie-oas
sourceRevisionDigest: sha256:bbff923159484b6f5a7027ee8c16c13a60ce2d9e9f523603fcba9243d1b38da7
sourceBlobDigest: sha256:e781f18c8b4e50249a130e038774b0f9e647fa416eb773f6d638506da7b70f14
sourceRevisionDigest: sha256:bfc5bad9c8984c3bf35578fa48e02ba85e78fd754b81079b1eaa6a5045c991a5
sourceBlobDigest: sha256:87fea93ab7fcbe92d948c3a162cfd526c63b763a9e6624ec9a8d3c63ca51b351
codeSamplesNamespace: ragie-oas-python-code-samples
codeSamplesRevisionDigest: sha256:cb4c40794dfa72db1e2fca9d89f1a2f529ec8379fd12a0d7525ebabf3bee82f7
codeSamplesRevisionDigest: sha256:ead5df962eb5876d75820fbd66feff53be01a162317cd7b6961dea8c89e86306
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
86 changes: 41 additions & 45 deletions README-PYPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ It's also possible to write a standalone Python script without needing to set up
```python
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.9"
# requires-python = ">=3.10"
# dependencies = [
# "ragie",
# ]
Expand Down Expand Up @@ -181,7 +181,6 @@ with Ragie(
res = r_client.connections.create_connection(request=ragie.PublicCreateConnection(
partition_strategy=ragie.MediaModeParam(),
page_limit=None,
config=None,
connection=ragie.PublicGCSConnection(
data=ragie.BucketData(
bucket="<value>",
Expand Down Expand Up @@ -217,7 +216,6 @@ async def main():
res = await r_client.connections.create_connection_async(request=ragie.PublicCreateConnection(
partition_strategy=ragie.MediaModeParam(),
page_limit=None,
config=None,
connection=ragie.PublicGCSConnection(
data=ragie.BucketData(
bucket="<value>",
Expand Down Expand Up @@ -303,7 +301,6 @@ with Ragie(
res = r_client.authenticators.create_authenticator_connection(authenticator_id="84b0792c-1330-4854-b4f2-5d9c7bf9a385", create_authenticator_connection=ragie.CreateAuthenticatorConnection(
partition_strategy=ragie.MediaModeParam(),
page_limit=None,
config=None,
connection=ragie.AuthenticatorDropboxConnection(
data=ragie.FolderData(
folder_id="<id>",
Expand Down Expand Up @@ -339,7 +336,6 @@ async def main():
res = await r_client.authenticators.create_authenticator_connection_async(authenticator_id="84b0792c-1330-4854-b4f2-5d9c7bf9a385", create_authenticator_connection=ragie.CreateAuthenticatorConnection(
partition_strategy=ragie.MediaModeParam(),
page_limit=None,
config=None,
connection=ragie.AuthenticatorDropboxConnection(
data=ragie.FolderData(
folder_id="<id>",
Expand Down Expand Up @@ -367,8 +363,8 @@ asyncio.run(main())

### [Authenticators](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/authenticators/README.md)

* [create](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/authenticators/README.md#create) - Create Authenticator
* [list](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/authenticators/README.md#list) - List Authenticators
* [create](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/authenticators/README.md#create) - Create Authenticator
* [create_authenticator_connection](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/authenticators/README.md#create_authenticator_connection) - Create Authenticator Connection
* [delete_authenticator_connection](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/authenticators/README.md#delete_authenticator_connection) - Delete Authenticator

Expand All @@ -379,17 +375,17 @@ asyncio.run(main())
* [create_o_auth_redirect_url](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#create_o_auth_redirect_url) - Create Oauth Redirect Url
* [list_connection_source_types](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#list_connection_source_types) - List Connection Source Types
* [set_enabled](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#set_enabled) - Set Connection Enabled
* [update](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#update) - Update Connection
* [get](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#get) - Get Connection
* [update](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#update) - Update Connection
* [get_stats](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#get_stats) - Get Connection Stats
* [set_limits](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#set_limits) - Set Connection Limits
* [delete](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#delete) - Delete Connection
* [sync](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/connections/README.md#sync) - Sync Connection

### [Documents](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md)

* [create](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#create) - Create Document
* [list](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#list) - List Documents
* [create](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#create) - Create Document
* [create_raw](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#create_raw) - Create Document Raw
* [create_document_from_url](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#create_document_from_url) - Create Document From Url
* [get](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#get) - Get Document
Expand Down Expand Up @@ -419,8 +415,8 @@ asyncio.run(main())
* [list](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#list) - List Partitions
* [create](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#create) - Create Partition
* [get](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#get) - Get Partition
* [update](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#update) - Update Partition
* [delete](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#delete) - Delete Partition
* [update](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#update) - Update Partition
* [set_limits](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/partitions/README.md#set_limits) - Set Partition Limits

### [Responses](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/responses/README.md)
Expand All @@ -437,8 +433,8 @@ asyncio.run(main())
* [list](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/webhookendpoints/README.md#list) - List Webhook Endpoints
* [create](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/webhookendpoints/README.md#create) - Create Webhook Endpoint
* [get](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/webhookendpoints/README.md#get) - Get Webhook Endpoint
* [update](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/webhookendpoints/README.md#update) - Update Webhook Endpoint
* [delete](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/webhookendpoints/README.md#delete) - Delete Webhook Endpoint
* [update](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/webhookendpoints/README.md#update) - Update Webhook Endpoint

</details>
<!-- End Available Resources and Operations [operations] -->
Expand Down Expand Up @@ -518,16 +514,16 @@ with Ragie(
auth="<YOUR_BEARER_TOKEN_HERE>",
) as r_client:

res = r_client.documents.create(request={
"file": {
"file_name": "example.file",
"content": open("example.file", "rb"),
},
res = r_client.documents.list(request={
"filter_": "{\"department\":{\"$in\":[\"sales\",\"marketing\"]}}",
"partition": "acme_customer_id",
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

# Handle response
print(res)
while res is not None:
# Handle items

res = res.next()

```

Expand All @@ -542,15 +538,15 @@ with Ragie(
auth="<YOUR_BEARER_TOKEN_HERE>",
) as r_client:

res = r_client.documents.create(request={
"file": {
"file_name": "example.file",
"content": open("example.file", "rb"),
},
res = r_client.documents.list(request={
"filter_": "{\"department\":{\"$in\":[\"sales\",\"marketing\"]}}",
"partition": "acme_customer_id",
})

# Handle response
print(res)
while res is not None:
# Handle items

res = res.next()

```
<!-- End Retries [retries] -->
Expand Down Expand Up @@ -581,15 +577,15 @@ with Ragie(
res = None
try:

res = r_client.documents.create(request={
"file": {
"file_name": "example.file",
"content": open("example.file", "rb"),
},
res = r_client.documents.list(request={
"filter_": "{\"department\":{\"$in\":[\"sales\",\"marketing\"]}}",
"partition": "acme_customer_id",
})

# Handle response
print(res)
while res is not None:
# Handle items

res = res.next()


except models.RagieError as e:
Expand Down Expand Up @@ -644,15 +640,15 @@ with Ragie(
auth="<YOUR_BEARER_TOKEN_HERE>",
) as r_client:

res = r_client.documents.create(request={
"file": {
"file_name": "example.file",
"content": open("example.file", "rb"),
},
res = r_client.documents.list(request={
"filter_": "{\"department\":{\"$in\":[\"sales\",\"marketing\"]}}",
"partition": "acme_customer_id",
})

# Handle response
print(res)
while res is not None:
# Handle items

res = res.next()

```
<!-- End Server Selection [server] -->
Expand Down Expand Up @@ -758,15 +754,15 @@ with Ragie(
auth="<YOUR_BEARER_TOKEN_HERE>",
) as r_client:

res = r_client.documents.create(request={
"file": {
"file_name": "example.file",
"content": open("example.file", "rb"),
},
res = r_client.documents.list(request={
"filter_": "{\"department\":{\"$in\":[\"sales\",\"marketing\"]}}",
"partition": "acme_customer_id",
})

# Handle response
print(res)
while res is not None:
# Handle items

res = res.next()

```
<!-- End Authentication [security] -->
Expand Down
Loading