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.
Files changed (82) hide show
  1. rapidata/__init__.py +1 -0
  2. rapidata/api_client/__init__.py +30 -8
  3. rapidata/api_client/api/__init__.py +2 -0
  4. rapidata/api_client/api/campaign_api.py +8 -4
  5. rapidata/api_client/api/coco_api.py +4 -2
  6. rapidata/api_client/api/compare_workflow_api.py +2 -1
  7. rapidata/api_client/api/datapoint_api.py +6 -3
  8. rapidata/api_client/api/dataset_api.py +404 -396
  9. rapidata/api_client/api/identity_api.py +329 -50
  10. rapidata/api_client/api/newsletter_api.py +4 -2
  11. rapidata/api_client/api/order_api.py +40 -20
  12. rapidata/api_client/api/pipeline_api.py +6 -3
  13. rapidata/api_client/api/rapid_api.py +10 -5
  14. rapidata/api_client/api/rapidata_identity_api_api.py +272 -0
  15. rapidata/api_client/api/simple_workflow_api.py +2 -1
  16. rapidata/api_client/api/user_info_api.py +272 -0
  17. rapidata/api_client/api/validation_api.py +14 -7
  18. rapidata/api_client/api/workflow_api.py +30 -1067
  19. rapidata/api_client/models/__init__.py +28 -8
  20. rapidata/api_client/models/classification_metadata_model.py +98 -0
  21. rapidata/api_client/models/compare_workflow_config.py +3 -3
  22. rapidata/api_client/models/compare_workflow_config_model.py +3 -3
  23. rapidata/api_client/models/compare_workflow_model1.py +4 -18
  24. rapidata/api_client/models/compare_workflow_model1_referee.py +154 -0
  25. rapidata/api_client/models/completed_rapid_model.py +3 -3
  26. rapidata/api_client/models/completed_rapid_model_asset.py +170 -0
  27. rapidata/api_client/models/count_metadata_model.py +98 -0
  28. rapidata/api_client/models/demographic_metadata_model.py +100 -0
  29. rapidata/api_client/models/file_asset_model.py +3 -3
  30. rapidata/api_client/models/file_asset_model1.py +108 -0
  31. rapidata/api_client/models/file_asset_model1_metadata_inner.py +252 -0
  32. rapidata/api_client/models/file_asset_model2.py +108 -0
  33. rapidata/api_client/models/file_asset_model_metadata_inner.py +252 -0
  34. rapidata/api_client/models/image_dimension_metadata_model.py +100 -0
  35. rapidata/api_client/models/in_progress_rapid_model.py +3 -3
  36. rapidata/api_client/models/issue_auth_token_result.py +1 -1
  37. rapidata/api_client/models/legacy_issue_client_auth_token_result.py +87 -0
  38. rapidata/api_client/models/legacy_request_password_reset_command.py +98 -0
  39. rapidata/api_client/models/legacy_submit_password_reset_command.py +102 -0
  40. rapidata/api_client/models/location_metadata_model.py +100 -0
  41. rapidata/api_client/models/multi_asset_model.py +3 -3
  42. rapidata/api_client/models/multi_asset_model1.py +118 -0
  43. rapidata/api_client/models/multi_asset_model1_assets_inner.py +170 -0
  44. rapidata/api_client/models/multi_asset_model2.py +118 -0
  45. rapidata/api_client/models/not_started_rapid_model.py +3 -3
  46. rapidata/api_client/models/null_asset_model.py +3 -3
  47. rapidata/api_client/models/null_asset_model1.py +106 -0
  48. rapidata/api_client/models/null_asset_model2.py +106 -0
  49. rapidata/api_client/models/original_filename_metadata_model.py +98 -0
  50. rapidata/api_client/models/prompt_metadata_model.py +98 -0
  51. rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
  52. rapidata/api_client/models/ranked_datapoint_model.py +3 -3
  53. rapidata/api_client/models/simple_workflow_config.py +6 -6
  54. rapidata/api_client/models/simple_workflow_config_model.py +3 -3
  55. rapidata/api_client/models/simple_workflow_model1.py +7 -21
  56. rapidata/api_client/models/simple_workflow_model1_blueprint.py +238 -0
  57. rapidata/api_client/models/text_asset_model.py +3 -3
  58. rapidata/api_client/models/text_asset_model1.py +108 -0
  59. rapidata/api_client/models/text_asset_model2.py +108 -0
  60. rapidata/api_client/models/text_metadata_model.py +98 -0
  61. rapidata/api_client/models/transcription_metadata_model.py +98 -0
  62. rapidata/api_client/models/translated_prompt_metadata_model.py +102 -0
  63. rapidata/api_client/models/translated_string.py +93 -0
  64. rapidata/api_client_README.md +36 -13
  65. rapidata/rapidata_client/__init__.py +13 -2
  66. rapidata/rapidata_client/assets/media_asset.py +1 -1
  67. rapidata/rapidata_client/assets/multi_asset.py +14 -3
  68. rapidata/rapidata_client/dataset/rapidata_dataset.py +59 -21
  69. rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
  70. rapidata/rapidata_client/order/rapidata_order.py +49 -18
  71. rapidata/rapidata_client/order/rapidata_order_builder.py +99 -41
  72. rapidata/rapidata_client/selection/__init__.py +1 -0
  73. rapidata/rapidata_client/selection/capped_selection.py +25 -0
  74. rapidata/rapidata_client/selection/demographic_selection.py +3 -2
  75. rapidata/rapidata_client/simple_builders/__init__.py +0 -0
  76. rapidata/rapidata_client/simple_builders/simple_classification_builders.py +14 -9
  77. rapidata/rapidata_client/simple_builders/simple_compare_builders.py +6 -3
  78. rapidata/service/openapi_service.py +15 -0
  79. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/METADATA +1 -1
  80. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/RECORD +82 -50
  81. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/LICENSE +0 -0
  82. {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(