deeporigin-data-sdk 0.1.0a31__py3-none-any.whl → 0.1.0a32__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.
- deeporigin_data/_client.py +416 -0
- deeporigin_data/_version.py +1 -1
- deeporigin_data/types/__init__.py +6 -0
- deeporigin_data/types/client_describe_database_row_params.py +25 -0
- deeporigin_data/types/client_describe_hierarchy_params.py +17 -0
- deeporigin_data/types/client_export_database_params.py +120 -0
- deeporigin_data/types/client_resolve_ids_params.py +24 -0
- deeporigin_data/types/describe_hierarchy_response.py +27 -0
- deeporigin_data/types/resolve_ids_response.py +46 -0
- {deeporigin_data_sdk-0.1.0a31.dist-info → deeporigin_data_sdk-0.1.0a32.dist-info}/METADATA +1 -1
- {deeporigin_data_sdk-0.1.0a31.dist-info → deeporigin_data_sdk-0.1.0a32.dist-info}/RECORD +13 -7
- {deeporigin_data_sdk-0.1.0a31.dist-info → deeporigin_data_sdk-0.1.0a32.dist-info}/WHEEL +0 -0
- {deeporigin_data_sdk-0.1.0a31.dist-info → deeporigin_data_sdk-0.1.0a32.dist-info}/licenses/LICENSE +0 -0
deeporigin_data/_client.py
CHANGED
@@ -16,6 +16,7 @@ from .types import (
|
|
16
16
|
client_delete_rows_params,
|
17
17
|
client_ensure_rows_params,
|
18
18
|
client_import_rows_params,
|
19
|
+
client_resolve_ids_params,
|
19
20
|
client_describe_row_params,
|
20
21
|
client_archive_files_params,
|
21
22
|
client_describe_file_params,
|
@@ -23,6 +24,7 @@ from .types import (
|
|
23
24
|
client_lock_database_params,
|
24
25
|
client_create_database_params,
|
25
26
|
client_delete_database_params,
|
27
|
+
client_export_database_params,
|
26
28
|
client_unlock_database_params,
|
27
29
|
client_update_database_params,
|
28
30
|
client_create_workspace_params,
|
@@ -35,10 +37,12 @@ from .types import (
|
|
35
37
|
client_chat_create_thread_params,
|
36
38
|
client_chat_list_messages_params,
|
37
39
|
client_create_file_upload_params,
|
40
|
+
client_describe_hierarchy_params,
|
38
41
|
client_describe_workspace_params,
|
39
42
|
client_execute_code_async_params,
|
40
43
|
client_list_database_rows_params,
|
41
44
|
client_add_database_column_params,
|
45
|
+
client_describe_database_row_params,
|
42
46
|
client_delete_database_column_params,
|
43
47
|
client_update_database_column_params,
|
44
48
|
client_describe_code_execution_params,
|
@@ -71,10 +75,18 @@ from ._utils import (
|
|
71
75
|
)
|
72
76
|
from ._version import __version__
|
73
77
|
from ._response import (
|
78
|
+
BinaryAPIResponse,
|
79
|
+
AsyncBinaryAPIResponse,
|
80
|
+
StreamedBinaryAPIResponse,
|
81
|
+
AsyncStreamedBinaryAPIResponse,
|
74
82
|
to_raw_response_wrapper,
|
75
83
|
to_streamed_response_wrapper,
|
76
84
|
async_to_raw_response_wrapper,
|
85
|
+
to_custom_raw_response_wrapper,
|
77
86
|
async_to_streamed_response_wrapper,
|
87
|
+
to_custom_streamed_response_wrapper,
|
88
|
+
async_to_custom_raw_response_wrapper,
|
89
|
+
async_to_custom_streamed_response_wrapper,
|
78
90
|
)
|
79
91
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
80
92
|
from ._exceptions import APIStatusError, DeeporiginDataError
|
@@ -89,6 +101,7 @@ from .types.list_files_response import ListFilesResponse
|
|
89
101
|
from .types.delete_rows_response import DeleteRowsResponse
|
90
102
|
from .types.ensure_rows_response import EnsureRowsResponse
|
91
103
|
from .types.import_rows_response import ImportRowsResponse
|
104
|
+
from .types.resolve_ids_response import ResolveIDsResponse
|
92
105
|
from .types.describe_file_response import DescribeFileResponse
|
93
106
|
from .types.list_mentions_response import ListMentionsResponse
|
94
107
|
from .types.lock_database_response import LockDatabaseResponse
|
@@ -105,6 +118,7 @@ from .types.execute_code_sync_response import ExecuteCodeSyncResponse
|
|
105
118
|
from .types.chat_create_thread_response import ChatCreateThreadResponse
|
106
119
|
from .types.chat_list_messages_response import ChatListMessagesResponse
|
107
120
|
from .types.create_file_upload_response import CreateFileUploadResponse
|
121
|
+
from .types.describe_hierarchy_response import DescribeHierarchyResponse
|
108
122
|
from .types.describe_workspace_response import DescribeWorkspaceResponse
|
109
123
|
from .types.execute_code_async_response import ExecuteCodeAsyncResponse
|
110
124
|
from .types.list_database_rows_response import ListDatabaseRowsResponse
|
@@ -902,6 +916,49 @@ class DeeporiginData(SyncAPIClient):
|
|
902
916
|
cast_to=DescribeDatabaseResponse,
|
903
917
|
)
|
904
918
|
|
919
|
+
def describe_database_row(
|
920
|
+
self,
|
921
|
+
*,
|
922
|
+
row_id: str,
|
923
|
+
column_selection: client_describe_database_row_params.ColumnSelection | NotGiven = NOT_GIVEN,
|
924
|
+
fields: bool | NotGiven = NOT_GIVEN,
|
925
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
926
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
927
|
+
extra_headers: Headers | None = None,
|
928
|
+
extra_query: Query | None = None,
|
929
|
+
extra_body: Body | None = None,
|
930
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
931
|
+
) -> DescribeRowResponse:
|
932
|
+
"""
|
933
|
+
Describe a database row
|
934
|
+
|
935
|
+
Args:
|
936
|
+
column_selection: Select columns for inclusion/exclusion.
|
937
|
+
|
938
|
+
extra_headers: Send extra headers
|
939
|
+
|
940
|
+
extra_query: Add additional query parameters to the request
|
941
|
+
|
942
|
+
extra_body: Add additional JSON properties to the request
|
943
|
+
|
944
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
945
|
+
"""
|
946
|
+
return self.post(
|
947
|
+
"/DescribeDatabaseRow",
|
948
|
+
body=maybe_transform(
|
949
|
+
{
|
950
|
+
"row_id": row_id,
|
951
|
+
"column_selection": column_selection,
|
952
|
+
"fields": fields,
|
953
|
+
},
|
954
|
+
client_describe_database_row_params.ClientDescribeDatabaseRowParams,
|
955
|
+
),
|
956
|
+
options=make_request_options(
|
957
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
958
|
+
),
|
959
|
+
cast_to=DescribeRowResponse,
|
960
|
+
)
|
961
|
+
|
905
962
|
def describe_database_stats(
|
906
963
|
self,
|
907
964
|
*,
|
@@ -970,6 +1027,47 @@ class DeeporiginData(SyncAPIClient):
|
|
970
1027
|
cast_to=DescribeFileResponse,
|
971
1028
|
)
|
972
1029
|
|
1030
|
+
def describe_hierarchy(
|
1031
|
+
self,
|
1032
|
+
*,
|
1033
|
+
id: str,
|
1034
|
+
type: Literal["database", "row", "workspace"],
|
1035
|
+
database_id: str | NotGiven = NOT_GIVEN,
|
1036
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
1037
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
1038
|
+
extra_headers: Headers | None = None,
|
1039
|
+
extra_query: Query | None = None,
|
1040
|
+
extra_body: Body | None = None,
|
1041
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
1042
|
+
) -> DescribeHierarchyResponse:
|
1043
|
+
"""
|
1044
|
+
Describe the hierarchical position of an entity.
|
1045
|
+
|
1046
|
+
Args:
|
1047
|
+
extra_headers: Send extra headers
|
1048
|
+
|
1049
|
+
extra_query: Add additional query parameters to the request
|
1050
|
+
|
1051
|
+
extra_body: Add additional JSON properties to the request
|
1052
|
+
|
1053
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
1054
|
+
"""
|
1055
|
+
return self.post(
|
1056
|
+
"/DescribeHierarchy",
|
1057
|
+
body=maybe_transform(
|
1058
|
+
{
|
1059
|
+
"id": id,
|
1060
|
+
"type": type,
|
1061
|
+
"database_id": database_id,
|
1062
|
+
},
|
1063
|
+
client_describe_hierarchy_params.ClientDescribeHierarchyParams,
|
1064
|
+
),
|
1065
|
+
options=make_request_options(
|
1066
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
1067
|
+
),
|
1068
|
+
cast_to=DescribeHierarchyResponse,
|
1069
|
+
)
|
1070
|
+
|
973
1071
|
def describe_row(
|
974
1072
|
self,
|
975
1073
|
*,
|
@@ -1190,6 +1288,56 @@ class DeeporiginData(SyncAPIClient):
|
|
1190
1288
|
cast_to=ExecuteCodeSyncResponse,
|
1191
1289
|
)
|
1192
1290
|
|
1291
|
+
def export_database(
|
1292
|
+
self,
|
1293
|
+
*,
|
1294
|
+
database_id: str,
|
1295
|
+
format: Literal["csv"],
|
1296
|
+
column_selection: client_export_database_params.ColumnSelection | NotGiven = NOT_GIVEN,
|
1297
|
+
filter: client_export_database_params.Filter | NotGiven = NOT_GIVEN,
|
1298
|
+
row_sort: Iterable[client_export_database_params.RowSort] | NotGiven = NOT_GIVEN,
|
1299
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
1300
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
1301
|
+
extra_headers: Headers | None = None,
|
1302
|
+
extra_query: Query | None = None,
|
1303
|
+
extra_body: Body | None = None,
|
1304
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
1305
|
+
) -> BinaryAPIResponse:
|
1306
|
+
"""
|
1307
|
+
Exports a database to a file.
|
1308
|
+
|
1309
|
+
Args:
|
1310
|
+
column_selection: Select columns for inclusion/exclusion.
|
1311
|
+
|
1312
|
+
row_sort: Sort rows by column.
|
1313
|
+
|
1314
|
+
extra_headers: Send extra headers
|
1315
|
+
|
1316
|
+
extra_query: Add additional query parameters to the request
|
1317
|
+
|
1318
|
+
extra_body: Add additional JSON properties to the request
|
1319
|
+
|
1320
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
1321
|
+
"""
|
1322
|
+
extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
|
1323
|
+
return self.post(
|
1324
|
+
"/ExportDatabase",
|
1325
|
+
body=maybe_transform(
|
1326
|
+
{
|
1327
|
+
"database_id": database_id,
|
1328
|
+
"format": format,
|
1329
|
+
"column_selection": column_selection,
|
1330
|
+
"filter": filter,
|
1331
|
+
"row_sort": row_sort,
|
1332
|
+
},
|
1333
|
+
client_export_database_params.ClientExportDatabaseParams,
|
1334
|
+
),
|
1335
|
+
options=make_request_options(
|
1336
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
1337
|
+
),
|
1338
|
+
cast_to=BinaryAPIResponse,
|
1339
|
+
)
|
1340
|
+
|
1193
1341
|
def get_code_execution_result(
|
1194
1342
|
self,
|
1195
1343
|
*,
|
@@ -1562,6 +1710,47 @@ class DeeporiginData(SyncAPIClient):
|
|
1562
1710
|
cast_to=ParseBaseSequenceDataResponse,
|
1563
1711
|
)
|
1564
1712
|
|
1713
|
+
def resolve_ids(
|
1714
|
+
self,
|
1715
|
+
*,
|
1716
|
+
database_ids: List[str] | NotGiven = NOT_GIVEN,
|
1717
|
+
rows: Iterable[client_resolve_ids_params.Row] | NotGiven = NOT_GIVEN,
|
1718
|
+
workspace_ids: List[str] | NotGiven = NOT_GIVEN,
|
1719
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
1720
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
1721
|
+
extra_headers: Headers | None = None,
|
1722
|
+
extra_query: Query | None = None,
|
1723
|
+
extra_body: Body | None = None,
|
1724
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
1725
|
+
) -> ResolveIDsResponse:
|
1726
|
+
"""
|
1727
|
+
Resolves between system IDs and human IDs (HIDs).
|
1728
|
+
|
1729
|
+
Args:
|
1730
|
+
extra_headers: Send extra headers
|
1731
|
+
|
1732
|
+
extra_query: Add additional query parameters to the request
|
1733
|
+
|
1734
|
+
extra_body: Add additional JSON properties to the request
|
1735
|
+
|
1736
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
1737
|
+
"""
|
1738
|
+
return self.post(
|
1739
|
+
"/ResolveIds",
|
1740
|
+
body=maybe_transform(
|
1741
|
+
{
|
1742
|
+
"database_ids": database_ids,
|
1743
|
+
"rows": rows,
|
1744
|
+
"workspace_ids": workspace_ids,
|
1745
|
+
},
|
1746
|
+
client_resolve_ids_params.ClientResolveIDsParams,
|
1747
|
+
),
|
1748
|
+
options=make_request_options(
|
1749
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
1750
|
+
),
|
1751
|
+
cast_to=ResolveIDsResponse,
|
1752
|
+
)
|
1753
|
+
|
1565
1754
|
def unlock_database(
|
1566
1755
|
self,
|
1567
1756
|
*,
|
@@ -2526,6 +2715,49 @@ class AsyncDeeporiginData(AsyncAPIClient):
|
|
2526
2715
|
cast_to=DescribeDatabaseResponse,
|
2527
2716
|
)
|
2528
2717
|
|
2718
|
+
async def describe_database_row(
|
2719
|
+
self,
|
2720
|
+
*,
|
2721
|
+
row_id: str,
|
2722
|
+
column_selection: client_describe_database_row_params.ColumnSelection | NotGiven = NOT_GIVEN,
|
2723
|
+
fields: bool | NotGiven = NOT_GIVEN,
|
2724
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
2725
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
2726
|
+
extra_headers: Headers | None = None,
|
2727
|
+
extra_query: Query | None = None,
|
2728
|
+
extra_body: Body | None = None,
|
2729
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
2730
|
+
) -> DescribeRowResponse:
|
2731
|
+
"""
|
2732
|
+
Describe a database row
|
2733
|
+
|
2734
|
+
Args:
|
2735
|
+
column_selection: Select columns for inclusion/exclusion.
|
2736
|
+
|
2737
|
+
extra_headers: Send extra headers
|
2738
|
+
|
2739
|
+
extra_query: Add additional query parameters to the request
|
2740
|
+
|
2741
|
+
extra_body: Add additional JSON properties to the request
|
2742
|
+
|
2743
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
2744
|
+
"""
|
2745
|
+
return await self.post(
|
2746
|
+
"/DescribeDatabaseRow",
|
2747
|
+
body=await async_maybe_transform(
|
2748
|
+
{
|
2749
|
+
"row_id": row_id,
|
2750
|
+
"column_selection": column_selection,
|
2751
|
+
"fields": fields,
|
2752
|
+
},
|
2753
|
+
client_describe_database_row_params.ClientDescribeDatabaseRowParams,
|
2754
|
+
),
|
2755
|
+
options=make_request_options(
|
2756
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
2757
|
+
),
|
2758
|
+
cast_to=DescribeRowResponse,
|
2759
|
+
)
|
2760
|
+
|
2529
2761
|
async def describe_database_stats(
|
2530
2762
|
self,
|
2531
2763
|
*,
|
@@ -2596,6 +2828,47 @@ class AsyncDeeporiginData(AsyncAPIClient):
|
|
2596
2828
|
cast_to=DescribeFileResponse,
|
2597
2829
|
)
|
2598
2830
|
|
2831
|
+
async def describe_hierarchy(
|
2832
|
+
self,
|
2833
|
+
*,
|
2834
|
+
id: str,
|
2835
|
+
type: Literal["database", "row", "workspace"],
|
2836
|
+
database_id: str | NotGiven = NOT_GIVEN,
|
2837
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
2838
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
2839
|
+
extra_headers: Headers | None = None,
|
2840
|
+
extra_query: Query | None = None,
|
2841
|
+
extra_body: Body | None = None,
|
2842
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
2843
|
+
) -> DescribeHierarchyResponse:
|
2844
|
+
"""
|
2845
|
+
Describe the hierarchical position of an entity.
|
2846
|
+
|
2847
|
+
Args:
|
2848
|
+
extra_headers: Send extra headers
|
2849
|
+
|
2850
|
+
extra_query: Add additional query parameters to the request
|
2851
|
+
|
2852
|
+
extra_body: Add additional JSON properties to the request
|
2853
|
+
|
2854
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
2855
|
+
"""
|
2856
|
+
return await self.post(
|
2857
|
+
"/DescribeHierarchy",
|
2858
|
+
body=await async_maybe_transform(
|
2859
|
+
{
|
2860
|
+
"id": id,
|
2861
|
+
"type": type,
|
2862
|
+
"database_id": database_id,
|
2863
|
+
},
|
2864
|
+
client_describe_hierarchy_params.ClientDescribeHierarchyParams,
|
2865
|
+
),
|
2866
|
+
options=make_request_options(
|
2867
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
2868
|
+
),
|
2869
|
+
cast_to=DescribeHierarchyResponse,
|
2870
|
+
)
|
2871
|
+
|
2599
2872
|
async def describe_row(
|
2600
2873
|
self,
|
2601
2874
|
*,
|
@@ -2816,6 +3089,56 @@ class AsyncDeeporiginData(AsyncAPIClient):
|
|
2816
3089
|
cast_to=ExecuteCodeSyncResponse,
|
2817
3090
|
)
|
2818
3091
|
|
3092
|
+
async def export_database(
|
3093
|
+
self,
|
3094
|
+
*,
|
3095
|
+
database_id: str,
|
3096
|
+
format: Literal["csv"],
|
3097
|
+
column_selection: client_export_database_params.ColumnSelection | NotGiven = NOT_GIVEN,
|
3098
|
+
filter: client_export_database_params.Filter | NotGiven = NOT_GIVEN,
|
3099
|
+
row_sort: Iterable[client_export_database_params.RowSort] | NotGiven = NOT_GIVEN,
|
3100
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
3101
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
3102
|
+
extra_headers: Headers | None = None,
|
3103
|
+
extra_query: Query | None = None,
|
3104
|
+
extra_body: Body | None = None,
|
3105
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
3106
|
+
) -> AsyncBinaryAPIResponse:
|
3107
|
+
"""
|
3108
|
+
Exports a database to a file.
|
3109
|
+
|
3110
|
+
Args:
|
3111
|
+
column_selection: Select columns for inclusion/exclusion.
|
3112
|
+
|
3113
|
+
row_sort: Sort rows by column.
|
3114
|
+
|
3115
|
+
extra_headers: Send extra headers
|
3116
|
+
|
3117
|
+
extra_query: Add additional query parameters to the request
|
3118
|
+
|
3119
|
+
extra_body: Add additional JSON properties to the request
|
3120
|
+
|
3121
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
3122
|
+
"""
|
3123
|
+
extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
|
3124
|
+
return await self.post(
|
3125
|
+
"/ExportDatabase",
|
3126
|
+
body=await async_maybe_transform(
|
3127
|
+
{
|
3128
|
+
"database_id": database_id,
|
3129
|
+
"format": format,
|
3130
|
+
"column_selection": column_selection,
|
3131
|
+
"filter": filter,
|
3132
|
+
"row_sort": row_sort,
|
3133
|
+
},
|
3134
|
+
client_export_database_params.ClientExportDatabaseParams,
|
3135
|
+
),
|
3136
|
+
options=make_request_options(
|
3137
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
3138
|
+
),
|
3139
|
+
cast_to=AsyncBinaryAPIResponse,
|
3140
|
+
)
|
3141
|
+
|
2819
3142
|
async def get_code_execution_result(
|
2820
3143
|
self,
|
2821
3144
|
*,
|
@@ -3190,6 +3513,47 @@ class AsyncDeeporiginData(AsyncAPIClient):
|
|
3190
3513
|
cast_to=ParseBaseSequenceDataResponse,
|
3191
3514
|
)
|
3192
3515
|
|
3516
|
+
async def resolve_ids(
|
3517
|
+
self,
|
3518
|
+
*,
|
3519
|
+
database_ids: List[str] | NotGiven = NOT_GIVEN,
|
3520
|
+
rows: Iterable[client_resolve_ids_params.Row] | NotGiven = NOT_GIVEN,
|
3521
|
+
workspace_ids: List[str] | NotGiven = NOT_GIVEN,
|
3522
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
3523
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
3524
|
+
extra_headers: Headers | None = None,
|
3525
|
+
extra_query: Query | None = None,
|
3526
|
+
extra_body: Body | None = None,
|
3527
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
3528
|
+
) -> ResolveIDsResponse:
|
3529
|
+
"""
|
3530
|
+
Resolves between system IDs and human IDs (HIDs).
|
3531
|
+
|
3532
|
+
Args:
|
3533
|
+
extra_headers: Send extra headers
|
3534
|
+
|
3535
|
+
extra_query: Add additional query parameters to the request
|
3536
|
+
|
3537
|
+
extra_body: Add additional JSON properties to the request
|
3538
|
+
|
3539
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
3540
|
+
"""
|
3541
|
+
return await self.post(
|
3542
|
+
"/ResolveIds",
|
3543
|
+
body=await async_maybe_transform(
|
3544
|
+
{
|
3545
|
+
"database_ids": database_ids,
|
3546
|
+
"rows": rows,
|
3547
|
+
"workspace_ids": workspace_ids,
|
3548
|
+
},
|
3549
|
+
client_resolve_ids_params.ClientResolveIDsParams,
|
3550
|
+
),
|
3551
|
+
options=make_request_options(
|
3552
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
3553
|
+
),
|
3554
|
+
cast_to=ResolveIDsResponse,
|
3555
|
+
)
|
3556
|
+
|
3193
3557
|
async def unlock_database(
|
3194
3558
|
self,
|
3195
3559
|
*,
|
@@ -3430,12 +3794,18 @@ class DeeporiginDataWithRawResponse:
|
|
3430
3794
|
self.describe_database = to_raw_response_wrapper(
|
3431
3795
|
client.describe_database,
|
3432
3796
|
)
|
3797
|
+
self.describe_database_row = to_raw_response_wrapper(
|
3798
|
+
client.describe_database_row,
|
3799
|
+
)
|
3433
3800
|
self.describe_database_stats = to_raw_response_wrapper(
|
3434
3801
|
client.describe_database_stats,
|
3435
3802
|
)
|
3436
3803
|
self.describe_file = to_raw_response_wrapper(
|
3437
3804
|
client.describe_file,
|
3438
3805
|
)
|
3806
|
+
self.describe_hierarchy = to_raw_response_wrapper(
|
3807
|
+
client.describe_hierarchy,
|
3808
|
+
)
|
3439
3809
|
self.describe_row = to_raw_response_wrapper(
|
3440
3810
|
client.describe_row,
|
3441
3811
|
)
|
@@ -3454,6 +3824,10 @@ class DeeporiginDataWithRawResponse:
|
|
3454
3824
|
self.execute_code_sync = to_raw_response_wrapper(
|
3455
3825
|
client.execute_code_sync,
|
3456
3826
|
)
|
3827
|
+
self.export_database = to_custom_raw_response_wrapper(
|
3828
|
+
client.export_database,
|
3829
|
+
BinaryAPIResponse,
|
3830
|
+
)
|
3457
3831
|
self.get_code_execution_result = to_raw_response_wrapper(
|
3458
3832
|
client.get_code_execution_result,
|
3459
3833
|
)
|
@@ -3484,6 +3858,9 @@ class DeeporiginDataWithRawResponse:
|
|
3484
3858
|
self.parse_base_sequence_data = to_raw_response_wrapper(
|
3485
3859
|
client.parse_base_sequence_data,
|
3486
3860
|
)
|
3861
|
+
self.resolve_ids = to_raw_response_wrapper(
|
3862
|
+
client.resolve_ids,
|
3863
|
+
)
|
3487
3864
|
self.unlock_database = to_raw_response_wrapper(
|
3488
3865
|
client.unlock_database,
|
3489
3866
|
)
|
@@ -3551,12 +3928,18 @@ class AsyncDeeporiginDataWithRawResponse:
|
|
3551
3928
|
self.describe_database = async_to_raw_response_wrapper(
|
3552
3929
|
client.describe_database,
|
3553
3930
|
)
|
3931
|
+
self.describe_database_row = async_to_raw_response_wrapper(
|
3932
|
+
client.describe_database_row,
|
3933
|
+
)
|
3554
3934
|
self.describe_database_stats = async_to_raw_response_wrapper(
|
3555
3935
|
client.describe_database_stats,
|
3556
3936
|
)
|
3557
3937
|
self.describe_file = async_to_raw_response_wrapper(
|
3558
3938
|
client.describe_file,
|
3559
3939
|
)
|
3940
|
+
self.describe_hierarchy = async_to_raw_response_wrapper(
|
3941
|
+
client.describe_hierarchy,
|
3942
|
+
)
|
3560
3943
|
self.describe_row = async_to_raw_response_wrapper(
|
3561
3944
|
client.describe_row,
|
3562
3945
|
)
|
@@ -3575,6 +3958,10 @@ class AsyncDeeporiginDataWithRawResponse:
|
|
3575
3958
|
self.execute_code_sync = async_to_raw_response_wrapper(
|
3576
3959
|
client.execute_code_sync,
|
3577
3960
|
)
|
3961
|
+
self.export_database = async_to_custom_raw_response_wrapper(
|
3962
|
+
client.export_database,
|
3963
|
+
AsyncBinaryAPIResponse,
|
3964
|
+
)
|
3578
3965
|
self.get_code_execution_result = async_to_raw_response_wrapper(
|
3579
3966
|
client.get_code_execution_result,
|
3580
3967
|
)
|
@@ -3605,6 +3992,9 @@ class AsyncDeeporiginDataWithRawResponse:
|
|
3605
3992
|
self.parse_base_sequence_data = async_to_raw_response_wrapper(
|
3606
3993
|
client.parse_base_sequence_data,
|
3607
3994
|
)
|
3995
|
+
self.resolve_ids = async_to_raw_response_wrapper(
|
3996
|
+
client.resolve_ids,
|
3997
|
+
)
|
3608
3998
|
self.unlock_database = async_to_raw_response_wrapper(
|
3609
3999
|
client.unlock_database,
|
3610
4000
|
)
|
@@ -3672,12 +4062,18 @@ class DeeporiginDataWithStreamedResponse:
|
|
3672
4062
|
self.describe_database = to_streamed_response_wrapper(
|
3673
4063
|
client.describe_database,
|
3674
4064
|
)
|
4065
|
+
self.describe_database_row = to_streamed_response_wrapper(
|
4066
|
+
client.describe_database_row,
|
4067
|
+
)
|
3675
4068
|
self.describe_database_stats = to_streamed_response_wrapper(
|
3676
4069
|
client.describe_database_stats,
|
3677
4070
|
)
|
3678
4071
|
self.describe_file = to_streamed_response_wrapper(
|
3679
4072
|
client.describe_file,
|
3680
4073
|
)
|
4074
|
+
self.describe_hierarchy = to_streamed_response_wrapper(
|
4075
|
+
client.describe_hierarchy,
|
4076
|
+
)
|
3681
4077
|
self.describe_row = to_streamed_response_wrapper(
|
3682
4078
|
client.describe_row,
|
3683
4079
|
)
|
@@ -3696,6 +4092,10 @@ class DeeporiginDataWithStreamedResponse:
|
|
3696
4092
|
self.execute_code_sync = to_streamed_response_wrapper(
|
3697
4093
|
client.execute_code_sync,
|
3698
4094
|
)
|
4095
|
+
self.export_database = to_custom_streamed_response_wrapper(
|
4096
|
+
client.export_database,
|
4097
|
+
StreamedBinaryAPIResponse,
|
4098
|
+
)
|
3699
4099
|
self.get_code_execution_result = to_streamed_response_wrapper(
|
3700
4100
|
client.get_code_execution_result,
|
3701
4101
|
)
|
@@ -3726,6 +4126,9 @@ class DeeporiginDataWithStreamedResponse:
|
|
3726
4126
|
self.parse_base_sequence_data = to_streamed_response_wrapper(
|
3727
4127
|
client.parse_base_sequence_data,
|
3728
4128
|
)
|
4129
|
+
self.resolve_ids = to_streamed_response_wrapper(
|
4130
|
+
client.resolve_ids,
|
4131
|
+
)
|
3729
4132
|
self.unlock_database = to_streamed_response_wrapper(
|
3730
4133
|
client.unlock_database,
|
3731
4134
|
)
|
@@ -3793,12 +4196,18 @@ class AsyncDeeporiginDataWithStreamedResponse:
|
|
3793
4196
|
self.describe_database = async_to_streamed_response_wrapper(
|
3794
4197
|
client.describe_database,
|
3795
4198
|
)
|
4199
|
+
self.describe_database_row = async_to_streamed_response_wrapper(
|
4200
|
+
client.describe_database_row,
|
4201
|
+
)
|
3796
4202
|
self.describe_database_stats = async_to_streamed_response_wrapper(
|
3797
4203
|
client.describe_database_stats,
|
3798
4204
|
)
|
3799
4205
|
self.describe_file = async_to_streamed_response_wrapper(
|
3800
4206
|
client.describe_file,
|
3801
4207
|
)
|
4208
|
+
self.describe_hierarchy = async_to_streamed_response_wrapper(
|
4209
|
+
client.describe_hierarchy,
|
4210
|
+
)
|
3802
4211
|
self.describe_row = async_to_streamed_response_wrapper(
|
3803
4212
|
client.describe_row,
|
3804
4213
|
)
|
@@ -3817,6 +4226,10 @@ class AsyncDeeporiginDataWithStreamedResponse:
|
|
3817
4226
|
self.execute_code_sync = async_to_streamed_response_wrapper(
|
3818
4227
|
client.execute_code_sync,
|
3819
4228
|
)
|
4229
|
+
self.export_database = async_to_custom_streamed_response_wrapper(
|
4230
|
+
client.export_database,
|
4231
|
+
AsyncStreamedBinaryAPIResponse,
|
4232
|
+
)
|
3820
4233
|
self.get_code_execution_result = async_to_streamed_response_wrapper(
|
3821
4234
|
client.get_code_execution_result,
|
3822
4235
|
)
|
@@ -3847,6 +4260,9 @@ class AsyncDeeporiginDataWithStreamedResponse:
|
|
3847
4260
|
self.parse_base_sequence_data = async_to_streamed_response_wrapper(
|
3848
4261
|
client.parse_base_sequence_data,
|
3849
4262
|
)
|
4263
|
+
self.resolve_ids = async_to_streamed_response_wrapper(
|
4264
|
+
client.resolve_ids,
|
4265
|
+
)
|
3850
4266
|
self.unlock_database = async_to_streamed_response_wrapper(
|
3851
4267
|
client.unlock_database,
|
3852
4268
|
)
|
deeporigin_data/_version.py
CHANGED
@@ -18,6 +18,7 @@ from .list_files_response import ListFilesResponse as ListFilesResponse
|
|
18
18
|
from .delete_rows_response import DeleteRowsResponse as DeleteRowsResponse
|
19
19
|
from .ensure_rows_response import EnsureRowsResponse as EnsureRowsResponse
|
20
20
|
from .import_rows_response import ImportRowsResponse as ImportRowsResponse
|
21
|
+
from .resolve_ids_response import ResolveIDsResponse as ResolveIDsResponse
|
21
22
|
from .describe_file_response import DescribeFileResponse as DescribeFileResponse
|
22
23
|
from .list_mentions_response import ListMentionsResponse as ListMentionsResponse
|
23
24
|
from .lock_database_response import LockDatabaseResponse as LockDatabaseResponse
|
@@ -30,6 +31,7 @@ from .update_database_response import UpdateDatabaseResponse as UpdateDatabaseRe
|
|
30
31
|
from .client_delete_rows_params import ClientDeleteRowsParams as ClientDeleteRowsParams
|
31
32
|
from .client_ensure_rows_params import ClientEnsureRowsParams as ClientEnsureRowsParams
|
32
33
|
from .client_import_rows_params import ClientImportRowsParams as ClientImportRowsParams
|
34
|
+
from .client_resolve_ids_params import ClientResolveIDsParams as ClientResolveIDsParams
|
33
35
|
from .create_workspace_response import CreateWorkspaceResponse as CreateWorkspaceResponse
|
34
36
|
from .delete_workspace_response import DeleteWorkspaceResponse as DeleteWorkspaceResponse
|
35
37
|
from .update_workspace_response import UpdateWorkspaceResponse as UpdateWorkspaceResponse
|
@@ -44,12 +46,14 @@ from .client_describe_file_params import ClientDescribeFileParams as ClientDescr
|
|
44
46
|
from .client_list_mentions_params import ClientListMentionsParams as ClientListMentionsParams
|
45
47
|
from .client_lock_database_params import ClientLockDatabaseParams as ClientLockDatabaseParams
|
46
48
|
from .create_file_upload_response import CreateFileUploadResponse as CreateFileUploadResponse
|
49
|
+
from .describe_hierarchy_response import DescribeHierarchyResponse as DescribeHierarchyResponse
|
47
50
|
from .describe_workspace_response import DescribeWorkspaceResponse as DescribeWorkspaceResponse
|
48
51
|
from .execute_code_async_response import ExecuteCodeAsyncResponse as ExecuteCodeAsyncResponse
|
49
52
|
from .list_database_rows_response import ListDatabaseRowsResponse as ListDatabaseRowsResponse
|
50
53
|
from .add_database_column_response import AddDatabaseColumnResponse as AddDatabaseColumnResponse
|
51
54
|
from .client_create_database_params import ClientCreateDatabaseParams as ClientCreateDatabaseParams
|
52
55
|
from .client_delete_database_params import ClientDeleteDatabaseParams as ClientDeleteDatabaseParams
|
56
|
+
from .client_export_database_params import ClientExportDatabaseParams as ClientExportDatabaseParams
|
53
57
|
from .client_unlock_database_params import ClientUnlockDatabaseParams as ClientUnlockDatabaseParams
|
54
58
|
from .client_update_database_params import ClientUpdateDatabaseParams as ClientUpdateDatabaseParams
|
55
59
|
from .client_create_workspace_params import ClientCreateWorkspaceParams as ClientCreateWorkspaceParams
|
@@ -64,6 +68,7 @@ from .update_database_column_response import UpdateDatabaseColumnResponse as Upd
|
|
64
68
|
from .client_chat_create_thread_params import ClientChatCreateThreadParams as ClientChatCreateThreadParams
|
65
69
|
from .client_chat_list_messages_params import ClientChatListMessagesParams as ClientChatListMessagesParams
|
66
70
|
from .client_create_file_upload_params import ClientCreateFileUploadParams as ClientCreateFileUploadParams
|
71
|
+
from .client_describe_hierarchy_params import ClientDescribeHierarchyParams as ClientDescribeHierarchyParams
|
67
72
|
from .client_describe_workspace_params import ClientDescribeWorkspaceParams as ClientDescribeWorkspaceParams
|
68
73
|
from .client_execute_code_async_params import ClientExecuteCodeAsyncParams as ClientExecuteCodeAsyncParams
|
69
74
|
from .client_list_database_rows_params import ClientListDatabaseRowsParams as ClientListDatabaseRowsParams
|
@@ -73,6 +78,7 @@ from .client_add_database_column_params import ClientAddDatabaseColumnParams as
|
|
73
78
|
from .create_file_download_url_response import CreateFileDownloadURLResponse as CreateFileDownloadURLResponse
|
74
79
|
from .list_row_back_references_response import ListRowBackReferencesResponse as ListRowBackReferencesResponse
|
75
80
|
from .parse_base_sequence_data_response import ParseBaseSequenceDataResponse as ParseBaseSequenceDataResponse
|
81
|
+
from .client_describe_database_row_params import ClientDescribeDatabaseRowParams as ClientDescribeDatabaseRowParams
|
76
82
|
from .client_delete_database_column_params import ClientDeleteDatabaseColumnParams as ClientDeleteDatabaseColumnParams
|
77
83
|
from .client_update_database_column_params import ClientUpdateDatabaseColumnParams as ClientUpdateDatabaseColumnParams
|
78
84
|
from .client_describe_code_execution_params import (
|
@@ -0,0 +1,25 @@
|
|
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 List
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["ClientDescribeDatabaseRowParams", "ColumnSelection"]
|
11
|
+
|
12
|
+
|
13
|
+
class ClientDescribeDatabaseRowParams(TypedDict, total=False):
|
14
|
+
row_id: Required[Annotated[str, PropertyInfo(alias="rowId")]]
|
15
|
+
|
16
|
+
column_selection: Annotated[ColumnSelection, PropertyInfo(alias="columnSelection")]
|
17
|
+
"""Select columns for inclusion/exclusion."""
|
18
|
+
|
19
|
+
fields: bool
|
20
|
+
|
21
|
+
|
22
|
+
class ColumnSelection(TypedDict, total=False):
|
23
|
+
exclude: List[str]
|
24
|
+
|
25
|
+
include: List[str]
|
@@ -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 Literal, Required, Annotated, TypedDict
|
6
|
+
|
7
|
+
from .._utils import PropertyInfo
|
8
|
+
|
9
|
+
__all__ = ["ClientDescribeHierarchyParams"]
|
10
|
+
|
11
|
+
|
12
|
+
class ClientDescribeHierarchyParams(TypedDict, total=False):
|
13
|
+
id: Required[str]
|
14
|
+
|
15
|
+
type: Required[Literal["database", "row", "workspace"]]
|
16
|
+
|
17
|
+
database_id: Annotated[str, PropertyInfo(alias="databaseId")]
|
@@ -0,0 +1,120 @@
|
|
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 List, Union, Iterable
|
6
|
+
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = [
|
11
|
+
"ClientExportDatabaseParams",
|
12
|
+
"ColumnSelection",
|
13
|
+
"Filter",
|
14
|
+
"FilterRowFilterText",
|
15
|
+
"FilterRowFilterNumber",
|
16
|
+
"FilterRowFilterBoolean",
|
17
|
+
"FilterRowFilterNullity",
|
18
|
+
"FilterRowFilterSet",
|
19
|
+
"FilterRowFilterSubstructure",
|
20
|
+
"RowSort",
|
21
|
+
]
|
22
|
+
|
23
|
+
|
24
|
+
class ClientExportDatabaseParams(TypedDict, total=False):
|
25
|
+
database_id: Required[Annotated[str, PropertyInfo(alias="databaseId")]]
|
26
|
+
|
27
|
+
format: Required[Literal["csv"]]
|
28
|
+
|
29
|
+
column_selection: Annotated[ColumnSelection, PropertyInfo(alias="columnSelection")]
|
30
|
+
"""Select columns for inclusion/exclusion."""
|
31
|
+
|
32
|
+
filter: Filter
|
33
|
+
|
34
|
+
row_sort: Annotated[Iterable[RowSort], PropertyInfo(alias="rowSort")]
|
35
|
+
"""Sort rows by column."""
|
36
|
+
|
37
|
+
|
38
|
+
class ColumnSelection(TypedDict, total=False):
|
39
|
+
exclude: List[str]
|
40
|
+
|
41
|
+
include: List[str]
|
42
|
+
|
43
|
+
|
44
|
+
class FilterRowFilterText(TypedDict, total=False):
|
45
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
46
|
+
|
47
|
+
filter_type: Required[Annotated[Literal["text"], PropertyInfo(alias="filterType")]]
|
48
|
+
|
49
|
+
filter_value: Required[Annotated[str, PropertyInfo(alias="filterValue")]]
|
50
|
+
|
51
|
+
operator: Required[Literal["equals", "notEqual", "contains", "notContains", "startsWith", "endsWith"]]
|
52
|
+
|
53
|
+
|
54
|
+
class FilterRowFilterNumber(TypedDict, total=False):
|
55
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
56
|
+
|
57
|
+
filter_type: Required[Annotated[Literal["number"], PropertyInfo(alias="filterType")]]
|
58
|
+
|
59
|
+
filter_value: Required[Annotated[float, PropertyInfo(alias="filterValue")]]
|
60
|
+
|
61
|
+
operator: Required[
|
62
|
+
Literal["equals", "notEqual", "lessThan", "lessThanOrEqual", "greaterThan", "greaterThanOrEqual"]
|
63
|
+
]
|
64
|
+
|
65
|
+
|
66
|
+
class FilterRowFilterBoolean(TypedDict, total=False):
|
67
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
68
|
+
|
69
|
+
filter_type: Required[Annotated[Literal["boolean"], PropertyInfo(alias="filterType")]]
|
70
|
+
|
71
|
+
filter_value: Required[Annotated[bool, PropertyInfo(alias="filterValue")]]
|
72
|
+
|
73
|
+
operator: Required[Literal["equals", "notEqual"]]
|
74
|
+
|
75
|
+
|
76
|
+
class FilterRowFilterNullity(TypedDict, total=False):
|
77
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
78
|
+
|
79
|
+
filter_type: Required[Annotated[Literal["nullity"], PropertyInfo(alias="filterType")]]
|
80
|
+
|
81
|
+
operator: Required[Literal["isNull", "isNotNull"]]
|
82
|
+
|
83
|
+
|
84
|
+
class FilterRowFilterSet(TypedDict, total=False):
|
85
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
86
|
+
|
87
|
+
filter_type: Required[Annotated[Literal["set"], PropertyInfo(alias="filterType")]]
|
88
|
+
|
89
|
+
operator: Required[Literal["in", "notIn"]]
|
90
|
+
|
91
|
+
values: Required[Iterable[None]]
|
92
|
+
|
93
|
+
|
94
|
+
class FilterRowFilterSubstructure(TypedDict, total=False):
|
95
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
96
|
+
|
97
|
+
filter_type: Required[Annotated[Literal["substructure"], PropertyInfo(alias="filterType")]]
|
98
|
+
|
99
|
+
substructure: Required[str]
|
100
|
+
"""A SMARTS or SMILES string to match against."""
|
101
|
+
|
102
|
+
|
103
|
+
Filter: TypeAlias = Union[
|
104
|
+
FilterRowFilterText,
|
105
|
+
FilterRowFilterNumber,
|
106
|
+
FilterRowFilterBoolean,
|
107
|
+
FilterRowFilterNullity,
|
108
|
+
FilterRowFilterSet,
|
109
|
+
FilterRowFilterSubstructure,
|
110
|
+
"RowFilterJoin",
|
111
|
+
]
|
112
|
+
|
113
|
+
|
114
|
+
class RowSort(TypedDict, total=False):
|
115
|
+
column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
|
116
|
+
|
117
|
+
sort: Required[Literal["asc", "desc"]]
|
118
|
+
|
119
|
+
|
120
|
+
from .shared_params.row_filter_join import RowFilterJoin
|
@@ -0,0 +1,24 @@
|
|
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 List, Iterable
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["ClientResolveIDsParams", "Row"]
|
11
|
+
|
12
|
+
|
13
|
+
class ClientResolveIDsParams(TypedDict, total=False):
|
14
|
+
database_ids: Annotated[List[str], PropertyInfo(alias="databaseIds")]
|
15
|
+
|
16
|
+
rows: Iterable[Row]
|
17
|
+
|
18
|
+
workspace_ids: Annotated[List[str], PropertyInfo(alias="workspaceIds")]
|
19
|
+
|
20
|
+
|
21
|
+
class Row(TypedDict, total=False):
|
22
|
+
database_id: Required[Annotated[str, PropertyInfo(alias="databaseId")]]
|
23
|
+
|
24
|
+
row_id: Required[Annotated[str, PropertyInfo(alias="rowId")]]
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from typing import List, Optional
|
4
|
+
from typing_extensions import Literal
|
5
|
+
|
6
|
+
from pydantic import Field as FieldInfo
|
7
|
+
|
8
|
+
from .._models import BaseModel
|
9
|
+
|
10
|
+
__all__ = ["DescribeHierarchyResponse", "Data"]
|
11
|
+
|
12
|
+
|
13
|
+
class Data(BaseModel):
|
14
|
+
id: str
|
15
|
+
"""Deep Origin system ID."""
|
16
|
+
|
17
|
+
hid: str
|
18
|
+
|
19
|
+
type: Literal["database", "row", "workspace"]
|
20
|
+
|
21
|
+
name: Optional[str] = None
|
22
|
+
|
23
|
+
parent_id: Optional[str] = FieldInfo(alias="parentId", default=None)
|
24
|
+
|
25
|
+
|
26
|
+
class DescribeHierarchyResponse(BaseModel):
|
27
|
+
data: List[Data]
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from typing import List, Union
|
4
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
5
|
+
|
6
|
+
from pydantic import Field as FieldInfo
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
from .._models import BaseModel
|
10
|
+
|
11
|
+
__all__ = ["ResolveIDsResponse", "Data", "DataResolvedDatabaseID", "DataResolvedWorkspaceID", "DataResolvedRowID"]
|
12
|
+
|
13
|
+
|
14
|
+
class DataResolvedDatabaseID(BaseModel):
|
15
|
+
id: str
|
16
|
+
|
17
|
+
hid: str
|
18
|
+
|
19
|
+
type: Literal["database"]
|
20
|
+
|
21
|
+
|
22
|
+
class DataResolvedWorkspaceID(BaseModel):
|
23
|
+
id: str
|
24
|
+
|
25
|
+
hid: str
|
26
|
+
|
27
|
+
type: Literal["workspace"]
|
28
|
+
|
29
|
+
|
30
|
+
class DataResolvedRowID(BaseModel):
|
31
|
+
id: str
|
32
|
+
|
33
|
+
database_id: str = FieldInfo(alias="databaseId")
|
34
|
+
|
35
|
+
hid: str
|
36
|
+
|
37
|
+
type: Literal["row"]
|
38
|
+
|
39
|
+
|
40
|
+
Data: TypeAlias = Annotated[
|
41
|
+
Union[DataResolvedDatabaseID, DataResolvedWorkspaceID, DataResolvedRowID], PropertyInfo(discriminator="type")
|
42
|
+
]
|
43
|
+
|
44
|
+
|
45
|
+
class ResolveIDsResponse(BaseModel):
|
46
|
+
data: List[Data]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: deeporigin_data_sdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a32
|
4
4
|
Summary: The official Python library for the deeporigin_data API
|
5
5
|
Project-URL: Homepage, https://github.com/deeporiginbio/deeporigin-data-sdk
|
6
6
|
Project-URL: Repository, https://github.com/deeporiginbio/deeporigin-data-sdk
|
@@ -1,6 +1,6 @@
|
|
1
1
|
deeporigin_data/__init__.py,sha256=g5vq9kCCiWBl8XgJzXdUB9AIdRypOEj9pQH8WJJEVxo,2533
|
2
2
|
deeporigin_data/_base_client.py,sha256=S5oZPMoWvnH4vdTsMwR8KYI6qg4OF6lydyeTmXwndwA,68045
|
3
|
-
deeporigin_data/_client.py,sha256=
|
3
|
+
deeporigin_data/_client.py,sha256=NASub3v2mmM4DR-Rv1XD8oi5u4EpBmsMRHAUepvtllk,168746
|
4
4
|
deeporigin_data/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
5
5
|
deeporigin_data/_constants.py,sha256=JE8kyZa2Q4NK_i4fO--8siEYTzeHnT0fYbOFDgDP4uk,464
|
6
6
|
deeporigin_data/_exceptions.py,sha256=_25MmrwuBf1sxAJESpY5sPn1o5E-aUymr6wDuRSWIng,3236
|
@@ -11,7 +11,7 @@ deeporigin_data/_resource.py,sha256=tkm4gF9YRotE93j48jTDBSGs8wyVa0E5NS9fj19e38c,
|
|
11
11
|
deeporigin_data/_response.py,sha256=nzKdjRA8W3Rwgvgv6zCu4LISsdLUPCQjedlOp_NWyUY,28691
|
12
12
|
deeporigin_data/_streaming.py,sha256=yG857cOSJD3gbc7mEc2wqfvcPVLMGmYX4hBOqqIT5RE,10132
|
13
13
|
deeporigin_data/_types.py,sha256=HI5vtFJGLEsyOrrWJRSRtUeOSrd8EdoM020wC51GvcI,6152
|
14
|
-
deeporigin_data/_version.py,sha256=
|
14
|
+
deeporigin_data/_version.py,sha256=9QjeoZC80eg9T-5BJe545b_QBRcNXw7dqJhmXHwcv9w,176
|
15
15
|
deeporigin_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
deeporigin_data/_utils/__init__.py,sha256=k266EatJr88V8Zseb7xUimTlCeno9SynRfLwadHP1b4,2016
|
17
17
|
deeporigin_data/_utils/_logs.py,sha256=R7dnUaDs2cdYbq1Ee16dHy863wdcTZRRzubw9KE0qNc,801
|
@@ -24,7 +24,7 @@ deeporigin_data/_utils/_typing.py,sha256=tFbktdpdHCQliwzGsWysgn0P5H0JRdagkZdb_Le
|
|
24
24
|
deeporigin_data/_utils/_utils.py,sha256=8UmbPOy_AAr2uUjjFui-VZSrVBHRj6bfNEKRp5YZP2A,12004
|
25
25
|
deeporigin_data/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
26
26
|
deeporigin_data/resources/__init__.py,sha256=ikKh5ucm9qFI-Z42nOKxhBhEI-YHaaxvsSddO_Nx0-Y,86
|
27
|
-
deeporigin_data/types/__init__.py,sha256=
|
27
|
+
deeporigin_data/types/__init__.py,sha256=y_2s4KD78BQOb5BtKI_Idu_YYydCz9qNm3UKPTZ_HhU,8370
|
28
28
|
deeporigin_data/types/add_database_column_response.py,sha256=3sM1H23FE_sCUQ2f9NiQA9j8rbbBP-I1rIdGtyHgU48,383
|
29
29
|
deeporigin_data/types/chat_create_thread_response.py,sha256=AZrFyvH7uj-VptxC4DLqq2zTzBTYRiosfNUGDSDe4jE,678
|
30
30
|
deeporigin_data/types/chat_list_messages_response.py,sha256=weE0jVbPTGI-_A72HW2J4hHoG7V8t3ZVTRvpwsmyLJI,1774
|
@@ -45,13 +45,16 @@ deeporigin_data/types/client_delete_rows_params.py,sha256=BGGu6fMY6ZOxzMoEHAGVi-
|
|
45
45
|
deeporigin_data/types/client_delete_workspace_params.py,sha256=r_815ExueeGMNkGU5wU2arWz_h0K5xRfX_hI88HBxd4,401
|
46
46
|
deeporigin_data/types/client_describe_code_execution_params.py,sha256=-_QjRCsuGjdEmHYwJwTsdWCQmwaJo5_efy4iCkzqfSc,311
|
47
47
|
deeporigin_data/types/client_describe_database_params.py,sha256=NNgvwMf-0HFsrTzrfnHG6SDy2PjONAgadNjT5sg9qKQ,401
|
48
|
+
deeporigin_data/types/client_describe_database_row_params.py,sha256=ID9FEyjeSMw5ii0jQnalqgAtKz9Nk-_UvK6bqtZHgJ0,693
|
48
49
|
deeporigin_data/types/client_describe_database_stats_params.py,sha256=sopt7IcmentMVrTGEsVFF9f8lsWGcQsnoBEXFoZuqQQ,411
|
49
50
|
deeporigin_data/types/client_describe_file_params.py,sha256=u9Kzs4L8gXNf4aeQKt_yOcjGWccCa1WcM8J9Mi6m--8,418
|
51
|
+
deeporigin_data/types/client_describe_hierarchy_params.py,sha256=nzjNkFlVGizVjUiTHoADy2hVzA7KkETlNtlmouYKYv4,486
|
50
52
|
deeporigin_data/types/client_describe_row_params.py,sha256=ykhjrmfIeawbYQJcr6-pbkMVAfh3tev7ikzZsOMTh0k,677
|
51
53
|
deeporigin_data/types/client_describe_workspace_params.py,sha256=3El_4adzR1R1o4xBAeAce2kH4HUvscmY1wOQA1BqkAE,405
|
52
54
|
deeporigin_data/types/client_ensure_rows_params.py,sha256=rS2b2isZ9Kzp_U_z7jECc2Z2mh6HsFyIvsx4rCrvm3M,1407
|
53
55
|
deeporigin_data/types/client_execute_code_async_params.py,sha256=Ohe8X-MGsuf_JzFiyd7_-UdbJn81CKW9UujKKEcOYJw,453
|
54
56
|
deeporigin_data/types/client_execute_code_sync_params.py,sha256=4OUGuc1P5ATJz6ocQuL14te1pU9EZD5ocY9yHY4jUcE,451
|
57
|
+
deeporigin_data/types/client_export_database_params.py,sha256=KW29eTgxBu6mFTprhr5VDuVWQmdJWyLcU1iKjYGzI-4,3609
|
55
58
|
deeporigin_data/types/client_get_code_execution_result_params.py,sha256=rtctDcOx0jKB2BiHbrxJZk1KkB9LhlgbGDoO_J3aHhI,346
|
56
59
|
deeporigin_data/types/client_import_rows_params.py,sha256=mBMjt8qp1MEmsM1hFNWWORhHJ0ReyOvJAbK0lFOlcBY,10733
|
57
60
|
deeporigin_data/types/client_list_database_column_unique_values_v2_params.py,sha256=_ENSP8YCgkdEYy4UjN_g230CuqXmYN7o1b7v3o0FEOY,506
|
@@ -62,6 +65,7 @@ deeporigin_data/types/client_list_row_back_references_params.py,sha256=JlflftXfN
|
|
62
65
|
deeporigin_data/types/client_list_rows_params.py,sha256=OLw3yKZnqTtmiDXB4340G4wS1NOjouCUDY3NBAQWoJg,1295
|
63
66
|
deeporigin_data/types/client_lock_database_params.py,sha256=PlpoA6qVLm22Rb73U9DuJJPoXGa2ucQ1exdtKo11Vxc,393
|
64
67
|
deeporigin_data/types/client_parse_base_sequence_data_params.py,sha256=GDii5dgimUolBBFmF0rOyTX8tbDwczCLSkfyy6r2GAo,403
|
68
|
+
deeporigin_data/types/client_resolve_ids_params.py,sha256=9uVa88FIpQNsp16_2mAoXV2vZGqnzbuqXgUkU9ow5Sk,710
|
65
69
|
deeporigin_data/types/client_unlock_database_params.py,sha256=4l-QQ_q3n8KI-gNAlsLf-8SoZgQMCyCpzISI2kxPaXk,397
|
66
70
|
deeporigin_data/types/client_update_database_column_params.py,sha256=5MxOfmd12PX1P_ruRfco39F9TMPERTJfC3u670MRVWw,606
|
67
71
|
deeporigin_data/types/client_update_database_params.py,sha256=eBWaNkRxf6H_D6lgiWeHdZNDjrAvJiYXojDutwBl9SA,645
|
@@ -80,6 +84,7 @@ deeporigin_data/types/describe_code_execution_response.py,sha256=R561xE3XAew_BU2
|
|
80
84
|
deeporigin_data/types/describe_database_response.py,sha256=FH9mBG4OcXLnBMlLCXmBLm0ylG8VUMyJq-U-44V8RrA,262
|
81
85
|
deeporigin_data/types/describe_database_stats_response.py,sha256=TxNmnH4lF20rpFCiMNuh4Lz-W9RpoaisuexC9Nw-0sY,355
|
82
86
|
deeporigin_data/types/describe_file_response.py,sha256=Dd3qgkVhfAo-8dMBnUvCjYPhTU9frEUUjL3JjPUpXL8,242
|
87
|
+
deeporigin_data/types/describe_hierarchy_response.py,sha256=7ET6ebJqcaX8Uk0KmCCSoXaBmPIy173NMpZSQ5K0PZs,590
|
83
88
|
deeporigin_data/types/describe_workspace_response.py,sha256=-32QbqRtXiUBAyX4ZuQE9RKPkf5j8ywx6ZRm8gYMATo,267
|
84
89
|
deeporigin_data/types/ensure_rows_response.py,sha256=O1Uz5e-DO0dHu-_NwRttL_8wuJ7rqFunn-G6AuvY5y0,338
|
85
90
|
deeporigin_data/types/execute_code_async_response.py,sha256=3aMS6SENWG7Kkrew1ft6tRDxscziPnbKdMgT7j79d2M,1143
|
@@ -93,6 +98,7 @@ deeporigin_data/types/list_row_back_references_response.py,sha256=eT1ibMxUGTh5hL
|
|
93
98
|
deeporigin_data/types/list_rows_response.py,sha256=UZMlQTwmbOZyiQgyd3kaQIs2jIf0sK8tAH_I5akh0bQ,572
|
94
99
|
deeporigin_data/types/lock_database_response.py,sha256=umJT88AMTj-zhpwck5KvY-pXBqNbZODi_3XNMt-xBUg,254
|
95
100
|
deeporigin_data/types/parse_base_sequence_data_response.py,sha256=Zx-OBZMjkItXSppxGytGfCneTq8Ku6tP7mfSOjypHS8,720
|
101
|
+
deeporigin_data/types/resolve_ids_response.py,sha256=YQCy_Wuj2tZbgjGdId8DYPtUN2SP1cN81w1KTa5i1xw,955
|
96
102
|
deeporigin_data/types/unlock_database_response.py,sha256=tL3SOkK3Q6yI0lrr9PY5sqUO3jETUd29WeVaNmKVgGc,258
|
97
103
|
deeporigin_data/types/update_database_column_response.py,sha256=UDOt1wNkOgpbTs813LxaKDuG8EWOV9YB9WqoJx3sY20,389
|
98
104
|
deeporigin_data/types/update_database_response.py,sha256=abtJ_GjAReuizXVNkXUMSwwm5uSCMylgsDlduNzCUtg,258
|
@@ -112,7 +118,7 @@ deeporigin_data/types/shared_params/add_column_base.py,sha256=KfTFZFnCy08oqgSPAl
|
|
112
118
|
deeporigin_data/types/shared_params/add_column_union.py,sha256=q4Ia_xvxdAF7RnKicd5QDs-WMKePG_PY-xnQ0SaJRmc,971
|
113
119
|
deeporigin_data/types/shared_params/condition.py,sha256=ftu-hdGv05aTv4GL9bRyf4kQXl27kaPpt3P4KKdwmNM,2723
|
114
120
|
deeporigin_data/types/shared_params/row_filter_join.py,sha256=QIo2yhjJJZLcGF-hBF7YcLcYHLhf5uq5EkQG-0WJjtU,595
|
115
|
-
deeporigin_data_sdk-0.1.
|
116
|
-
deeporigin_data_sdk-0.1.
|
117
|
-
deeporigin_data_sdk-0.1.
|
118
|
-
deeporigin_data_sdk-0.1.
|
121
|
+
deeporigin_data_sdk-0.1.0a32.dist-info/METADATA,sha256=YbkqaIpcraGRe2NVVDIeEQv7WgXGFaF00th5Y9gnVjY,13102
|
122
|
+
deeporigin_data_sdk-0.1.0a32.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
123
|
+
deeporigin_data_sdk-0.1.0a32.dist-info/licenses/LICENSE,sha256=qQA5hv0RJh5jpG5jw4cmr1gPxsNivnMjHFpEOTGWZyI,11345
|
124
|
+
deeporigin_data_sdk-0.1.0a32.dist-info/RECORD,,
|
File without changes
|
{deeporigin_data_sdk-0.1.0a31.dist-info → deeporigin_data_sdk-0.1.0a32.dist-info}/licenses/LICENSE
RENAMED
File without changes
|