rapidata 2.21.5__py3-none-any.whl → 2.22.0__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.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

Files changed (60) hide show
  1. rapidata/__init__.py +5 -0
  2. rapidata/api_client/__init__.py +8 -4
  3. rapidata/api_client/api/__init__.py +1 -0
  4. rapidata/api_client/api/evaluation_workflow_api.py +372 -0
  5. rapidata/api_client/api/identity_api.py +268 -0
  6. rapidata/api_client/api/rapid_api.py +353 -1987
  7. rapidata/api_client/api/simple_workflow_api.py +6 -6
  8. rapidata/api_client/models/__init__.py +7 -4
  9. rapidata/api_client/models/add_campaign_model.py +25 -1
  10. rapidata/api_client/models/add_validation_rapid_model_truth.py +24 -10
  11. rapidata/api_client/models/compare_result.py +2 -0
  12. rapidata/api_client/models/create_order_model.py +43 -2
  13. rapidata/api_client/models/evaluation_workflow_model1.py +115 -0
  14. rapidata/api_client/models/filter.py +2 -2
  15. rapidata/api_client/models/get_validation_rapids_result.py +11 -4
  16. rapidata/api_client/models/get_validation_rapids_result_truth.py +24 -10
  17. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
  18. rapidata/api_client/models/get_workflow_results_result.py +118 -0
  19. rapidata/api_client/models/get_workflow_results_result_paged_result.py +105 -0
  20. rapidata/api_client/models/google_one_tap_login_model.py +87 -0
  21. rapidata/api_client/models/labeling_selection.py +22 -3
  22. rapidata/api_client/models/logic_operator.py +1 -0
  23. rapidata/api_client/models/rapid_response.py +3 -1
  24. rapidata/api_client/models/retrieval_mode.py +38 -0
  25. rapidata/api_client/models/root_filter.py +2 -2
  26. rapidata/api_client/models/skip_truth.py +94 -0
  27. rapidata/api_client/models/sticky_state.py +38 -0
  28. rapidata/api_client/models/update_validation_rapid_model.py +11 -4
  29. rapidata/api_client/models/update_validation_rapid_model_truth.py +24 -10
  30. rapidata/api_client/rest.py +1 -0
  31. rapidata/api_client_README.md +10 -11
  32. rapidata/rapidata_client/__init__.py +7 -0
  33. rapidata/rapidata_client/api/rapidata_exception.py +5 -3
  34. rapidata/rapidata_client/assets/_media_asset.py +8 -1
  35. rapidata/rapidata_client/assets/_multi_asset.py +6 -0
  36. rapidata/rapidata_client/assets/_text_asset.py +6 -0
  37. rapidata/rapidata_client/demographic/demographic_manager.py +2 -3
  38. rapidata/rapidata_client/logging/__init__.py +2 -0
  39. rapidata/rapidata_client/logging/logger.py +47 -0
  40. rapidata/rapidata_client/logging/output_manager.py +16 -0
  41. rapidata/rapidata_client/order/_rapidata_dataset.py +11 -13
  42. rapidata/rapidata_client/order/_rapidata_order_builder.py +15 -2
  43. rapidata/rapidata_client/order/rapidata_order.py +22 -13
  44. rapidata/rapidata_client/order/rapidata_order_manager.py +4 -2
  45. rapidata/rapidata_client/order/rapidata_results.py +2 -1
  46. rapidata/rapidata_client/rapidata_client.py +6 -1
  47. rapidata/rapidata_client/selection/__init__.py +1 -0
  48. rapidata/rapidata_client/selection/labeling_selection.py +8 -2
  49. rapidata/rapidata_client/selection/retrieval_modes.py +9 -0
  50. rapidata/rapidata_client/settings/alert_on_fast_response.py +2 -1
  51. rapidata/rapidata_client/settings/free_text_minimum_characters.py +2 -1
  52. rapidata/rapidata_client/validation/rapidata_validation_set.py +2 -2
  53. rapidata/rapidata_client/validation/rapids/rapids.py +3 -1
  54. rapidata/rapidata_client/validation/validation_set_manager.py +39 -36
  55. rapidata/service/credential_manager.py +22 -30
  56. rapidata/service/openapi_service.py +11 -0
  57. {rapidata-2.21.5.dist-info → rapidata-2.22.0.dist-info}/METADATA +2 -1
  58. {rapidata-2.21.5.dist-info → rapidata-2.22.0.dist-info}/RECORD +60 -48
  59. {rapidata-2.21.5.dist-info → rapidata-2.22.0.dist-info}/WHEEL +1 -1
  60. {rapidata-2.21.5.dist-info → rapidata-2.22.0.dist-info}/LICENSE +0 -0
@@ -20,6 +20,7 @@ from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.create_bridge_token_result import CreateBridgeTokenResult
23
+ from rapidata.api_client.models.google_one_tap_login_model import GoogleOneTapLoginModel
23
24
  from rapidata.api_client.models.read_bridge_token_keys_result import ReadBridgeTokenKeysResult
24
25
  from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
25
26
  from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
@@ -837,6 +838,273 @@ class IdentityApi:
837
838
 
838
839
 
839
840
 
841
+ @validate_call
842
+ def identity_google_one_tap_post(
843
+ self,
844
+ google_one_tap_login_model: Annotated[Optional[GoogleOneTapLoginModel], Field(description="The body of the request containing the id token.")] = None,
845
+ _request_timeout: Union[
846
+ None,
847
+ Annotated[StrictFloat, Field(gt=0)],
848
+ Tuple[
849
+ Annotated[StrictFloat, Field(gt=0)],
850
+ Annotated[StrictFloat, Field(gt=0)]
851
+ ]
852
+ ] = None,
853
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
854
+ _content_type: Optional[StrictStr] = None,
855
+ _headers: Optional[Dict[StrictStr, Any]] = None,
856
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
857
+ ) -> None:
858
+ """Signs in a user using a token received from Google One Tap.
859
+
860
+
861
+ :param google_one_tap_login_model: The body of the request containing the id token.
862
+ :type google_one_tap_login_model: GoogleOneTapLoginModel
863
+ :param _request_timeout: timeout setting for this request. If one
864
+ number provided, it will be total request
865
+ timeout. It can also be a pair (tuple) of
866
+ (connection, read) timeouts.
867
+ :type _request_timeout: int, tuple(int, int), optional
868
+ :param _request_auth: set to override the auth_settings for an a single
869
+ request; this effectively ignores the
870
+ authentication in the spec for a single request.
871
+ :type _request_auth: dict, optional
872
+ :param _content_type: force content-type for the request.
873
+ :type _content_type: str, Optional
874
+ :param _headers: set to override the headers for a single
875
+ request; this effectively ignores the headers
876
+ in the spec for a single request.
877
+ :type _headers: dict, optional
878
+ :param _host_index: set to override the host_index for a single
879
+ request; this effectively ignores the host_index
880
+ in the spec for a single request.
881
+ :type _host_index: int, optional
882
+ :return: Returns the result object.
883
+ """ # noqa: E501
884
+
885
+ _param = self._identity_google_one_tap_post_serialize(
886
+ google_one_tap_login_model=google_one_tap_login_model,
887
+ _request_auth=_request_auth,
888
+ _content_type=_content_type,
889
+ _headers=_headers,
890
+ _host_index=_host_index
891
+ )
892
+
893
+ _response_types_map: Dict[str, Optional[str]] = {
894
+ '204': None,
895
+ }
896
+ response_data = self.api_client.call_api(
897
+ *_param,
898
+ _request_timeout=_request_timeout
899
+ )
900
+ response_data.read()
901
+ return self.api_client.response_deserialize(
902
+ response_data=response_data,
903
+ response_types_map=_response_types_map,
904
+ ).data
905
+
906
+
907
+ @validate_call
908
+ def identity_google_one_tap_post_with_http_info(
909
+ self,
910
+ google_one_tap_login_model: Annotated[Optional[GoogleOneTapLoginModel], Field(description="The body of the request containing the id token.")] = None,
911
+ _request_timeout: Union[
912
+ None,
913
+ Annotated[StrictFloat, Field(gt=0)],
914
+ Tuple[
915
+ Annotated[StrictFloat, Field(gt=0)],
916
+ Annotated[StrictFloat, Field(gt=0)]
917
+ ]
918
+ ] = None,
919
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
920
+ _content_type: Optional[StrictStr] = None,
921
+ _headers: Optional[Dict[StrictStr, Any]] = None,
922
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
923
+ ) -> ApiResponse[None]:
924
+ """Signs in a user using a token received from Google One Tap.
925
+
926
+
927
+ :param google_one_tap_login_model: The body of the request containing the id token.
928
+ :type google_one_tap_login_model: GoogleOneTapLoginModel
929
+ :param _request_timeout: timeout setting for this request. If one
930
+ number provided, it will be total request
931
+ timeout. It can also be a pair (tuple) of
932
+ (connection, read) timeouts.
933
+ :type _request_timeout: int, tuple(int, int), optional
934
+ :param _request_auth: set to override the auth_settings for an a single
935
+ request; this effectively ignores the
936
+ authentication in the spec for a single request.
937
+ :type _request_auth: dict, optional
938
+ :param _content_type: force content-type for the request.
939
+ :type _content_type: str, Optional
940
+ :param _headers: set to override the headers for a single
941
+ request; this effectively ignores the headers
942
+ in the spec for a single request.
943
+ :type _headers: dict, optional
944
+ :param _host_index: set to override the host_index for a single
945
+ request; this effectively ignores the host_index
946
+ in the spec for a single request.
947
+ :type _host_index: int, optional
948
+ :return: Returns the result object.
949
+ """ # noqa: E501
950
+
951
+ _param = self._identity_google_one_tap_post_serialize(
952
+ google_one_tap_login_model=google_one_tap_login_model,
953
+ _request_auth=_request_auth,
954
+ _content_type=_content_type,
955
+ _headers=_headers,
956
+ _host_index=_host_index
957
+ )
958
+
959
+ _response_types_map: Dict[str, Optional[str]] = {
960
+ '204': None,
961
+ }
962
+ response_data = self.api_client.call_api(
963
+ *_param,
964
+ _request_timeout=_request_timeout
965
+ )
966
+ response_data.read()
967
+ return self.api_client.response_deserialize(
968
+ response_data=response_data,
969
+ response_types_map=_response_types_map,
970
+ )
971
+
972
+
973
+ @validate_call
974
+ def identity_google_one_tap_post_without_preload_content(
975
+ self,
976
+ google_one_tap_login_model: Annotated[Optional[GoogleOneTapLoginModel], Field(description="The body of the request containing the id token.")] = None,
977
+ _request_timeout: Union[
978
+ None,
979
+ Annotated[StrictFloat, Field(gt=0)],
980
+ Tuple[
981
+ Annotated[StrictFloat, Field(gt=0)],
982
+ Annotated[StrictFloat, Field(gt=0)]
983
+ ]
984
+ ] = None,
985
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
986
+ _content_type: Optional[StrictStr] = None,
987
+ _headers: Optional[Dict[StrictStr, Any]] = None,
988
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
989
+ ) -> RESTResponseType:
990
+ """Signs in a user using a token received from Google One Tap.
991
+
992
+
993
+ :param google_one_tap_login_model: The body of the request containing the id token.
994
+ :type google_one_tap_login_model: GoogleOneTapLoginModel
995
+ :param _request_timeout: timeout setting for this request. If one
996
+ number provided, it will be total request
997
+ timeout. It can also be a pair (tuple) of
998
+ (connection, read) timeouts.
999
+ :type _request_timeout: int, tuple(int, int), optional
1000
+ :param _request_auth: set to override the auth_settings for an a single
1001
+ request; this effectively ignores the
1002
+ authentication in the spec for a single request.
1003
+ :type _request_auth: dict, optional
1004
+ :param _content_type: force content-type for the request.
1005
+ :type _content_type: str, Optional
1006
+ :param _headers: set to override the headers for a single
1007
+ request; this effectively ignores the headers
1008
+ in the spec for a single request.
1009
+ :type _headers: dict, optional
1010
+ :param _host_index: set to override the host_index for a single
1011
+ request; this effectively ignores the host_index
1012
+ in the spec for a single request.
1013
+ :type _host_index: int, optional
1014
+ :return: Returns the result object.
1015
+ """ # noqa: E501
1016
+
1017
+ _param = self._identity_google_one_tap_post_serialize(
1018
+ google_one_tap_login_model=google_one_tap_login_model,
1019
+ _request_auth=_request_auth,
1020
+ _content_type=_content_type,
1021
+ _headers=_headers,
1022
+ _host_index=_host_index
1023
+ )
1024
+
1025
+ _response_types_map: Dict[str, Optional[str]] = {
1026
+ '204': None,
1027
+ }
1028
+ response_data = self.api_client.call_api(
1029
+ *_param,
1030
+ _request_timeout=_request_timeout
1031
+ )
1032
+ return response_data.response
1033
+
1034
+
1035
+ def _identity_google_one_tap_post_serialize(
1036
+ self,
1037
+ google_one_tap_login_model,
1038
+ _request_auth,
1039
+ _content_type,
1040
+ _headers,
1041
+ _host_index,
1042
+ ) -> RequestSerialized:
1043
+
1044
+ _host = None
1045
+
1046
+ _collection_formats: Dict[str, str] = {
1047
+ }
1048
+
1049
+ _path_params: Dict[str, str] = {}
1050
+ _query_params: List[Tuple[str, str]] = []
1051
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1052
+ _form_params: List[Tuple[str, str]] = []
1053
+ _files: Dict[
1054
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1055
+ ] = {}
1056
+ _body_params: Optional[bytes] = None
1057
+
1058
+ # process the path parameters
1059
+ # process the query parameters
1060
+ # process the header parameters
1061
+ # process the form parameters
1062
+ # process the body parameter
1063
+ if google_one_tap_login_model is not None:
1064
+ _body_params = google_one_tap_login_model
1065
+
1066
+
1067
+
1068
+ # set the HTTP header `Content-Type`
1069
+ if _content_type:
1070
+ _header_params['Content-Type'] = _content_type
1071
+ else:
1072
+ _default_content_type = (
1073
+ self.api_client.select_header_content_type(
1074
+ [
1075
+ 'application/json',
1076
+ 'text/json',
1077
+ 'application/*+json'
1078
+ ]
1079
+ )
1080
+ )
1081
+ if _default_content_type is not None:
1082
+ _header_params['Content-Type'] = _default_content_type
1083
+
1084
+ # authentication setting
1085
+ _auth_settings: List[str] = [
1086
+ 'bearer',
1087
+ 'oauth2'
1088
+ ]
1089
+
1090
+ return self.api_client.param_serialize(
1091
+ method='POST',
1092
+ resource_path='/identity/google-one-tap',
1093
+ path_params=_path_params,
1094
+ query_params=_query_params,
1095
+ header_params=_header_params,
1096
+ body=_body_params,
1097
+ post_params=_form_params,
1098
+ files=_files,
1099
+ auth_settings=_auth_settings,
1100
+ collection_formats=_collection_formats,
1101
+ _host=_host,
1102
+ _request_auth=_request_auth
1103
+ )
1104
+
1105
+
1106
+
1107
+
840
1108
  @validate_call
841
1109
  def identity_readbridgetoken_get(
842
1110
  self,