rapidata 1.1.0__py3-none-any.whl → 1.2.1__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.
- rapidata/__init__.py +1 -0
- rapidata/api_client/__init__.py +30 -8
- rapidata/api_client/api/__init__.py +2 -0
- rapidata/api_client/api/campaign_api.py +8 -4
- rapidata/api_client/api/coco_api.py +4 -2
- rapidata/api_client/api/compare_workflow_api.py +2 -1
- rapidata/api_client/api/datapoint_api.py +6 -3
- rapidata/api_client/api/dataset_api.py +404 -396
- rapidata/api_client/api/identity_api.py +329 -50
- rapidata/api_client/api/newsletter_api.py +4 -2
- rapidata/api_client/api/order_api.py +40 -20
- rapidata/api_client/api/pipeline_api.py +6 -3
- rapidata/api_client/api/rapid_api.py +10 -5
- rapidata/api_client/api/rapidata_identity_api_api.py +272 -0
- rapidata/api_client/api/simple_workflow_api.py +2 -1
- rapidata/api_client/api/user_info_api.py +272 -0
- rapidata/api_client/api/validation_api.py +14 -7
- rapidata/api_client/api/workflow_api.py +30 -1067
- rapidata/api_client/models/__init__.py +28 -8
- rapidata/api_client/models/classification_metadata_model.py +98 -0
- rapidata/api_client/models/compare_workflow_config.py +3 -3
- rapidata/api_client/models/compare_workflow_config_model.py +3 -3
- rapidata/api_client/models/compare_workflow_model1.py +4 -18
- rapidata/api_client/models/compare_workflow_model1_referee.py +154 -0
- rapidata/api_client/models/completed_rapid_model.py +3 -3
- rapidata/api_client/models/completed_rapid_model_asset.py +170 -0
- rapidata/api_client/models/count_metadata_model.py +98 -0
- rapidata/api_client/models/demographic_metadata_model.py +100 -0
- rapidata/api_client/models/file_asset_model.py +3 -3
- rapidata/api_client/models/file_asset_model1.py +108 -0
- rapidata/api_client/models/file_asset_model1_metadata_inner.py +252 -0
- rapidata/api_client/models/file_asset_model2.py +108 -0
- rapidata/api_client/models/file_asset_model_metadata_inner.py +252 -0
- rapidata/api_client/models/image_dimension_metadata_model.py +100 -0
- rapidata/api_client/models/in_progress_rapid_model.py +3 -3
- rapidata/api_client/models/issue_auth_token_result.py +1 -1
- rapidata/api_client/models/legacy_issue_client_auth_token_result.py +87 -0
- rapidata/api_client/models/legacy_request_password_reset_command.py +98 -0
- rapidata/api_client/models/legacy_submit_password_reset_command.py +102 -0
- rapidata/api_client/models/location_metadata_model.py +100 -0
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/multi_asset_model1.py +118 -0
- rapidata/api_client/models/multi_asset_model1_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_model2.py +118 -0
- rapidata/api_client/models/not_started_rapid_model.py +3 -3
- rapidata/api_client/models/null_asset_model.py +3 -3
- rapidata/api_client/models/null_asset_model1.py +106 -0
- rapidata/api_client/models/null_asset_model2.py +106 -0
- rapidata/api_client/models/original_filename_metadata_model.py +98 -0
- rapidata/api_client/models/prompt_metadata_model.py +98 -0
- rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
- rapidata/api_client/models/ranked_datapoint_model.py +3 -3
- rapidata/api_client/models/simple_workflow_config.py +6 -6
- rapidata/api_client/models/simple_workflow_config_model.py +3 -3
- rapidata/api_client/models/simple_workflow_model1.py +7 -21
- rapidata/api_client/models/simple_workflow_model1_blueprint.py +238 -0
- rapidata/api_client/models/text_asset_model.py +3 -3
- rapidata/api_client/models/text_asset_model1.py +108 -0
- rapidata/api_client/models/text_asset_model2.py +108 -0
- rapidata/api_client/models/text_metadata_model.py +98 -0
- rapidata/api_client/models/transcription_metadata_model.py +98 -0
- rapidata/api_client/models/translated_prompt_metadata_model.py +102 -0
- rapidata/api_client/models/translated_string.py +93 -0
- rapidata/api_client_README.md +36 -13
- rapidata/rapidata_client/__init__.py +13 -2
- rapidata/rapidata_client/assets/media_asset.py +1 -1
- rapidata/rapidata_client/assets/multi_asset.py +14 -3
- rapidata/rapidata_client/dataset/rapidata_dataset.py +59 -21
- rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
- rapidata/rapidata_client/order/rapidata_order.py +49 -18
- rapidata/rapidata_client/order/rapidata_order_builder.py +99 -41
- rapidata/rapidata_client/selection/__init__.py +1 -0
- rapidata/rapidata_client/selection/capped_selection.py +25 -0
- rapidata/rapidata_client/selection/demographic_selection.py +3 -2
- rapidata/rapidata_client/simple_builders/__init__.py +0 -0
- rapidata/rapidata_client/simple_builders/simple_classification_builders.py +14 -9
- rapidata/rapidata_client/simple_builders/simple_compare_builders.py +6 -3
- rapidata/service/openapi_service.py +15 -0
- {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/METADATA +1 -1
- {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/RECORD +82 -50
- {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/LICENSE +0 -0
- {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
21
|
+
from rapidata.api_client.api_response import ApiResponse
|
|
22
|
+
from rapidata.api_client.rest import RESTResponseType
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class UserInfoApi:
|
|
26
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
27
|
+
Ref: https://openapi-generator.tech
|
|
28
|
+
|
|
29
|
+
Do not edit the class manually.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, api_client=None) -> None:
|
|
33
|
+
if api_client is None:
|
|
34
|
+
api_client = ApiClient.get_default()
|
|
35
|
+
self.api_client = api_client
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@validate_call
|
|
39
|
+
def connect_userinfo_get(
|
|
40
|
+
self,
|
|
41
|
+
_request_timeout: Union[
|
|
42
|
+
None,
|
|
43
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
44
|
+
Tuple[
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
47
|
+
]
|
|
48
|
+
] = None,
|
|
49
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
50
|
+
_content_type: Optional[StrictStr] = None,
|
|
51
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
53
|
+
) -> None:
|
|
54
|
+
"""Retrieves information about the authenticated user.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
58
|
+
number provided, it will be total request
|
|
59
|
+
timeout. It can also be a pair (tuple) of
|
|
60
|
+
(connection, read) timeouts.
|
|
61
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
62
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
63
|
+
request; this effectively ignores the
|
|
64
|
+
authentication in the spec for a single request.
|
|
65
|
+
:type _request_auth: dict, optional
|
|
66
|
+
:param _content_type: force content-type for the request.
|
|
67
|
+
:type _content_type: str, Optional
|
|
68
|
+
:param _headers: set to override the headers for a single
|
|
69
|
+
request; this effectively ignores the headers
|
|
70
|
+
in the spec for a single request.
|
|
71
|
+
:type _headers: dict, optional
|
|
72
|
+
:param _host_index: set to override the host_index for a single
|
|
73
|
+
request; this effectively ignores the host_index
|
|
74
|
+
in the spec for a single request.
|
|
75
|
+
:type _host_index: int, optional
|
|
76
|
+
:return: Returns the result object.
|
|
77
|
+
""" # noqa: E501
|
|
78
|
+
|
|
79
|
+
_param = self._connect_userinfo_get_serialize(
|
|
80
|
+
_request_auth=_request_auth,
|
|
81
|
+
_content_type=_content_type,
|
|
82
|
+
_headers=_headers,
|
|
83
|
+
_host_index=_host_index
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
87
|
+
'200': None,
|
|
88
|
+
}
|
|
89
|
+
response_data = self.api_client.call_api(
|
|
90
|
+
*_param,
|
|
91
|
+
_request_timeout=_request_timeout
|
|
92
|
+
)
|
|
93
|
+
response_data.read()
|
|
94
|
+
return self.api_client.response_deserialize(
|
|
95
|
+
response_data=response_data,
|
|
96
|
+
response_types_map=_response_types_map,
|
|
97
|
+
).data
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
@validate_call
|
|
101
|
+
def connect_userinfo_get_with_http_info(
|
|
102
|
+
self,
|
|
103
|
+
_request_timeout: Union[
|
|
104
|
+
None,
|
|
105
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
106
|
+
Tuple[
|
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
109
|
+
]
|
|
110
|
+
] = None,
|
|
111
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
112
|
+
_content_type: Optional[StrictStr] = None,
|
|
113
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
115
|
+
) -> ApiResponse[None]:
|
|
116
|
+
"""Retrieves information about the authenticated user.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
120
|
+
number provided, it will be total request
|
|
121
|
+
timeout. It can also be a pair (tuple) of
|
|
122
|
+
(connection, read) timeouts.
|
|
123
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
124
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
125
|
+
request; this effectively ignores the
|
|
126
|
+
authentication in the spec for a single request.
|
|
127
|
+
:type _request_auth: dict, optional
|
|
128
|
+
:param _content_type: force content-type for the request.
|
|
129
|
+
:type _content_type: str, Optional
|
|
130
|
+
:param _headers: set to override the headers for a single
|
|
131
|
+
request; this effectively ignores the headers
|
|
132
|
+
in the spec for a single request.
|
|
133
|
+
:type _headers: dict, optional
|
|
134
|
+
:param _host_index: set to override the host_index for a single
|
|
135
|
+
request; this effectively ignores the host_index
|
|
136
|
+
in the spec for a single request.
|
|
137
|
+
:type _host_index: int, optional
|
|
138
|
+
:return: Returns the result object.
|
|
139
|
+
""" # noqa: E501
|
|
140
|
+
|
|
141
|
+
_param = self._connect_userinfo_get_serialize(
|
|
142
|
+
_request_auth=_request_auth,
|
|
143
|
+
_content_type=_content_type,
|
|
144
|
+
_headers=_headers,
|
|
145
|
+
_host_index=_host_index
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
149
|
+
'200': None,
|
|
150
|
+
}
|
|
151
|
+
response_data = self.api_client.call_api(
|
|
152
|
+
*_param,
|
|
153
|
+
_request_timeout=_request_timeout
|
|
154
|
+
)
|
|
155
|
+
response_data.read()
|
|
156
|
+
return self.api_client.response_deserialize(
|
|
157
|
+
response_data=response_data,
|
|
158
|
+
response_types_map=_response_types_map,
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
@validate_call
|
|
163
|
+
def connect_userinfo_get_without_preload_content(
|
|
164
|
+
self,
|
|
165
|
+
_request_timeout: Union[
|
|
166
|
+
None,
|
|
167
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
168
|
+
Tuple[
|
|
169
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
170
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
171
|
+
]
|
|
172
|
+
] = None,
|
|
173
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
174
|
+
_content_type: Optional[StrictStr] = None,
|
|
175
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
176
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
177
|
+
) -> RESTResponseType:
|
|
178
|
+
"""Retrieves information about the authenticated user.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
182
|
+
number provided, it will be total request
|
|
183
|
+
timeout. It can also be a pair (tuple) of
|
|
184
|
+
(connection, read) timeouts.
|
|
185
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
186
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
187
|
+
request; this effectively ignores the
|
|
188
|
+
authentication in the spec for a single request.
|
|
189
|
+
:type _request_auth: dict, optional
|
|
190
|
+
:param _content_type: force content-type for the request.
|
|
191
|
+
:type _content_type: str, Optional
|
|
192
|
+
:param _headers: set to override the headers for a single
|
|
193
|
+
request; this effectively ignores the headers
|
|
194
|
+
in the spec for a single request.
|
|
195
|
+
:type _headers: dict, optional
|
|
196
|
+
:param _host_index: set to override the host_index for a single
|
|
197
|
+
request; this effectively ignores the host_index
|
|
198
|
+
in the spec for a single request.
|
|
199
|
+
:type _host_index: int, optional
|
|
200
|
+
:return: Returns the result object.
|
|
201
|
+
""" # noqa: E501
|
|
202
|
+
|
|
203
|
+
_param = self._connect_userinfo_get_serialize(
|
|
204
|
+
_request_auth=_request_auth,
|
|
205
|
+
_content_type=_content_type,
|
|
206
|
+
_headers=_headers,
|
|
207
|
+
_host_index=_host_index
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
211
|
+
'200': None,
|
|
212
|
+
}
|
|
213
|
+
response_data = self.api_client.call_api(
|
|
214
|
+
*_param,
|
|
215
|
+
_request_timeout=_request_timeout
|
|
216
|
+
)
|
|
217
|
+
return response_data.response
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def _connect_userinfo_get_serialize(
|
|
221
|
+
self,
|
|
222
|
+
_request_auth,
|
|
223
|
+
_content_type,
|
|
224
|
+
_headers,
|
|
225
|
+
_host_index,
|
|
226
|
+
) -> RequestSerialized:
|
|
227
|
+
|
|
228
|
+
_host = None
|
|
229
|
+
|
|
230
|
+
_collection_formats: Dict[str, str] = {
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
_path_params: Dict[str, str] = {}
|
|
234
|
+
_query_params: List[Tuple[str, str]] = []
|
|
235
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
236
|
+
_form_params: List[Tuple[str, str]] = []
|
|
237
|
+
_files: Dict[
|
|
238
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
239
|
+
] = {}
|
|
240
|
+
_body_params: Optional[bytes] = None
|
|
241
|
+
|
|
242
|
+
# process the path parameters
|
|
243
|
+
# process the query parameters
|
|
244
|
+
# process the header parameters
|
|
245
|
+
# process the form parameters
|
|
246
|
+
# process the body parameter
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
# authentication setting
|
|
252
|
+
_auth_settings: List[str] = [
|
|
253
|
+
'bearer',
|
|
254
|
+
'oauth2'
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
return self.api_client.param_serialize(
|
|
258
|
+
method='GET',
|
|
259
|
+
resource_path='/connect/userinfo',
|
|
260
|
+
path_params=_path_params,
|
|
261
|
+
query_params=_query_params,
|
|
262
|
+
header_params=_header_params,
|
|
263
|
+
body=_body_params,
|
|
264
|
+
post_params=_form_params,
|
|
265
|
+
files=_files,
|
|
266
|
+
auth_settings=_auth_settings,
|
|
267
|
+
collection_formats=_collection_formats,
|
|
268
|
+
_host=_host,
|
|
269
|
+
_request_auth=_request_auth
|
|
270
|
+
)
|
|
271
|
+
|
|
272
|
+
|
|
@@ -315,7 +315,8 @@ class ValidationApi:
|
|
|
315
315
|
|
|
316
316
|
# authentication setting
|
|
317
317
|
_auth_settings: List[str] = [
|
|
318
|
-
'bearer'
|
|
318
|
+
'bearer',
|
|
319
|
+
'oauth2'
|
|
319
320
|
]
|
|
320
321
|
|
|
321
322
|
return self.api_client.param_serialize(
|
|
@@ -590,7 +591,8 @@ class ValidationApi:
|
|
|
590
591
|
|
|
591
592
|
# authentication setting
|
|
592
593
|
_auth_settings: List[str] = [
|
|
593
|
-
'bearer'
|
|
594
|
+
'bearer',
|
|
595
|
+
'oauth2'
|
|
594
596
|
]
|
|
595
597
|
|
|
596
598
|
return self.api_client.param_serialize(
|
|
@@ -852,7 +854,8 @@ class ValidationApi:
|
|
|
852
854
|
|
|
853
855
|
# authentication setting
|
|
854
856
|
_auth_settings: List[str] = [
|
|
855
|
-
'bearer'
|
|
857
|
+
'bearer',
|
|
858
|
+
'oauth2'
|
|
856
859
|
]
|
|
857
860
|
|
|
858
861
|
return self.api_client.param_serialize(
|
|
@@ -1097,7 +1100,8 @@ class ValidationApi:
|
|
|
1097
1100
|
|
|
1098
1101
|
# authentication setting
|
|
1099
1102
|
_auth_settings: List[str] = [
|
|
1100
|
-
'bearer'
|
|
1103
|
+
'bearer',
|
|
1104
|
+
'oauth2'
|
|
1101
1105
|
]
|
|
1102
1106
|
|
|
1103
1107
|
return self.api_client.param_serialize(
|
|
@@ -1385,7 +1389,8 @@ class ValidationApi:
|
|
|
1385
1389
|
|
|
1386
1390
|
# authentication setting
|
|
1387
1391
|
_auth_settings: List[str] = [
|
|
1388
|
-
'bearer'
|
|
1392
|
+
'bearer',
|
|
1393
|
+
'oauth2'
|
|
1389
1394
|
]
|
|
1390
1395
|
|
|
1391
1396
|
return self.api_client.param_serialize(
|
|
@@ -1673,7 +1678,8 @@ class ValidationApi:
|
|
|
1673
1678
|
|
|
1674
1679
|
# authentication setting
|
|
1675
1680
|
_auth_settings: List[str] = [
|
|
1676
|
-
'bearer'
|
|
1681
|
+
'bearer',
|
|
1682
|
+
'oauth2'
|
|
1677
1683
|
]
|
|
1678
1684
|
|
|
1679
1685
|
return self.api_client.param_serialize(
|
|
@@ -1935,7 +1941,8 @@ class ValidationApi:
|
|
|
1935
1941
|
|
|
1936
1942
|
# authentication setting
|
|
1937
1943
|
_auth_settings: List[str] = [
|
|
1938
|
-
'bearer'
|
|
1944
|
+
'bearer',
|
|
1945
|
+
'oauth2'
|
|
1939
1946
|
]
|
|
1940
1947
|
|
|
1941
1948
|
return self.api_client.param_serialize(
|