wordlift-client 1.106.0__py3-none-any.whl → 1.108.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.
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.106.0"
18
+ __version__ = "1.108.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from wordlift_client.api.account_api import AccountApi
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import Field, StrictBool, StrictInt, StrictStr
21
- from typing import Optional
21
+ from typing import Any, Dict, Optional
22
22
  from typing_extensions import Annotated
23
23
  from wordlift_client.models.account import Account
24
24
  from wordlift_client.models.page_active_account import PageActiveAccount
@@ -690,6 +690,299 @@ class AccountsApi:
690
690
 
691
691
 
692
692
 
693
+ @validate_call
694
+ async def patch_account(
695
+ self,
696
+ id: StrictInt,
697
+ body: Dict[str, Any],
698
+ _request_timeout: Union[
699
+ None,
700
+ Annotated[StrictFloat, Field(gt=0)],
701
+ Tuple[
702
+ Annotated[StrictFloat, Field(gt=0)],
703
+ Annotated[StrictFloat, Field(gt=0)]
704
+ ]
705
+ ] = None,
706
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
707
+ _content_type: Optional[StrictStr] = None,
708
+ _headers: Optional[Dict[StrictStr, Any]] = None,
709
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
710
+ ) -> Account:
711
+ """Patch an account.
712
+
713
+ Patch an account.
714
+
715
+ :param id: (required)
716
+ :type id: int
717
+ :param body: (required)
718
+ :type body: object
719
+ :param _request_timeout: timeout setting for this request. If one
720
+ number provided, it will be total request
721
+ timeout. It can also be a pair (tuple) of
722
+ (connection, read) timeouts.
723
+ :type _request_timeout: int, tuple(int, int), optional
724
+ :param _request_auth: set to override the auth_settings for an a single
725
+ request; this effectively ignores the
726
+ authentication in the spec for a single request.
727
+ :type _request_auth: dict, optional
728
+ :param _content_type: force content-type for the request.
729
+ :type _content_type: str, Optional
730
+ :param _headers: set to override the headers for a single
731
+ request; this effectively ignores the headers
732
+ in the spec for a single request.
733
+ :type _headers: dict, optional
734
+ :param _host_index: set to override the host_index for a single
735
+ request; this effectively ignores the host_index
736
+ in the spec for a single request.
737
+ :type _host_index: int, optional
738
+ :return: Returns the result object.
739
+ """ # noqa: E501
740
+
741
+ _param = self._patch_account_serialize(
742
+ id=id,
743
+ body=body,
744
+ _request_auth=_request_auth,
745
+ _content_type=_content_type,
746
+ _headers=_headers,
747
+ _host_index=_host_index
748
+ )
749
+
750
+ _response_types_map: Dict[str, Optional[str]] = {
751
+ '200': "Account",
752
+ '401': None,
753
+ '404': None,
754
+ }
755
+ response_data = await self.api_client.call_api(
756
+ *_param,
757
+ _request_timeout=_request_timeout
758
+ )
759
+ await response_data.read()
760
+ return self.api_client.response_deserialize(
761
+ response_data=response_data,
762
+ response_types_map=_response_types_map,
763
+ ).data
764
+
765
+
766
+ @validate_call
767
+ async def patch_account_with_http_info(
768
+ self,
769
+ id: StrictInt,
770
+ body: Dict[str, Any],
771
+ _request_timeout: Union[
772
+ None,
773
+ Annotated[StrictFloat, Field(gt=0)],
774
+ Tuple[
775
+ Annotated[StrictFloat, Field(gt=0)],
776
+ Annotated[StrictFloat, Field(gt=0)]
777
+ ]
778
+ ] = None,
779
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
780
+ _content_type: Optional[StrictStr] = None,
781
+ _headers: Optional[Dict[StrictStr, Any]] = None,
782
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
783
+ ) -> ApiResponse[Account]:
784
+ """Patch an account.
785
+
786
+ Patch an account.
787
+
788
+ :param id: (required)
789
+ :type id: int
790
+ :param body: (required)
791
+ :type body: object
792
+ :param _request_timeout: timeout setting for this request. If one
793
+ number provided, it will be total request
794
+ timeout. It can also be a pair (tuple) of
795
+ (connection, read) timeouts.
796
+ :type _request_timeout: int, tuple(int, int), optional
797
+ :param _request_auth: set to override the auth_settings for an a single
798
+ request; this effectively ignores the
799
+ authentication in the spec for a single request.
800
+ :type _request_auth: dict, optional
801
+ :param _content_type: force content-type for the request.
802
+ :type _content_type: str, Optional
803
+ :param _headers: set to override the headers for a single
804
+ request; this effectively ignores the headers
805
+ in the spec for a single request.
806
+ :type _headers: dict, optional
807
+ :param _host_index: set to override the host_index for a single
808
+ request; this effectively ignores the host_index
809
+ in the spec for a single request.
810
+ :type _host_index: int, optional
811
+ :return: Returns the result object.
812
+ """ # noqa: E501
813
+
814
+ _param = self._patch_account_serialize(
815
+ id=id,
816
+ body=body,
817
+ _request_auth=_request_auth,
818
+ _content_type=_content_type,
819
+ _headers=_headers,
820
+ _host_index=_host_index
821
+ )
822
+
823
+ _response_types_map: Dict[str, Optional[str]] = {
824
+ '200': "Account",
825
+ '401': None,
826
+ '404': None,
827
+ }
828
+ response_data = await self.api_client.call_api(
829
+ *_param,
830
+ _request_timeout=_request_timeout
831
+ )
832
+ await response_data.read()
833
+ return self.api_client.response_deserialize(
834
+ response_data=response_data,
835
+ response_types_map=_response_types_map,
836
+ )
837
+
838
+
839
+ @validate_call
840
+ async def patch_account_without_preload_content(
841
+ self,
842
+ id: StrictInt,
843
+ body: Dict[str, Any],
844
+ _request_timeout: Union[
845
+ None,
846
+ Annotated[StrictFloat, Field(gt=0)],
847
+ Tuple[
848
+ Annotated[StrictFloat, Field(gt=0)],
849
+ Annotated[StrictFloat, Field(gt=0)]
850
+ ]
851
+ ] = None,
852
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
853
+ _content_type: Optional[StrictStr] = None,
854
+ _headers: Optional[Dict[StrictStr, Any]] = None,
855
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
856
+ ) -> RESTResponseType:
857
+ """Patch an account.
858
+
859
+ Patch an account.
860
+
861
+ :param id: (required)
862
+ :type id: int
863
+ :param body: (required)
864
+ :type body: object
865
+ :param _request_timeout: timeout setting for this request. If one
866
+ number provided, it will be total request
867
+ timeout. It can also be a pair (tuple) of
868
+ (connection, read) timeouts.
869
+ :type _request_timeout: int, tuple(int, int), optional
870
+ :param _request_auth: set to override the auth_settings for an a single
871
+ request; this effectively ignores the
872
+ authentication in the spec for a single request.
873
+ :type _request_auth: dict, optional
874
+ :param _content_type: force content-type for the request.
875
+ :type _content_type: str, Optional
876
+ :param _headers: set to override the headers for a single
877
+ request; this effectively ignores the headers
878
+ in the spec for a single request.
879
+ :type _headers: dict, optional
880
+ :param _host_index: set to override the host_index for a single
881
+ request; this effectively ignores the host_index
882
+ in the spec for a single request.
883
+ :type _host_index: int, optional
884
+ :return: Returns the result object.
885
+ """ # noqa: E501
886
+
887
+ _param = self._patch_account_serialize(
888
+ id=id,
889
+ body=body,
890
+ _request_auth=_request_auth,
891
+ _content_type=_content_type,
892
+ _headers=_headers,
893
+ _host_index=_host_index
894
+ )
895
+
896
+ _response_types_map: Dict[str, Optional[str]] = {
897
+ '200': "Account",
898
+ '401': None,
899
+ '404': None,
900
+ }
901
+ response_data = await self.api_client.call_api(
902
+ *_param,
903
+ _request_timeout=_request_timeout
904
+ )
905
+ return response_data.response
906
+
907
+
908
+ def _patch_account_serialize(
909
+ self,
910
+ id,
911
+ body,
912
+ _request_auth,
913
+ _content_type,
914
+ _headers,
915
+ _host_index,
916
+ ) -> RequestSerialized:
917
+
918
+ _host = None
919
+
920
+ _collection_formats: Dict[str, str] = {
921
+ }
922
+
923
+ _path_params: Dict[str, str] = {}
924
+ _query_params: List[Tuple[str, str]] = []
925
+ _header_params: Dict[str, Optional[str]] = _headers or {}
926
+ _form_params: List[Tuple[str, str]] = []
927
+ _files: Dict[str, Union[str, bytes]] = {}
928
+ _body_params: Optional[bytes] = None
929
+
930
+ # process the path parameters
931
+ if id is not None:
932
+ _path_params['id'] = id
933
+ # process the query parameters
934
+ # process the header parameters
935
+ # process the form parameters
936
+ # process the body parameter
937
+ if body is not None:
938
+ _body_params = body
939
+
940
+
941
+ # set the HTTP header `Accept`
942
+ _header_params['Accept'] = self.api_client.select_header_accept(
943
+ [
944
+ 'application/json'
945
+ ]
946
+ )
947
+
948
+ # set the HTTP header `Content-Type`
949
+ if _content_type:
950
+ _header_params['Content-Type'] = _content_type
951
+ else:
952
+ _default_content_type = (
953
+ self.api_client.select_header_content_type(
954
+ [
955
+ 'application/json-patch+json'
956
+ ]
957
+ )
958
+ )
959
+ if _default_content_type is not None:
960
+ _header_params['Content-Type'] = _default_content_type
961
+
962
+ # authentication setting
963
+ _auth_settings: List[str] = [
964
+ 'OAuth2',
965
+ 'BasicAuth'
966
+ ]
967
+
968
+ return self.api_client.param_serialize(
969
+ method='PATCH',
970
+ resource_path='/accounts/{id}',
971
+ path_params=_path_params,
972
+ query_params=_query_params,
973
+ header_params=_header_params,
974
+ body=_body_params,
975
+ post_params=_form_params,
976
+ files=_files,
977
+ auth_settings=_auth_settings,
978
+ collection_formats=_collection_formats,
979
+ _host=_host,
980
+ _request_auth=_request_auth
981
+ )
982
+
983
+
984
+
985
+
693
986
  @validate_call
694
987
  async def update_account(
695
988
  self,
@@ -89,7 +89,7 @@ class ApiClient:
89
89
  self.default_headers[header_name] = header_value
90
90
  self.cookie = cookie
91
91
  # Set default User-Agent.
92
- self.user_agent = 'OpenAPI-Generator/1.106.0/python'
92
+ self.user_agent = 'OpenAPI-Generator/1.108.0/python'
93
93
  self.client_side_validation = configuration.client_side_validation
94
94
 
95
95
  async def __aenter__(self):
@@ -426,7 +426,7 @@ conf = wordlift_client.Configuration(
426
426
  "OS: {env}\n"\
427
427
  "Python Version: {pyversion}\n"\
428
428
  "Version of the API: 1.0\n"\
429
- "SDK Package Version: 1.106.0".\
429
+ "SDK Package Version: 1.108.0".\
430
430
  format(env=sys.platform, pyversion=sys.version)
431
431
 
432
432
  def get_host_settings(self):
@@ -18,6 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
+ from datetime import datetime
21
22
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
23
  from typing import Any, ClassVar, Dict, List, Optional
23
24
  from typing import Optional, Set
@@ -28,8 +29,9 @@ class TokenResponse(BaseModel):
28
29
  The tokens to access a service
29
30
  """ # noqa: E501
30
31
  access_token: Optional[StrictStr] = Field(default=None, description="The access token")
32
+ access_token_expires_at: Optional[datetime] = Field(default=None, description="The access token expiration")
31
33
  refresh_token: Optional[StrictStr] = Field(default=None, description="The refresh token")
32
- __properties: ClassVar[List[str]] = ["access_token", "refresh_token"]
34
+ __properties: ClassVar[List[str]] = ["access_token", "access_token_expires_at", "refresh_token"]
33
35
 
34
36
  model_config = ConfigDict(
35
37
  populate_by_name=True,
@@ -63,9 +65,11 @@ class TokenResponse(BaseModel):
63
65
  are ignored.
64
66
  * OpenAPI `readOnly` fields are excluded.
65
67
  * OpenAPI `readOnly` fields are excluded.
68
+ * OpenAPI `readOnly` fields are excluded.
66
69
  """
67
70
  excluded_fields: Set[str] = set([
68
71
  "access_token",
72
+ "access_token_expires_at",
69
73
  "refresh_token",
70
74
  ])
71
75
 
@@ -87,6 +91,7 @@ class TokenResponse(BaseModel):
87
91
 
88
92
  _obj = cls.model_validate({
89
93
  "access_token": obj.get("access_token"),
94
+ "access_token_expires_at": obj.get("access_token_expires_at"),
90
95
  "refresh_token": obj.get("refresh_token")
91
96
  })
92
97
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wordlift-client
3
- Version: 1.106.0
3
+ Version: 1.108.0
4
4
  Summary: WordLift API
5
5
  Home-page:
6
6
  Author: WordLift
@@ -1,7 +1,7 @@
1
- wordlift_client/__init__.py,sha256=rQu5iEyVbui-VoTRl1RYTU5mjrXMFGJG19zis04Y73A,18735
2
- wordlift_client/api_client.py,sha256=5PEvpjKQk4d6l3G1bzbQpbf9TYZ72QfrP56psJV9Wtc,26397
1
+ wordlift_client/__init__.py,sha256=6enNl1MK4ZkrwtL5NhOUMIBYcMdv73OvVD3qz52nJa4,18735
2
+ wordlift_client/api_client.py,sha256=ZSuQC2ym7oXyrLfJyHfgcDdB0uV-1CIYfF8vRiY1Rzs,26397
3
3
  wordlift_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- wordlift_client/configuration.py,sha256=BaDxWQy9FQ0GYh8ZzU9LEh5jgsHAVfrCth0ap_VPqAA,15932
4
+ wordlift_client/configuration.py,sha256=RflMfmbVZGpEyIjOqNqWHBObRD5RO1wR8SSpbaqfDCI,15932
5
5
  wordlift_client/exceptions.py,sha256=KvTu-E964XhAzMXOSfVycfOL1Eeraob5bgD4CfElD7M,5912
6
6
  wordlift_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  wordlift_client/rest.py,sha256=3D4hicZkeSFLxmhmgnlH63K7P39ToGyPk_3aQlHGznI,6817
@@ -9,7 +9,7 @@ wordlift_client/api/__init__.py,sha256=DjbR8vjsSOsp5HYVXN4HlPwZta6rgqvbvuQobYGAG
9
9
  wordlift_client/api/account_api.py,sha256=wxVhHEPyMfNpC1_sBLp2nECfvyGIVwlqqM2Xu3EGSHI,10288
10
10
  wordlift_client/api/account_google_search_console_api.py,sha256=QruHrGZ1LMRhVrVt5k1UOAQZSkMY8zMZWkQ2DdeD5Dw,12119
11
11
  wordlift_client/api/account_stats_api.py,sha256=tQshIfkbME-WMY-sBMwUUZdSTDBeoaV0wnrtAnaFv_g,10480
12
- wordlift_client/api/accounts_api.py,sha256=2hEMRkV1pqrjzmm1Aecnn2zMR3wwiQevh7w_ytj81QY,37939
12
+ wordlift_client/api/accounts_api.py,sha256=Lk8vONdxCPROiRllJKmvbT_IrryDFDZ2bpSbrklUAZU,48479
13
13
  wordlift_client/api/add_ons_api.py,sha256=BshQhozQWz1r9VGRFXwfUQF46kqoXXhiQvngGwAuDu4,12439
14
14
  wordlift_client/api/agent_api.py,sha256=2UwVNrNKWTPWYWS5TJm2Cucn5i9n3DiaKvcIn5Ol7YI,11591
15
15
  wordlift_client/api/analyses_api.py,sha256=-apdKkNMHjeL43DcLVWJiCbl2vSNAaWrMQKZIEYduII,42549
@@ -223,7 +223,7 @@ wordlift_client/models/smart_content.py,sha256=k6p7FXUkoEZ-UPy8WRTuMwA3E7dODmVPO
223
223
  wordlift_client/models/smart_content_request.py,sha256=DKmgsasJuBhv7wItsMMWga016qcawhaM5RSHrsq16FE,3991
224
224
  wordlift_client/models/submit_fact_check200_response.py,sha256=K_J_8_N12bSWcnDi_rmvWzl6Hujz5PswSoxhWaKtkaY,2503
225
225
  wordlift_client/models/submit_fact_check_request.py,sha256=CZmGQklpRWMn5OnBUAFId9b_DQFxMJ-RurF3IcJtPJg,2475
226
- wordlift_client/models/token_response.py,sha256=LQnDxjH4aGa9yKGuF4E4XhcvQTcTkxC8wIWUVGy7LGQ,2861
226
+ wordlift_client/models/token_response.py,sha256=Bc0JsyjFwIEw057vbtGQKvBe4we-xjUs_uqNuahhW88,3195
227
227
  wordlift_client/models/tokens.py,sha256=M_FlxTIVhki0no5wUFAJdH9p2xkH3KKxcdkQEGk0N3U,2840
228
228
  wordlift_client/models/topic.py,sha256=oLPLVtFDOcWMm2Rbk-3hGvGxDs_cTqXZRRzZ8SFrR-w,3276
229
229
  wordlift_client/models/update_account_request.py,sha256=N8O8GAkk60u8kVXEFmB57npRcRtVb0fzq_nSiDaUFyM,2651
@@ -255,8 +255,8 @@ wordlift_client/models/with_limits.py,sha256=9I6-JNIb8pgUfVUegNqTc3YNx0micXUTpDo
255
255
  wordlift_client/models/word.py,sha256=FPCGb6ohwdfydE5_qG4PT-UrnMzaTktAWqEEnezwaso,3922
256
256
  wordlift_client/models/word_repetition_data.py,sha256=CQnxCnhakt12czl6a_AQIPgHlJtvR9YGBIjGV22rq14,2659
257
257
  wordlift_client/models/word_request.py,sha256=ZD13xNRYCZmF14jxEDrRRyEMAd-quDT-HsqkbUP_xWU,2627
258
- wordlift_client-1.106.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
259
- wordlift_client-1.106.0.dist-info/METADATA,sha256=5mIh9SlFIPkCXj6oC6rMAhtUHEnBVMYaTgVvkKKNXGE,530
260
- wordlift_client-1.106.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
261
- wordlift_client-1.106.0.dist-info/top_level.txt,sha256=p7KFYU869ksxkpP7ADvg8baPgWkTYCzcOpDl1qrJdHk,16
262
- wordlift_client-1.106.0.dist-info/RECORD,,
258
+ wordlift_client-1.108.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
259
+ wordlift_client-1.108.0.dist-info/METADATA,sha256=3pYc1hauy4fjMIBzoeMyymMmIgrUMivNbRdj_h-jGyw,530
260
+ wordlift_client-1.108.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
261
+ wordlift_client-1.108.0.dist-info/top_level.txt,sha256=p7KFYU869ksxkpP7ADvg8baPgWkTYCzcOpDl1qrJdHk,16
262
+ wordlift_client-1.108.0.dist-info/RECORD,,