worqhat 3.8.0__py3-none-any.whl → 3.9.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 +18 -24
- worqhat/resources/{client/storage.py → storage.py} +11 -11
- worqhat/types/__init__.py +8 -0
- worqhat/types/db_execute_query_params.py +9 -4
- worqhat/types/db_process_nl_query_params.py +0 -3
- 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.9.0.dist-info}/METADATA +1 -1
- {worqhat-3.8.0.dist-info → worqhat-3.9.0.dist-info}/RECORD +18 -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.9.0.dist-info}/WHEEL +0 -0
- {worqhat-3.8.0.dist-info → worqhat-3.9.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
|
]
|
worqhat/resources/db/db.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict, Iterable
|
|
5
|
+
from typing import Dict, Union, Iterable
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -23,7 +23,7 @@ from ...types import (
|
|
|
23
23
|
db_update_records_params,
|
|
24
24
|
db_process_nl_query_params,
|
|
25
25
|
)
|
|
26
|
-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
26
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
|
|
27
27
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
28
28
|
from ..._compat import cached_property
|
|
29
29
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -170,7 +170,7 @@ class DBResource(SyncAPIResource):
|
|
|
170
170
|
*,
|
|
171
171
|
query: str,
|
|
172
172
|
environment: Literal["development", "staging", "production"] | Omit = omit,
|
|
173
|
-
params: Dict[str, object] | Omit = omit,
|
|
173
|
+
params: Union[Dict[str, object], SequenceNotStr[Union[str, float, bool]]] | Omit = omit,
|
|
174
174
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
175
175
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
176
176
|
extra_headers: Headers | None = None,
|
|
@@ -178,18 +178,19 @@ class DBResource(SyncAPIResource):
|
|
|
178
178
|
extra_body: Body | None = None,
|
|
179
179
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
180
180
|
) -> DBExecuteQueryResponse:
|
|
181
|
-
"""Executes a raw SQL query directly against
|
|
181
|
+
"""Executes a raw SQL query directly against the database.
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
operations.
|
|
183
|
+
Supports both named
|
|
184
|
+
parameters ({param}) and positional parameters ($1, $2). Provides security
|
|
185
|
+
guardrails to prevent destructive operations.
|
|
186
186
|
|
|
187
187
|
Args:
|
|
188
|
-
query: SQL query to execute
|
|
188
|
+
query: SQL query to execute. Supports both named parameters ({param}) and positional
|
|
189
|
+
parameters ($1, $2)
|
|
189
190
|
|
|
190
191
|
environment: Environment to query (development, staging, production)
|
|
191
192
|
|
|
192
|
-
params:
|
|
193
|
+
params: Named parameters for queries with {param} syntax
|
|
193
194
|
|
|
194
195
|
extra_headers: Send extra headers
|
|
195
196
|
|
|
@@ -268,7 +269,6 @@ class DBResource(SyncAPIResource):
|
|
|
268
269
|
self,
|
|
269
270
|
*,
|
|
270
271
|
question: str,
|
|
271
|
-
table: str,
|
|
272
272
|
context: Dict[str, object] | Omit = omit,
|
|
273
273
|
environment: Literal["development", "staging", "production"] | Omit = omit,
|
|
274
274
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -285,8 +285,6 @@ class DBResource(SyncAPIResource):
|
|
|
285
285
|
Args:
|
|
286
286
|
question: Natural language question
|
|
287
287
|
|
|
288
|
-
table: Table name to query
|
|
289
|
-
|
|
290
288
|
context: Optional context for the query
|
|
291
289
|
|
|
292
290
|
environment: Environment to query (development, staging, production)
|
|
@@ -304,7 +302,6 @@ class DBResource(SyncAPIResource):
|
|
|
304
302
|
body=maybe_transform(
|
|
305
303
|
{
|
|
306
304
|
"question": question,
|
|
307
|
-
"table": table,
|
|
308
305
|
"context": context,
|
|
309
306
|
"environment": environment,
|
|
310
307
|
},
|
|
@@ -495,7 +492,7 @@ class AsyncDBResource(AsyncAPIResource):
|
|
|
495
492
|
*,
|
|
496
493
|
query: str,
|
|
497
494
|
environment: Literal["development", "staging", "production"] | Omit = omit,
|
|
498
|
-
params: Dict[str, object] | Omit = omit,
|
|
495
|
+
params: Union[Dict[str, object], SequenceNotStr[Union[str, float, bool]]] | Omit = omit,
|
|
499
496
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
500
497
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
501
498
|
extra_headers: Headers | None = None,
|
|
@@ -503,18 +500,19 @@ class AsyncDBResource(AsyncAPIResource):
|
|
|
503
500
|
extra_body: Body | None = None,
|
|
504
501
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
505
502
|
) -> DBExecuteQueryResponse:
|
|
506
|
-
"""Executes a raw SQL query directly against
|
|
503
|
+
"""Executes a raw SQL query directly against the database.
|
|
507
504
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
operations.
|
|
505
|
+
Supports both named
|
|
506
|
+
parameters ({param}) and positional parameters ($1, $2). Provides security
|
|
507
|
+
guardrails to prevent destructive operations.
|
|
511
508
|
|
|
512
509
|
Args:
|
|
513
|
-
query: SQL query to execute
|
|
510
|
+
query: SQL query to execute. Supports both named parameters ({param}) and positional
|
|
511
|
+
parameters ($1, $2)
|
|
514
512
|
|
|
515
513
|
environment: Environment to query (development, staging, production)
|
|
516
514
|
|
|
517
|
-
params:
|
|
515
|
+
params: Named parameters for queries with {param} syntax
|
|
518
516
|
|
|
519
517
|
extra_headers: Send extra headers
|
|
520
518
|
|
|
@@ -593,7 +591,6 @@ class AsyncDBResource(AsyncAPIResource):
|
|
|
593
591
|
self,
|
|
594
592
|
*,
|
|
595
593
|
question: str,
|
|
596
|
-
table: str,
|
|
597
594
|
context: Dict[str, object] | Omit = omit,
|
|
598
595
|
environment: Literal["development", "staging", "production"] | Omit = omit,
|
|
599
596
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -610,8 +607,6 @@ class AsyncDBResource(AsyncAPIResource):
|
|
|
610
607
|
Args:
|
|
611
608
|
question: Natural language question
|
|
612
609
|
|
|
613
|
-
table: Table name to query
|
|
614
|
-
|
|
615
610
|
context: Optional context for the query
|
|
616
611
|
|
|
617
612
|
environment: Environment to query (development, staging, production)
|
|
@@ -629,7 +624,6 @@ class AsyncDBResource(AsyncAPIResource):
|
|
|
629
624
|
body=await async_maybe_transform(
|
|
630
625
|
{
|
|
631
626
|
"question": question,
|
|
632
|
-
"table": table,
|
|
633
627
|
"context": context,
|
|
634
628
|
"environment": environment,
|
|
635
629
|
},
|
|
@@ -6,22 +6,22 @@ from typing import Mapping, cast
|
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
9
|
+
from ..types import storage_upload_file_params, storage_retrieve_file_by_path_params
|
|
10
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
|
|
11
|
+
from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
|
|
12
|
+
from .._compat import cached_property
|
|
13
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from .._response import (
|
|
14
15
|
to_raw_response_wrapper,
|
|
15
16
|
to_streamed_response_wrapper,
|
|
16
17
|
async_to_raw_response_wrapper,
|
|
17
18
|
async_to_streamed_response_wrapper,
|
|
18
19
|
)
|
|
19
|
-
from
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
23
|
-
from
|
|
24
|
-
from ...types.client.storage_retrieve_file_by_path_response import StorageRetrieveFileByPathResponse
|
|
20
|
+
from .._base_client import make_request_options
|
|
21
|
+
from ..types.storage_upload_file_response import StorageUploadFileResponse
|
|
22
|
+
from ..types.storage_delete_file_by_id_response import StorageDeleteFileByIDResponse
|
|
23
|
+
from ..types.storage_retrieve_file_by_id_response import StorageRetrieveFileByIDResponse
|
|
24
|
+
from ..types.storage_retrieve_file_by_path_response import StorageRetrieveFileByPathResponse
|
|
25
25
|
|
|
26
26
|
__all__ = ["StorageResource", "AsyncStorageResource"]
|
|
27
27
|
|
worqhat/types/__init__.py
CHANGED
|
@@ -17,8 +17,16 @@ from .flow_get_metrics_response import FlowGetMetricsResponse as FlowGetMetricsR
|
|
|
17
17
|
from .db_delete_records_response import DBDeleteRecordsResponse as DBDeleteRecordsResponse
|
|
18
18
|
from .db_process_nl_query_params import DBProcessNlQueryParams as DBProcessNlQueryParams
|
|
19
19
|
from .db_update_records_response import DBUpdateRecordsResponse as DBUpdateRecordsResponse
|
|
20
|
+
from .storage_upload_file_params import StorageUploadFileParams as StorageUploadFileParams
|
|
20
21
|
from .db_process_nl_query_response import DBProcessNlQueryResponse as DBProcessNlQueryResponse
|
|
22
|
+
from .storage_upload_file_response import StorageUploadFileResponse as StorageUploadFileResponse
|
|
21
23
|
from .flow_trigger_with_file_params import FlowTriggerWithFileParams as FlowTriggerWithFileParams
|
|
22
24
|
from .flow_trigger_with_file_response import FlowTriggerWithFileResponse as FlowTriggerWithFileResponse
|
|
23
25
|
from .flow_trigger_with_payload_params import FlowTriggerWithPayloadParams as FlowTriggerWithPayloadParams
|
|
24
26
|
from .flow_trigger_with_payload_response import FlowTriggerWithPayloadResponse as FlowTriggerWithPayloadResponse
|
|
27
|
+
from .storage_delete_file_by_id_response import StorageDeleteFileByIDResponse as StorageDeleteFileByIDResponse
|
|
28
|
+
from .storage_retrieve_file_by_id_response import StorageRetrieveFileByIDResponse as StorageRetrieveFileByIDResponse
|
|
29
|
+
from .storage_retrieve_file_by_path_params import StorageRetrieveFileByPathParams as StorageRetrieveFileByPathParams
|
|
30
|
+
from .storage_retrieve_file_by_path_response import (
|
|
31
|
+
StorageRetrieveFileByPathResponse as StorageRetrieveFileByPathResponse,
|
|
32
|
+
)
|
|
@@ -2,18 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict
|
|
5
|
+
from typing import Dict, Union
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
+
from .._types import SequenceNotStr
|
|
9
|
+
|
|
8
10
|
__all__ = ["DBExecuteQueryParams"]
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
class DBExecuteQueryParams(TypedDict, total=False):
|
|
12
14
|
query: Required[str]
|
|
13
|
-
"""SQL query to execute
|
|
15
|
+
"""SQL query to execute.
|
|
16
|
+
|
|
17
|
+
Supports both named parameters ({param}) and positional parameters ($1, $2)
|
|
18
|
+
"""
|
|
14
19
|
|
|
15
20
|
environment: Literal["development", "staging", "production"]
|
|
16
21
|
"""Environment to query (development, staging, production)"""
|
|
17
22
|
|
|
18
|
-
params: Dict[str, object]
|
|
19
|
-
"""
|
|
23
|
+
params: Union[Dict[str, object], SequenceNotStr[Union[str, float, bool]]]
|
|
24
|
+
"""Named parameters for queries with {param} syntax"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: worqhat
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.9.0
|
|
4
4
|
Summary: The official Python library for the worqhat API
|
|
5
5
|
Project-URL: Homepage, https://github.com/WorqHat/worqhat-python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/WorqHat/worqhat-python-sdk
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
worqhat/__init__.py,sha256=ycCt_XY4yHZZusG7P9qZl9JzhV7NlY12yQ_7wtvveF8,2633
|
|
2
2
|
worqhat/_base_client.py,sha256=Hrs2OxsIt1EseR69nOOe3-BH8c2hrSt2PsL-C8zDwK8,67048
|
|
3
|
-
worqhat/_client.py,sha256=
|
|
3
|
+
worqhat/_client.py,sha256=NHh56eXQxMjlbNzFt6JlmbVb5SI4ksdT9uDbwkQGS4o,18725
|
|
4
4
|
worqhat/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
5
|
worqhat/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
worqhat/_exceptions.py,sha256=n2QtRwhErTAw2JJQ8Vt95ZlTeJvve2qXF8B1Z6M_7Ao,3222
|
|
@@ -11,7 +11,7 @@ worqhat/_resource.py,sha256=2r0Ilj0AtogNG1TdsG6biEPWD5Ihgf1hOE51PwMEpyQ,1106
|
|
|
11
11
|
worqhat/_response.py,sha256=NBeCvMH3I_Zr6-Gp_8aE-S7TtNphvnw_gTlK53-lew0,28794
|
|
12
12
|
worqhat/_streaming.py,sha256=h3n2sOPN_iuD2DUno9BKZt0wT_F7GRZHcotRI5yuI0s,10104
|
|
13
13
|
worqhat/_types.py,sha256=l1lNsjBVeSVoY_E2oIAbky9t1SU9P81OAbrR8kRQ3o0,7237
|
|
14
|
-
worqhat/_version.py,sha256=
|
|
14
|
+
worqhat/_version.py,sha256=3PBcC5j8Ar2FDX2AWsNOjSEhWzs_NeJkEZA0AKd3edc,159
|
|
15
15
|
worqhat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
worqhat/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
worqhat/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -26,25 +26,23 @@ worqhat/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,
|
|
|
26
26
|
worqhat/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
27
27
|
worqhat/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
|
|
28
28
|
worqhat/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
29
|
-
worqhat/resources/__init__.py,sha256=
|
|
29
|
+
worqhat/resources/__init__.py,sha256=GyDgUSdn0F477kMOCjkdda11hOnk1dRCL0CG0qLJ1xs,1850
|
|
30
30
|
worqhat/resources/flows.py,sha256=JNyKSZBRtXrl_ucxPROUuXrmvf-NrlTIf5rL_2R94JU,17628
|
|
31
31
|
worqhat/resources/health.py,sha256=SVF65ZTfJgUcpDH8UG5rGcwBUe8EkW8NddiNk0mlDkk,5127
|
|
32
|
-
worqhat/resources/
|
|
33
|
-
worqhat/resources/client/client.py,sha256=syPhmQSQroD26yXdG6GopMjL2f7ZOHOYI-2VH693ZII,3636
|
|
34
|
-
worqhat/resources/client/storage.py,sha256=WdcPzKhl9CMfRfNcOmytikinUAQ3yGWfBWi7nwMNRq8,18242
|
|
32
|
+
worqhat/resources/storage.py,sha256=N-0MuCBHB-jPNZ58u0Te3xkX2w4dkwShpapvnBViTfI,18196
|
|
35
33
|
worqhat/resources/db/__init__.py,sha256=FdA8sX7Z6SK0k4-VLZmagXnmjdqpcwcGQ5RU6K4jWeg,950
|
|
36
|
-
worqhat/resources/db/db.py,sha256=
|
|
34
|
+
worqhat/resources/db/db.py,sha256=TrXlcX6me9taukw90tBO2TJ8p64xFx9N7yf6MVs3VNs,30279
|
|
37
35
|
worqhat/resources/db/tables.py,sha256=F_vhzvifWc5nwe08m4S3dZ6qFs5sygRoBS1a0IYZMwk,14997
|
|
38
|
-
worqhat/types/__init__.py,sha256
|
|
36
|
+
worqhat/types/__init__.py,sha256=-y6f4Do-NrRU5pS8RXu5idaP9n3q53HvH__LlJDqY6Y,2589
|
|
39
37
|
worqhat/types/db_delete_records_params.py,sha256=OtHU2hQJEZAxOna4KXj3Vq94T67WRLOsqnFpPWVr87o,564
|
|
40
38
|
worqhat/types/db_delete_records_response.py,sha256=x4RJZMKEK_yhdeD5m1k0segCRQecsQsEK2vtfs6PAoQ,434
|
|
41
39
|
worqhat/types/db_execute_batch_params.py,sha256=GHsi0VKn9nwgvn_vE56hWuTbkhAWEFOgD5ywKMyQPiQ,1038
|
|
42
40
|
worqhat/types/db_execute_batch_response.py,sha256=ma2G7awwCs79vAEmAd0qsZ4mm7qtmrP85-gLyr0FXT8,678
|
|
43
|
-
worqhat/types/db_execute_query_params.py,sha256=
|
|
41
|
+
worqhat/types/db_execute_query_params.py,sha256=F63dxBG2bq7d4akpDYyvJZyxipO2b7sA-w42jyuk1c4,753
|
|
44
42
|
worqhat/types/db_execute_query_response.py,sha256=qUX3w3lMmSISCkUYqDURoW1e_0RyyUy03lNL_Y8tCsw,566
|
|
45
43
|
worqhat/types/db_insert_record_params.py,sha256=v3R20cbxZebwDE6Nn5dU_3l2KKItp75Zl1BqcNS1jkE,559
|
|
46
44
|
worqhat/types/db_insert_record_response.py,sha256=X3_9MhXkf3XHrJisAd7bFy1qF3jnvwcLtt6t8QPl6Fo,351
|
|
47
|
-
worqhat/types/db_process_nl_query_params.py,sha256=
|
|
45
|
+
worqhat/types/db_process_nl_query_params.py,sha256=giDIFmqMuD-7H9Qj4PU7772_2choWB-3q95tG-dx_PA,569
|
|
48
46
|
worqhat/types/db_process_nl_query_response.py,sha256=b89K4MPIVUOm4KSmXumwx8mE2xhvzUvGAQhlbQGeyfo,432
|
|
49
47
|
worqhat/types/db_update_records_params.py,sha256=AdnLX5UncobxEuTWZPJ_s_NZiykNwVie3TjC9FyNOCU,621
|
|
50
48
|
worqhat/types/db_update_records_response.py,sha256=2nJr_NHr7eMi8cJNi1GHTCbmcNlJxO3EiysxBfZVxzo,434
|
|
@@ -56,13 +54,12 @@ worqhat/types/flow_trigger_with_payload_params.py,sha256=hHhYGbfzAilN0G44uYayybi
|
|
|
56
54
|
worqhat/types/flow_trigger_with_payload_response.py,sha256=XT-6VEfTbpM3o098AATogw9s-X60gsd18b4T_xOiW60,479
|
|
57
55
|
worqhat/types/get_server_info_response.py,sha256=Ev88Yr-DGVx00hluVKMnY4xq-VluFvcQ6z08XZTPcCE,332
|
|
58
56
|
worqhat/types/health_check_response.py,sha256=29tvzgqsy6wVfFwVunK5ouzSYeZGEUnQQuQpAQGsoxI,885
|
|
59
|
-
worqhat/types/
|
|
60
|
-
worqhat/types/
|
|
61
|
-
worqhat/types/
|
|
62
|
-
worqhat/types/
|
|
63
|
-
worqhat/types/
|
|
64
|
-
worqhat/types/
|
|
65
|
-
worqhat/types/client/storage_upload_file_response.py,sha256=XA9xzjMQXDH4m55b46_wCBs14LewD_5aXXvYFk-qWas,760
|
|
57
|
+
worqhat/types/storage_delete_file_by_id_response.py,sha256=zAMTNS3wa9Q0b2WpDEdqwr8HKRAK51z2QdyJSM3n6So,465
|
|
58
|
+
worqhat/types/storage_retrieve_file_by_id_response.py,sha256=ee4kOIX6XRNdauAx6C9QSnw7Z_WBYgltCIRS_OrHpWw,808
|
|
59
|
+
worqhat/types/storage_retrieve_file_by_path_params.py,sha256=jxHUEBfKYH2zUEGlL1ytIFkzTWthTdPqNX_46H-9eiU,368
|
|
60
|
+
worqhat/types/storage_retrieve_file_by_path_response.py,sha256=C5P4OZ_5pGJPASBC7o5iV-m2jqT-gbcnHWm9u2sx1uM,812
|
|
61
|
+
worqhat/types/storage_upload_file_params.py,sha256=UHxyVPYyvX4KpEGUJK5wjN4N6Sh3TOfJYz9cNtDOanM,441
|
|
62
|
+
worqhat/types/storage_upload_file_response.py,sha256=06xcnG2tpL7tPFvieyUsvcg-cxqYXdVEMU2-P8eEcOU,759
|
|
66
63
|
worqhat/types/db/__init__.py,sha256=A11__5Vr1Ju2JdH7t5DpvVaYqoImM8Bf-iFYwjAr2Kc,645
|
|
67
64
|
worqhat/types/db/table_get_row_count_params.py,sha256=jT6P25NN22TZe5Lk8TzMKY4dB9ReJQ2o33LQeTxS3Bs,362
|
|
68
65
|
worqhat/types/db/table_get_row_count_response.py,sha256=jr3O3NQl1o8rVaoG1ilK1h1LOELc1d1AkbVAYGG1Go0,335
|
|
@@ -70,7 +67,7 @@ worqhat/types/db/table_list_params.py,sha256=aiq4uIj9lNsnoN3-FgNn_mSfwUzX5XchPvl
|
|
|
70
67
|
worqhat/types/db/table_list_response.py,sha256=gbktGz4ilObaMkbA9_t0UussYuSBPEN9cuhh6_IXnNw,578
|
|
71
68
|
worqhat/types/db/table_retrieve_schema_params.py,sha256=DFQaflB9weCc8JjqXkaAK-TLfy1IXTev7-vh4O0RYFk,368
|
|
72
69
|
worqhat/types/db/table_retrieve_schema_response.py,sha256=-OHPvWJSGJzEScrRPilQVsuU_60U7qIJ3_ZleVwJ1j0,655
|
|
73
|
-
worqhat-3.
|
|
74
|
-
worqhat-3.
|
|
75
|
-
worqhat-3.
|
|
76
|
-
worqhat-3.
|
|
70
|
+
worqhat-3.9.0.dist-info/METADATA,sha256=QdgIDu3qQkE2nAx7shTlRErudkqEcehxjQbWO4W2szQ,14313
|
|
71
|
+
worqhat-3.9.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
72
|
+
worqhat-3.9.0.dist-info/licenses/LICENSE,sha256=UwMftLIOitTJWtJ9bowByxdt9ZSFqmmb43oQosW5xiU,11337
|
|
73
|
+
worqhat-3.9.0.dist-info/RECORD,,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .client import (
|
|
4
|
-
ClientResource,
|
|
5
|
-
AsyncClientResource,
|
|
6
|
-
ClientResourceWithRawResponse,
|
|
7
|
-
AsyncClientResourceWithRawResponse,
|
|
8
|
-
ClientResourceWithStreamingResponse,
|
|
9
|
-
AsyncClientResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .storage import (
|
|
12
|
-
StorageResource,
|
|
13
|
-
AsyncStorageResource,
|
|
14
|
-
StorageResourceWithRawResponse,
|
|
15
|
-
AsyncStorageResourceWithRawResponse,
|
|
16
|
-
StorageResourceWithStreamingResponse,
|
|
17
|
-
AsyncStorageResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"StorageResource",
|
|
22
|
-
"AsyncStorageResource",
|
|
23
|
-
"StorageResourceWithRawResponse",
|
|
24
|
-
"AsyncStorageResourceWithRawResponse",
|
|
25
|
-
"StorageResourceWithStreamingResponse",
|
|
26
|
-
"AsyncStorageResourceWithStreamingResponse",
|
|
27
|
-
"ClientResource",
|
|
28
|
-
"AsyncClientResource",
|
|
29
|
-
"ClientResourceWithRawResponse",
|
|
30
|
-
"AsyncClientResourceWithRawResponse",
|
|
31
|
-
"ClientResourceWithStreamingResponse",
|
|
32
|
-
"AsyncClientResourceWithStreamingResponse",
|
|
33
|
-
]
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .storage import (
|
|
6
|
-
StorageResource,
|
|
7
|
-
AsyncStorageResource,
|
|
8
|
-
StorageResourceWithRawResponse,
|
|
9
|
-
AsyncStorageResourceWithRawResponse,
|
|
10
|
-
StorageResourceWithStreamingResponse,
|
|
11
|
-
AsyncStorageResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from ..._compat import cached_property
|
|
14
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
|
|
16
|
-
__all__ = ["ClientResource", "AsyncClientResource"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ClientResource(SyncAPIResource):
|
|
20
|
-
@cached_property
|
|
21
|
-
def storage(self) -> StorageResource:
|
|
22
|
-
return StorageResource(self._client)
|
|
23
|
-
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> ClientResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/WorqHat/worqhat-python-sdk#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return ClientResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> ClientResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/WorqHat/worqhat-python-sdk#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return ClientResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AsyncClientResource(AsyncAPIResource):
|
|
45
|
-
@cached_property
|
|
46
|
-
def storage(self) -> AsyncStorageResource:
|
|
47
|
-
return AsyncStorageResource(self._client)
|
|
48
|
-
|
|
49
|
-
@cached_property
|
|
50
|
-
def with_raw_response(self) -> AsyncClientResourceWithRawResponse:
|
|
51
|
-
"""
|
|
52
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
-
the raw response object instead of the parsed content.
|
|
54
|
-
|
|
55
|
-
For more information, see https://www.github.com/WorqHat/worqhat-python-sdk#accessing-raw-response-data-eg-headers
|
|
56
|
-
"""
|
|
57
|
-
return AsyncClientResourceWithRawResponse(self)
|
|
58
|
-
|
|
59
|
-
@cached_property
|
|
60
|
-
def with_streaming_response(self) -> AsyncClientResourceWithStreamingResponse:
|
|
61
|
-
"""
|
|
62
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
-
|
|
64
|
-
For more information, see https://www.github.com/WorqHat/worqhat-python-sdk#with_streaming_response
|
|
65
|
-
"""
|
|
66
|
-
return AsyncClientResourceWithStreamingResponse(self)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class ClientResourceWithRawResponse:
|
|
70
|
-
def __init__(self, client: ClientResource) -> None:
|
|
71
|
-
self._client = client
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def storage(self) -> StorageResourceWithRawResponse:
|
|
75
|
-
return StorageResourceWithRawResponse(self._client.storage)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncClientResourceWithRawResponse:
|
|
79
|
-
def __init__(self, client: AsyncClientResource) -> None:
|
|
80
|
-
self._client = client
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def storage(self) -> AsyncStorageResourceWithRawResponse:
|
|
84
|
-
return AsyncStorageResourceWithRawResponse(self._client.storage)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class ClientResourceWithStreamingResponse:
|
|
88
|
-
def __init__(self, client: ClientResource) -> None:
|
|
89
|
-
self._client = client
|
|
90
|
-
|
|
91
|
-
@cached_property
|
|
92
|
-
def storage(self) -> StorageResourceWithStreamingResponse:
|
|
93
|
-
return StorageResourceWithStreamingResponse(self._client.storage)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncClientResourceWithStreamingResponse:
|
|
97
|
-
def __init__(self, client: AsyncClientResource) -> None:
|
|
98
|
-
self._client = client
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def storage(self) -> AsyncStorageResourceWithStreamingResponse:
|
|
102
|
-
return AsyncStorageResourceWithStreamingResponse(self._client.storage)
|
worqhat/types/client/__init__.py
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .storage_upload_file_params import StorageUploadFileParams as StorageUploadFileParams
|
|
6
|
-
from .storage_upload_file_response import StorageUploadFileResponse as StorageUploadFileResponse
|
|
7
|
-
from .storage_delete_file_by_id_response import StorageDeleteFileByIDResponse as StorageDeleteFileByIDResponse
|
|
8
|
-
from .storage_retrieve_file_by_id_response import StorageRetrieveFileByIDResponse as StorageRetrieveFileByIDResponse
|
|
9
|
-
from .storage_retrieve_file_by_path_params import StorageRetrieveFileByPathParams as StorageRetrieveFileByPathParams
|
|
10
|
-
from .storage_retrieve_file_by_path_response import (
|
|
11
|
-
StorageRetrieveFileByPathResponse as StorageRetrieveFileByPathResponse,
|
|
12
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|