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
  •  
  •  
  •  
1,461 changes: 1,032 additions & 429 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ generation:
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
sharedErrorComponentsApr2025: false
sharedNestedComponentsJan2026: false
nameOverrideFeb2026: 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 +50,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 +83,4 @@ python:
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
useAsyncHooks: false
13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
speakeasyVersion: 1.682.0
speakeasyVersion: 1.759.0
sources:
Ragie-OAS:
sourceNamespace: ragie-oas
sourceRevisionDigest: sha256:bbff923159484b6f5a7027ee8c16c13a60ce2d9e9f523603fcba9243d1b38da7
sourceBlobDigest: sha256:e781f18c8b4e50249a130e038774b0f9e647fa416eb773f6d638506da7b70f14
sourceRevisionDigest: sha256:b4fa8a2926ef89a1e5d4bfd5ce23080bb68a90ce41ac35e187403ff570e6cb70
sourceBlobDigest: sha256:5eefb8f3cc49bdb8aacee55e3c1e7ee7b379d5d953b2637ab7785194dd974844
tags:
- latest
- speakeasy-sdk-regen-1765152535
- 1.0.0
targets:
ragie:
source: Ragie-OAS
sourceNamespace: ragie-oas
sourceRevisionDigest: sha256:bbff923159484b6f5a7027ee8c16c13a60ce2d9e9f523603fcba9243d1b38da7
sourceBlobDigest: sha256:e781f18c8b4e50249a130e038774b0f9e647fa416eb773f6d638506da7b70f14
sourceRevisionDigest: sha256:b4fa8a2926ef89a1e5d4bfd5ce23080bb68a90ce41ac35e187403ff570e6cb70
sourceBlobDigest: sha256:5eefb8f3cc49bdb8aacee55e3c1e7ee7b379d5d953b2637ab7785194dd974844
codeSamplesNamespace: ragie-oas-python-code-samples
codeSamplesRevisionDigest: sha256:cb4c40794dfa72db1e2fca9d89f1a2f529ec8379fd12a0d7525ebabf3bee82f7
codeSamplesRevisionDigest: sha256:bc1ae2a7ecb87d0d74fca268f080f4693d65dc4fa549a5915a17831221bceb53
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
96 changes: 49 additions & 47 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 All @@ -405,22 +401,28 @@ asyncio.run(main())
* [get_source](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#get_source) - Get Document Source
* [get_summary](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/documents/README.md#get_summary) - Get Document Summary

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

* [list](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/elements/README.md#list) - List Elements For Document
* [get](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/elements/README.md#get) - Get Element For Document

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

* [list_instructions](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#list_instructions) - List Instructions
* [create_instruction](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#create_instruction) - Create Instruction
* [update_instruction](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#update_instruction) - Update Instruction
* [delete](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#delete) - Delete Instruction
* [delete_instruction](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#delete_instruction) - Delete Instruction
* [update_instruction](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#update_instruction) - Patch Instruction
* [list_by_instruction](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#list_by_instruction) - Get Instruction Extracted Entities
* [list_extraction_logs](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#list_extraction_logs) - Get Instruction Entity Extraction Logs
* [list_by_document](https://github.com/ragieai/ragie-python/blob/master/docs/sdks/entities/README.md#list_by_document) - Get Document Extracted Entities

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

* [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 +439,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 +520,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 +544,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 +583,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 +646,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 +760,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