deeporigin-data-sdk 0.1.0a32__py3-none-any.whl → 0.1.0a33__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.
@@ -20,6 +20,7 @@ from .types import (
20
20
  client_describe_row_params,
21
21
  client_archive_files_params,
22
22
  client_describe_file_params,
23
+ client_download_file_params,
23
24
  client_list_mentions_params,
24
25
  client_lock_database_params,
25
26
  client_create_database_params,
@@ -124,6 +125,7 @@ from .types.execute_code_async_response import ExecuteCodeAsyncResponse
124
125
  from .types.list_database_rows_response import ListDatabaseRowsResponse
125
126
  from .types.add_database_column_response import AddDatabaseColumnResponse
126
127
  from .types.shared.describe_row_response import DescribeRowResponse
128
+ from .types.describe_database_row_response import DescribeDatabaseRowResponse
127
129
  from .types.delete_database_column_response import DeleteDatabaseColumnResponse
128
130
  from .types.update_database_column_response import UpdateDatabaseColumnResponse
129
131
  from .types.describe_code_execution_response import DescribeCodeExecutionResponse
@@ -921,14 +923,14 @@ class DeeporiginData(SyncAPIClient):
921
923
  *,
922
924
  row_id: str,
923
925
  column_selection: client_describe_database_row_params.ColumnSelection | NotGiven = NOT_GIVEN,
924
- fields: bool | NotGiven = NOT_GIVEN,
926
+ database_id: str | NotGiven = NOT_GIVEN,
925
927
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
926
928
  # The extra values given here take precedence over values defined on the client or passed to this method.
927
929
  extra_headers: Headers | None = None,
928
930
  extra_query: Query | None = None,
929
931
  extra_body: Body | None = None,
930
932
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
931
- ) -> DescribeRowResponse:
933
+ ) -> DescribeDatabaseRowResponse:
932
934
  """
933
935
  Describe a database row
934
936
 
@@ -949,14 +951,14 @@ class DeeporiginData(SyncAPIClient):
949
951
  {
950
952
  "row_id": row_id,
951
953
  "column_selection": column_selection,
952
- "fields": fields,
954
+ "database_id": database_id,
953
955
  },
954
956
  client_describe_database_row_params.ClientDescribeDatabaseRowParams,
955
957
  ),
956
958
  options=make_request_options(
957
959
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
958
960
  ),
959
- cast_to=DescribeRowResponse,
961
+ cast_to=DescribeDatabaseRowResponse,
960
962
  )
961
963
 
962
964
  def describe_database_stats(
@@ -1150,6 +1152,7 @@ class DeeporiginData(SyncAPIClient):
1150
1152
  def download_file(
1151
1153
  self,
1152
1154
  *,
1155
+ file_id: str,
1153
1156
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1154
1157
  # The extra values given here take precedence over values defined on the client or passed to this method.
1155
1158
  extra_headers: Headers | None = None,
@@ -1157,12 +1160,29 @@ class DeeporiginData(SyncAPIClient):
1157
1160
  extra_body: Body | None = None,
1158
1161
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1159
1162
  ) -> None:
1160
- """Returns a 303 redirect to a pre-signed S3 URL."""
1163
+ """
1164
+ Returns a 303 redirect to a pre-signed S3 URL.
1165
+
1166
+ Args:
1167
+ file_id: Deep Origin system ID.
1168
+
1169
+ extra_headers: Send extra headers
1170
+
1171
+ extra_query: Add additional query parameters to the request
1172
+
1173
+ extra_body: Add additional JSON properties to the request
1174
+
1175
+ timeout: Override the client-level default timeout for this request, in seconds
1176
+ """
1161
1177
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1162
1178
  return self.get(
1163
1179
  "/DownloadFile",
1164
1180
  options=make_request_options(
1165
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1181
+ extra_headers=extra_headers,
1182
+ extra_query=extra_query,
1183
+ extra_body=extra_body,
1184
+ timeout=timeout,
1185
+ query=maybe_transform({"file_id": file_id}, client_download_file_params.ClientDownloadFileParams),
1166
1186
  ),
1167
1187
  cast_to=NoneType,
1168
1188
  )
@@ -2720,14 +2740,14 @@ class AsyncDeeporiginData(AsyncAPIClient):
2720
2740
  *,
2721
2741
  row_id: str,
2722
2742
  column_selection: client_describe_database_row_params.ColumnSelection | NotGiven = NOT_GIVEN,
2723
- fields: bool | NotGiven = NOT_GIVEN,
2743
+ database_id: str | NotGiven = NOT_GIVEN,
2724
2744
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2725
2745
  # The extra values given here take precedence over values defined on the client or passed to this method.
2726
2746
  extra_headers: Headers | None = None,
2727
2747
  extra_query: Query | None = None,
2728
2748
  extra_body: Body | None = None,
2729
2749
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
2730
- ) -> DescribeRowResponse:
2750
+ ) -> DescribeDatabaseRowResponse:
2731
2751
  """
2732
2752
  Describe a database row
2733
2753
 
@@ -2748,14 +2768,14 @@ class AsyncDeeporiginData(AsyncAPIClient):
2748
2768
  {
2749
2769
  "row_id": row_id,
2750
2770
  "column_selection": column_selection,
2751
- "fields": fields,
2771
+ "database_id": database_id,
2752
2772
  },
2753
2773
  client_describe_database_row_params.ClientDescribeDatabaseRowParams,
2754
2774
  ),
2755
2775
  options=make_request_options(
2756
2776
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
2757
2777
  ),
2758
- cast_to=DescribeRowResponse,
2778
+ cast_to=DescribeDatabaseRowResponse,
2759
2779
  )
2760
2780
 
2761
2781
  async def describe_database_stats(
@@ -2951,6 +2971,7 @@ class AsyncDeeporiginData(AsyncAPIClient):
2951
2971
  async def download_file(
2952
2972
  self,
2953
2973
  *,
2974
+ file_id: str,
2954
2975
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2955
2976
  # The extra values given here take precedence over values defined on the client or passed to this method.
2956
2977
  extra_headers: Headers | None = None,
@@ -2958,12 +2979,31 @@ class AsyncDeeporiginData(AsyncAPIClient):
2958
2979
  extra_body: Body | None = None,
2959
2980
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
2960
2981
  ) -> None:
2961
- """Returns a 303 redirect to a pre-signed S3 URL."""
2982
+ """
2983
+ Returns a 303 redirect to a pre-signed S3 URL.
2984
+
2985
+ Args:
2986
+ file_id: Deep Origin system ID.
2987
+
2988
+ extra_headers: Send extra headers
2989
+
2990
+ extra_query: Add additional query parameters to the request
2991
+
2992
+ extra_body: Add additional JSON properties to the request
2993
+
2994
+ timeout: Override the client-level default timeout for this request, in seconds
2995
+ """
2962
2996
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
2963
2997
  return await self.get(
2964
2998
  "/DownloadFile",
2965
2999
  options=make_request_options(
2966
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
3000
+ extra_headers=extra_headers,
3001
+ extra_query=extra_query,
3002
+ extra_body=extra_body,
3003
+ timeout=timeout,
3004
+ query=await async_maybe_transform(
3005
+ {"file_id": file_id}, client_download_file_params.ClientDownloadFileParams
3006
+ ),
2967
3007
  ),
2968
3008
  cast_to=NoneType,
2969
3009
  )
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "deeporigin_data"
4
- __version__ = "0.1.0-alpha.32" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.33" # x-release-please-version
@@ -43,6 +43,7 @@ from .chat_create_thread_response import ChatCreateThreadResponse as ChatCreateT
43
43
  from .chat_list_messages_response import ChatListMessagesResponse as ChatListMessagesResponse
44
44
  from .client_archive_files_params import ClientArchiveFilesParams as ClientArchiveFilesParams
45
45
  from .client_describe_file_params import ClientDescribeFileParams as ClientDescribeFileParams
46
+ from .client_download_file_params import ClientDownloadFileParams as ClientDownloadFileParams
46
47
  from .client_list_mentions_params import ClientListMentionsParams as ClientListMentionsParams
47
48
  from .client_lock_database_params import ClientLockDatabaseParams as ClientLockDatabaseParams
48
49
  from .create_file_upload_response import CreateFileUploadResponse as CreateFileUploadResponse
@@ -59,6 +60,7 @@ from .client_update_database_params import ClientUpdateDatabaseParams as ClientU
59
60
  from .client_create_workspace_params import ClientCreateWorkspaceParams as ClientCreateWorkspaceParams
60
61
  from .client_delete_workspace_params import ClientDeleteWorkspaceParams as ClientDeleteWorkspaceParams
61
62
  from .client_update_workspace_params import ClientUpdateWorkspaceParams as ClientUpdateWorkspaceParams
63
+ from .describe_database_row_response import DescribeDatabaseRowResponse as DescribeDatabaseRowResponse
62
64
  from .client_chat_send_message_params import ClientChatSendMessageParams as ClientChatSendMessageParams
63
65
  from .client_convert_id_format_params import ClientConvertIDFormatParams as ClientConvertIDFormatParams
64
66
  from .client_describe_database_params import ClientDescribeDatabaseParams as ClientDescribeDatabaseParams
@@ -16,7 +16,7 @@ class ClientDescribeDatabaseRowParams(TypedDict, total=False):
16
16
  column_selection: Annotated[ColumnSelection, PropertyInfo(alias="columnSelection")]
17
17
  """Select columns for inclusion/exclusion."""
18
18
 
19
- fields: bool
19
+ database_id: Annotated[str, PropertyInfo(alias="databaseId")]
20
20
 
21
21
 
22
22
  class ColumnSelection(TypedDict, total=False):
@@ -0,0 +1,14 @@
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, Annotated, TypedDict
6
+
7
+ from .._utils import PropertyInfo
8
+
9
+ __all__ = ["ClientDownloadFileParams"]
10
+
11
+
12
+ class ClientDownloadFileParams(TypedDict, total=False):
13
+ file_id: Required[Annotated[str, PropertyInfo(alias="fileId")]]
14
+ """Deep Origin system ID."""
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+
4
+ from .._models import BaseModel
5
+ from .shared.database_row import DatabaseRow
6
+
7
+ __all__ = ["DescribeDatabaseRowResponse"]
8
+
9
+
10
+ class DescribeDatabaseRowResponse(BaseModel):
11
+ data: DatabaseRow
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: deeporigin_data_sdk
3
- Version: 0.1.0a32
3
+ Version: 0.1.0a33
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=NASub3v2mmM4DR-Rv1XD8oi5u4EpBmsMRHAUepvtllk,168746
3
+ deeporigin_data/_client.py,sha256=HHl30KLhtDRrEKLN41Q51m6yBcZcDFl8-6azbSzUNDU,170041
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=9QjeoZC80eg9T-5BJe545b_QBRcNXw7dqJhmXHwcv9w,176
14
+ deeporigin_data/_version.py,sha256=jCGAHzyNloeHRCSpngn1Uopc2zC8bojiseEOdSOlZ7Y,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=y_2s4KD78BQOb5BtKI_Idu_YYydCz9qNm3UKPTZ_HhU,8370
27
+ deeporigin_data/types/__init__.py,sha256=rWEVTTs8jU5G-8Ua5Aix0ID5AkXImeqfd4TteL4aj9k,8567
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,12 +45,13 @@ 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
+ deeporigin_data/types/client_describe_database_row_params.py,sha256=WFa1M40OGmXUAHaxAPOX76Qzkhwz0D6XKdXemG8Ktu8,742
49
49
  deeporigin_data/types/client_describe_database_stats_params.py,sha256=sopt7IcmentMVrTGEsVFF9f8lsWGcQsnoBEXFoZuqQQ,411
50
50
  deeporigin_data/types/client_describe_file_params.py,sha256=u9Kzs4L8gXNf4aeQKt_yOcjGWccCa1WcM8J9Mi6m--8,418
51
51
  deeporigin_data/types/client_describe_hierarchy_params.py,sha256=nzjNkFlVGizVjUiTHoADy2hVzA7KkETlNtlmouYKYv4,486
52
52
  deeporigin_data/types/client_describe_row_params.py,sha256=ykhjrmfIeawbYQJcr6-pbkMVAfh3tev7ikzZsOMTh0k,677
53
53
  deeporigin_data/types/client_describe_workspace_params.py,sha256=3El_4adzR1R1o4xBAeAce2kH4HUvscmY1wOQA1BqkAE,405
54
+ deeporigin_data/types/client_download_file_params.py,sha256=6B-OV4kISwB3oG-UdZPvFk0Bx5rXnjWyhNc698U9MYY,418
54
55
  deeporigin_data/types/client_ensure_rows_params.py,sha256=rS2b2isZ9Kzp_U_z7jECc2Z2mh6HsFyIvsx4rCrvm3M,1407
55
56
  deeporigin_data/types/client_execute_code_async_params.py,sha256=Ohe8X-MGsuf_JzFiyd7_-UdbJn81CKW9UujKKEcOYJw,453
56
57
  deeporigin_data/types/client_execute_code_sync_params.py,sha256=4OUGuc1P5ATJz6ocQuL14te1pU9EZD5ocY9yHY4jUcE,451
@@ -82,6 +83,7 @@ deeporigin_data/types/delete_rows_response.py,sha256=kO1KZTGHFqtKuwL0DOYadcvQocB
82
83
  deeporigin_data/types/delete_workspace_response.py,sha256=m0_tG38_ryYI7Mm9r6Ma9EPJ9nPyBCSuVtWFh-fd3CU,220
83
84
  deeporigin_data/types/describe_code_execution_response.py,sha256=R561xE3XAew_BU2l0Xl1a0fIq-skrUWq1ItQ73yYLX0,1153
84
85
  deeporigin_data/types/describe_database_response.py,sha256=FH9mBG4OcXLnBMlLCXmBLm0ylG8VUMyJq-U-44V8RrA,262
86
+ deeporigin_data/types/describe_database_row_response.py,sha256=djnvr6XfAS5-OlZZcFqA95WXv9mh6hhVJA8sPxYP7g4,278
85
87
  deeporigin_data/types/describe_database_stats_response.py,sha256=TxNmnH4lF20rpFCiMNuh4Lz-W9RpoaisuexC9Nw-0sY,355
86
88
  deeporigin_data/types/describe_file_response.py,sha256=Dd3qgkVhfAo-8dMBnUvCjYPhTU9frEUUjL3JjPUpXL8,242
87
89
  deeporigin_data/types/describe_hierarchy_response.py,sha256=7ET6ebJqcaX8Uk0KmCCSoXaBmPIy173NMpZSQ5K0PZs,590
@@ -118,7 +120,7 @@ deeporigin_data/types/shared_params/add_column_base.py,sha256=KfTFZFnCy08oqgSPAl
118
120
  deeporigin_data/types/shared_params/add_column_union.py,sha256=q4Ia_xvxdAF7RnKicd5QDs-WMKePG_PY-xnQ0SaJRmc,971
119
121
  deeporigin_data/types/shared_params/condition.py,sha256=ftu-hdGv05aTv4GL9bRyf4kQXl27kaPpt3P4KKdwmNM,2723
120
122
  deeporigin_data/types/shared_params/row_filter_join.py,sha256=QIo2yhjJJZLcGF-hBF7YcLcYHLhf5uq5EkQG-0WJjtU,595
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,,
123
+ deeporigin_data_sdk-0.1.0a33.dist-info/METADATA,sha256=GyWqSxI7xr4PqtGEVuyRBExvjkKHg9Yo74_HldEHylM,13102
124
+ deeporigin_data_sdk-0.1.0a33.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
125
+ deeporigin_data_sdk-0.1.0a33.dist-info/licenses/LICENSE,sha256=qQA5hv0RJh5jpG5jw4cmr1gPxsNivnMjHFpEOTGWZyI,11345
126
+ deeporigin_data_sdk-0.1.0a33.dist-info/RECORD,,