worqhat 3.4.0__py3-none-any.whl → 3.8.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/__init__.py +3 -1
- worqhat/_base_client.py +12 -12
- worqhat/_client.py +21 -11
- worqhat/_compat.py +48 -48
- worqhat/_models.py +51 -45
- worqhat/_qs.py +7 -7
- worqhat/_types.py +53 -12
- worqhat/_utils/__init__.py +9 -2
- worqhat/_utils/_compat.py +45 -0
- worqhat/_utils/_datetime_parse.py +136 -0
- worqhat/_utils/_transform.py +13 -3
- worqhat/_utils/_typing.py +6 -1
- worqhat/_utils/_utils.py +4 -5
- worqhat/_version.py +1 -1
- worqhat/resources/__init__.py +14 -0
- worqhat/resources/client/__init__.py +33 -0
- worqhat/resources/client/client.py +102 -0
- worqhat/resources/client/storage.py +462 -0
- worqhat/resources/db/__init__.py +33 -0
- worqhat/resources/{db.py → db/db.py} +249 -36
- worqhat/resources/db/tables.py +389 -0
- worqhat/resources/flows.py +29 -23
- worqhat/resources/health.py +3 -3
- worqhat/types/__init__.py +2 -0
- worqhat/types/client/__init__.py +12 -0
- worqhat/types/client/storage_delete_file_by_id_response.py +18 -0
- worqhat/types/client/storage_retrieve_file_by_id_response.py +33 -0
- worqhat/types/client/storage_retrieve_file_by_path_params.py +12 -0
- worqhat/types/client/storage_retrieve_file_by_path_response.py +33 -0
- worqhat/types/client/storage_upload_file_params.py +17 -0
- worqhat/types/client/storage_upload_file_response.py +33 -0
- worqhat/types/db/__init__.py +10 -0
- worqhat/types/db/table_get_row_count_params.py +12 -0
- worqhat/types/db/table_get_row_count_response.py +15 -0
- worqhat/types/db/table_list_params.py +15 -0
- worqhat/types/db/table_list_response.py +26 -0
- worqhat/types/db/table_retrieve_schema_params.py +12 -0
- worqhat/types/db/table_retrieve_schema_response.py +29 -0
- worqhat/types/db_delete_records_params.py +6 -2
- worqhat/types/db_delete_records_response.py +2 -2
- worqhat/types/db_execute_batch_params.py +36 -0
- worqhat/types/db_execute_batch_response.py +27 -0
- worqhat/types/db_execute_query_params.py +8 -1
- worqhat/types/db_execute_query_response.py +2 -2
- worqhat/types/db_insert_record_params.py +6 -2
- worqhat/types/db_insert_record_response.py +2 -2
- worqhat/types/db_process_nl_query_params.py +10 -3
- worqhat/types/db_process_nl_query_response.py +2 -2
- worqhat/types/db_update_records_params.py +7 -3
- worqhat/types/db_update_records_response.py +2 -2
- worqhat/types/flow_trigger_with_payload_params.py +3 -2
- {worqhat-3.4.0.dist-info → worqhat-3.8.0.dist-info}/METADATA +4 -4
- worqhat-3.8.0.dist-info/RECORD +76 -0
- worqhat-3.4.0.dist-info/RECORD +0 -53
- {worqhat-3.4.0.dist-info → worqhat-3.8.0.dist-info}/WHEEL +0 -0
- {worqhat-3.4.0.dist-info → worqhat-3.8.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["StorageRetrieveFileByPathResponse", "File"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class File(BaseModel):
|
|
14
|
+
id: Optional[str] = None
|
|
15
|
+
|
|
16
|
+
content_type: Optional[str] = FieldInfo(alias="contentType", default=None)
|
|
17
|
+
|
|
18
|
+
filename: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
path: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
size: Optional[int] = None
|
|
23
|
+
|
|
24
|
+
uploaded_at: Optional[datetime] = FieldInfo(alias="uploadedAt", default=None)
|
|
25
|
+
|
|
26
|
+
url: Optional[str] = None
|
|
27
|
+
"""Signed URL for downloading the file (expires in 1 hour)"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class StorageRetrieveFileByPathResponse(BaseModel):
|
|
31
|
+
file: Optional[File] = None
|
|
32
|
+
|
|
33
|
+
success: Optional[bool] = None
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._types import FileTypes
|
|
8
|
+
|
|
9
|
+
__all__ = ["StorageUploadFileParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StorageUploadFileParams(TypedDict, total=False):
|
|
13
|
+
file: Required[FileTypes]
|
|
14
|
+
"""File to upload (max 50MB)"""
|
|
15
|
+
|
|
16
|
+
path: str
|
|
17
|
+
"""Optional custom path within organization storage"""
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["StorageUploadFileResponse", "File"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class File(BaseModel):
|
|
14
|
+
id: Optional[str] = None
|
|
15
|
+
|
|
16
|
+
content_type: Optional[str] = FieldInfo(alias="contentType", default=None)
|
|
17
|
+
|
|
18
|
+
filename: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
path: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
size: Optional[int] = None
|
|
23
|
+
"""File size in bytes"""
|
|
24
|
+
|
|
25
|
+
uploaded_at: Optional[datetime] = FieldInfo(alias="uploadedAt", default=None)
|
|
26
|
+
|
|
27
|
+
url: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class StorageUploadFileResponse(BaseModel):
|
|
31
|
+
file: Optional[File] = None
|
|
32
|
+
|
|
33
|
+
success: Optional[bool] = None
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .table_list_params import TableListParams as TableListParams
|
|
6
|
+
from .table_list_response import TableListResponse as TableListResponse
|
|
7
|
+
from .table_get_row_count_params import TableGetRowCountParams as TableGetRowCountParams
|
|
8
|
+
from .table_get_row_count_response import TableGetRowCountResponse as TableGetRowCountResponse
|
|
9
|
+
from .table_retrieve_schema_params import TableRetrieveSchemaParams as TableRetrieveSchemaParams
|
|
10
|
+
from .table_retrieve_schema_response import TableRetrieveSchemaResponse as TableRetrieveSchemaResponse
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["TableGetRowCountParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TableGetRowCountParams(TypedDict, total=False):
|
|
11
|
+
environment: Literal["development", "staging", "production"]
|
|
12
|
+
"""Environment to query"""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["TableGetRowCountResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TableGetRowCountResponse(BaseModel):
|
|
11
|
+
count: Optional[int] = None
|
|
12
|
+
|
|
13
|
+
success: Optional[bool] = None
|
|
14
|
+
|
|
15
|
+
table: Optional[str] = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["TableListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TableListParams(TypedDict, total=False):
|
|
11
|
+
environment: Literal["development", "staging", "production"]
|
|
12
|
+
"""Environment to query (development, staging, production)"""
|
|
13
|
+
|
|
14
|
+
schema: str
|
|
15
|
+
"""Database schema to filter tables"""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["TableListResponse", "Table"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Table(BaseModel):
|
|
13
|
+
name: Optional[str] = None
|
|
14
|
+
|
|
15
|
+
schema_: Optional[str] = FieldInfo(alias="schema", default=None)
|
|
16
|
+
|
|
17
|
+
type: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TableListResponse(BaseModel):
|
|
21
|
+
count: Optional[int] = None
|
|
22
|
+
"""Total number of tables"""
|
|
23
|
+
|
|
24
|
+
success: Optional[bool] = None
|
|
25
|
+
|
|
26
|
+
tables: Optional[List[Table]] = None
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["TableRetrieveSchemaParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TableRetrieveSchemaParams(TypedDict, total=False):
|
|
11
|
+
environment: Literal["development", "staging", "production"]
|
|
12
|
+
"""Environment to query"""
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["TableRetrieveSchemaResponse", "Column"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Column(BaseModel):
|
|
13
|
+
default: Optional[str] = None
|
|
14
|
+
|
|
15
|
+
is_primary_key: Optional[bool] = FieldInfo(alias="isPrimaryKey", default=None)
|
|
16
|
+
|
|
17
|
+
name: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
nullable: Optional[bool] = None
|
|
20
|
+
|
|
21
|
+
type: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class TableRetrieveSchemaResponse(BaseModel):
|
|
25
|
+
columns: Optional[List[Column]] = None
|
|
26
|
+
|
|
27
|
+
success: Optional[bool] = None
|
|
28
|
+
|
|
29
|
+
table: Optional[str] = None
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["DBDeleteRecordsParams"]
|
|
8
9
|
|
|
@@ -11,5 +12,8 @@ class DBDeleteRecordsParams(TypedDict, total=False):
|
|
|
11
12
|
table: Required[str]
|
|
12
13
|
"""Table name to delete from"""
|
|
13
14
|
|
|
14
|
-
where: Required[object]
|
|
15
|
+
where: Required[Dict[str, object]]
|
|
15
16
|
"""Where conditions"""
|
|
17
|
+
|
|
18
|
+
environment: Literal["development", "staging", "production"]
|
|
19
|
+
"""Environment to delete from (development, staging, production)"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ class DBDeleteRecordsResponse(BaseModel):
|
|
|
11
11
|
count: Optional[int] = None
|
|
12
12
|
"""Number of records deleted"""
|
|
13
13
|
|
|
14
|
-
data: Optional[List[object]] = None
|
|
14
|
+
data: Optional[List[Dict[str, object]]] = None
|
|
15
15
|
|
|
16
16
|
message: Optional[str] = None
|
|
17
17
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["DBExecuteBatchParams", "Operation"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DBExecuteBatchParams(TypedDict, total=False):
|
|
12
|
+
operations: Required[Iterable[Operation]]
|
|
13
|
+
"""Array of database operations to execute"""
|
|
14
|
+
|
|
15
|
+
environment: Literal["development", "staging", "production"]
|
|
16
|
+
"""Environment to execute operations in"""
|
|
17
|
+
|
|
18
|
+
transactional: bool
|
|
19
|
+
"""Whether to execute all operations in a single transaction"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Operation(TypedDict, total=False):
|
|
23
|
+
type: Required[Literal["query", "insert", "update", "delete"]]
|
|
24
|
+
"""Type of operation"""
|
|
25
|
+
|
|
26
|
+
data: Dict[str, object]
|
|
27
|
+
"""Data to insert or update"""
|
|
28
|
+
|
|
29
|
+
query: str
|
|
30
|
+
"""SQL query (required for query type)"""
|
|
31
|
+
|
|
32
|
+
table: str
|
|
33
|
+
"""Table name (required for insert, update, delete)"""
|
|
34
|
+
|
|
35
|
+
where: Dict[str, object]
|
|
36
|
+
"""Where conditions for update or delete"""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["DBExecuteBatchResponse", "Result"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Result(BaseModel):
|
|
13
|
+
data: Optional[Dict[str, object]] = None
|
|
14
|
+
|
|
15
|
+
operation: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
success: Optional[bool] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class DBExecuteBatchResponse(BaseModel):
|
|
21
|
+
executed_count: Optional[int] = FieldInfo(alias="executedCount", default=None)
|
|
22
|
+
"""Number of operations executed"""
|
|
23
|
+
|
|
24
|
+
results: Optional[List[Result]] = None
|
|
25
|
+
"""Results from each operation"""
|
|
26
|
+
|
|
27
|
+
success: Optional[bool] = None
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["DBExecuteQueryParams"]
|
|
8
9
|
|
|
@@ -10,3 +11,9 @@ __all__ = ["DBExecuteQueryParams"]
|
|
|
10
11
|
class DBExecuteQueryParams(TypedDict, total=False):
|
|
11
12
|
query: Required[str]
|
|
12
13
|
"""SQL query to execute"""
|
|
14
|
+
|
|
15
|
+
environment: Literal["development", "staging", "production"]
|
|
16
|
+
"""Environment to query (development, staging, production)"""
|
|
17
|
+
|
|
18
|
+
params: Dict[str, object]
|
|
19
|
+
"""Optional query parameters"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
4
|
|
|
5
5
|
from pydantic import Field as FieldInfo
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ __all__ = ["DBExecuteQueryResponse"]
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class DBExecuteQueryResponse(BaseModel):
|
|
13
|
-
data: Optional[List[object]] = None
|
|
13
|
+
data: Optional[List[Dict[str, object]]] = None
|
|
14
14
|
|
|
15
15
|
execution_time: Optional[int] = FieldInfo(alias="executionTime", default=None)
|
|
16
16
|
"""Query execution time in milliseconds"""
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["DBInsertRecordParams"]
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class DBInsertRecordParams(TypedDict, total=False):
|
|
11
|
-
data: Required[object]
|
|
12
|
+
data: Required[Dict[str, object]]
|
|
12
13
|
"""Data to insert"""
|
|
13
14
|
|
|
14
15
|
table: Required[str]
|
|
15
16
|
"""Table name to insert into"""
|
|
17
|
+
|
|
18
|
+
environment: Literal["development", "staging", "production"]
|
|
19
|
+
"""Environment to insert into (development, staging, production)"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Optional
|
|
3
|
+
from typing import Dict, Optional
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ __all__ = ["DBInsertRecordResponse"]
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class DBInsertRecordResponse(BaseModel):
|
|
11
|
-
data: Optional[object] = None
|
|
11
|
+
data: Optional[Dict[str, object]] = None
|
|
12
12
|
|
|
13
13
|
message: Optional[str] = None
|
|
14
14
|
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["DBProcessNlQueryParams"]
|
|
8
9
|
|
|
@@ -11,5 +12,11 @@ class DBProcessNlQueryParams(TypedDict, total=False):
|
|
|
11
12
|
question: Required[str]
|
|
12
13
|
"""Natural language question"""
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
"""
|
|
15
|
+
table: Required[str]
|
|
16
|
+
"""Table name to query"""
|
|
17
|
+
|
|
18
|
+
context: Dict[str, object]
|
|
19
|
+
"""Optional context for the query"""
|
|
20
|
+
|
|
21
|
+
environment: Literal["development", "staging", "production"]
|
|
22
|
+
"""Environment to query (development, staging, production)"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ __all__ = ["DBProcessNlQueryResponse"]
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class DBProcessNlQueryResponse(BaseModel):
|
|
11
|
-
data: Optional[List[object]] = None
|
|
11
|
+
data: Optional[List[Dict[str, object]]] = None
|
|
12
12
|
|
|
13
13
|
message: Optional[str] = None
|
|
14
14
|
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["DBUpdateRecordsParams"]
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class DBUpdateRecordsParams(TypedDict, total=False):
|
|
11
|
-
data: Required[object]
|
|
12
|
+
data: Required[Dict[str, object]]
|
|
12
13
|
"""Data to update"""
|
|
13
14
|
|
|
14
15
|
table: Required[str]
|
|
15
16
|
"""Table name to update"""
|
|
16
17
|
|
|
17
|
-
where: Required[object]
|
|
18
|
+
where: Required[Dict[str, object]]
|
|
18
19
|
"""Where conditions"""
|
|
20
|
+
|
|
21
|
+
environment: Literal["development", "staging", "production"]
|
|
22
|
+
"""Environment to update in (development, staging, production)"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ class DBUpdateRecordsResponse(BaseModel):
|
|
|
11
11
|
count: Optional[int] = None
|
|
12
12
|
"""Number of records updated"""
|
|
13
13
|
|
|
14
|
-
data: Optional[List[object]] = None
|
|
14
|
+
data: Optional[List[Dict[str, object]]] = None
|
|
15
15
|
|
|
16
16
|
message: Optional[str] = None
|
|
17
17
|
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict
|
|
6
|
-
from typing_extensions import
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["FlowTriggerWithPayloadParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class FlowTriggerWithPayloadParams(TypedDict, total=False):
|
|
12
|
-
|
|
12
|
+
data: Dict[str, object]
|
|
13
|
+
"""Optional structured data to pass to the workflow"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: worqhat
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.8.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
|
|
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
36
36
|
# Worqhat Python API library
|
|
@@ -52,7 +52,7 @@ The REST API documentation can be found on [worqhat.com](https://worqhat.com/sup
|
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
54
|
# install from PyPI
|
|
55
|
-
pip install
|
|
55
|
+
pip install worqhat
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## Usage
|
|
@@ -112,7 +112,7 @@ You can enable this by installing `aiohttp`:
|
|
|
112
112
|
|
|
113
113
|
```sh
|
|
114
114
|
# install from PyPI
|
|
115
|
-
pip install
|
|
115
|
+
pip install worqhat[aiohttp]
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
worqhat/__init__.py,sha256=ycCt_XY4yHZZusG7P9qZl9JzhV7NlY12yQ_7wtvveF8,2633
|
|
2
|
+
worqhat/_base_client.py,sha256=Hrs2OxsIt1EseR69nOOe3-BH8c2hrSt2PsL-C8zDwK8,67048
|
|
3
|
+
worqhat/_client.py,sha256=RQtcSp0dS_r-7cg5jspXQw6YHlxSUzNG9DWD9PrD7vA,18725
|
|
4
|
+
worqhat/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
|
+
worqhat/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
|
+
worqhat/_exceptions.py,sha256=n2QtRwhErTAw2JJQ8Vt95ZlTeJvve2qXF8B1Z6M_7Ao,3222
|
|
7
|
+
worqhat/_files.py,sha256=Bmgx2fwiLeMSXBhC1tUenHcA1jqisBYZ5vPx9JwCc_w,3618
|
|
8
|
+
worqhat/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
|
|
9
|
+
worqhat/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
|
|
10
|
+
worqhat/_resource.py,sha256=2r0Ilj0AtogNG1TdsG6biEPWD5Ihgf1hOE51PwMEpyQ,1106
|
|
11
|
+
worqhat/_response.py,sha256=NBeCvMH3I_Zr6-Gp_8aE-S7TtNphvnw_gTlK53-lew0,28794
|
|
12
|
+
worqhat/_streaming.py,sha256=h3n2sOPN_iuD2DUno9BKZt0wT_F7GRZHcotRI5yuI0s,10104
|
|
13
|
+
worqhat/_types.py,sha256=l1lNsjBVeSVoY_E2oIAbky9t1SU9P81OAbrR8kRQ3o0,7237
|
|
14
|
+
worqhat/_version.py,sha256=Rdve7syzsfygZx66bhUXv33yxgKCbeTxCYY3FL9XG1Y,159
|
|
15
|
+
worqhat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
worqhat/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
|
+
worqhat/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
18
|
+
worqhat/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
|
|
19
|
+
worqhat/_utils/_logs.py,sha256=cb3jsbICK0cXrlqMRi4y96MiJuqk5_rQy3ujWtoZTJU,777
|
|
20
|
+
worqhat/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
|
21
|
+
worqhat/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
|
22
|
+
worqhat/_utils/_resources_proxy.py,sha256=KNhJsT2AQfFi4M_mmRtS0WAOH1Mq1ys8fLBhZfTKK-o,594
|
|
23
|
+
worqhat/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
|
24
|
+
worqhat/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
|
25
|
+
worqhat/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951
|
|
26
|
+
worqhat/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
27
|
+
worqhat/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
|
|
28
|
+
worqhat/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
29
|
+
worqhat/resources/__init__.py,sha256=YZZt7iAfniYt5geyeYQL7hEdk4Lq8U-1pAswLZpMCFw,1837
|
|
30
|
+
worqhat/resources/flows.py,sha256=JNyKSZBRtXrl_ucxPROUuXrmvf-NrlTIf5rL_2R94JU,17628
|
|
31
|
+
worqhat/resources/health.py,sha256=SVF65ZTfJgUcpDH8UG5rGcwBUe8EkW8NddiNk0mlDkk,5127
|
|
32
|
+
worqhat/resources/client/__init__.py,sha256=LLC_n_gLAsEGBmAOHDURaINTzeN_AGWu4K8P7tHNio4,1015
|
|
33
|
+
worqhat/resources/client/client.py,sha256=syPhmQSQroD26yXdG6GopMjL2f7ZOHOYI-2VH693ZII,3636
|
|
34
|
+
worqhat/resources/client/storage.py,sha256=WdcPzKhl9CMfRfNcOmytikinUAQ3yGWfBWi7nwMNRq8,18242
|
|
35
|
+
worqhat/resources/db/__init__.py,sha256=FdA8sX7Z6SK0k4-VLZmagXnmjdqpcwcGQ5RU6K4jWeg,950
|
|
36
|
+
worqhat/resources/db/db.py,sha256=5eh7PCcKauE8kOALfkp8x2W8d-zhGqi0C6j0I8RVKmo,30054
|
|
37
|
+
worqhat/resources/db/tables.py,sha256=F_vhzvifWc5nwe08m4S3dZ6qFs5sygRoBS1a0IYZMwk,14997
|
|
38
|
+
worqhat/types/__init__.py,sha256=4waVrtzUd57wL6969sVbMVR-TthHs7iv3Aaal8cchN4,1924
|
|
39
|
+
worqhat/types/db_delete_records_params.py,sha256=OtHU2hQJEZAxOna4KXj3Vq94T67WRLOsqnFpPWVr87o,564
|
|
40
|
+
worqhat/types/db_delete_records_response.py,sha256=x4RJZMKEK_yhdeD5m1k0segCRQecsQsEK2vtfs6PAoQ,434
|
|
41
|
+
worqhat/types/db_execute_batch_params.py,sha256=GHsi0VKn9nwgvn_vE56hWuTbkhAWEFOgD5ywKMyQPiQ,1038
|
|
42
|
+
worqhat/types/db_execute_batch_response.py,sha256=ma2G7awwCs79vAEmAd0qsZ4mm7qtmrP85-gLyr0FXT8,678
|
|
43
|
+
worqhat/types/db_execute_query_params.py,sha256=_6SyyLEUhbGySHTZRI0nyjsJoEQKjyE4LrUEvngOPiQ,551
|
|
44
|
+
worqhat/types/db_execute_query_response.py,sha256=qUX3w3lMmSISCkUYqDURoW1e_0RyyUy03lNL_Y8tCsw,566
|
|
45
|
+
worqhat/types/db_insert_record_params.py,sha256=v3R20cbxZebwDE6Nn5dU_3l2KKItp75Zl1BqcNS1jkE,559
|
|
46
|
+
worqhat/types/db_insert_record_response.py,sha256=X3_9MhXkf3XHrJisAd7bFy1qF3jnvwcLtt6t8QPl6Fo,351
|
|
47
|
+
worqhat/types/db_process_nl_query_params.py,sha256=CB2xfCXM_a5TFAjnzsFG9PWKhNHoCVU0Vl8ICLnMnic,625
|
|
48
|
+
worqhat/types/db_process_nl_query_response.py,sha256=b89K4MPIVUOm4KSmXumwx8mE2xhvzUvGAQhlbQGeyfo,432
|
|
49
|
+
worqhat/types/db_update_records_params.py,sha256=AdnLX5UncobxEuTWZPJ_s_NZiykNwVie3TjC9FyNOCU,621
|
|
50
|
+
worqhat/types/db_update_records_response.py,sha256=2nJr_NHr7eMi8cJNi1GHTCbmcNlJxO3EiysxBfZVxzo,434
|
|
51
|
+
worqhat/types/flow_get_metrics_params.py,sha256=x4SgBnhjUDIabDVd3f3_wVGldHSLelUSSM_AoxpglTs,768
|
|
52
|
+
worqhat/types/flow_get_metrics_response.py,sha256=xk4-y22nz_54QydhCRFYT-wONKaoSmjJSr-bT88r-b4,1287
|
|
53
|
+
worqhat/types/flow_trigger_with_file_params.py,sha256=E5u-840gLHNpM5DIpx6is_usrMgSiEu_OXZuS6-7D_A,414
|
|
54
|
+
worqhat/types/flow_trigger_with_file_response.py,sha256=xa3qZSBwa8eJddqlGJrwd9WO-hPw1k9NJr3Yrr2EUzk,433
|
|
55
|
+
worqhat/types/flow_trigger_with_payload_params.py,sha256=hHhYGbfzAilN0G44uYayybigW79IrZjaheiPNKqqWsg,380
|
|
56
|
+
worqhat/types/flow_trigger_with_payload_response.py,sha256=XT-6VEfTbpM3o098AATogw9s-X60gsd18b4T_xOiW60,479
|
|
57
|
+
worqhat/types/get_server_info_response.py,sha256=Ev88Yr-DGVx00hluVKMnY4xq-VluFvcQ6z08XZTPcCE,332
|
|
58
|
+
worqhat/types/health_check_response.py,sha256=29tvzgqsy6wVfFwVunK5ouzSYeZGEUnQQuQpAQGsoxI,885
|
|
59
|
+
worqhat/types/client/__init__.py,sha256=6fToUXRcAxryUcLSh9gzMHWZbdhNz6kaISDbEObR4ug,788
|
|
60
|
+
worqhat/types/client/storage_delete_file_by_id_response.py,sha256=TVB6w81mx4CTvBtAyvVi4YLtvCrcqRmoGlHqSBVDga4,466
|
|
61
|
+
worqhat/types/client/storage_retrieve_file_by_id_response.py,sha256=P4ML2vBH2V4LmZ3mAldM1Zq7AYQCKV6Pknyay1w6-H8,809
|
|
62
|
+
worqhat/types/client/storage_retrieve_file_by_path_params.py,sha256=jxHUEBfKYH2zUEGlL1ytIFkzTWthTdPqNX_46H-9eiU,368
|
|
63
|
+
worqhat/types/client/storage_retrieve_file_by_path_response.py,sha256=ZaJfgvJtTGpoWaOocaEUNIyo8YbXnlKD0weVItL5XMY,813
|
|
64
|
+
worqhat/types/client/storage_upload_file_params.py,sha256=TIAd6lZGJYze0PKtDk50yfpiVdToKZKr7KXcqNIcql0,442
|
|
65
|
+
worqhat/types/client/storage_upload_file_response.py,sha256=XA9xzjMQXDH4m55b46_wCBs14LewD_5aXXvYFk-qWas,760
|
|
66
|
+
worqhat/types/db/__init__.py,sha256=A11__5Vr1Ju2JdH7t5DpvVaYqoImM8Bf-iFYwjAr2Kc,645
|
|
67
|
+
worqhat/types/db/table_get_row_count_params.py,sha256=jT6P25NN22TZe5Lk8TzMKY4dB9ReJQ2o33LQeTxS3Bs,362
|
|
68
|
+
worqhat/types/db/table_get_row_count_response.py,sha256=jr3O3NQl1o8rVaoG1ilK1h1LOELc1d1AkbVAYGG1Go0,335
|
|
69
|
+
worqhat/types/db/table_list_params.py,sha256=aiq4uIj9lNsnoN3-FgNn_mSfwUzX5XchPvlXh0hyJgY,443
|
|
70
|
+
worqhat/types/db/table_list_response.py,sha256=gbktGz4ilObaMkbA9_t0UussYuSBPEN9cuhh6_IXnNw,578
|
|
71
|
+
worqhat/types/db/table_retrieve_schema_params.py,sha256=DFQaflB9weCc8JjqXkaAK-TLfy1IXTev7-vh4O0RYFk,368
|
|
72
|
+
worqhat/types/db/table_retrieve_schema_response.py,sha256=-OHPvWJSGJzEScrRPilQVsuU_60U7qIJ3_ZleVwJ1j0,655
|
|
73
|
+
worqhat-3.8.0.dist-info/METADATA,sha256=ToXSaIc4-SJwf4WnAId8VJMOCeVpuOe2ViH-T8fdxWo,14313
|
|
74
|
+
worqhat-3.8.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
75
|
+
worqhat-3.8.0.dist-info/licenses/LICENSE,sha256=UwMftLIOitTJWtJ9bowByxdt9ZSFqmmb43oQosW5xiU,11337
|
|
76
|
+
worqhat-3.8.0.dist-info/RECORD,,
|