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
|
@@ -21,12 +21,12 @@ from typing import Optional
|
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.create_client_model import CreateClientModel
|
|
23
23
|
from rapidata.api_client.models.issue_auth_token_result import IssueAuthTokenResult
|
|
24
|
-
from rapidata.api_client.models.
|
|
24
|
+
from rapidata.api_client.models.legacy_issue_client_auth_token_result import LegacyIssueClientAuthTokenResult
|
|
25
|
+
from rapidata.api_client.models.legacy_request_password_reset_command import LegacyRequestPasswordResetCommand
|
|
26
|
+
from rapidata.api_client.models.legacy_submit_password_reset_command import LegacySubmitPasswordResetCommand
|
|
25
27
|
from rapidata.api_client.models.login_model import LoginModel
|
|
26
|
-
from rapidata.api_client.models.request_password_reset_command import RequestPasswordResetCommand
|
|
27
28
|
from rapidata.api_client.models.signup_customer_model import SignupCustomerModel
|
|
28
29
|
from rapidata.api_client.models.signup_shadow_customer_model import SignupShadowCustomerModel
|
|
29
|
-
from rapidata.api_client.models.submit_password_reset_command import SubmitPasswordResetCommand
|
|
30
30
|
|
|
31
31
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
32
32
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -295,7 +295,8 @@ class IdentityApi:
|
|
|
295
295
|
|
|
296
296
|
# authentication setting
|
|
297
297
|
_auth_settings: List[str] = [
|
|
298
|
-
'bearer'
|
|
298
|
+
'bearer',
|
|
299
|
+
'oauth2'
|
|
299
300
|
]
|
|
300
301
|
|
|
301
302
|
return self.api_client.param_serialize(
|
|
@@ -564,7 +565,8 @@ class IdentityApi:
|
|
|
564
565
|
|
|
565
566
|
# authentication setting
|
|
566
567
|
_auth_settings: List[str] = [
|
|
567
|
-
'bearer'
|
|
568
|
+
'bearer',
|
|
569
|
+
'oauth2'
|
|
568
570
|
]
|
|
569
571
|
|
|
570
572
|
return self.api_client.param_serialize(
|
|
@@ -817,7 +819,8 @@ class IdentityApi:
|
|
|
817
819
|
|
|
818
820
|
# authentication setting
|
|
819
821
|
_auth_settings: List[str] = [
|
|
820
|
-
'bearer'
|
|
822
|
+
'bearer',
|
|
823
|
+
'oauth2'
|
|
821
824
|
]
|
|
822
825
|
|
|
823
826
|
return self.api_client.param_serialize(
|
|
@@ -1087,7 +1090,8 @@ class IdentityApi:
|
|
|
1087
1090
|
|
|
1088
1091
|
# authentication setting
|
|
1089
1092
|
_auth_settings: List[str] = [
|
|
1090
|
-
'bearer'
|
|
1093
|
+
'bearer',
|
|
1094
|
+
'oauth2'
|
|
1091
1095
|
]
|
|
1092
1096
|
|
|
1093
1097
|
return self.api_client.param_serialize(
|
|
@@ -1332,7 +1336,8 @@ class IdentityApi:
|
|
|
1332
1336
|
|
|
1333
1337
|
# authentication setting
|
|
1334
1338
|
_auth_settings: List[str] = [
|
|
1335
|
-
'bearer'
|
|
1339
|
+
'bearer',
|
|
1340
|
+
'oauth2'
|
|
1336
1341
|
]
|
|
1337
1342
|
|
|
1338
1343
|
return self.api_client.param_serialize(
|
|
@@ -1369,7 +1374,7 @@ class IdentityApi:
|
|
|
1369
1374
|
_content_type: Optional[StrictStr] = None,
|
|
1370
1375
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1371
1376
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1372
|
-
) ->
|
|
1377
|
+
) -> LegacyIssueClientAuthTokenResult:
|
|
1373
1378
|
"""Issues a new auth token using the client credentials.
|
|
1374
1379
|
|
|
1375
1380
|
|
|
@@ -1406,7 +1411,7 @@ class IdentityApi:
|
|
|
1406
1411
|
)
|
|
1407
1412
|
|
|
1408
1413
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1409
|
-
'200': "
|
|
1414
|
+
'200': "LegacyIssueClientAuthTokenResult",
|
|
1410
1415
|
}
|
|
1411
1416
|
response_data = self.api_client.call_api(
|
|
1412
1417
|
*_param,
|
|
@@ -1435,7 +1440,7 @@ class IdentityApi:
|
|
|
1435
1440
|
_content_type: Optional[StrictStr] = None,
|
|
1436
1441
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1437
1442
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1438
|
-
) -> ApiResponse[
|
|
1443
|
+
) -> ApiResponse[LegacyIssueClientAuthTokenResult]:
|
|
1439
1444
|
"""Issues a new auth token using the client credentials.
|
|
1440
1445
|
|
|
1441
1446
|
|
|
@@ -1472,7 +1477,7 @@ class IdentityApi:
|
|
|
1472
1477
|
)
|
|
1473
1478
|
|
|
1474
1479
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1475
|
-
'200': "
|
|
1480
|
+
'200': "LegacyIssueClientAuthTokenResult",
|
|
1476
1481
|
}
|
|
1477
1482
|
response_data = self.api_client.call_api(
|
|
1478
1483
|
*_param,
|
|
@@ -1538,7 +1543,7 @@ class IdentityApi:
|
|
|
1538
1543
|
)
|
|
1539
1544
|
|
|
1540
1545
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1541
|
-
'200': "
|
|
1546
|
+
'200': "LegacyIssueClientAuthTokenResult",
|
|
1542
1547
|
}
|
|
1543
1548
|
response_data = self.api_client.call_api(
|
|
1544
1549
|
*_param,
|
|
@@ -1594,7 +1599,8 @@ class IdentityApi:
|
|
|
1594
1599
|
|
|
1595
1600
|
# authentication setting
|
|
1596
1601
|
_auth_settings: List[str] = [
|
|
1597
|
-
'bearer'
|
|
1602
|
+
'bearer',
|
|
1603
|
+
'oauth2'
|
|
1598
1604
|
]
|
|
1599
1605
|
|
|
1600
1606
|
return self.api_client.param_serialize(
|
|
@@ -1860,7 +1866,8 @@ class IdentityApi:
|
|
|
1860
1866
|
|
|
1861
1867
|
# authentication setting
|
|
1862
1868
|
_auth_settings: List[str] = [
|
|
1863
|
-
'bearer'
|
|
1869
|
+
'bearer',
|
|
1870
|
+
'oauth2'
|
|
1864
1871
|
]
|
|
1865
1872
|
|
|
1866
1873
|
return self.api_client.param_serialize(
|
|
@@ -2096,7 +2103,8 @@ class IdentityApi:
|
|
|
2096
2103
|
|
|
2097
2104
|
# authentication setting
|
|
2098
2105
|
_auth_settings: List[str] = [
|
|
2099
|
-
'bearer'
|
|
2106
|
+
'bearer',
|
|
2107
|
+
'oauth2'
|
|
2100
2108
|
]
|
|
2101
2109
|
|
|
2102
2110
|
return self.api_client.param_serialize(
|
|
@@ -2117,10 +2125,277 @@ class IdentityApi:
|
|
|
2117
2125
|
|
|
2118
2126
|
|
|
2119
2127
|
|
|
2128
|
+
@validate_call
|
|
2129
|
+
def identity_register_temporary_post(
|
|
2130
|
+
self,
|
|
2131
|
+
signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
|
|
2132
|
+
_request_timeout: Union[
|
|
2133
|
+
None,
|
|
2134
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2135
|
+
Tuple[
|
|
2136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2137
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2138
|
+
]
|
|
2139
|
+
] = None,
|
|
2140
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2141
|
+
_content_type: Optional[StrictStr] = None,
|
|
2142
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2143
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2144
|
+
) -> None:
|
|
2145
|
+
"""Registers and logs in a temporary customer.
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
:param signup_shadow_customer_model: The model to register the temporary customer with.
|
|
2149
|
+
:type signup_shadow_customer_model: SignupShadowCustomerModel
|
|
2150
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2151
|
+
number provided, it will be total request
|
|
2152
|
+
timeout. It can also be a pair (tuple) of
|
|
2153
|
+
(connection, read) timeouts.
|
|
2154
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2155
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2156
|
+
request; this effectively ignores the
|
|
2157
|
+
authentication in the spec for a single request.
|
|
2158
|
+
:type _request_auth: dict, optional
|
|
2159
|
+
:param _content_type: force content-type for the request.
|
|
2160
|
+
:type _content_type: str, Optional
|
|
2161
|
+
:param _headers: set to override the headers for a single
|
|
2162
|
+
request; this effectively ignores the headers
|
|
2163
|
+
in the spec for a single request.
|
|
2164
|
+
:type _headers: dict, optional
|
|
2165
|
+
:param _host_index: set to override the host_index for a single
|
|
2166
|
+
request; this effectively ignores the host_index
|
|
2167
|
+
in the spec for a single request.
|
|
2168
|
+
:type _host_index: int, optional
|
|
2169
|
+
:return: Returns the result object.
|
|
2170
|
+
""" # noqa: E501
|
|
2171
|
+
|
|
2172
|
+
_param = self._identity_register_temporary_post_serialize(
|
|
2173
|
+
signup_shadow_customer_model=signup_shadow_customer_model,
|
|
2174
|
+
_request_auth=_request_auth,
|
|
2175
|
+
_content_type=_content_type,
|
|
2176
|
+
_headers=_headers,
|
|
2177
|
+
_host_index=_host_index
|
|
2178
|
+
)
|
|
2179
|
+
|
|
2180
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2181
|
+
'200': None,
|
|
2182
|
+
}
|
|
2183
|
+
response_data = self.api_client.call_api(
|
|
2184
|
+
*_param,
|
|
2185
|
+
_request_timeout=_request_timeout
|
|
2186
|
+
)
|
|
2187
|
+
response_data.read()
|
|
2188
|
+
return self.api_client.response_deserialize(
|
|
2189
|
+
response_data=response_data,
|
|
2190
|
+
response_types_map=_response_types_map,
|
|
2191
|
+
).data
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
@validate_call
|
|
2195
|
+
def identity_register_temporary_post_with_http_info(
|
|
2196
|
+
self,
|
|
2197
|
+
signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
|
|
2198
|
+
_request_timeout: Union[
|
|
2199
|
+
None,
|
|
2200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2201
|
+
Tuple[
|
|
2202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2204
|
+
]
|
|
2205
|
+
] = None,
|
|
2206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2207
|
+
_content_type: Optional[StrictStr] = None,
|
|
2208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2210
|
+
) -> ApiResponse[None]:
|
|
2211
|
+
"""Registers and logs in a temporary customer.
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
:param signup_shadow_customer_model: The model to register the temporary customer with.
|
|
2215
|
+
:type signup_shadow_customer_model: SignupShadowCustomerModel
|
|
2216
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2217
|
+
number provided, it will be total request
|
|
2218
|
+
timeout. It can also be a pair (tuple) of
|
|
2219
|
+
(connection, read) timeouts.
|
|
2220
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2221
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2222
|
+
request; this effectively ignores the
|
|
2223
|
+
authentication in the spec for a single request.
|
|
2224
|
+
:type _request_auth: dict, optional
|
|
2225
|
+
:param _content_type: force content-type for the request.
|
|
2226
|
+
:type _content_type: str, Optional
|
|
2227
|
+
:param _headers: set to override the headers for a single
|
|
2228
|
+
request; this effectively ignores the headers
|
|
2229
|
+
in the spec for a single request.
|
|
2230
|
+
:type _headers: dict, optional
|
|
2231
|
+
:param _host_index: set to override the host_index for a single
|
|
2232
|
+
request; this effectively ignores the host_index
|
|
2233
|
+
in the spec for a single request.
|
|
2234
|
+
:type _host_index: int, optional
|
|
2235
|
+
:return: Returns the result object.
|
|
2236
|
+
""" # noqa: E501
|
|
2237
|
+
|
|
2238
|
+
_param = self._identity_register_temporary_post_serialize(
|
|
2239
|
+
signup_shadow_customer_model=signup_shadow_customer_model,
|
|
2240
|
+
_request_auth=_request_auth,
|
|
2241
|
+
_content_type=_content_type,
|
|
2242
|
+
_headers=_headers,
|
|
2243
|
+
_host_index=_host_index
|
|
2244
|
+
)
|
|
2245
|
+
|
|
2246
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2247
|
+
'200': None,
|
|
2248
|
+
}
|
|
2249
|
+
response_data = self.api_client.call_api(
|
|
2250
|
+
*_param,
|
|
2251
|
+
_request_timeout=_request_timeout
|
|
2252
|
+
)
|
|
2253
|
+
response_data.read()
|
|
2254
|
+
return self.api_client.response_deserialize(
|
|
2255
|
+
response_data=response_data,
|
|
2256
|
+
response_types_map=_response_types_map,
|
|
2257
|
+
)
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
@validate_call
|
|
2261
|
+
def identity_register_temporary_post_without_preload_content(
|
|
2262
|
+
self,
|
|
2263
|
+
signup_shadow_customer_model: Annotated[Optional[SignupShadowCustomerModel], Field(description="The model to register the temporary customer with.")] = None,
|
|
2264
|
+
_request_timeout: Union[
|
|
2265
|
+
None,
|
|
2266
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2267
|
+
Tuple[
|
|
2268
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2269
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2270
|
+
]
|
|
2271
|
+
] = None,
|
|
2272
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2273
|
+
_content_type: Optional[StrictStr] = None,
|
|
2274
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2275
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2276
|
+
) -> RESTResponseType:
|
|
2277
|
+
"""Registers and logs in a temporary customer.
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
:param signup_shadow_customer_model: The model to register the temporary customer with.
|
|
2281
|
+
:type signup_shadow_customer_model: SignupShadowCustomerModel
|
|
2282
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2283
|
+
number provided, it will be total request
|
|
2284
|
+
timeout. It can also be a pair (tuple) of
|
|
2285
|
+
(connection, read) timeouts.
|
|
2286
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2287
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2288
|
+
request; this effectively ignores the
|
|
2289
|
+
authentication in the spec for a single request.
|
|
2290
|
+
:type _request_auth: dict, optional
|
|
2291
|
+
:param _content_type: force content-type for the request.
|
|
2292
|
+
:type _content_type: str, Optional
|
|
2293
|
+
:param _headers: set to override the headers for a single
|
|
2294
|
+
request; this effectively ignores the headers
|
|
2295
|
+
in the spec for a single request.
|
|
2296
|
+
:type _headers: dict, optional
|
|
2297
|
+
:param _host_index: set to override the host_index for a single
|
|
2298
|
+
request; this effectively ignores the host_index
|
|
2299
|
+
in the spec for a single request.
|
|
2300
|
+
:type _host_index: int, optional
|
|
2301
|
+
:return: Returns the result object.
|
|
2302
|
+
""" # noqa: E501
|
|
2303
|
+
|
|
2304
|
+
_param = self._identity_register_temporary_post_serialize(
|
|
2305
|
+
signup_shadow_customer_model=signup_shadow_customer_model,
|
|
2306
|
+
_request_auth=_request_auth,
|
|
2307
|
+
_content_type=_content_type,
|
|
2308
|
+
_headers=_headers,
|
|
2309
|
+
_host_index=_host_index
|
|
2310
|
+
)
|
|
2311
|
+
|
|
2312
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2313
|
+
'200': None,
|
|
2314
|
+
}
|
|
2315
|
+
response_data = self.api_client.call_api(
|
|
2316
|
+
*_param,
|
|
2317
|
+
_request_timeout=_request_timeout
|
|
2318
|
+
)
|
|
2319
|
+
return response_data.response
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
def _identity_register_temporary_post_serialize(
|
|
2323
|
+
self,
|
|
2324
|
+
signup_shadow_customer_model,
|
|
2325
|
+
_request_auth,
|
|
2326
|
+
_content_type,
|
|
2327
|
+
_headers,
|
|
2328
|
+
_host_index,
|
|
2329
|
+
) -> RequestSerialized:
|
|
2330
|
+
|
|
2331
|
+
_host = None
|
|
2332
|
+
|
|
2333
|
+
_collection_formats: Dict[str, str] = {
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
_path_params: Dict[str, str] = {}
|
|
2337
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2338
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2339
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2340
|
+
_files: Dict[
|
|
2341
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2342
|
+
] = {}
|
|
2343
|
+
_body_params: Optional[bytes] = None
|
|
2344
|
+
|
|
2345
|
+
# process the path parameters
|
|
2346
|
+
# process the query parameters
|
|
2347
|
+
# process the header parameters
|
|
2348
|
+
# process the form parameters
|
|
2349
|
+
# process the body parameter
|
|
2350
|
+
if signup_shadow_customer_model is not None:
|
|
2351
|
+
_body_params = signup_shadow_customer_model
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
# set the HTTP header `Content-Type`
|
|
2356
|
+
if _content_type:
|
|
2357
|
+
_header_params['Content-Type'] = _content_type
|
|
2358
|
+
else:
|
|
2359
|
+
_default_content_type = (
|
|
2360
|
+
self.api_client.select_header_content_type(
|
|
2361
|
+
[
|
|
2362
|
+
'application/json',
|
|
2363
|
+
'text/json',
|
|
2364
|
+
'application/*+json'
|
|
2365
|
+
]
|
|
2366
|
+
)
|
|
2367
|
+
)
|
|
2368
|
+
if _default_content_type is not None:
|
|
2369
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2370
|
+
|
|
2371
|
+
# authentication setting
|
|
2372
|
+
_auth_settings: List[str] = [
|
|
2373
|
+
'bearer',
|
|
2374
|
+
'oauth2'
|
|
2375
|
+
]
|
|
2376
|
+
|
|
2377
|
+
return self.api_client.param_serialize(
|
|
2378
|
+
method='POST',
|
|
2379
|
+
resource_path='/Identity/RegisterTemporary',
|
|
2380
|
+
path_params=_path_params,
|
|
2381
|
+
query_params=_query_params,
|
|
2382
|
+
header_params=_header_params,
|
|
2383
|
+
body=_body_params,
|
|
2384
|
+
post_params=_form_params,
|
|
2385
|
+
files=_files,
|
|
2386
|
+
auth_settings=_auth_settings,
|
|
2387
|
+
collection_formats=_collection_formats,
|
|
2388
|
+
_host=_host,
|
|
2389
|
+
_request_auth=_request_auth
|
|
2390
|
+
)
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
|
|
2394
|
+
|
|
2120
2395
|
@validate_call
|
|
2121
2396
|
def identity_request_reset_post(
|
|
2122
2397
|
self,
|
|
2123
|
-
|
|
2398
|
+
legacy_request_password_reset_command: Annotated[Optional[LegacyRequestPasswordResetCommand], Field(description="The command containing the user's email.")] = None,
|
|
2124
2399
|
_request_timeout: Union[
|
|
2125
2400
|
None,
|
|
2126
2401
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2137,8 +2412,8 @@ class IdentityApi:
|
|
|
2137
2412
|
"""Request a password reset for a user.
|
|
2138
2413
|
|
|
2139
2414
|
|
|
2140
|
-
:param
|
|
2141
|
-
:type
|
|
2415
|
+
:param legacy_request_password_reset_command: The command containing the user's email.
|
|
2416
|
+
:type legacy_request_password_reset_command: LegacyRequestPasswordResetCommand
|
|
2142
2417
|
:param _request_timeout: timeout setting for this request. If one
|
|
2143
2418
|
number provided, it will be total request
|
|
2144
2419
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2162,7 +2437,7 @@ class IdentityApi:
|
|
|
2162
2437
|
""" # noqa: E501
|
|
2163
2438
|
|
|
2164
2439
|
_param = self._identity_request_reset_post_serialize(
|
|
2165
|
-
|
|
2440
|
+
legacy_request_password_reset_command=legacy_request_password_reset_command,
|
|
2166
2441
|
_request_auth=_request_auth,
|
|
2167
2442
|
_content_type=_content_type,
|
|
2168
2443
|
_headers=_headers,
|
|
@@ -2186,7 +2461,7 @@ class IdentityApi:
|
|
|
2186
2461
|
@validate_call
|
|
2187
2462
|
def identity_request_reset_post_with_http_info(
|
|
2188
2463
|
self,
|
|
2189
|
-
|
|
2464
|
+
legacy_request_password_reset_command: Annotated[Optional[LegacyRequestPasswordResetCommand], Field(description="The command containing the user's email.")] = None,
|
|
2190
2465
|
_request_timeout: Union[
|
|
2191
2466
|
None,
|
|
2192
2467
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2203,8 +2478,8 @@ class IdentityApi:
|
|
|
2203
2478
|
"""Request a password reset for a user.
|
|
2204
2479
|
|
|
2205
2480
|
|
|
2206
|
-
:param
|
|
2207
|
-
:type
|
|
2481
|
+
:param legacy_request_password_reset_command: The command containing the user's email.
|
|
2482
|
+
:type legacy_request_password_reset_command: LegacyRequestPasswordResetCommand
|
|
2208
2483
|
:param _request_timeout: timeout setting for this request. If one
|
|
2209
2484
|
number provided, it will be total request
|
|
2210
2485
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2228,7 +2503,7 @@ class IdentityApi:
|
|
|
2228
2503
|
""" # noqa: E501
|
|
2229
2504
|
|
|
2230
2505
|
_param = self._identity_request_reset_post_serialize(
|
|
2231
|
-
|
|
2506
|
+
legacy_request_password_reset_command=legacy_request_password_reset_command,
|
|
2232
2507
|
_request_auth=_request_auth,
|
|
2233
2508
|
_content_type=_content_type,
|
|
2234
2509
|
_headers=_headers,
|
|
@@ -2252,7 +2527,7 @@ class IdentityApi:
|
|
|
2252
2527
|
@validate_call
|
|
2253
2528
|
def identity_request_reset_post_without_preload_content(
|
|
2254
2529
|
self,
|
|
2255
|
-
|
|
2530
|
+
legacy_request_password_reset_command: Annotated[Optional[LegacyRequestPasswordResetCommand], Field(description="The command containing the user's email.")] = None,
|
|
2256
2531
|
_request_timeout: Union[
|
|
2257
2532
|
None,
|
|
2258
2533
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2269,8 +2544,8 @@ class IdentityApi:
|
|
|
2269
2544
|
"""Request a password reset for a user.
|
|
2270
2545
|
|
|
2271
2546
|
|
|
2272
|
-
:param
|
|
2273
|
-
:type
|
|
2547
|
+
:param legacy_request_password_reset_command: The command containing the user's email.
|
|
2548
|
+
:type legacy_request_password_reset_command: LegacyRequestPasswordResetCommand
|
|
2274
2549
|
:param _request_timeout: timeout setting for this request. If one
|
|
2275
2550
|
number provided, it will be total request
|
|
2276
2551
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2294,7 +2569,7 @@ class IdentityApi:
|
|
|
2294
2569
|
""" # noqa: E501
|
|
2295
2570
|
|
|
2296
2571
|
_param = self._identity_request_reset_post_serialize(
|
|
2297
|
-
|
|
2572
|
+
legacy_request_password_reset_command=legacy_request_password_reset_command,
|
|
2298
2573
|
_request_auth=_request_auth,
|
|
2299
2574
|
_content_type=_content_type,
|
|
2300
2575
|
_headers=_headers,
|
|
@@ -2313,7 +2588,7 @@ class IdentityApi:
|
|
|
2313
2588
|
|
|
2314
2589
|
def _identity_request_reset_post_serialize(
|
|
2315
2590
|
self,
|
|
2316
|
-
|
|
2591
|
+
legacy_request_password_reset_command,
|
|
2317
2592
|
_request_auth,
|
|
2318
2593
|
_content_type,
|
|
2319
2594
|
_headers,
|
|
@@ -2339,8 +2614,8 @@ class IdentityApi:
|
|
|
2339
2614
|
# process the header parameters
|
|
2340
2615
|
# process the form parameters
|
|
2341
2616
|
# process the body parameter
|
|
2342
|
-
if
|
|
2343
|
-
_body_params =
|
|
2617
|
+
if legacy_request_password_reset_command is not None:
|
|
2618
|
+
_body_params = legacy_request_password_reset_command
|
|
2344
2619
|
|
|
2345
2620
|
|
|
2346
2621
|
|
|
@@ -2362,7 +2637,8 @@ class IdentityApi:
|
|
|
2362
2637
|
|
|
2363
2638
|
# authentication setting
|
|
2364
2639
|
_auth_settings: List[str] = [
|
|
2365
|
-
'bearer'
|
|
2640
|
+
'bearer',
|
|
2641
|
+
'oauth2'
|
|
2366
2642
|
]
|
|
2367
2643
|
|
|
2368
2644
|
return self.api_client.param_serialize(
|
|
@@ -2628,7 +2904,8 @@ class IdentityApi:
|
|
|
2628
2904
|
|
|
2629
2905
|
# authentication setting
|
|
2630
2906
|
_auth_settings: List[str] = [
|
|
2631
|
-
'bearer'
|
|
2907
|
+
'bearer',
|
|
2908
|
+
'oauth2'
|
|
2632
2909
|
]
|
|
2633
2910
|
|
|
2634
2911
|
return self.api_client.param_serialize(
|
|
@@ -2652,7 +2929,7 @@ class IdentityApi:
|
|
|
2652
2929
|
@validate_call
|
|
2653
2930
|
def identity_submit_reset_post(
|
|
2654
2931
|
self,
|
|
2655
|
-
|
|
2932
|
+
legacy_submit_password_reset_command: Annotated[Optional[LegacySubmitPasswordResetCommand], Field(description="The command containing the user's email, the reset token and the new password.")] = None,
|
|
2656
2933
|
_request_timeout: Union[
|
|
2657
2934
|
None,
|
|
2658
2935
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2669,8 +2946,8 @@ class IdentityApi:
|
|
|
2669
2946
|
"""Updates the password of a user after a password reset request.
|
|
2670
2947
|
|
|
2671
2948
|
|
|
2672
|
-
:param
|
|
2673
|
-
:type
|
|
2949
|
+
:param legacy_submit_password_reset_command: The command containing the user's email, the reset token and the new password.
|
|
2950
|
+
:type legacy_submit_password_reset_command: LegacySubmitPasswordResetCommand
|
|
2674
2951
|
:param _request_timeout: timeout setting for this request. If one
|
|
2675
2952
|
number provided, it will be total request
|
|
2676
2953
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2694,7 +2971,7 @@ class IdentityApi:
|
|
|
2694
2971
|
""" # noqa: E501
|
|
2695
2972
|
|
|
2696
2973
|
_param = self._identity_submit_reset_post_serialize(
|
|
2697
|
-
|
|
2974
|
+
legacy_submit_password_reset_command=legacy_submit_password_reset_command,
|
|
2698
2975
|
_request_auth=_request_auth,
|
|
2699
2976
|
_content_type=_content_type,
|
|
2700
2977
|
_headers=_headers,
|
|
@@ -2718,7 +2995,7 @@ class IdentityApi:
|
|
|
2718
2995
|
@validate_call
|
|
2719
2996
|
def identity_submit_reset_post_with_http_info(
|
|
2720
2997
|
self,
|
|
2721
|
-
|
|
2998
|
+
legacy_submit_password_reset_command: Annotated[Optional[LegacySubmitPasswordResetCommand], Field(description="The command containing the user's email, the reset token and the new password.")] = None,
|
|
2722
2999
|
_request_timeout: Union[
|
|
2723
3000
|
None,
|
|
2724
3001
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2735,8 +3012,8 @@ class IdentityApi:
|
|
|
2735
3012
|
"""Updates the password of a user after a password reset request.
|
|
2736
3013
|
|
|
2737
3014
|
|
|
2738
|
-
:param
|
|
2739
|
-
:type
|
|
3015
|
+
:param legacy_submit_password_reset_command: The command containing the user's email, the reset token and the new password.
|
|
3016
|
+
:type legacy_submit_password_reset_command: LegacySubmitPasswordResetCommand
|
|
2740
3017
|
:param _request_timeout: timeout setting for this request. If one
|
|
2741
3018
|
number provided, it will be total request
|
|
2742
3019
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2760,7 +3037,7 @@ class IdentityApi:
|
|
|
2760
3037
|
""" # noqa: E501
|
|
2761
3038
|
|
|
2762
3039
|
_param = self._identity_submit_reset_post_serialize(
|
|
2763
|
-
|
|
3040
|
+
legacy_submit_password_reset_command=legacy_submit_password_reset_command,
|
|
2764
3041
|
_request_auth=_request_auth,
|
|
2765
3042
|
_content_type=_content_type,
|
|
2766
3043
|
_headers=_headers,
|
|
@@ -2784,7 +3061,7 @@ class IdentityApi:
|
|
|
2784
3061
|
@validate_call
|
|
2785
3062
|
def identity_submit_reset_post_without_preload_content(
|
|
2786
3063
|
self,
|
|
2787
|
-
|
|
3064
|
+
legacy_submit_password_reset_command: Annotated[Optional[LegacySubmitPasswordResetCommand], Field(description="The command containing the user's email, the reset token and the new password.")] = None,
|
|
2788
3065
|
_request_timeout: Union[
|
|
2789
3066
|
None,
|
|
2790
3067
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2801,8 +3078,8 @@ class IdentityApi:
|
|
|
2801
3078
|
"""Updates the password of a user after a password reset request.
|
|
2802
3079
|
|
|
2803
3080
|
|
|
2804
|
-
:param
|
|
2805
|
-
:type
|
|
3081
|
+
:param legacy_submit_password_reset_command: The command containing the user's email, the reset token and the new password.
|
|
3082
|
+
:type legacy_submit_password_reset_command: LegacySubmitPasswordResetCommand
|
|
2806
3083
|
:param _request_timeout: timeout setting for this request. If one
|
|
2807
3084
|
number provided, it will be total request
|
|
2808
3085
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2826,7 +3103,7 @@ class IdentityApi:
|
|
|
2826
3103
|
""" # noqa: E501
|
|
2827
3104
|
|
|
2828
3105
|
_param = self._identity_submit_reset_post_serialize(
|
|
2829
|
-
|
|
3106
|
+
legacy_submit_password_reset_command=legacy_submit_password_reset_command,
|
|
2830
3107
|
_request_auth=_request_auth,
|
|
2831
3108
|
_content_type=_content_type,
|
|
2832
3109
|
_headers=_headers,
|
|
@@ -2845,7 +3122,7 @@ class IdentityApi:
|
|
|
2845
3122
|
|
|
2846
3123
|
def _identity_submit_reset_post_serialize(
|
|
2847
3124
|
self,
|
|
2848
|
-
|
|
3125
|
+
legacy_submit_password_reset_command,
|
|
2849
3126
|
_request_auth,
|
|
2850
3127
|
_content_type,
|
|
2851
3128
|
_headers,
|
|
@@ -2871,8 +3148,8 @@ class IdentityApi:
|
|
|
2871
3148
|
# process the header parameters
|
|
2872
3149
|
# process the form parameters
|
|
2873
3150
|
# process the body parameter
|
|
2874
|
-
if
|
|
2875
|
-
_body_params =
|
|
3151
|
+
if legacy_submit_password_reset_command is not None:
|
|
3152
|
+
_body_params = legacy_submit_password_reset_command
|
|
2876
3153
|
|
|
2877
3154
|
|
|
2878
3155
|
|
|
@@ -2894,7 +3171,8 @@ class IdentityApi:
|
|
|
2894
3171
|
|
|
2895
3172
|
# authentication setting
|
|
2896
3173
|
_auth_settings: List[str] = [
|
|
2897
|
-
'bearer'
|
|
3174
|
+
'bearer',
|
|
3175
|
+
'oauth2'
|
|
2898
3176
|
]
|
|
2899
3177
|
|
|
2900
3178
|
return self.api_client.param_serialize(
|
|
@@ -3160,7 +3438,8 @@ class IdentityApi:
|
|
|
3160
3438
|
|
|
3161
3439
|
# authentication setting
|
|
3162
3440
|
_auth_settings: List[str] = [
|
|
3163
|
-
'bearer'
|
|
3441
|
+
'bearer',
|
|
3442
|
+
'oauth2'
|
|
3164
3443
|
]
|
|
3165
3444
|
|
|
3166
3445
|
return self.api_client.param_serialize(
|
|
@@ -284,7 +284,8 @@ class NewsletterApi:
|
|
|
284
284
|
|
|
285
285
|
# authentication setting
|
|
286
286
|
_auth_settings: List[str] = [
|
|
287
|
-
'bearer'
|
|
287
|
+
'bearer',
|
|
288
|
+
'oauth2'
|
|
288
289
|
]
|
|
289
290
|
|
|
290
291
|
return self.api_client.param_serialize(
|
|
@@ -550,7 +551,8 @@ class NewsletterApi:
|
|
|
550
551
|
|
|
551
552
|
# authentication setting
|
|
552
553
|
_auth_settings: List[str] = [
|
|
553
|
-
'bearer'
|
|
554
|
+
'bearer',
|
|
555
|
+
'oauth2'
|
|
554
556
|
]
|
|
555
557
|
|
|
556
558
|
return self.api_client.param_serialize(
|