wordlift-client 1.104.0__py3-none-any.whl → 1.106.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.104.0"
18
+ __version__ = "1.106.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from wordlift_client.api.account_api import AccountApi
@@ -78,6 +78,7 @@ from wordlift_client.api.seo_scores_api import SEOScoresApi
78
78
  from wordlift_client.api.sitemap_generator_api import SitemapGeneratorApi
79
79
  from wordlift_client.api.sitemap_imports_api import SitemapImportsApi
80
80
  from wordlift_client.api.summarizations_api import SummarizationsApi
81
+ from wordlift_client.api.tokens_api import TokensApi
81
82
  from wordlift_client.api.vector_search_nodes_api import VectorSearchNodesApi
82
83
  from wordlift_client.api.vector_search_queries_api import VectorSearchQueriesApi
83
84
  from wordlift_client.api.vector_search_questions_api import VectorSearchQuestionsApi
@@ -239,6 +240,7 @@ from wordlift_client.models.smart_content import SmartContent
239
240
  from wordlift_client.models.smart_content_request import SmartContentRequest
240
241
  from wordlift_client.models.submit_fact_check200_response import SubmitFactCheck200Response
241
242
  from wordlift_client.models.submit_fact_check_request import SubmitFactCheckRequest
243
+ from wordlift_client.models.token_response import TokenResponse
242
244
  from wordlift_client.models.tokens import Tokens
243
245
  from wordlift_client.models.topic import Topic
244
246
  from wordlift_client.models.update_account_request import UpdateAccountRequest
@@ -61,6 +61,7 @@ from wordlift_client.api.seo_scores_api import SEOScoresApi
61
61
  from wordlift_client.api.sitemap_generator_api import SitemapGeneratorApi
62
62
  from wordlift_client.api.sitemap_imports_api import SitemapImportsApi
63
63
  from wordlift_client.api.summarizations_api import SummarizationsApi
64
+ from wordlift_client.api.tokens_api import TokensApi
64
65
  from wordlift_client.api.vector_search_nodes_api import VectorSearchNodesApi
65
66
  from wordlift_client.api.vector_search_queries_api import VectorSearchQueriesApi
66
67
  from wordlift_client.api.vector_search_questions_api import VectorSearchQuestionsApi
@@ -0,0 +1,302 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ WordLift API
5
+
6
+ WordLift API
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: hello@wordlift.io
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr
21
+ from typing_extensions import Annotated
22
+ from wordlift_client.models.token_response import TokenResponse
23
+
24
+ from wordlift_client.api_client import ApiClient, RequestSerialized
25
+ from wordlift_client.api_response import ApiResponse
26
+ from wordlift_client.rest import RESTResponseType
27
+
28
+
29
+ class TokenImportsApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ async def get_token(
44
+ self,
45
+ registration_id: Annotated[StrictStr, Field(description="The registration id")],
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> TokenResponse:
59
+ """Get
60
+
61
+ Get a token
62
+
63
+ :param registration_id: The registration id (required)
64
+ :type registration_id: str
65
+ :param _request_timeout: timeout setting for this request. If one
66
+ number provided, it will be total request
67
+ timeout. It can also be a pair (tuple) of
68
+ (connection, read) timeouts.
69
+ :type _request_timeout: int, tuple(int, int), optional
70
+ :param _request_auth: set to override the auth_settings for an a single
71
+ request; this effectively ignores the
72
+ authentication in the spec for a single request.
73
+ :type _request_auth: dict, optional
74
+ :param _content_type: force content-type for the request.
75
+ :type _content_type: str, Optional
76
+ :param _headers: set to override the headers for a single
77
+ request; this effectively ignores the headers
78
+ in the spec for a single request.
79
+ :type _headers: dict, optional
80
+ :param _host_index: set to override the host_index for a single
81
+ request; this effectively ignores the host_index
82
+ in the spec for a single request.
83
+ :type _host_index: int, optional
84
+ :return: Returns the result object.
85
+ """ # noqa: E501
86
+
87
+ _param = self._get_token_serialize(
88
+ registration_id=registration_id,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ '200': "TokenResponse",
97
+ '401': None,
98
+ }
99
+ response_data = await self.api_client.call_api(
100
+ *_param,
101
+ _request_timeout=_request_timeout
102
+ )
103
+ await response_data.read()
104
+ return self.api_client.response_deserialize(
105
+ response_data=response_data,
106
+ response_types_map=_response_types_map,
107
+ ).data
108
+
109
+
110
+ @validate_call
111
+ async def get_token_with_http_info(
112
+ self,
113
+ registration_id: Annotated[StrictStr, Field(description="The registration id")],
114
+ _request_timeout: Union[
115
+ None,
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Tuple[
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Annotated[StrictFloat, Field(gt=0)]
120
+ ]
121
+ ] = None,
122
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
123
+ _content_type: Optional[StrictStr] = None,
124
+ _headers: Optional[Dict[StrictStr, Any]] = None,
125
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
+ ) -> ApiResponse[TokenResponse]:
127
+ """Get
128
+
129
+ Get a token
130
+
131
+ :param registration_id: The registration id (required)
132
+ :type registration_id: str
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ :type _request_timeout: int, tuple(int, int), optional
138
+ :param _request_auth: set to override the auth_settings for an a single
139
+ request; this effectively ignores the
140
+ authentication in the spec for a single request.
141
+ :type _request_auth: dict, optional
142
+ :param _content_type: force content-type for the request.
143
+ :type _content_type: str, Optional
144
+ :param _headers: set to override the headers for a single
145
+ request; this effectively ignores the headers
146
+ in the spec for a single request.
147
+ :type _headers: dict, optional
148
+ :param _host_index: set to override the host_index for a single
149
+ request; this effectively ignores the host_index
150
+ in the spec for a single request.
151
+ :type _host_index: int, optional
152
+ :return: Returns the result object.
153
+ """ # noqa: E501
154
+
155
+ _param = self._get_token_serialize(
156
+ registration_id=registration_id,
157
+ _request_auth=_request_auth,
158
+ _content_type=_content_type,
159
+ _headers=_headers,
160
+ _host_index=_host_index
161
+ )
162
+
163
+ _response_types_map: Dict[str, Optional[str]] = {
164
+ '200': "TokenResponse",
165
+ '401': None,
166
+ }
167
+ response_data = await self.api_client.call_api(
168
+ *_param,
169
+ _request_timeout=_request_timeout
170
+ )
171
+ await response_data.read()
172
+ return self.api_client.response_deserialize(
173
+ response_data=response_data,
174
+ response_types_map=_response_types_map,
175
+ )
176
+
177
+
178
+ @validate_call
179
+ async def get_token_without_preload_content(
180
+ self,
181
+ registration_id: Annotated[StrictStr, Field(description="The registration id")],
182
+ _request_timeout: Union[
183
+ None,
184
+ Annotated[StrictFloat, Field(gt=0)],
185
+ Tuple[
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Annotated[StrictFloat, Field(gt=0)]
188
+ ]
189
+ ] = None,
190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
+ _content_type: Optional[StrictStr] = None,
192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
+ ) -> RESTResponseType:
195
+ """Get
196
+
197
+ Get a token
198
+
199
+ :param registration_id: The registration id (required)
200
+ :type registration_id: str
201
+ :param _request_timeout: timeout setting for this request. If one
202
+ number provided, it will be total request
203
+ timeout. It can also be a pair (tuple) of
204
+ (connection, read) timeouts.
205
+ :type _request_timeout: int, tuple(int, int), optional
206
+ :param _request_auth: set to override the auth_settings for an a single
207
+ request; this effectively ignores the
208
+ authentication in the spec for a single request.
209
+ :type _request_auth: dict, optional
210
+ :param _content_type: force content-type for the request.
211
+ :type _content_type: str, Optional
212
+ :param _headers: set to override the headers for a single
213
+ request; this effectively ignores the headers
214
+ in the spec for a single request.
215
+ :type _headers: dict, optional
216
+ :param _host_index: set to override the host_index for a single
217
+ request; this effectively ignores the host_index
218
+ in the spec for a single request.
219
+ :type _host_index: int, optional
220
+ :return: Returns the result object.
221
+ """ # noqa: E501
222
+
223
+ _param = self._get_token_serialize(
224
+ registration_id=registration_id,
225
+ _request_auth=_request_auth,
226
+ _content_type=_content_type,
227
+ _headers=_headers,
228
+ _host_index=_host_index
229
+ )
230
+
231
+ _response_types_map: Dict[str, Optional[str]] = {
232
+ '200': "TokenResponse",
233
+ '401': None,
234
+ }
235
+ response_data = await self.api_client.call_api(
236
+ *_param,
237
+ _request_timeout=_request_timeout
238
+ )
239
+ return response_data.response
240
+
241
+
242
+ def _get_token_serialize(
243
+ self,
244
+ registration_id,
245
+ _request_auth,
246
+ _content_type,
247
+ _headers,
248
+ _host_index,
249
+ ) -> RequestSerialized:
250
+
251
+ _host = None
252
+
253
+ _collection_formats: Dict[str, str] = {
254
+ }
255
+
256
+ _path_params: Dict[str, str] = {}
257
+ _query_params: List[Tuple[str, str]] = []
258
+ _header_params: Dict[str, Optional[str]] = _headers or {}
259
+ _form_params: List[Tuple[str, str]] = []
260
+ _files: Dict[str, Union[str, bytes]] = {}
261
+ _body_params: Optional[bytes] = None
262
+
263
+ # process the path parameters
264
+ # process the query parameters
265
+ if registration_id is not None:
266
+
267
+ _query_params.append(('registration_id', registration_id))
268
+
269
+ # process the header parameters
270
+ # process the form parameters
271
+ # process the body parameter
272
+
273
+
274
+ # set the HTTP header `Accept`
275
+ _header_params['Accept'] = self.api_client.select_header_accept(
276
+ [
277
+ 'application/json'
278
+ ]
279
+ )
280
+
281
+
282
+ # authentication setting
283
+ _auth_settings: List[str] = [
284
+ 'ApiKey'
285
+ ]
286
+
287
+ return self.api_client.param_serialize(
288
+ method='GET',
289
+ resource_path='/tokens',
290
+ path_params=_path_params,
291
+ query_params=_query_params,
292
+ header_params=_header_params,
293
+ body=_body_params,
294
+ post_params=_form_params,
295
+ files=_files,
296
+ auth_settings=_auth_settings,
297
+ collection_formats=_collection_formats,
298
+ _host=_host,
299
+ _request_auth=_request_auth
300
+ )
301
+
302
+
@@ -0,0 +1,302 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ WordLift API
5
+
6
+ WordLift API
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: hello@wordlift.io
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr
21
+ from typing_extensions import Annotated
22
+ from wordlift_client.models.token_response import TokenResponse
23
+
24
+ from wordlift_client.api_client import ApiClient, RequestSerialized
25
+ from wordlift_client.api_response import ApiResponse
26
+ from wordlift_client.rest import RESTResponseType
27
+
28
+
29
+ class TokensApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ async def get_token(
44
+ self,
45
+ registration_id: Annotated[StrictStr, Field(description="The registration id")],
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> TokenResponse:
59
+ """Get
60
+
61
+ Get a token
62
+
63
+ :param registration_id: The registration id (required)
64
+ :type registration_id: str
65
+ :param _request_timeout: timeout setting for this request. If one
66
+ number provided, it will be total request
67
+ timeout. It can also be a pair (tuple) of
68
+ (connection, read) timeouts.
69
+ :type _request_timeout: int, tuple(int, int), optional
70
+ :param _request_auth: set to override the auth_settings for an a single
71
+ request; this effectively ignores the
72
+ authentication in the spec for a single request.
73
+ :type _request_auth: dict, optional
74
+ :param _content_type: force content-type for the request.
75
+ :type _content_type: str, Optional
76
+ :param _headers: set to override the headers for a single
77
+ request; this effectively ignores the headers
78
+ in the spec for a single request.
79
+ :type _headers: dict, optional
80
+ :param _host_index: set to override the host_index for a single
81
+ request; this effectively ignores the host_index
82
+ in the spec for a single request.
83
+ :type _host_index: int, optional
84
+ :return: Returns the result object.
85
+ """ # noqa: E501
86
+
87
+ _param = self._get_token_serialize(
88
+ registration_id=registration_id,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ '200': "TokenResponse",
97
+ '401': None,
98
+ }
99
+ response_data = await self.api_client.call_api(
100
+ *_param,
101
+ _request_timeout=_request_timeout
102
+ )
103
+ await response_data.read()
104
+ return self.api_client.response_deserialize(
105
+ response_data=response_data,
106
+ response_types_map=_response_types_map,
107
+ ).data
108
+
109
+
110
+ @validate_call
111
+ async def get_token_with_http_info(
112
+ self,
113
+ registration_id: Annotated[StrictStr, Field(description="The registration id")],
114
+ _request_timeout: Union[
115
+ None,
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Tuple[
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Annotated[StrictFloat, Field(gt=0)]
120
+ ]
121
+ ] = None,
122
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
123
+ _content_type: Optional[StrictStr] = None,
124
+ _headers: Optional[Dict[StrictStr, Any]] = None,
125
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
+ ) -> ApiResponse[TokenResponse]:
127
+ """Get
128
+
129
+ Get a token
130
+
131
+ :param registration_id: The registration id (required)
132
+ :type registration_id: str
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ :type _request_timeout: int, tuple(int, int), optional
138
+ :param _request_auth: set to override the auth_settings for an a single
139
+ request; this effectively ignores the
140
+ authentication in the spec for a single request.
141
+ :type _request_auth: dict, optional
142
+ :param _content_type: force content-type for the request.
143
+ :type _content_type: str, Optional
144
+ :param _headers: set to override the headers for a single
145
+ request; this effectively ignores the headers
146
+ in the spec for a single request.
147
+ :type _headers: dict, optional
148
+ :param _host_index: set to override the host_index for a single
149
+ request; this effectively ignores the host_index
150
+ in the spec for a single request.
151
+ :type _host_index: int, optional
152
+ :return: Returns the result object.
153
+ """ # noqa: E501
154
+
155
+ _param = self._get_token_serialize(
156
+ registration_id=registration_id,
157
+ _request_auth=_request_auth,
158
+ _content_type=_content_type,
159
+ _headers=_headers,
160
+ _host_index=_host_index
161
+ )
162
+
163
+ _response_types_map: Dict[str, Optional[str]] = {
164
+ '200': "TokenResponse",
165
+ '401': None,
166
+ }
167
+ response_data = await self.api_client.call_api(
168
+ *_param,
169
+ _request_timeout=_request_timeout
170
+ )
171
+ await response_data.read()
172
+ return self.api_client.response_deserialize(
173
+ response_data=response_data,
174
+ response_types_map=_response_types_map,
175
+ )
176
+
177
+
178
+ @validate_call
179
+ async def get_token_without_preload_content(
180
+ self,
181
+ registration_id: Annotated[StrictStr, Field(description="The registration id")],
182
+ _request_timeout: Union[
183
+ None,
184
+ Annotated[StrictFloat, Field(gt=0)],
185
+ Tuple[
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Annotated[StrictFloat, Field(gt=0)]
188
+ ]
189
+ ] = None,
190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
+ _content_type: Optional[StrictStr] = None,
192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
+ ) -> RESTResponseType:
195
+ """Get
196
+
197
+ Get a token
198
+
199
+ :param registration_id: The registration id (required)
200
+ :type registration_id: str
201
+ :param _request_timeout: timeout setting for this request. If one
202
+ number provided, it will be total request
203
+ timeout. It can also be a pair (tuple) of
204
+ (connection, read) timeouts.
205
+ :type _request_timeout: int, tuple(int, int), optional
206
+ :param _request_auth: set to override the auth_settings for an a single
207
+ request; this effectively ignores the
208
+ authentication in the spec for a single request.
209
+ :type _request_auth: dict, optional
210
+ :param _content_type: force content-type for the request.
211
+ :type _content_type: str, Optional
212
+ :param _headers: set to override the headers for a single
213
+ request; this effectively ignores the headers
214
+ in the spec for a single request.
215
+ :type _headers: dict, optional
216
+ :param _host_index: set to override the host_index for a single
217
+ request; this effectively ignores the host_index
218
+ in the spec for a single request.
219
+ :type _host_index: int, optional
220
+ :return: Returns the result object.
221
+ """ # noqa: E501
222
+
223
+ _param = self._get_token_serialize(
224
+ registration_id=registration_id,
225
+ _request_auth=_request_auth,
226
+ _content_type=_content_type,
227
+ _headers=_headers,
228
+ _host_index=_host_index
229
+ )
230
+
231
+ _response_types_map: Dict[str, Optional[str]] = {
232
+ '200': "TokenResponse",
233
+ '401': None,
234
+ }
235
+ response_data = await self.api_client.call_api(
236
+ *_param,
237
+ _request_timeout=_request_timeout
238
+ )
239
+ return response_data.response
240
+
241
+
242
+ def _get_token_serialize(
243
+ self,
244
+ registration_id,
245
+ _request_auth,
246
+ _content_type,
247
+ _headers,
248
+ _host_index,
249
+ ) -> RequestSerialized:
250
+
251
+ _host = None
252
+
253
+ _collection_formats: Dict[str, str] = {
254
+ }
255
+
256
+ _path_params: Dict[str, str] = {}
257
+ _query_params: List[Tuple[str, str]] = []
258
+ _header_params: Dict[str, Optional[str]] = _headers or {}
259
+ _form_params: List[Tuple[str, str]] = []
260
+ _files: Dict[str, Union[str, bytes]] = {}
261
+ _body_params: Optional[bytes] = None
262
+
263
+ # process the path parameters
264
+ # process the query parameters
265
+ if registration_id is not None:
266
+
267
+ _query_params.append(('registration_id', registration_id))
268
+
269
+ # process the header parameters
270
+ # process the form parameters
271
+ # process the body parameter
272
+
273
+
274
+ # set the HTTP header `Accept`
275
+ _header_params['Accept'] = self.api_client.select_header_accept(
276
+ [
277
+ 'application/json'
278
+ ]
279
+ )
280
+
281
+
282
+ # authentication setting
283
+ _auth_settings: List[str] = [
284
+ 'ApiKey'
285
+ ]
286
+
287
+ return self.api_client.param_serialize(
288
+ method='GET',
289
+ resource_path='/tokens',
290
+ path_params=_path_params,
291
+ query_params=_query_params,
292
+ header_params=_header_params,
293
+ body=_body_params,
294
+ post_params=_form_params,
295
+ files=_files,
296
+ auth_settings=_auth_settings,
297
+ collection_formats=_collection_formats,
298
+ _host=_host,
299
+ _request_auth=_request_auth
300
+ )
301
+
302
+
@@ -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.104.0/python'
92
+ self.user_agent = 'OpenAPI-Generator/1.106.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.104.0".\
429
+ "SDK Package Version: 1.106.0".\
430
430
  format(env=sys.platform, pyversion=sys.version)
431
431
 
432
432
  def get_host_settings(self):
@@ -156,6 +156,7 @@ from wordlift_client.models.smart_content import SmartContent
156
156
  from wordlift_client.models.smart_content_request import SmartContentRequest
157
157
  from wordlift_client.models.submit_fact_check200_response import SubmitFactCheck200Response
158
158
  from wordlift_client.models.submit_fact_check_request import SubmitFactCheckRequest
159
+ from wordlift_client.models.token_response import TokenResponse
159
160
  from wordlift_client.models.tokens import Tokens
160
161
  from wordlift_client.models.topic import Topic
161
162
  from wordlift_client.models.update_account_request import UpdateAccountRequest
@@ -0,0 +1,94 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ WordLift API
5
+
6
+ WordLift API
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: hello@wordlift.io
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class TokenResponse(BaseModel):
27
+ """
28
+ The tokens to access a service
29
+ """ # noqa: E501
30
+ access_token: Optional[StrictStr] = Field(default=None, description="The access token")
31
+ refresh_token: Optional[StrictStr] = Field(default=None, description="The refresh token")
32
+ __properties: ClassVar[List[str]] = ["access_token", "refresh_token"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of TokenResponse from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ * OpenAPI `readOnly` fields are excluded.
65
+ * OpenAPI `readOnly` fields are excluded.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ "access_token",
69
+ "refresh_token",
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ return _dict
78
+
79
+ @classmethod
80
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
+ """Create an instance of TokenResponse from a dict"""
82
+ if obj is None:
83
+ return None
84
+
85
+ if not isinstance(obj, dict):
86
+ return cls.model_validate(obj)
87
+
88
+ _obj = cls.model_validate({
89
+ "access_token": obj.get("access_token"),
90
+ "refresh_token": obj.get("refresh_token")
91
+ })
92
+ return _obj
93
+
94
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wordlift-client
3
- Version: 1.104.0
3
+ Version: 1.106.0
4
4
  Summary: WordLift API
5
5
  Home-page:
6
6
  Author: WordLift
@@ -1,11 +1,11 @@
1
- wordlift_client/__init__.py,sha256=x80gqaB8W9rloURRNvjQntTpt5VoUunHzq_ZADFf8Gg,18618
2
- wordlift_client/api_client.py,sha256=R1np9WaMfQ6-bja0MVv0JgMyTTomyGyQ1th956p1AW8,26397
1
+ wordlift_client/__init__.py,sha256=rQu5iEyVbui-VoTRl1RYTU5mjrXMFGJG19zis04Y73A,18735
2
+ wordlift_client/api_client.py,sha256=5PEvpjKQk4d6l3G1bzbQpbf9TYZ72QfrP56psJV9Wtc,26397
3
3
  wordlift_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- wordlift_client/configuration.py,sha256=eulU4hVcTklo84pGpfoKMaqUXPjSwznotH9JTxh0-FI,15932
4
+ wordlift_client/configuration.py,sha256=BaDxWQy9FQ0GYh8ZzU9LEh5jgsHAVfrCth0ap_VPqAA,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
8
- wordlift_client/api/__init__.py,sha256=OGJhTsxPPISW0FYXCv0W6qDhomJrUdcBUqQBg2aOc2I,4925
8
+ wordlift_client/api/__init__.py,sha256=DjbR8vjsSOsp5HYVXN4HlPwZta6rgqvbvuQobYGAGdo,4978
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
@@ -69,6 +69,8 @@ wordlift_client/api/seo_scores_api.py,sha256=UoFYPcpJOKxf0cLZuz-6YOkWRXy6bk9W_PX
69
69
  wordlift_client/api/sitemap_generator_api.py,sha256=Ud1vu3qmQ6oxlyonEFbDUzzQsEM7dPK4UwWHYM5_D-o,12186
70
70
  wordlift_client/api/sitemap_imports_api.py,sha256=Ca-WNuDalyYlViPCDHrCjMBEth3qGwC87pp3EXGwBz4,11598
71
71
  wordlift_client/api/summarizations_api.py,sha256=10UV6N2h4hcolBwXhbzwmwx8XTqSy49dCWXzamnMPs4,13769
72
+ wordlift_client/api/token_imports_api.py,sha256=uyt5dvsG5cXv9SooMh0dN1QZW1kidkwjnzwaL44jBZM,11062
73
+ wordlift_client/api/tokens_api.py,sha256=4jMeBMhi8RMFuoeWQlTqXkNLCABvwfV5rzjt25eBTiU,11056
72
74
  wordlift_client/api/vector_search_nodes_api.py,sha256=nMo4inpx6N2xn7_ZLlPVFH861zHjqVAgZ3xPX7L3Mow,11171
73
75
  wordlift_client/api/vector_search_queries_api.py,sha256=_KVcphjWH-dbI0YaJ4fizT0BbA3q2a0Ro3ts5425hb4,11817
74
76
  wordlift_client/api/vector_search_questions_api.py,sha256=XDvyi6y6mRv7nrKnse6XH6V6q7n3FBoX51qzUSDh4WQ,12050
@@ -76,7 +78,7 @@ wordlift_client/api/web_asyncs_metadata_api.py,sha256=JtZUGo6T5K4rZM34rNqfBgNai6
76
78
  wordlift_client/api/web_asyncs_responses_api.py,sha256=h91xI3iIgGoMUcZ7Oft5xiLy0rHh_2qzZDrFTRz3P8w,10889
77
79
  wordlift_client/api/web_pages_api.py,sha256=VKPLIaQRxxDn3daP0zvXRiHj2eegsZIjxUmHKzxZXoc,10839
78
80
  wordlift_client/api/web_pages_imports_api.py,sha256=yPhNLZ1jV2dEDnYuHb7OpiFH3K2ROrRYHG4ZrAf4VMU,11719
79
- wordlift_client/models/__init__.py,sha256=XNEg1-cWbC8gJITD9DQzj9JCoZZA1E0bCsGmY7-1rdQ,13186
81
+ wordlift_client/models/__init__.py,sha256=4mRvHRIKwuME54dXJd3yDOVvsZilENwsqAWcbPe4EU4,13250
80
82
  wordlift_client/models/account.py,sha256=trGNzy3ZBGE1VsSke4aoXBQem-3jK60xVz0OWOOMWso,5523
81
83
  wordlift_client/models/account_config.py,sha256=_4YZ8IGS4h16wa9aSaL9rpeoZYR8faiwEAtovP4eBVI,2592
82
84
  wordlift_client/models/account_info.py,sha256=tCqVHqfeK5u1cQkLOBgJRUTs-e8vmGCjqZ4wgfmNIuw,7750
@@ -221,6 +223,7 @@ wordlift_client/models/smart_content.py,sha256=k6p7FXUkoEZ-UPy8WRTuMwA3E7dODmVPO
221
223
  wordlift_client/models/smart_content_request.py,sha256=DKmgsasJuBhv7wItsMMWga016qcawhaM5RSHrsq16FE,3991
222
224
  wordlift_client/models/submit_fact_check200_response.py,sha256=K_J_8_N12bSWcnDi_rmvWzl6Hujz5PswSoxhWaKtkaY,2503
223
225
  wordlift_client/models/submit_fact_check_request.py,sha256=CZmGQklpRWMn5OnBUAFId9b_DQFxMJ-RurF3IcJtPJg,2475
226
+ wordlift_client/models/token_response.py,sha256=LQnDxjH4aGa9yKGuF4E4XhcvQTcTkxC8wIWUVGy7LGQ,2861
224
227
  wordlift_client/models/tokens.py,sha256=M_FlxTIVhki0no5wUFAJdH9p2xkH3KKxcdkQEGk0N3U,2840
225
228
  wordlift_client/models/topic.py,sha256=oLPLVtFDOcWMm2Rbk-3hGvGxDs_cTqXZRRzZ8SFrR-w,3276
226
229
  wordlift_client/models/update_account_request.py,sha256=N8O8GAkk60u8kVXEFmB57npRcRtVb0fzq_nSiDaUFyM,2651
@@ -252,8 +255,8 @@ wordlift_client/models/with_limits.py,sha256=9I6-JNIb8pgUfVUegNqTc3YNx0micXUTpDo
252
255
  wordlift_client/models/word.py,sha256=FPCGb6ohwdfydE5_qG4PT-UrnMzaTktAWqEEnezwaso,3922
253
256
  wordlift_client/models/word_repetition_data.py,sha256=CQnxCnhakt12czl6a_AQIPgHlJtvR9YGBIjGV22rq14,2659
254
257
  wordlift_client/models/word_request.py,sha256=ZD13xNRYCZmF14jxEDrRRyEMAd-quDT-HsqkbUP_xWU,2627
255
- wordlift_client-1.104.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
256
- wordlift_client-1.104.0.dist-info/METADATA,sha256=zwxfsvMG_Ovxrxdjzp77CszRhX4nXUcp29ygrQv2thM,530
257
- wordlift_client-1.104.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
258
- wordlift_client-1.104.0.dist-info/top_level.txt,sha256=p7KFYU869ksxkpP7ADvg8baPgWkTYCzcOpDl1qrJdHk,16
259
- wordlift_client-1.104.0.dist-info/RECORD,,
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,,