worqhat 3.8.0__py3-none-any.whl → 3.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- worqhat/_client.py +9 -10
- worqhat/_version.py +1 -1
- worqhat/resources/__init__.py +14 -14
- worqhat/resources/db/db.py +868 -24
- worqhat/resources/{client/storage.py → storage.py} +11 -11
- worqhat/types/__init__.py +20 -0
- worqhat/types/db_cluster_params.py +27 -0
- worqhat/types/db_cluster_response.py +44 -0
- worqhat/types/db_detect_anomalies_params.py +24 -0
- worqhat/types/db_detect_anomalies_response.py +50 -0
- worqhat/types/db_execute_query_params.py +9 -4
- worqhat/types/db_find_similar_params.py +31 -0
- worqhat/types/db_find_similar_response.py +30 -0
- worqhat/types/db_hybrid_search_params.py +32 -0
- worqhat/types/db_hybrid_search_response.py +48 -0
- worqhat/types/db_process_nl_query_params.py +0 -3
- worqhat/types/db_recommend_params.py +33 -0
- worqhat/types/db_recommend_response.py +36 -0
- worqhat/types/db_semantic_search_params.py +33 -0
- worqhat/types/db_semantic_search_response.py +36 -0
- worqhat/types/{client/storage_delete_file_by_id_response.py → storage_delete_file_by_id_response.py} +1 -1
- worqhat/types/{client/storage_retrieve_file_by_id_response.py → storage_retrieve_file_by_id_response.py} +1 -1
- worqhat/types/{client/storage_retrieve_file_by_path_response.py → storage_retrieve_file_by_path_response.py} +1 -1
- worqhat/types/{client/storage_upload_file_params.py → storage_upload_file_params.py} +1 -1
- worqhat/types/{client/storage_upload_file_response.py → storage_upload_file_response.py} +1 -1
- {worqhat-3.8.0.dist-info → worqhat-3.10.0.dist-info}/METADATA +1 -1
- {worqhat-3.8.0.dist-info → worqhat-3.10.0.dist-info}/RECORD +30 -21
- worqhat/resources/client/__init__.py +0 -33
- worqhat/resources/client/client.py +0 -102
- worqhat/types/client/__init__.py +0 -12
- /worqhat/types/{client/storage_retrieve_file_by_path_params.py → storage_retrieve_file_by_path_params.py} +0 -0
- {worqhat-3.8.0.dist-info → worqhat-3.10.0.dist-info}/WHEEL +0 -0
- {worqhat-3.8.0.dist-info → worqhat-3.10.0.dist-info}/licenses/LICENSE +0 -0
worqhat/_client.py
CHANGED
|
@@ -30,7 +30,7 @@ from ._response import (
|
|
|
30
30
|
async_to_raw_response_wrapper,
|
|
31
31
|
async_to_streamed_response_wrapper,
|
|
32
32
|
)
|
|
33
|
-
from .resources import flows, health
|
|
33
|
+
from .resources import flows, health, storage
|
|
34
34
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
35
35
|
from ._exceptions import WorqhatError, APIStatusError
|
|
36
36
|
from ._base_client import (
|
|
@@ -40,7 +40,6 @@ from ._base_client import (
|
|
|
40
40
|
make_request_options,
|
|
41
41
|
)
|
|
42
42
|
from .resources.db import db
|
|
43
|
-
from .resources.client import client
|
|
44
43
|
from .types.get_server_info_response import GetServerInfoResponse
|
|
45
44
|
|
|
46
45
|
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Worqhat", "AsyncWorqhat", "Client", "AsyncClient"]
|
|
@@ -50,7 +49,7 @@ class Worqhat(SyncAPIClient):
|
|
|
50
49
|
db: db.DBResource
|
|
51
50
|
health: health.HealthResource
|
|
52
51
|
flows: flows.FlowsResource
|
|
53
|
-
|
|
52
|
+
storage: storage.StorageResource
|
|
54
53
|
with_raw_response: WorqhatWithRawResponse
|
|
55
54
|
with_streaming_response: WorqhatWithStreamedResponse
|
|
56
55
|
|
|
@@ -111,7 +110,7 @@ class Worqhat(SyncAPIClient):
|
|
|
111
110
|
self.db = db.DBResource(self)
|
|
112
111
|
self.health = health.HealthResource(self)
|
|
113
112
|
self.flows = flows.FlowsResource(self)
|
|
114
|
-
self.
|
|
113
|
+
self.storage = storage.StorageResource(self)
|
|
115
114
|
self.with_raw_response = WorqhatWithRawResponse(self)
|
|
116
115
|
self.with_streaming_response = WorqhatWithStreamedResponse(self)
|
|
117
116
|
|
|
@@ -243,7 +242,7 @@ class AsyncWorqhat(AsyncAPIClient):
|
|
|
243
242
|
db: db.AsyncDBResource
|
|
244
243
|
health: health.AsyncHealthResource
|
|
245
244
|
flows: flows.AsyncFlowsResource
|
|
246
|
-
|
|
245
|
+
storage: storage.AsyncStorageResource
|
|
247
246
|
with_raw_response: AsyncWorqhatWithRawResponse
|
|
248
247
|
with_streaming_response: AsyncWorqhatWithStreamedResponse
|
|
249
248
|
|
|
@@ -304,7 +303,7 @@ class AsyncWorqhat(AsyncAPIClient):
|
|
|
304
303
|
self.db = db.AsyncDBResource(self)
|
|
305
304
|
self.health = health.AsyncHealthResource(self)
|
|
306
305
|
self.flows = flows.AsyncFlowsResource(self)
|
|
307
|
-
self.
|
|
306
|
+
self.storage = storage.AsyncStorageResource(self)
|
|
308
307
|
self.with_raw_response = AsyncWorqhatWithRawResponse(self)
|
|
309
308
|
self.with_streaming_response = AsyncWorqhatWithStreamedResponse(self)
|
|
310
309
|
|
|
@@ -437,7 +436,7 @@ class WorqhatWithRawResponse:
|
|
|
437
436
|
self.db = db.DBResourceWithRawResponse(client.db)
|
|
438
437
|
self.health = health.HealthResourceWithRawResponse(client.health)
|
|
439
438
|
self.flows = flows.FlowsResourceWithRawResponse(client.flows)
|
|
440
|
-
self.
|
|
439
|
+
self.storage = storage.StorageResourceWithRawResponse(client.storage)
|
|
441
440
|
|
|
442
441
|
self.get_server_info = to_raw_response_wrapper(
|
|
443
442
|
client.get_server_info,
|
|
@@ -449,7 +448,7 @@ class AsyncWorqhatWithRawResponse:
|
|
|
449
448
|
self.db = db.AsyncDBResourceWithRawResponse(client.db)
|
|
450
449
|
self.health = health.AsyncHealthResourceWithRawResponse(client.health)
|
|
451
450
|
self.flows = flows.AsyncFlowsResourceWithRawResponse(client.flows)
|
|
452
|
-
self.
|
|
451
|
+
self.storage = storage.AsyncStorageResourceWithRawResponse(client.storage)
|
|
453
452
|
|
|
454
453
|
self.get_server_info = async_to_raw_response_wrapper(
|
|
455
454
|
client.get_server_info,
|
|
@@ -461,7 +460,7 @@ class WorqhatWithStreamedResponse:
|
|
|
461
460
|
self.db = db.DBResourceWithStreamingResponse(client.db)
|
|
462
461
|
self.health = health.HealthResourceWithStreamingResponse(client.health)
|
|
463
462
|
self.flows = flows.FlowsResourceWithStreamingResponse(client.flows)
|
|
464
|
-
self.
|
|
463
|
+
self.storage = storage.StorageResourceWithStreamingResponse(client.storage)
|
|
465
464
|
|
|
466
465
|
self.get_server_info = to_streamed_response_wrapper(
|
|
467
466
|
client.get_server_info,
|
|
@@ -473,7 +472,7 @@ class AsyncWorqhatWithStreamedResponse:
|
|
|
473
472
|
self.db = db.AsyncDBResourceWithStreamingResponse(client.db)
|
|
474
473
|
self.health = health.AsyncHealthResourceWithStreamingResponse(client.health)
|
|
475
474
|
self.flows = flows.AsyncFlowsResourceWithStreamingResponse(client.flows)
|
|
476
|
-
self.
|
|
475
|
+
self.storage = storage.AsyncStorageResourceWithStreamingResponse(client.storage)
|
|
477
476
|
|
|
478
477
|
self.get_server_info = async_to_streamed_response_wrapper(
|
|
479
478
|
client.get_server_info,
|
worqhat/_version.py
CHANGED
worqhat/resources/__init__.py
CHANGED
|
@@ -16,14 +16,6 @@ from .flows import (
|
|
|
16
16
|
FlowsResourceWithStreamingResponse,
|
|
17
17
|
AsyncFlowsResourceWithStreamingResponse,
|
|
18
18
|
)
|
|
19
|
-
from .client import (
|
|
20
|
-
ClientResource,
|
|
21
|
-
AsyncClientResource,
|
|
22
|
-
ClientResourceWithRawResponse,
|
|
23
|
-
AsyncClientResourceWithRawResponse,
|
|
24
|
-
ClientResourceWithStreamingResponse,
|
|
25
|
-
AsyncClientResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
19
|
from .health import (
|
|
28
20
|
HealthResource,
|
|
29
21
|
AsyncHealthResource,
|
|
@@ -32,6 +24,14 @@ from .health import (
|
|
|
32
24
|
HealthResourceWithStreamingResponse,
|
|
33
25
|
AsyncHealthResourceWithStreamingResponse,
|
|
34
26
|
)
|
|
27
|
+
from .storage import (
|
|
28
|
+
StorageResource,
|
|
29
|
+
AsyncStorageResource,
|
|
30
|
+
StorageResourceWithRawResponse,
|
|
31
|
+
AsyncStorageResourceWithRawResponse,
|
|
32
|
+
StorageResourceWithStreamingResponse,
|
|
33
|
+
AsyncStorageResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
35
35
|
|
|
36
36
|
__all__ = [
|
|
37
37
|
"DBResource",
|
|
@@ -52,10 +52,10 @@ __all__ = [
|
|
|
52
52
|
"AsyncFlowsResourceWithRawResponse",
|
|
53
53
|
"FlowsResourceWithStreamingResponse",
|
|
54
54
|
"AsyncFlowsResourceWithStreamingResponse",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
55
|
+
"StorageResource",
|
|
56
|
+
"AsyncStorageResource",
|
|
57
|
+
"StorageResourceWithRawResponse",
|
|
58
|
+
"AsyncStorageResourceWithRawResponse",
|
|
59
|
+
"StorageResourceWithStreamingResponse",
|
|
60
|
+
"AsyncStorageResourceWithStreamingResponse",
|
|
61
61
|
]
|