neurograph-core 1.202509071925__py3-none-any.whl → 1.202509160244__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.
- neurograph/v1/__init__.py +295 -43
- neurograph/v1/api/__init__.py +28 -2
- neurograph/v1/api/client_api.py +541 -0
- neurograph/v1/api/knowledge_api.py +2281 -124
- neurograph/v1/api/knowledge_extract_api.py +1798 -0
- neurograph/v1/api_client.py +4 -1
- neurograph/v1/models/__init__.py +215 -21
- neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
- neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
- neurograph/v1/models/{atlas_atlas_version_response.py → client_client_url_snapshot_row.py} +20 -22
- neurograph/v1/models/client_client_urls_response.py +3 -3
- neurograph/v1/models/{organizations_organization_set_atlas_response.py → client_probe.py} +22 -16
- neurograph/v1/models/client_probe_todo_row.py +89 -0
- neurograph/v1/models/client_trigger_probe_response.py +101 -0
- neurograph/v1/models/db_knowledge_customer.py +97 -0
- neurograph/v1/models/db_knowledge_order.py +177 -0
- neurograph/v1/models/db_knowledge_product.py +107 -0
- neurograph/v1/models/{atlas_atlas_version_upsert_request.py → db_knowledge_store.py} +16 -12
- neurograph/v1/models/knowledge_assertion.py +111 -0
- neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
- neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
- neurograph/v1/models/knowledge_assertion_query.py +99 -0
- neurograph/v1/models/{atlas_atlas_version_many_response.py → knowledge_assertion_response.py} +9 -13
- neurograph/v1/models/knowledge_customer_query.py +99 -0
- neurograph/v1/models/knowledge_customer_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
- neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
- neurograph/v1/models/{organizations_atlas_config.py → knowledge_enrichment_query.py} +19 -17
- neurograph/v1/models/{knowledge_knowledge_entity.py → knowledge_entity.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_request.py → knowledge_entity_create_request.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_create_response.py → knowledge_entity_create_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_extra.py → knowledge_entity_extra.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_get_many_response.py → knowledge_entity_get_many_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_in_db.py → knowledge_entity_in_db.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_relations.py → knowledge_entity_relations.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema.py → knowledge_entity_schema.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_row.py → knowledge_entity_schema_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_upsert_request.py → knowledge_entity_schema_upsert_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_response.py → knowledge_entity_schemas_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_upsert_response.py → knowledge_entity_schemas_upsert_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_type_row.py → knowledge_entity_type_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_create_request.py → knowledge_entity_upsert_request.py} +9 -11
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_row.py → knowledge_entity_upsert_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_request.py → knowledge_ingest_raw_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_response.py → knowledge_ingest_raw_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_kind_response.py → knowledge_kind_response.py} +4 -4
- neurograph/v1/models/knowledge_order_query.py +129 -0
- neurograph/v1/models/knowledge_order_response.py +103 -0
- neurograph/v1/models/knowledge_product_query.py +101 -0
- neurograph/v1/models/knowledge_product_response.py +103 -0
- neurograph/v1/models/{client_client_create_request.py → knowledge_store_query.py} +17 -15
- neurograph/v1/models/knowledge_store_response.py +103 -0
- neurograph/v1/models/{knowledge_knowledge_type_response.py → knowledge_type_response.py} +7 -7
- neurograph/v1/models/{tasks_sync_from_firebase_result.py → pgtype_int8.py} +10 -8
- neurograph/v1/models/pgtype_text.py +89 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/METADATA +2 -1
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/RECORD +63 -42
- neurograph/v1/api/atlas_api.py +0 -588
- neurograph/v1/api/tasks_api.py +0 -286
- neurograph/v1/models/atlas_atlas_version.py +0 -99
- neurograph/v1/models/organizations_organization_set_atlas_request.py +0 -93
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1798 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from neurograph.v1.models.knowledge_customer_response import KnowledgeCustomerResponse
|
|
23
|
+
from neurograph.v1.models.knowledge_order_response import KnowledgeOrderResponse
|
|
24
|
+
from neurograph.v1.models.knowledge_product_response import KnowledgeProductResponse
|
|
25
|
+
from neurograph.v1.models.knowledge_store_response import KnowledgeStoreResponse
|
|
26
|
+
|
|
27
|
+
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from neurograph.v1.api_response import ApiResponse
|
|
29
|
+
from neurograph.v1.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class KnowledgeExtractApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
def api_v1_knowledge_extract_customer_get(
|
|
47
|
+
self,
|
|
48
|
+
client_id: Optional[StrictStr] = None,
|
|
49
|
+
email: Optional[StrictStr] = None,
|
|
50
|
+
first_name: Optional[StrictStr] = None,
|
|
51
|
+
last_name: Optional[StrictStr] = None,
|
|
52
|
+
limit: Optional[StrictInt] = None,
|
|
53
|
+
offset: Optional[StrictInt] = None,
|
|
54
|
+
phone: Optional[StrictStr] = None,
|
|
55
|
+
_request_timeout: Union[
|
|
56
|
+
None,
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Tuple[
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
61
|
+
]
|
|
62
|
+
] = None,
|
|
63
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_content_type: Optional[StrictStr] = None,
|
|
65
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
67
|
+
) -> KnowledgeCustomerResponse:
|
|
68
|
+
"""Get Knowledge Customers
|
|
69
|
+
|
|
70
|
+
Search customers by optional first/last/email/phone with prefix match (ILIKE '%') scoped to a client.
|
|
71
|
+
|
|
72
|
+
:param client_id:
|
|
73
|
+
:type client_id: str
|
|
74
|
+
:param email:
|
|
75
|
+
:type email: str
|
|
76
|
+
:param first_name:
|
|
77
|
+
:type first_name: str
|
|
78
|
+
:param last_name:
|
|
79
|
+
:type last_name: str
|
|
80
|
+
:param limit:
|
|
81
|
+
:type limit: int
|
|
82
|
+
:param offset:
|
|
83
|
+
:type offset: int
|
|
84
|
+
:param phone:
|
|
85
|
+
:type phone: str
|
|
86
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
87
|
+
number provided, it will be total request
|
|
88
|
+
timeout. It can also be a pair (tuple) of
|
|
89
|
+
(connection, read) timeouts.
|
|
90
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
91
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
92
|
+
request; this effectively ignores the
|
|
93
|
+
authentication in the spec for a single request.
|
|
94
|
+
:type _request_auth: dict, optional
|
|
95
|
+
:param _content_type: force content-type for the request.
|
|
96
|
+
:type _content_type: str, Optional
|
|
97
|
+
:param _headers: set to override the headers for a single
|
|
98
|
+
request; this effectively ignores the headers
|
|
99
|
+
in the spec for a single request.
|
|
100
|
+
:type _headers: dict, optional
|
|
101
|
+
:param _host_index: set to override the host_index for a single
|
|
102
|
+
request; this effectively ignores the host_index
|
|
103
|
+
in the spec for a single request.
|
|
104
|
+
:type _host_index: int, optional
|
|
105
|
+
:return: Returns the result object.
|
|
106
|
+
""" # noqa: E501
|
|
107
|
+
|
|
108
|
+
_param = self._api_v1_knowledge_extract_customer_get_serialize(
|
|
109
|
+
client_id=client_id,
|
|
110
|
+
email=email,
|
|
111
|
+
first_name=first_name,
|
|
112
|
+
last_name=last_name,
|
|
113
|
+
limit=limit,
|
|
114
|
+
offset=offset,
|
|
115
|
+
phone=phone,
|
|
116
|
+
_request_auth=_request_auth,
|
|
117
|
+
_content_type=_content_type,
|
|
118
|
+
_headers=_headers,
|
|
119
|
+
_host_index=_host_index
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
123
|
+
'200': "KnowledgeCustomerResponse",
|
|
124
|
+
'400': "KnowledgeCustomerResponse",
|
|
125
|
+
'503': "KnowledgeCustomerResponse",
|
|
126
|
+
}
|
|
127
|
+
response_data = self.api_client.call_api(
|
|
128
|
+
*_param,
|
|
129
|
+
_request_timeout=_request_timeout
|
|
130
|
+
)
|
|
131
|
+
response_data.read()
|
|
132
|
+
return self.api_client.response_deserialize(
|
|
133
|
+
response_data=response_data,
|
|
134
|
+
response_types_map=_response_types_map,
|
|
135
|
+
).data
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@validate_call
|
|
139
|
+
def api_v1_knowledge_extract_customer_get_with_http_info(
|
|
140
|
+
self,
|
|
141
|
+
client_id: Optional[StrictStr] = None,
|
|
142
|
+
email: Optional[StrictStr] = None,
|
|
143
|
+
first_name: Optional[StrictStr] = None,
|
|
144
|
+
last_name: Optional[StrictStr] = None,
|
|
145
|
+
limit: Optional[StrictInt] = None,
|
|
146
|
+
offset: Optional[StrictInt] = None,
|
|
147
|
+
phone: Optional[StrictStr] = None,
|
|
148
|
+
_request_timeout: Union[
|
|
149
|
+
None,
|
|
150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
151
|
+
Tuple[
|
|
152
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
153
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
154
|
+
]
|
|
155
|
+
] = None,
|
|
156
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
157
|
+
_content_type: Optional[StrictStr] = None,
|
|
158
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
159
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
160
|
+
) -> ApiResponse[KnowledgeCustomerResponse]:
|
|
161
|
+
"""Get Knowledge Customers
|
|
162
|
+
|
|
163
|
+
Search customers by optional first/last/email/phone with prefix match (ILIKE '%') scoped to a client.
|
|
164
|
+
|
|
165
|
+
:param client_id:
|
|
166
|
+
:type client_id: str
|
|
167
|
+
:param email:
|
|
168
|
+
:type email: str
|
|
169
|
+
:param first_name:
|
|
170
|
+
:type first_name: str
|
|
171
|
+
:param last_name:
|
|
172
|
+
:type last_name: str
|
|
173
|
+
:param limit:
|
|
174
|
+
:type limit: int
|
|
175
|
+
:param offset:
|
|
176
|
+
:type offset: int
|
|
177
|
+
:param phone:
|
|
178
|
+
:type phone: str
|
|
179
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
180
|
+
number provided, it will be total request
|
|
181
|
+
timeout. It can also be a pair (tuple) of
|
|
182
|
+
(connection, read) timeouts.
|
|
183
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
184
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
185
|
+
request; this effectively ignores the
|
|
186
|
+
authentication in the spec for a single request.
|
|
187
|
+
:type _request_auth: dict, optional
|
|
188
|
+
:param _content_type: force content-type for the request.
|
|
189
|
+
:type _content_type: str, Optional
|
|
190
|
+
:param _headers: set to override the headers for a single
|
|
191
|
+
request; this effectively ignores the headers
|
|
192
|
+
in the spec for a single request.
|
|
193
|
+
:type _headers: dict, optional
|
|
194
|
+
:param _host_index: set to override the host_index for a single
|
|
195
|
+
request; this effectively ignores the host_index
|
|
196
|
+
in the spec for a single request.
|
|
197
|
+
:type _host_index: int, optional
|
|
198
|
+
:return: Returns the result object.
|
|
199
|
+
""" # noqa: E501
|
|
200
|
+
|
|
201
|
+
_param = self._api_v1_knowledge_extract_customer_get_serialize(
|
|
202
|
+
client_id=client_id,
|
|
203
|
+
email=email,
|
|
204
|
+
first_name=first_name,
|
|
205
|
+
last_name=last_name,
|
|
206
|
+
limit=limit,
|
|
207
|
+
offset=offset,
|
|
208
|
+
phone=phone,
|
|
209
|
+
_request_auth=_request_auth,
|
|
210
|
+
_content_type=_content_type,
|
|
211
|
+
_headers=_headers,
|
|
212
|
+
_host_index=_host_index
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
+
'200': "KnowledgeCustomerResponse",
|
|
217
|
+
'400': "KnowledgeCustomerResponse",
|
|
218
|
+
'503': "KnowledgeCustomerResponse",
|
|
219
|
+
}
|
|
220
|
+
response_data = self.api_client.call_api(
|
|
221
|
+
*_param,
|
|
222
|
+
_request_timeout=_request_timeout
|
|
223
|
+
)
|
|
224
|
+
response_data.read()
|
|
225
|
+
return self.api_client.response_deserialize(
|
|
226
|
+
response_data=response_data,
|
|
227
|
+
response_types_map=_response_types_map,
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
@validate_call
|
|
232
|
+
def api_v1_knowledge_extract_customer_get_without_preload_content(
|
|
233
|
+
self,
|
|
234
|
+
client_id: Optional[StrictStr] = None,
|
|
235
|
+
email: Optional[StrictStr] = None,
|
|
236
|
+
first_name: Optional[StrictStr] = None,
|
|
237
|
+
last_name: Optional[StrictStr] = None,
|
|
238
|
+
limit: Optional[StrictInt] = None,
|
|
239
|
+
offset: Optional[StrictInt] = None,
|
|
240
|
+
phone: Optional[StrictStr] = None,
|
|
241
|
+
_request_timeout: Union[
|
|
242
|
+
None,
|
|
243
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
244
|
+
Tuple[
|
|
245
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
246
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
247
|
+
]
|
|
248
|
+
] = None,
|
|
249
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
250
|
+
_content_type: Optional[StrictStr] = None,
|
|
251
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
252
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
253
|
+
) -> RESTResponseType:
|
|
254
|
+
"""Get Knowledge Customers
|
|
255
|
+
|
|
256
|
+
Search customers by optional first/last/email/phone with prefix match (ILIKE '%') scoped to a client.
|
|
257
|
+
|
|
258
|
+
:param client_id:
|
|
259
|
+
:type client_id: str
|
|
260
|
+
:param email:
|
|
261
|
+
:type email: str
|
|
262
|
+
:param first_name:
|
|
263
|
+
:type first_name: str
|
|
264
|
+
:param last_name:
|
|
265
|
+
:type last_name: str
|
|
266
|
+
:param limit:
|
|
267
|
+
:type limit: int
|
|
268
|
+
:param offset:
|
|
269
|
+
:type offset: int
|
|
270
|
+
:param phone:
|
|
271
|
+
:type phone: str
|
|
272
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
273
|
+
number provided, it will be total request
|
|
274
|
+
timeout. It can also be a pair (tuple) of
|
|
275
|
+
(connection, read) timeouts.
|
|
276
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
277
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
278
|
+
request; this effectively ignores the
|
|
279
|
+
authentication in the spec for a single request.
|
|
280
|
+
:type _request_auth: dict, optional
|
|
281
|
+
:param _content_type: force content-type for the request.
|
|
282
|
+
:type _content_type: str, Optional
|
|
283
|
+
:param _headers: set to override the headers for a single
|
|
284
|
+
request; this effectively ignores the headers
|
|
285
|
+
in the spec for a single request.
|
|
286
|
+
:type _headers: dict, optional
|
|
287
|
+
:param _host_index: set to override the host_index for a single
|
|
288
|
+
request; this effectively ignores the host_index
|
|
289
|
+
in the spec for a single request.
|
|
290
|
+
:type _host_index: int, optional
|
|
291
|
+
:return: Returns the result object.
|
|
292
|
+
""" # noqa: E501
|
|
293
|
+
|
|
294
|
+
_param = self._api_v1_knowledge_extract_customer_get_serialize(
|
|
295
|
+
client_id=client_id,
|
|
296
|
+
email=email,
|
|
297
|
+
first_name=first_name,
|
|
298
|
+
last_name=last_name,
|
|
299
|
+
limit=limit,
|
|
300
|
+
offset=offset,
|
|
301
|
+
phone=phone,
|
|
302
|
+
_request_auth=_request_auth,
|
|
303
|
+
_content_type=_content_type,
|
|
304
|
+
_headers=_headers,
|
|
305
|
+
_host_index=_host_index
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
309
|
+
'200': "KnowledgeCustomerResponse",
|
|
310
|
+
'400': "KnowledgeCustomerResponse",
|
|
311
|
+
'503': "KnowledgeCustomerResponse",
|
|
312
|
+
}
|
|
313
|
+
response_data = self.api_client.call_api(
|
|
314
|
+
*_param,
|
|
315
|
+
_request_timeout=_request_timeout
|
|
316
|
+
)
|
|
317
|
+
return response_data.response
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
def _api_v1_knowledge_extract_customer_get_serialize(
|
|
321
|
+
self,
|
|
322
|
+
client_id,
|
|
323
|
+
email,
|
|
324
|
+
first_name,
|
|
325
|
+
last_name,
|
|
326
|
+
limit,
|
|
327
|
+
offset,
|
|
328
|
+
phone,
|
|
329
|
+
_request_auth,
|
|
330
|
+
_content_type,
|
|
331
|
+
_headers,
|
|
332
|
+
_host_index,
|
|
333
|
+
) -> RequestSerialized:
|
|
334
|
+
|
|
335
|
+
_host = None
|
|
336
|
+
|
|
337
|
+
_collection_formats: Dict[str, str] = {
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
_path_params: Dict[str, str] = {}
|
|
341
|
+
_query_params: List[Tuple[str, str]] = []
|
|
342
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
343
|
+
_form_params: List[Tuple[str, str]] = []
|
|
344
|
+
_files: Dict[
|
|
345
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
346
|
+
] = {}
|
|
347
|
+
_body_params: Optional[bytes] = None
|
|
348
|
+
|
|
349
|
+
# process the path parameters
|
|
350
|
+
# process the query parameters
|
|
351
|
+
if client_id is not None:
|
|
352
|
+
|
|
353
|
+
_query_params.append(('client_id', client_id))
|
|
354
|
+
|
|
355
|
+
if email is not None:
|
|
356
|
+
|
|
357
|
+
_query_params.append(('email', email))
|
|
358
|
+
|
|
359
|
+
if first_name is not None:
|
|
360
|
+
|
|
361
|
+
_query_params.append(('first_name', first_name))
|
|
362
|
+
|
|
363
|
+
if last_name is not None:
|
|
364
|
+
|
|
365
|
+
_query_params.append(('last_name', last_name))
|
|
366
|
+
|
|
367
|
+
if limit is not None:
|
|
368
|
+
|
|
369
|
+
_query_params.append(('limit', limit))
|
|
370
|
+
|
|
371
|
+
if offset is not None:
|
|
372
|
+
|
|
373
|
+
_query_params.append(('offset', offset))
|
|
374
|
+
|
|
375
|
+
if phone is not None:
|
|
376
|
+
|
|
377
|
+
_query_params.append(('phone', phone))
|
|
378
|
+
|
|
379
|
+
# process the header parameters
|
|
380
|
+
# process the form parameters
|
|
381
|
+
# process the body parameter
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
# set the HTTP header `Accept`
|
|
385
|
+
if 'Accept' not in _header_params:
|
|
386
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
387
|
+
[
|
|
388
|
+
'application/json'
|
|
389
|
+
]
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
# authentication setting
|
|
394
|
+
_auth_settings: List[str] = [
|
|
395
|
+
'TokenAuth'
|
|
396
|
+
]
|
|
397
|
+
|
|
398
|
+
return self.api_client.param_serialize(
|
|
399
|
+
method='GET',
|
|
400
|
+
resource_path='/api/v1/knowledge/extract/customer/',
|
|
401
|
+
path_params=_path_params,
|
|
402
|
+
query_params=_query_params,
|
|
403
|
+
header_params=_header_params,
|
|
404
|
+
body=_body_params,
|
|
405
|
+
post_params=_form_params,
|
|
406
|
+
files=_files,
|
|
407
|
+
auth_settings=_auth_settings,
|
|
408
|
+
collection_formats=_collection_formats,
|
|
409
|
+
_host=_host,
|
|
410
|
+
_request_auth=_request_auth
|
|
411
|
+
)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
@validate_call
|
|
417
|
+
def api_v1_knowledge_extract_order_get(
|
|
418
|
+
self,
|
|
419
|
+
billing_address_hash: Optional[StrictStr] = None,
|
|
420
|
+
channel: Optional[StrictStr] = None,
|
|
421
|
+
client_id: Annotated[Optional[StrictStr], Field(description="required")] = None,
|
|
422
|
+
currency: Optional[StrictStr] = None,
|
|
423
|
+
customer_entity_id: Optional[StrictStr] = None,
|
|
424
|
+
email_at_order: Optional[StrictStr] = None,
|
|
425
|
+
ext_order_id: Optional[StrictStr] = None,
|
|
426
|
+
ext_order_number: Optional[StrictStr] = None,
|
|
427
|
+
ext_store_id: Optional[StrictStr] = None,
|
|
428
|
+
financial_status: Optional[StrictStr] = None,
|
|
429
|
+
fulfillment_status: Optional[StrictStr] = None,
|
|
430
|
+
limit: Optional[StrictInt] = None,
|
|
431
|
+
offset: Optional[StrictInt] = None,
|
|
432
|
+
phone_at_order: Optional[StrictStr] = None,
|
|
433
|
+
placed_from: Annotated[Optional[StrictStr], Field(description="raw string ISO-8601")] = None,
|
|
434
|
+
placed_to: Optional[StrictStr] = None,
|
|
435
|
+
shipping_address_hash: Optional[StrictStr] = None,
|
|
436
|
+
source_name: Optional[StrictStr] = None,
|
|
437
|
+
status: Optional[StrictStr] = None,
|
|
438
|
+
store_entity_id: Optional[StrictStr] = None,
|
|
439
|
+
total_max: Optional[StrictStr] = None,
|
|
440
|
+
total_min: Optional[StrictStr] = None,
|
|
441
|
+
_request_timeout: Union[
|
|
442
|
+
None,
|
|
443
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
444
|
+
Tuple[
|
|
445
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
446
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
447
|
+
]
|
|
448
|
+
] = None,
|
|
449
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
450
|
+
_content_type: Optional[StrictStr] = None,
|
|
451
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
452
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
453
|
+
) -> KnowledgeOrderResponse:
|
|
454
|
+
"""Get Knowledge Orders
|
|
455
|
+
|
|
456
|
+
Query orders by optional filters (prefix ILIKE on text refs, exact match on enums, date/amount ranges) scoped to a client.
|
|
457
|
+
|
|
458
|
+
:param billing_address_hash:
|
|
459
|
+
:type billing_address_hash: str
|
|
460
|
+
:param channel:
|
|
461
|
+
:type channel: str
|
|
462
|
+
:param client_id: required
|
|
463
|
+
:type client_id: str
|
|
464
|
+
:param currency:
|
|
465
|
+
:type currency: str
|
|
466
|
+
:param customer_entity_id:
|
|
467
|
+
:type customer_entity_id: str
|
|
468
|
+
:param email_at_order:
|
|
469
|
+
:type email_at_order: str
|
|
470
|
+
:param ext_order_id:
|
|
471
|
+
:type ext_order_id: str
|
|
472
|
+
:param ext_order_number:
|
|
473
|
+
:type ext_order_number: str
|
|
474
|
+
:param ext_store_id:
|
|
475
|
+
:type ext_store_id: str
|
|
476
|
+
:param financial_status:
|
|
477
|
+
:type financial_status: str
|
|
478
|
+
:param fulfillment_status:
|
|
479
|
+
:type fulfillment_status: str
|
|
480
|
+
:param limit:
|
|
481
|
+
:type limit: int
|
|
482
|
+
:param offset:
|
|
483
|
+
:type offset: int
|
|
484
|
+
:param phone_at_order:
|
|
485
|
+
:type phone_at_order: str
|
|
486
|
+
:param placed_from: raw string ISO-8601
|
|
487
|
+
:type placed_from: str
|
|
488
|
+
:param placed_to:
|
|
489
|
+
:type placed_to: str
|
|
490
|
+
:param shipping_address_hash:
|
|
491
|
+
:type shipping_address_hash: str
|
|
492
|
+
:param source_name:
|
|
493
|
+
:type source_name: str
|
|
494
|
+
:param status:
|
|
495
|
+
:type status: str
|
|
496
|
+
:param store_entity_id:
|
|
497
|
+
:type store_entity_id: str
|
|
498
|
+
:param total_max:
|
|
499
|
+
:type total_max: str
|
|
500
|
+
:param total_min:
|
|
501
|
+
:type total_min: str
|
|
502
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
503
|
+
number provided, it will be total request
|
|
504
|
+
timeout. It can also be a pair (tuple) of
|
|
505
|
+
(connection, read) timeouts.
|
|
506
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
507
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
508
|
+
request; this effectively ignores the
|
|
509
|
+
authentication in the spec for a single request.
|
|
510
|
+
:type _request_auth: dict, optional
|
|
511
|
+
:param _content_type: force content-type for the request.
|
|
512
|
+
:type _content_type: str, Optional
|
|
513
|
+
:param _headers: set to override the headers for a single
|
|
514
|
+
request; this effectively ignores the headers
|
|
515
|
+
in the spec for a single request.
|
|
516
|
+
:type _headers: dict, optional
|
|
517
|
+
:param _host_index: set to override the host_index for a single
|
|
518
|
+
request; this effectively ignores the host_index
|
|
519
|
+
in the spec for a single request.
|
|
520
|
+
:type _host_index: int, optional
|
|
521
|
+
:return: Returns the result object.
|
|
522
|
+
""" # noqa: E501
|
|
523
|
+
|
|
524
|
+
_param = self._api_v1_knowledge_extract_order_get_serialize(
|
|
525
|
+
billing_address_hash=billing_address_hash,
|
|
526
|
+
channel=channel,
|
|
527
|
+
client_id=client_id,
|
|
528
|
+
currency=currency,
|
|
529
|
+
customer_entity_id=customer_entity_id,
|
|
530
|
+
email_at_order=email_at_order,
|
|
531
|
+
ext_order_id=ext_order_id,
|
|
532
|
+
ext_order_number=ext_order_number,
|
|
533
|
+
ext_store_id=ext_store_id,
|
|
534
|
+
financial_status=financial_status,
|
|
535
|
+
fulfillment_status=fulfillment_status,
|
|
536
|
+
limit=limit,
|
|
537
|
+
offset=offset,
|
|
538
|
+
phone_at_order=phone_at_order,
|
|
539
|
+
placed_from=placed_from,
|
|
540
|
+
placed_to=placed_to,
|
|
541
|
+
shipping_address_hash=shipping_address_hash,
|
|
542
|
+
source_name=source_name,
|
|
543
|
+
status=status,
|
|
544
|
+
store_entity_id=store_entity_id,
|
|
545
|
+
total_max=total_max,
|
|
546
|
+
total_min=total_min,
|
|
547
|
+
_request_auth=_request_auth,
|
|
548
|
+
_content_type=_content_type,
|
|
549
|
+
_headers=_headers,
|
|
550
|
+
_host_index=_host_index
|
|
551
|
+
)
|
|
552
|
+
|
|
553
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
554
|
+
'200': "KnowledgeOrderResponse",
|
|
555
|
+
'400': "KnowledgeOrderResponse",
|
|
556
|
+
'503': "KnowledgeOrderResponse",
|
|
557
|
+
}
|
|
558
|
+
response_data = self.api_client.call_api(
|
|
559
|
+
*_param,
|
|
560
|
+
_request_timeout=_request_timeout
|
|
561
|
+
)
|
|
562
|
+
response_data.read()
|
|
563
|
+
return self.api_client.response_deserialize(
|
|
564
|
+
response_data=response_data,
|
|
565
|
+
response_types_map=_response_types_map,
|
|
566
|
+
).data
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
@validate_call
|
|
570
|
+
def api_v1_knowledge_extract_order_get_with_http_info(
|
|
571
|
+
self,
|
|
572
|
+
billing_address_hash: Optional[StrictStr] = None,
|
|
573
|
+
channel: Optional[StrictStr] = None,
|
|
574
|
+
client_id: Annotated[Optional[StrictStr], Field(description="required")] = None,
|
|
575
|
+
currency: Optional[StrictStr] = None,
|
|
576
|
+
customer_entity_id: Optional[StrictStr] = None,
|
|
577
|
+
email_at_order: Optional[StrictStr] = None,
|
|
578
|
+
ext_order_id: Optional[StrictStr] = None,
|
|
579
|
+
ext_order_number: Optional[StrictStr] = None,
|
|
580
|
+
ext_store_id: Optional[StrictStr] = None,
|
|
581
|
+
financial_status: Optional[StrictStr] = None,
|
|
582
|
+
fulfillment_status: Optional[StrictStr] = None,
|
|
583
|
+
limit: Optional[StrictInt] = None,
|
|
584
|
+
offset: Optional[StrictInt] = None,
|
|
585
|
+
phone_at_order: Optional[StrictStr] = None,
|
|
586
|
+
placed_from: Annotated[Optional[StrictStr], Field(description="raw string ISO-8601")] = None,
|
|
587
|
+
placed_to: Optional[StrictStr] = None,
|
|
588
|
+
shipping_address_hash: Optional[StrictStr] = None,
|
|
589
|
+
source_name: Optional[StrictStr] = None,
|
|
590
|
+
status: Optional[StrictStr] = None,
|
|
591
|
+
store_entity_id: Optional[StrictStr] = None,
|
|
592
|
+
total_max: Optional[StrictStr] = None,
|
|
593
|
+
total_min: Optional[StrictStr] = None,
|
|
594
|
+
_request_timeout: Union[
|
|
595
|
+
None,
|
|
596
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
597
|
+
Tuple[
|
|
598
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
599
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
600
|
+
]
|
|
601
|
+
] = None,
|
|
602
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
603
|
+
_content_type: Optional[StrictStr] = None,
|
|
604
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
605
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
606
|
+
) -> ApiResponse[KnowledgeOrderResponse]:
|
|
607
|
+
"""Get Knowledge Orders
|
|
608
|
+
|
|
609
|
+
Query orders by optional filters (prefix ILIKE on text refs, exact match on enums, date/amount ranges) scoped to a client.
|
|
610
|
+
|
|
611
|
+
:param billing_address_hash:
|
|
612
|
+
:type billing_address_hash: str
|
|
613
|
+
:param channel:
|
|
614
|
+
:type channel: str
|
|
615
|
+
:param client_id: required
|
|
616
|
+
:type client_id: str
|
|
617
|
+
:param currency:
|
|
618
|
+
:type currency: str
|
|
619
|
+
:param customer_entity_id:
|
|
620
|
+
:type customer_entity_id: str
|
|
621
|
+
:param email_at_order:
|
|
622
|
+
:type email_at_order: str
|
|
623
|
+
:param ext_order_id:
|
|
624
|
+
:type ext_order_id: str
|
|
625
|
+
:param ext_order_number:
|
|
626
|
+
:type ext_order_number: str
|
|
627
|
+
:param ext_store_id:
|
|
628
|
+
:type ext_store_id: str
|
|
629
|
+
:param financial_status:
|
|
630
|
+
:type financial_status: str
|
|
631
|
+
:param fulfillment_status:
|
|
632
|
+
:type fulfillment_status: str
|
|
633
|
+
:param limit:
|
|
634
|
+
:type limit: int
|
|
635
|
+
:param offset:
|
|
636
|
+
:type offset: int
|
|
637
|
+
:param phone_at_order:
|
|
638
|
+
:type phone_at_order: str
|
|
639
|
+
:param placed_from: raw string ISO-8601
|
|
640
|
+
:type placed_from: str
|
|
641
|
+
:param placed_to:
|
|
642
|
+
:type placed_to: str
|
|
643
|
+
:param shipping_address_hash:
|
|
644
|
+
:type shipping_address_hash: str
|
|
645
|
+
:param source_name:
|
|
646
|
+
:type source_name: str
|
|
647
|
+
:param status:
|
|
648
|
+
:type status: str
|
|
649
|
+
:param store_entity_id:
|
|
650
|
+
:type store_entity_id: str
|
|
651
|
+
:param total_max:
|
|
652
|
+
:type total_max: str
|
|
653
|
+
:param total_min:
|
|
654
|
+
:type total_min: str
|
|
655
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
656
|
+
number provided, it will be total request
|
|
657
|
+
timeout. It can also be a pair (tuple) of
|
|
658
|
+
(connection, read) timeouts.
|
|
659
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
660
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
661
|
+
request; this effectively ignores the
|
|
662
|
+
authentication in the spec for a single request.
|
|
663
|
+
:type _request_auth: dict, optional
|
|
664
|
+
:param _content_type: force content-type for the request.
|
|
665
|
+
:type _content_type: str, Optional
|
|
666
|
+
:param _headers: set to override the headers for a single
|
|
667
|
+
request; this effectively ignores the headers
|
|
668
|
+
in the spec for a single request.
|
|
669
|
+
:type _headers: dict, optional
|
|
670
|
+
:param _host_index: set to override the host_index for a single
|
|
671
|
+
request; this effectively ignores the host_index
|
|
672
|
+
in the spec for a single request.
|
|
673
|
+
:type _host_index: int, optional
|
|
674
|
+
:return: Returns the result object.
|
|
675
|
+
""" # noqa: E501
|
|
676
|
+
|
|
677
|
+
_param = self._api_v1_knowledge_extract_order_get_serialize(
|
|
678
|
+
billing_address_hash=billing_address_hash,
|
|
679
|
+
channel=channel,
|
|
680
|
+
client_id=client_id,
|
|
681
|
+
currency=currency,
|
|
682
|
+
customer_entity_id=customer_entity_id,
|
|
683
|
+
email_at_order=email_at_order,
|
|
684
|
+
ext_order_id=ext_order_id,
|
|
685
|
+
ext_order_number=ext_order_number,
|
|
686
|
+
ext_store_id=ext_store_id,
|
|
687
|
+
financial_status=financial_status,
|
|
688
|
+
fulfillment_status=fulfillment_status,
|
|
689
|
+
limit=limit,
|
|
690
|
+
offset=offset,
|
|
691
|
+
phone_at_order=phone_at_order,
|
|
692
|
+
placed_from=placed_from,
|
|
693
|
+
placed_to=placed_to,
|
|
694
|
+
shipping_address_hash=shipping_address_hash,
|
|
695
|
+
source_name=source_name,
|
|
696
|
+
status=status,
|
|
697
|
+
store_entity_id=store_entity_id,
|
|
698
|
+
total_max=total_max,
|
|
699
|
+
total_min=total_min,
|
|
700
|
+
_request_auth=_request_auth,
|
|
701
|
+
_content_type=_content_type,
|
|
702
|
+
_headers=_headers,
|
|
703
|
+
_host_index=_host_index
|
|
704
|
+
)
|
|
705
|
+
|
|
706
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
707
|
+
'200': "KnowledgeOrderResponse",
|
|
708
|
+
'400': "KnowledgeOrderResponse",
|
|
709
|
+
'503': "KnowledgeOrderResponse",
|
|
710
|
+
}
|
|
711
|
+
response_data = self.api_client.call_api(
|
|
712
|
+
*_param,
|
|
713
|
+
_request_timeout=_request_timeout
|
|
714
|
+
)
|
|
715
|
+
response_data.read()
|
|
716
|
+
return self.api_client.response_deserialize(
|
|
717
|
+
response_data=response_data,
|
|
718
|
+
response_types_map=_response_types_map,
|
|
719
|
+
)
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
@validate_call
|
|
723
|
+
def api_v1_knowledge_extract_order_get_without_preload_content(
|
|
724
|
+
self,
|
|
725
|
+
billing_address_hash: Optional[StrictStr] = None,
|
|
726
|
+
channel: Optional[StrictStr] = None,
|
|
727
|
+
client_id: Annotated[Optional[StrictStr], Field(description="required")] = None,
|
|
728
|
+
currency: Optional[StrictStr] = None,
|
|
729
|
+
customer_entity_id: Optional[StrictStr] = None,
|
|
730
|
+
email_at_order: Optional[StrictStr] = None,
|
|
731
|
+
ext_order_id: Optional[StrictStr] = None,
|
|
732
|
+
ext_order_number: Optional[StrictStr] = None,
|
|
733
|
+
ext_store_id: Optional[StrictStr] = None,
|
|
734
|
+
financial_status: Optional[StrictStr] = None,
|
|
735
|
+
fulfillment_status: Optional[StrictStr] = None,
|
|
736
|
+
limit: Optional[StrictInt] = None,
|
|
737
|
+
offset: Optional[StrictInt] = None,
|
|
738
|
+
phone_at_order: Optional[StrictStr] = None,
|
|
739
|
+
placed_from: Annotated[Optional[StrictStr], Field(description="raw string ISO-8601")] = None,
|
|
740
|
+
placed_to: Optional[StrictStr] = None,
|
|
741
|
+
shipping_address_hash: Optional[StrictStr] = None,
|
|
742
|
+
source_name: Optional[StrictStr] = None,
|
|
743
|
+
status: Optional[StrictStr] = None,
|
|
744
|
+
store_entity_id: Optional[StrictStr] = None,
|
|
745
|
+
total_max: Optional[StrictStr] = None,
|
|
746
|
+
total_min: Optional[StrictStr] = None,
|
|
747
|
+
_request_timeout: Union[
|
|
748
|
+
None,
|
|
749
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
750
|
+
Tuple[
|
|
751
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
753
|
+
]
|
|
754
|
+
] = None,
|
|
755
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
756
|
+
_content_type: Optional[StrictStr] = None,
|
|
757
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
758
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
759
|
+
) -> RESTResponseType:
|
|
760
|
+
"""Get Knowledge Orders
|
|
761
|
+
|
|
762
|
+
Query orders by optional filters (prefix ILIKE on text refs, exact match on enums, date/amount ranges) scoped to a client.
|
|
763
|
+
|
|
764
|
+
:param billing_address_hash:
|
|
765
|
+
:type billing_address_hash: str
|
|
766
|
+
:param channel:
|
|
767
|
+
:type channel: str
|
|
768
|
+
:param client_id: required
|
|
769
|
+
:type client_id: str
|
|
770
|
+
:param currency:
|
|
771
|
+
:type currency: str
|
|
772
|
+
:param customer_entity_id:
|
|
773
|
+
:type customer_entity_id: str
|
|
774
|
+
:param email_at_order:
|
|
775
|
+
:type email_at_order: str
|
|
776
|
+
:param ext_order_id:
|
|
777
|
+
:type ext_order_id: str
|
|
778
|
+
:param ext_order_number:
|
|
779
|
+
:type ext_order_number: str
|
|
780
|
+
:param ext_store_id:
|
|
781
|
+
:type ext_store_id: str
|
|
782
|
+
:param financial_status:
|
|
783
|
+
:type financial_status: str
|
|
784
|
+
:param fulfillment_status:
|
|
785
|
+
:type fulfillment_status: str
|
|
786
|
+
:param limit:
|
|
787
|
+
:type limit: int
|
|
788
|
+
:param offset:
|
|
789
|
+
:type offset: int
|
|
790
|
+
:param phone_at_order:
|
|
791
|
+
:type phone_at_order: str
|
|
792
|
+
:param placed_from: raw string ISO-8601
|
|
793
|
+
:type placed_from: str
|
|
794
|
+
:param placed_to:
|
|
795
|
+
:type placed_to: str
|
|
796
|
+
:param shipping_address_hash:
|
|
797
|
+
:type shipping_address_hash: str
|
|
798
|
+
:param source_name:
|
|
799
|
+
:type source_name: str
|
|
800
|
+
:param status:
|
|
801
|
+
:type status: str
|
|
802
|
+
:param store_entity_id:
|
|
803
|
+
:type store_entity_id: str
|
|
804
|
+
:param total_max:
|
|
805
|
+
:type total_max: str
|
|
806
|
+
:param total_min:
|
|
807
|
+
:type total_min: str
|
|
808
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
809
|
+
number provided, it will be total request
|
|
810
|
+
timeout. It can also be a pair (tuple) of
|
|
811
|
+
(connection, read) timeouts.
|
|
812
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
813
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
814
|
+
request; this effectively ignores the
|
|
815
|
+
authentication in the spec for a single request.
|
|
816
|
+
:type _request_auth: dict, optional
|
|
817
|
+
:param _content_type: force content-type for the request.
|
|
818
|
+
:type _content_type: str, Optional
|
|
819
|
+
:param _headers: set to override the headers for a single
|
|
820
|
+
request; this effectively ignores the headers
|
|
821
|
+
in the spec for a single request.
|
|
822
|
+
:type _headers: dict, optional
|
|
823
|
+
:param _host_index: set to override the host_index for a single
|
|
824
|
+
request; this effectively ignores the host_index
|
|
825
|
+
in the spec for a single request.
|
|
826
|
+
:type _host_index: int, optional
|
|
827
|
+
:return: Returns the result object.
|
|
828
|
+
""" # noqa: E501
|
|
829
|
+
|
|
830
|
+
_param = self._api_v1_knowledge_extract_order_get_serialize(
|
|
831
|
+
billing_address_hash=billing_address_hash,
|
|
832
|
+
channel=channel,
|
|
833
|
+
client_id=client_id,
|
|
834
|
+
currency=currency,
|
|
835
|
+
customer_entity_id=customer_entity_id,
|
|
836
|
+
email_at_order=email_at_order,
|
|
837
|
+
ext_order_id=ext_order_id,
|
|
838
|
+
ext_order_number=ext_order_number,
|
|
839
|
+
ext_store_id=ext_store_id,
|
|
840
|
+
financial_status=financial_status,
|
|
841
|
+
fulfillment_status=fulfillment_status,
|
|
842
|
+
limit=limit,
|
|
843
|
+
offset=offset,
|
|
844
|
+
phone_at_order=phone_at_order,
|
|
845
|
+
placed_from=placed_from,
|
|
846
|
+
placed_to=placed_to,
|
|
847
|
+
shipping_address_hash=shipping_address_hash,
|
|
848
|
+
source_name=source_name,
|
|
849
|
+
status=status,
|
|
850
|
+
store_entity_id=store_entity_id,
|
|
851
|
+
total_max=total_max,
|
|
852
|
+
total_min=total_min,
|
|
853
|
+
_request_auth=_request_auth,
|
|
854
|
+
_content_type=_content_type,
|
|
855
|
+
_headers=_headers,
|
|
856
|
+
_host_index=_host_index
|
|
857
|
+
)
|
|
858
|
+
|
|
859
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
860
|
+
'200': "KnowledgeOrderResponse",
|
|
861
|
+
'400': "KnowledgeOrderResponse",
|
|
862
|
+
'503': "KnowledgeOrderResponse",
|
|
863
|
+
}
|
|
864
|
+
response_data = self.api_client.call_api(
|
|
865
|
+
*_param,
|
|
866
|
+
_request_timeout=_request_timeout
|
|
867
|
+
)
|
|
868
|
+
return response_data.response
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
def _api_v1_knowledge_extract_order_get_serialize(
|
|
872
|
+
self,
|
|
873
|
+
billing_address_hash,
|
|
874
|
+
channel,
|
|
875
|
+
client_id,
|
|
876
|
+
currency,
|
|
877
|
+
customer_entity_id,
|
|
878
|
+
email_at_order,
|
|
879
|
+
ext_order_id,
|
|
880
|
+
ext_order_number,
|
|
881
|
+
ext_store_id,
|
|
882
|
+
financial_status,
|
|
883
|
+
fulfillment_status,
|
|
884
|
+
limit,
|
|
885
|
+
offset,
|
|
886
|
+
phone_at_order,
|
|
887
|
+
placed_from,
|
|
888
|
+
placed_to,
|
|
889
|
+
shipping_address_hash,
|
|
890
|
+
source_name,
|
|
891
|
+
status,
|
|
892
|
+
store_entity_id,
|
|
893
|
+
total_max,
|
|
894
|
+
total_min,
|
|
895
|
+
_request_auth,
|
|
896
|
+
_content_type,
|
|
897
|
+
_headers,
|
|
898
|
+
_host_index,
|
|
899
|
+
) -> RequestSerialized:
|
|
900
|
+
|
|
901
|
+
_host = None
|
|
902
|
+
|
|
903
|
+
_collection_formats: Dict[str, str] = {
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
_path_params: Dict[str, str] = {}
|
|
907
|
+
_query_params: List[Tuple[str, str]] = []
|
|
908
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
909
|
+
_form_params: List[Tuple[str, str]] = []
|
|
910
|
+
_files: Dict[
|
|
911
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
912
|
+
] = {}
|
|
913
|
+
_body_params: Optional[bytes] = None
|
|
914
|
+
|
|
915
|
+
# process the path parameters
|
|
916
|
+
# process the query parameters
|
|
917
|
+
if billing_address_hash is not None:
|
|
918
|
+
|
|
919
|
+
_query_params.append(('billing_address_hash', billing_address_hash))
|
|
920
|
+
|
|
921
|
+
if channel is not None:
|
|
922
|
+
|
|
923
|
+
_query_params.append(('channel', channel))
|
|
924
|
+
|
|
925
|
+
if client_id is not None:
|
|
926
|
+
|
|
927
|
+
_query_params.append(('client_id', client_id))
|
|
928
|
+
|
|
929
|
+
if currency is not None:
|
|
930
|
+
|
|
931
|
+
_query_params.append(('currency', currency))
|
|
932
|
+
|
|
933
|
+
if customer_entity_id is not None:
|
|
934
|
+
|
|
935
|
+
_query_params.append(('customer_entity_id', customer_entity_id))
|
|
936
|
+
|
|
937
|
+
if email_at_order is not None:
|
|
938
|
+
|
|
939
|
+
_query_params.append(('email_at_order', email_at_order))
|
|
940
|
+
|
|
941
|
+
if ext_order_id is not None:
|
|
942
|
+
|
|
943
|
+
_query_params.append(('ext_order_id', ext_order_id))
|
|
944
|
+
|
|
945
|
+
if ext_order_number is not None:
|
|
946
|
+
|
|
947
|
+
_query_params.append(('ext_order_number', ext_order_number))
|
|
948
|
+
|
|
949
|
+
if ext_store_id is not None:
|
|
950
|
+
|
|
951
|
+
_query_params.append(('ext_store_id', ext_store_id))
|
|
952
|
+
|
|
953
|
+
if financial_status is not None:
|
|
954
|
+
|
|
955
|
+
_query_params.append(('financial_status', financial_status))
|
|
956
|
+
|
|
957
|
+
if fulfillment_status is not None:
|
|
958
|
+
|
|
959
|
+
_query_params.append(('fulfillment_status', fulfillment_status))
|
|
960
|
+
|
|
961
|
+
if limit is not None:
|
|
962
|
+
|
|
963
|
+
_query_params.append(('limit', limit))
|
|
964
|
+
|
|
965
|
+
if offset is not None:
|
|
966
|
+
|
|
967
|
+
_query_params.append(('offset', offset))
|
|
968
|
+
|
|
969
|
+
if phone_at_order is not None:
|
|
970
|
+
|
|
971
|
+
_query_params.append(('phone_at_order', phone_at_order))
|
|
972
|
+
|
|
973
|
+
if placed_from is not None:
|
|
974
|
+
|
|
975
|
+
_query_params.append(('placed_from', placed_from))
|
|
976
|
+
|
|
977
|
+
if placed_to is not None:
|
|
978
|
+
|
|
979
|
+
_query_params.append(('placed_to', placed_to))
|
|
980
|
+
|
|
981
|
+
if shipping_address_hash is not None:
|
|
982
|
+
|
|
983
|
+
_query_params.append(('shipping_address_hash', shipping_address_hash))
|
|
984
|
+
|
|
985
|
+
if source_name is not None:
|
|
986
|
+
|
|
987
|
+
_query_params.append(('source_name', source_name))
|
|
988
|
+
|
|
989
|
+
if status is not None:
|
|
990
|
+
|
|
991
|
+
_query_params.append(('status', status))
|
|
992
|
+
|
|
993
|
+
if store_entity_id is not None:
|
|
994
|
+
|
|
995
|
+
_query_params.append(('store_entity_id', store_entity_id))
|
|
996
|
+
|
|
997
|
+
if total_max is not None:
|
|
998
|
+
|
|
999
|
+
_query_params.append(('total_max', total_max))
|
|
1000
|
+
|
|
1001
|
+
if total_min is not None:
|
|
1002
|
+
|
|
1003
|
+
_query_params.append(('total_min', total_min))
|
|
1004
|
+
|
|
1005
|
+
# process the header parameters
|
|
1006
|
+
# process the form parameters
|
|
1007
|
+
# process the body parameter
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
# set the HTTP header `Accept`
|
|
1011
|
+
if 'Accept' not in _header_params:
|
|
1012
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1013
|
+
[
|
|
1014
|
+
'application/json'
|
|
1015
|
+
]
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
# authentication setting
|
|
1020
|
+
_auth_settings: List[str] = [
|
|
1021
|
+
'TokenAuth'
|
|
1022
|
+
]
|
|
1023
|
+
|
|
1024
|
+
return self.api_client.param_serialize(
|
|
1025
|
+
method='GET',
|
|
1026
|
+
resource_path='/api/v1/knowledge/extract/order/',
|
|
1027
|
+
path_params=_path_params,
|
|
1028
|
+
query_params=_query_params,
|
|
1029
|
+
header_params=_header_params,
|
|
1030
|
+
body=_body_params,
|
|
1031
|
+
post_params=_form_params,
|
|
1032
|
+
files=_files,
|
|
1033
|
+
auth_settings=_auth_settings,
|
|
1034
|
+
collection_formats=_collection_formats,
|
|
1035
|
+
_host=_host,
|
|
1036
|
+
_request_auth=_request_auth
|
|
1037
|
+
)
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
@validate_call
|
|
1043
|
+
def api_v1_knowledge_extract_product_get(
|
|
1044
|
+
self,
|
|
1045
|
+
client_id: Annotated[Optional[StrictStr], Field(description="Client ID")] = None,
|
|
1046
|
+
product_id: Annotated[Optional[StrictInt], Field(description="Numeric product ID (exact match)")] = None,
|
|
1047
|
+
handle: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1048
|
+
title: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1049
|
+
type: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1050
|
+
product_hash: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1051
|
+
limit: Annotated[Optional[StrictInt], Field(description="Default 100, max 500")] = None,
|
|
1052
|
+
offset: Annotated[Optional[StrictInt], Field(description="Default 0")] = None,
|
|
1053
|
+
_request_timeout: Union[
|
|
1054
|
+
None,
|
|
1055
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1056
|
+
Tuple[
|
|
1057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1058
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1059
|
+
]
|
|
1060
|
+
] = None,
|
|
1061
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1062
|
+
_content_type: Optional[StrictStr] = None,
|
|
1063
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1064
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1065
|
+
) -> KnowledgeProductResponse:
|
|
1066
|
+
"""Get Knowledge Products
|
|
1067
|
+
|
|
1068
|
+
Query products by optional filters (prefix ILIKE on text fields, equality on product_id) scoped to a client.
|
|
1069
|
+
|
|
1070
|
+
:param client_id: Client ID
|
|
1071
|
+
:type client_id: str
|
|
1072
|
+
:param product_id: Numeric product ID (exact match)
|
|
1073
|
+
:type product_id: int
|
|
1074
|
+
:param handle: Prefix match
|
|
1075
|
+
:type handle: str
|
|
1076
|
+
:param title: Prefix match
|
|
1077
|
+
:type title: str
|
|
1078
|
+
:param type: Prefix match
|
|
1079
|
+
:type type: str
|
|
1080
|
+
:param product_hash: Prefix match
|
|
1081
|
+
:type product_hash: str
|
|
1082
|
+
:param limit: Default 100, max 500
|
|
1083
|
+
:type limit: int
|
|
1084
|
+
:param offset: Default 0
|
|
1085
|
+
:type offset: int
|
|
1086
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1087
|
+
number provided, it will be total request
|
|
1088
|
+
timeout. It can also be a pair (tuple) of
|
|
1089
|
+
(connection, read) timeouts.
|
|
1090
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1091
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1092
|
+
request; this effectively ignores the
|
|
1093
|
+
authentication in the spec for a single request.
|
|
1094
|
+
:type _request_auth: dict, optional
|
|
1095
|
+
:param _content_type: force content-type for the request.
|
|
1096
|
+
:type _content_type: str, Optional
|
|
1097
|
+
:param _headers: set to override the headers for a single
|
|
1098
|
+
request; this effectively ignores the headers
|
|
1099
|
+
in the spec for a single request.
|
|
1100
|
+
:type _headers: dict, optional
|
|
1101
|
+
:param _host_index: set to override the host_index for a single
|
|
1102
|
+
request; this effectively ignores the host_index
|
|
1103
|
+
in the spec for a single request.
|
|
1104
|
+
:type _host_index: int, optional
|
|
1105
|
+
:return: Returns the result object.
|
|
1106
|
+
""" # noqa: E501
|
|
1107
|
+
|
|
1108
|
+
_param = self._api_v1_knowledge_extract_product_get_serialize(
|
|
1109
|
+
client_id=client_id,
|
|
1110
|
+
product_id=product_id,
|
|
1111
|
+
handle=handle,
|
|
1112
|
+
title=title,
|
|
1113
|
+
type=type,
|
|
1114
|
+
product_hash=product_hash,
|
|
1115
|
+
limit=limit,
|
|
1116
|
+
offset=offset,
|
|
1117
|
+
_request_auth=_request_auth,
|
|
1118
|
+
_content_type=_content_type,
|
|
1119
|
+
_headers=_headers,
|
|
1120
|
+
_host_index=_host_index
|
|
1121
|
+
)
|
|
1122
|
+
|
|
1123
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1124
|
+
'200': "KnowledgeProductResponse",
|
|
1125
|
+
'400': "KnowledgeProductResponse",
|
|
1126
|
+
'503': "KnowledgeProductResponse",
|
|
1127
|
+
}
|
|
1128
|
+
response_data = self.api_client.call_api(
|
|
1129
|
+
*_param,
|
|
1130
|
+
_request_timeout=_request_timeout
|
|
1131
|
+
)
|
|
1132
|
+
response_data.read()
|
|
1133
|
+
return self.api_client.response_deserialize(
|
|
1134
|
+
response_data=response_data,
|
|
1135
|
+
response_types_map=_response_types_map,
|
|
1136
|
+
).data
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
@validate_call
|
|
1140
|
+
def api_v1_knowledge_extract_product_get_with_http_info(
|
|
1141
|
+
self,
|
|
1142
|
+
client_id: Annotated[Optional[StrictStr], Field(description="Client ID")] = None,
|
|
1143
|
+
product_id: Annotated[Optional[StrictInt], Field(description="Numeric product ID (exact match)")] = None,
|
|
1144
|
+
handle: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1145
|
+
title: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1146
|
+
type: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1147
|
+
product_hash: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1148
|
+
limit: Annotated[Optional[StrictInt], Field(description="Default 100, max 500")] = None,
|
|
1149
|
+
offset: Annotated[Optional[StrictInt], Field(description="Default 0")] = None,
|
|
1150
|
+
_request_timeout: Union[
|
|
1151
|
+
None,
|
|
1152
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1153
|
+
Tuple[
|
|
1154
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1155
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1156
|
+
]
|
|
1157
|
+
] = None,
|
|
1158
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1159
|
+
_content_type: Optional[StrictStr] = None,
|
|
1160
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1161
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1162
|
+
) -> ApiResponse[KnowledgeProductResponse]:
|
|
1163
|
+
"""Get Knowledge Products
|
|
1164
|
+
|
|
1165
|
+
Query products by optional filters (prefix ILIKE on text fields, equality on product_id) scoped to a client.
|
|
1166
|
+
|
|
1167
|
+
:param client_id: Client ID
|
|
1168
|
+
:type client_id: str
|
|
1169
|
+
:param product_id: Numeric product ID (exact match)
|
|
1170
|
+
:type product_id: int
|
|
1171
|
+
:param handle: Prefix match
|
|
1172
|
+
:type handle: str
|
|
1173
|
+
:param title: Prefix match
|
|
1174
|
+
:type title: str
|
|
1175
|
+
:param type: Prefix match
|
|
1176
|
+
:type type: str
|
|
1177
|
+
:param product_hash: Prefix match
|
|
1178
|
+
:type product_hash: str
|
|
1179
|
+
:param limit: Default 100, max 500
|
|
1180
|
+
:type limit: int
|
|
1181
|
+
:param offset: Default 0
|
|
1182
|
+
:type offset: int
|
|
1183
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1184
|
+
number provided, it will be total request
|
|
1185
|
+
timeout. It can also be a pair (tuple) of
|
|
1186
|
+
(connection, read) timeouts.
|
|
1187
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1188
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1189
|
+
request; this effectively ignores the
|
|
1190
|
+
authentication in the spec for a single request.
|
|
1191
|
+
:type _request_auth: dict, optional
|
|
1192
|
+
:param _content_type: force content-type for the request.
|
|
1193
|
+
:type _content_type: str, Optional
|
|
1194
|
+
:param _headers: set to override the headers for a single
|
|
1195
|
+
request; this effectively ignores the headers
|
|
1196
|
+
in the spec for a single request.
|
|
1197
|
+
:type _headers: dict, optional
|
|
1198
|
+
:param _host_index: set to override the host_index for a single
|
|
1199
|
+
request; this effectively ignores the host_index
|
|
1200
|
+
in the spec for a single request.
|
|
1201
|
+
:type _host_index: int, optional
|
|
1202
|
+
:return: Returns the result object.
|
|
1203
|
+
""" # noqa: E501
|
|
1204
|
+
|
|
1205
|
+
_param = self._api_v1_knowledge_extract_product_get_serialize(
|
|
1206
|
+
client_id=client_id,
|
|
1207
|
+
product_id=product_id,
|
|
1208
|
+
handle=handle,
|
|
1209
|
+
title=title,
|
|
1210
|
+
type=type,
|
|
1211
|
+
product_hash=product_hash,
|
|
1212
|
+
limit=limit,
|
|
1213
|
+
offset=offset,
|
|
1214
|
+
_request_auth=_request_auth,
|
|
1215
|
+
_content_type=_content_type,
|
|
1216
|
+
_headers=_headers,
|
|
1217
|
+
_host_index=_host_index
|
|
1218
|
+
)
|
|
1219
|
+
|
|
1220
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1221
|
+
'200': "KnowledgeProductResponse",
|
|
1222
|
+
'400': "KnowledgeProductResponse",
|
|
1223
|
+
'503': "KnowledgeProductResponse",
|
|
1224
|
+
}
|
|
1225
|
+
response_data = self.api_client.call_api(
|
|
1226
|
+
*_param,
|
|
1227
|
+
_request_timeout=_request_timeout
|
|
1228
|
+
)
|
|
1229
|
+
response_data.read()
|
|
1230
|
+
return self.api_client.response_deserialize(
|
|
1231
|
+
response_data=response_data,
|
|
1232
|
+
response_types_map=_response_types_map,
|
|
1233
|
+
)
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
@validate_call
|
|
1237
|
+
def api_v1_knowledge_extract_product_get_without_preload_content(
|
|
1238
|
+
self,
|
|
1239
|
+
client_id: Annotated[Optional[StrictStr], Field(description="Client ID")] = None,
|
|
1240
|
+
product_id: Annotated[Optional[StrictInt], Field(description="Numeric product ID (exact match)")] = None,
|
|
1241
|
+
handle: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1242
|
+
title: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1243
|
+
type: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1244
|
+
product_hash: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1245
|
+
limit: Annotated[Optional[StrictInt], Field(description="Default 100, max 500")] = None,
|
|
1246
|
+
offset: Annotated[Optional[StrictInt], Field(description="Default 0")] = None,
|
|
1247
|
+
_request_timeout: Union[
|
|
1248
|
+
None,
|
|
1249
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1250
|
+
Tuple[
|
|
1251
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1252
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1253
|
+
]
|
|
1254
|
+
] = None,
|
|
1255
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1256
|
+
_content_type: Optional[StrictStr] = None,
|
|
1257
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1258
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1259
|
+
) -> RESTResponseType:
|
|
1260
|
+
"""Get Knowledge Products
|
|
1261
|
+
|
|
1262
|
+
Query products by optional filters (prefix ILIKE on text fields, equality on product_id) scoped to a client.
|
|
1263
|
+
|
|
1264
|
+
:param client_id: Client ID
|
|
1265
|
+
:type client_id: str
|
|
1266
|
+
:param product_id: Numeric product ID (exact match)
|
|
1267
|
+
:type product_id: int
|
|
1268
|
+
:param handle: Prefix match
|
|
1269
|
+
:type handle: str
|
|
1270
|
+
:param title: Prefix match
|
|
1271
|
+
:type title: str
|
|
1272
|
+
:param type: Prefix match
|
|
1273
|
+
:type type: str
|
|
1274
|
+
:param product_hash: Prefix match
|
|
1275
|
+
:type product_hash: str
|
|
1276
|
+
:param limit: Default 100, max 500
|
|
1277
|
+
:type limit: int
|
|
1278
|
+
:param offset: Default 0
|
|
1279
|
+
:type offset: int
|
|
1280
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1281
|
+
number provided, it will be total request
|
|
1282
|
+
timeout. It can also be a pair (tuple) of
|
|
1283
|
+
(connection, read) timeouts.
|
|
1284
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1285
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1286
|
+
request; this effectively ignores the
|
|
1287
|
+
authentication in the spec for a single request.
|
|
1288
|
+
:type _request_auth: dict, optional
|
|
1289
|
+
:param _content_type: force content-type for the request.
|
|
1290
|
+
:type _content_type: str, Optional
|
|
1291
|
+
:param _headers: set to override the headers for a single
|
|
1292
|
+
request; this effectively ignores the headers
|
|
1293
|
+
in the spec for a single request.
|
|
1294
|
+
:type _headers: dict, optional
|
|
1295
|
+
:param _host_index: set to override the host_index for a single
|
|
1296
|
+
request; this effectively ignores the host_index
|
|
1297
|
+
in the spec for a single request.
|
|
1298
|
+
:type _host_index: int, optional
|
|
1299
|
+
:return: Returns the result object.
|
|
1300
|
+
""" # noqa: E501
|
|
1301
|
+
|
|
1302
|
+
_param = self._api_v1_knowledge_extract_product_get_serialize(
|
|
1303
|
+
client_id=client_id,
|
|
1304
|
+
product_id=product_id,
|
|
1305
|
+
handle=handle,
|
|
1306
|
+
title=title,
|
|
1307
|
+
type=type,
|
|
1308
|
+
product_hash=product_hash,
|
|
1309
|
+
limit=limit,
|
|
1310
|
+
offset=offset,
|
|
1311
|
+
_request_auth=_request_auth,
|
|
1312
|
+
_content_type=_content_type,
|
|
1313
|
+
_headers=_headers,
|
|
1314
|
+
_host_index=_host_index
|
|
1315
|
+
)
|
|
1316
|
+
|
|
1317
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1318
|
+
'200': "KnowledgeProductResponse",
|
|
1319
|
+
'400': "KnowledgeProductResponse",
|
|
1320
|
+
'503': "KnowledgeProductResponse",
|
|
1321
|
+
}
|
|
1322
|
+
response_data = self.api_client.call_api(
|
|
1323
|
+
*_param,
|
|
1324
|
+
_request_timeout=_request_timeout
|
|
1325
|
+
)
|
|
1326
|
+
return response_data.response
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
def _api_v1_knowledge_extract_product_get_serialize(
|
|
1330
|
+
self,
|
|
1331
|
+
client_id,
|
|
1332
|
+
product_id,
|
|
1333
|
+
handle,
|
|
1334
|
+
title,
|
|
1335
|
+
type,
|
|
1336
|
+
product_hash,
|
|
1337
|
+
limit,
|
|
1338
|
+
offset,
|
|
1339
|
+
_request_auth,
|
|
1340
|
+
_content_type,
|
|
1341
|
+
_headers,
|
|
1342
|
+
_host_index,
|
|
1343
|
+
) -> RequestSerialized:
|
|
1344
|
+
|
|
1345
|
+
_host = None
|
|
1346
|
+
|
|
1347
|
+
_collection_formats: Dict[str, str] = {
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
_path_params: Dict[str, str] = {}
|
|
1351
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1352
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1353
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1354
|
+
_files: Dict[
|
|
1355
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1356
|
+
] = {}
|
|
1357
|
+
_body_params: Optional[bytes] = None
|
|
1358
|
+
|
|
1359
|
+
# process the path parameters
|
|
1360
|
+
# process the query parameters
|
|
1361
|
+
if client_id is not None:
|
|
1362
|
+
|
|
1363
|
+
_query_params.append(('clientId', client_id))
|
|
1364
|
+
|
|
1365
|
+
if product_id is not None:
|
|
1366
|
+
|
|
1367
|
+
_query_params.append(('productId', product_id))
|
|
1368
|
+
|
|
1369
|
+
if handle is not None:
|
|
1370
|
+
|
|
1371
|
+
_query_params.append(('handle', handle))
|
|
1372
|
+
|
|
1373
|
+
if title is not None:
|
|
1374
|
+
|
|
1375
|
+
_query_params.append(('title', title))
|
|
1376
|
+
|
|
1377
|
+
if type is not None:
|
|
1378
|
+
|
|
1379
|
+
_query_params.append(('type', type))
|
|
1380
|
+
|
|
1381
|
+
if product_hash is not None:
|
|
1382
|
+
|
|
1383
|
+
_query_params.append(('productHash', product_hash))
|
|
1384
|
+
|
|
1385
|
+
if limit is not None:
|
|
1386
|
+
|
|
1387
|
+
_query_params.append(('limit', limit))
|
|
1388
|
+
|
|
1389
|
+
if offset is not None:
|
|
1390
|
+
|
|
1391
|
+
_query_params.append(('offset', offset))
|
|
1392
|
+
|
|
1393
|
+
# process the header parameters
|
|
1394
|
+
# process the form parameters
|
|
1395
|
+
# process the body parameter
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
# set the HTTP header `Accept`
|
|
1399
|
+
if 'Accept' not in _header_params:
|
|
1400
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1401
|
+
[
|
|
1402
|
+
'application/json'
|
|
1403
|
+
]
|
|
1404
|
+
)
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
# authentication setting
|
|
1408
|
+
_auth_settings: List[str] = [
|
|
1409
|
+
'TokenAuth'
|
|
1410
|
+
]
|
|
1411
|
+
|
|
1412
|
+
return self.api_client.param_serialize(
|
|
1413
|
+
method='GET',
|
|
1414
|
+
resource_path='/api/v1/knowledge/extract/product/',
|
|
1415
|
+
path_params=_path_params,
|
|
1416
|
+
query_params=_query_params,
|
|
1417
|
+
header_params=_header_params,
|
|
1418
|
+
body=_body_params,
|
|
1419
|
+
post_params=_form_params,
|
|
1420
|
+
files=_files,
|
|
1421
|
+
auth_settings=_auth_settings,
|
|
1422
|
+
collection_formats=_collection_formats,
|
|
1423
|
+
_host=_host,
|
|
1424
|
+
_request_auth=_request_auth
|
|
1425
|
+
)
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
@validate_call
|
|
1431
|
+
def api_v1_knowledge_extract_store_get(
|
|
1432
|
+
self,
|
|
1433
|
+
client_id: Annotated[StrictStr, Field(description="Client ID (required)")],
|
|
1434
|
+
entity_id: Annotated[Optional[StrictStr], Field(description="Exact match on entity_id")] = None,
|
|
1435
|
+
name: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1436
|
+
domain: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1437
|
+
title: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1438
|
+
limit: Annotated[Optional[StrictInt], Field(description="Default 100, max 500")] = None,
|
|
1439
|
+
offset: Annotated[Optional[StrictInt], Field(description="Default 0")] = None,
|
|
1440
|
+
_request_timeout: Union[
|
|
1441
|
+
None,
|
|
1442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1443
|
+
Tuple[
|
|
1444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1445
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1446
|
+
]
|
|
1447
|
+
] = None,
|
|
1448
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1449
|
+
_content_type: Optional[StrictStr] = None,
|
|
1450
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1451
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1452
|
+
) -> KnowledgeStoreResponse:
|
|
1453
|
+
"""Get Knowledge Stores
|
|
1454
|
+
|
|
1455
|
+
Query stores by optional filters (prefix ILIKE on name/domain/title; exact match on entity_id) scoped to a client.
|
|
1456
|
+
|
|
1457
|
+
:param client_id: Client ID (required) (required)
|
|
1458
|
+
:type client_id: str
|
|
1459
|
+
:param entity_id: Exact match on entity_id
|
|
1460
|
+
:type entity_id: str
|
|
1461
|
+
:param name: Prefix match
|
|
1462
|
+
:type name: str
|
|
1463
|
+
:param domain: Prefix match
|
|
1464
|
+
:type domain: str
|
|
1465
|
+
:param title: Prefix match
|
|
1466
|
+
:type title: str
|
|
1467
|
+
:param limit: Default 100, max 500
|
|
1468
|
+
:type limit: int
|
|
1469
|
+
:param offset: Default 0
|
|
1470
|
+
:type offset: int
|
|
1471
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1472
|
+
number provided, it will be total request
|
|
1473
|
+
timeout. It can also be a pair (tuple) of
|
|
1474
|
+
(connection, read) timeouts.
|
|
1475
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1476
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1477
|
+
request; this effectively ignores the
|
|
1478
|
+
authentication in the spec for a single request.
|
|
1479
|
+
:type _request_auth: dict, optional
|
|
1480
|
+
:param _content_type: force content-type for the request.
|
|
1481
|
+
:type _content_type: str, Optional
|
|
1482
|
+
:param _headers: set to override the headers for a single
|
|
1483
|
+
request; this effectively ignores the headers
|
|
1484
|
+
in the spec for a single request.
|
|
1485
|
+
:type _headers: dict, optional
|
|
1486
|
+
:param _host_index: set to override the host_index for a single
|
|
1487
|
+
request; this effectively ignores the host_index
|
|
1488
|
+
in the spec for a single request.
|
|
1489
|
+
:type _host_index: int, optional
|
|
1490
|
+
:return: Returns the result object.
|
|
1491
|
+
""" # noqa: E501
|
|
1492
|
+
|
|
1493
|
+
_param = self._api_v1_knowledge_extract_store_get_serialize(
|
|
1494
|
+
client_id=client_id,
|
|
1495
|
+
entity_id=entity_id,
|
|
1496
|
+
name=name,
|
|
1497
|
+
domain=domain,
|
|
1498
|
+
title=title,
|
|
1499
|
+
limit=limit,
|
|
1500
|
+
offset=offset,
|
|
1501
|
+
_request_auth=_request_auth,
|
|
1502
|
+
_content_type=_content_type,
|
|
1503
|
+
_headers=_headers,
|
|
1504
|
+
_host_index=_host_index
|
|
1505
|
+
)
|
|
1506
|
+
|
|
1507
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1508
|
+
'200': "KnowledgeStoreResponse",
|
|
1509
|
+
'400': "KnowledgeStoreResponse",
|
|
1510
|
+
'503': "KnowledgeStoreResponse",
|
|
1511
|
+
}
|
|
1512
|
+
response_data = self.api_client.call_api(
|
|
1513
|
+
*_param,
|
|
1514
|
+
_request_timeout=_request_timeout
|
|
1515
|
+
)
|
|
1516
|
+
response_data.read()
|
|
1517
|
+
return self.api_client.response_deserialize(
|
|
1518
|
+
response_data=response_data,
|
|
1519
|
+
response_types_map=_response_types_map,
|
|
1520
|
+
).data
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
@validate_call
|
|
1524
|
+
def api_v1_knowledge_extract_store_get_with_http_info(
|
|
1525
|
+
self,
|
|
1526
|
+
client_id: Annotated[StrictStr, Field(description="Client ID (required)")],
|
|
1527
|
+
entity_id: Annotated[Optional[StrictStr], Field(description="Exact match on entity_id")] = None,
|
|
1528
|
+
name: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1529
|
+
domain: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1530
|
+
title: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1531
|
+
limit: Annotated[Optional[StrictInt], Field(description="Default 100, max 500")] = None,
|
|
1532
|
+
offset: Annotated[Optional[StrictInt], Field(description="Default 0")] = None,
|
|
1533
|
+
_request_timeout: Union[
|
|
1534
|
+
None,
|
|
1535
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1536
|
+
Tuple[
|
|
1537
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1538
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1539
|
+
]
|
|
1540
|
+
] = None,
|
|
1541
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1542
|
+
_content_type: Optional[StrictStr] = None,
|
|
1543
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1544
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1545
|
+
) -> ApiResponse[KnowledgeStoreResponse]:
|
|
1546
|
+
"""Get Knowledge Stores
|
|
1547
|
+
|
|
1548
|
+
Query stores by optional filters (prefix ILIKE on name/domain/title; exact match on entity_id) scoped to a client.
|
|
1549
|
+
|
|
1550
|
+
:param client_id: Client ID (required) (required)
|
|
1551
|
+
:type client_id: str
|
|
1552
|
+
:param entity_id: Exact match on entity_id
|
|
1553
|
+
:type entity_id: str
|
|
1554
|
+
:param name: Prefix match
|
|
1555
|
+
:type name: str
|
|
1556
|
+
:param domain: Prefix match
|
|
1557
|
+
:type domain: str
|
|
1558
|
+
:param title: Prefix match
|
|
1559
|
+
:type title: str
|
|
1560
|
+
:param limit: Default 100, max 500
|
|
1561
|
+
:type limit: int
|
|
1562
|
+
:param offset: Default 0
|
|
1563
|
+
:type offset: int
|
|
1564
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1565
|
+
number provided, it will be total request
|
|
1566
|
+
timeout. It can also be a pair (tuple) of
|
|
1567
|
+
(connection, read) timeouts.
|
|
1568
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1569
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1570
|
+
request; this effectively ignores the
|
|
1571
|
+
authentication in the spec for a single request.
|
|
1572
|
+
:type _request_auth: dict, optional
|
|
1573
|
+
:param _content_type: force content-type for the request.
|
|
1574
|
+
:type _content_type: str, Optional
|
|
1575
|
+
:param _headers: set to override the headers for a single
|
|
1576
|
+
request; this effectively ignores the headers
|
|
1577
|
+
in the spec for a single request.
|
|
1578
|
+
:type _headers: dict, optional
|
|
1579
|
+
:param _host_index: set to override the host_index for a single
|
|
1580
|
+
request; this effectively ignores the host_index
|
|
1581
|
+
in the spec for a single request.
|
|
1582
|
+
:type _host_index: int, optional
|
|
1583
|
+
:return: Returns the result object.
|
|
1584
|
+
""" # noqa: E501
|
|
1585
|
+
|
|
1586
|
+
_param = self._api_v1_knowledge_extract_store_get_serialize(
|
|
1587
|
+
client_id=client_id,
|
|
1588
|
+
entity_id=entity_id,
|
|
1589
|
+
name=name,
|
|
1590
|
+
domain=domain,
|
|
1591
|
+
title=title,
|
|
1592
|
+
limit=limit,
|
|
1593
|
+
offset=offset,
|
|
1594
|
+
_request_auth=_request_auth,
|
|
1595
|
+
_content_type=_content_type,
|
|
1596
|
+
_headers=_headers,
|
|
1597
|
+
_host_index=_host_index
|
|
1598
|
+
)
|
|
1599
|
+
|
|
1600
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1601
|
+
'200': "KnowledgeStoreResponse",
|
|
1602
|
+
'400': "KnowledgeStoreResponse",
|
|
1603
|
+
'503': "KnowledgeStoreResponse",
|
|
1604
|
+
}
|
|
1605
|
+
response_data = self.api_client.call_api(
|
|
1606
|
+
*_param,
|
|
1607
|
+
_request_timeout=_request_timeout
|
|
1608
|
+
)
|
|
1609
|
+
response_data.read()
|
|
1610
|
+
return self.api_client.response_deserialize(
|
|
1611
|
+
response_data=response_data,
|
|
1612
|
+
response_types_map=_response_types_map,
|
|
1613
|
+
)
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
@validate_call
|
|
1617
|
+
def api_v1_knowledge_extract_store_get_without_preload_content(
|
|
1618
|
+
self,
|
|
1619
|
+
client_id: Annotated[StrictStr, Field(description="Client ID (required)")],
|
|
1620
|
+
entity_id: Annotated[Optional[StrictStr], Field(description="Exact match on entity_id")] = None,
|
|
1621
|
+
name: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1622
|
+
domain: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1623
|
+
title: Annotated[Optional[StrictStr], Field(description="Prefix match")] = None,
|
|
1624
|
+
limit: Annotated[Optional[StrictInt], Field(description="Default 100, max 500")] = None,
|
|
1625
|
+
offset: Annotated[Optional[StrictInt], Field(description="Default 0")] = None,
|
|
1626
|
+
_request_timeout: Union[
|
|
1627
|
+
None,
|
|
1628
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1629
|
+
Tuple[
|
|
1630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1631
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1632
|
+
]
|
|
1633
|
+
] = None,
|
|
1634
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1635
|
+
_content_type: Optional[StrictStr] = None,
|
|
1636
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1637
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1638
|
+
) -> RESTResponseType:
|
|
1639
|
+
"""Get Knowledge Stores
|
|
1640
|
+
|
|
1641
|
+
Query stores by optional filters (prefix ILIKE on name/domain/title; exact match on entity_id) scoped to a client.
|
|
1642
|
+
|
|
1643
|
+
:param client_id: Client ID (required) (required)
|
|
1644
|
+
:type client_id: str
|
|
1645
|
+
:param entity_id: Exact match on entity_id
|
|
1646
|
+
:type entity_id: str
|
|
1647
|
+
:param name: Prefix match
|
|
1648
|
+
:type name: str
|
|
1649
|
+
:param domain: Prefix match
|
|
1650
|
+
:type domain: str
|
|
1651
|
+
:param title: Prefix match
|
|
1652
|
+
:type title: str
|
|
1653
|
+
:param limit: Default 100, max 500
|
|
1654
|
+
:type limit: int
|
|
1655
|
+
:param offset: Default 0
|
|
1656
|
+
:type offset: int
|
|
1657
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1658
|
+
number provided, it will be total request
|
|
1659
|
+
timeout. It can also be a pair (tuple) of
|
|
1660
|
+
(connection, read) timeouts.
|
|
1661
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1662
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1663
|
+
request; this effectively ignores the
|
|
1664
|
+
authentication in the spec for a single request.
|
|
1665
|
+
:type _request_auth: dict, optional
|
|
1666
|
+
:param _content_type: force content-type for the request.
|
|
1667
|
+
:type _content_type: str, Optional
|
|
1668
|
+
:param _headers: set to override the headers for a single
|
|
1669
|
+
request; this effectively ignores the headers
|
|
1670
|
+
in the spec for a single request.
|
|
1671
|
+
:type _headers: dict, optional
|
|
1672
|
+
:param _host_index: set to override the host_index for a single
|
|
1673
|
+
request; this effectively ignores the host_index
|
|
1674
|
+
in the spec for a single request.
|
|
1675
|
+
:type _host_index: int, optional
|
|
1676
|
+
:return: Returns the result object.
|
|
1677
|
+
""" # noqa: E501
|
|
1678
|
+
|
|
1679
|
+
_param = self._api_v1_knowledge_extract_store_get_serialize(
|
|
1680
|
+
client_id=client_id,
|
|
1681
|
+
entity_id=entity_id,
|
|
1682
|
+
name=name,
|
|
1683
|
+
domain=domain,
|
|
1684
|
+
title=title,
|
|
1685
|
+
limit=limit,
|
|
1686
|
+
offset=offset,
|
|
1687
|
+
_request_auth=_request_auth,
|
|
1688
|
+
_content_type=_content_type,
|
|
1689
|
+
_headers=_headers,
|
|
1690
|
+
_host_index=_host_index
|
|
1691
|
+
)
|
|
1692
|
+
|
|
1693
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1694
|
+
'200': "KnowledgeStoreResponse",
|
|
1695
|
+
'400': "KnowledgeStoreResponse",
|
|
1696
|
+
'503': "KnowledgeStoreResponse",
|
|
1697
|
+
}
|
|
1698
|
+
response_data = self.api_client.call_api(
|
|
1699
|
+
*_param,
|
|
1700
|
+
_request_timeout=_request_timeout
|
|
1701
|
+
)
|
|
1702
|
+
return response_data.response
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
def _api_v1_knowledge_extract_store_get_serialize(
|
|
1706
|
+
self,
|
|
1707
|
+
client_id,
|
|
1708
|
+
entity_id,
|
|
1709
|
+
name,
|
|
1710
|
+
domain,
|
|
1711
|
+
title,
|
|
1712
|
+
limit,
|
|
1713
|
+
offset,
|
|
1714
|
+
_request_auth,
|
|
1715
|
+
_content_type,
|
|
1716
|
+
_headers,
|
|
1717
|
+
_host_index,
|
|
1718
|
+
) -> RequestSerialized:
|
|
1719
|
+
|
|
1720
|
+
_host = None
|
|
1721
|
+
|
|
1722
|
+
_collection_formats: Dict[str, str] = {
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
_path_params: Dict[str, str] = {}
|
|
1726
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1727
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1728
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1729
|
+
_files: Dict[
|
|
1730
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1731
|
+
] = {}
|
|
1732
|
+
_body_params: Optional[bytes] = None
|
|
1733
|
+
|
|
1734
|
+
# process the path parameters
|
|
1735
|
+
# process the query parameters
|
|
1736
|
+
if client_id is not None:
|
|
1737
|
+
|
|
1738
|
+
_query_params.append(('clientId', client_id))
|
|
1739
|
+
|
|
1740
|
+
if entity_id is not None:
|
|
1741
|
+
|
|
1742
|
+
_query_params.append(('entityId', entity_id))
|
|
1743
|
+
|
|
1744
|
+
if name is not None:
|
|
1745
|
+
|
|
1746
|
+
_query_params.append(('name', name))
|
|
1747
|
+
|
|
1748
|
+
if domain is not None:
|
|
1749
|
+
|
|
1750
|
+
_query_params.append(('domain', domain))
|
|
1751
|
+
|
|
1752
|
+
if title is not None:
|
|
1753
|
+
|
|
1754
|
+
_query_params.append(('title', title))
|
|
1755
|
+
|
|
1756
|
+
if limit is not None:
|
|
1757
|
+
|
|
1758
|
+
_query_params.append(('limit', limit))
|
|
1759
|
+
|
|
1760
|
+
if offset is not None:
|
|
1761
|
+
|
|
1762
|
+
_query_params.append(('offset', offset))
|
|
1763
|
+
|
|
1764
|
+
# process the header parameters
|
|
1765
|
+
# process the form parameters
|
|
1766
|
+
# process the body parameter
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
# set the HTTP header `Accept`
|
|
1770
|
+
if 'Accept' not in _header_params:
|
|
1771
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1772
|
+
[
|
|
1773
|
+
'application/json'
|
|
1774
|
+
]
|
|
1775
|
+
)
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
# authentication setting
|
|
1779
|
+
_auth_settings: List[str] = [
|
|
1780
|
+
'TokenAuth'
|
|
1781
|
+
]
|
|
1782
|
+
|
|
1783
|
+
return self.api_client.param_serialize(
|
|
1784
|
+
method='GET',
|
|
1785
|
+
resource_path='/api/v1/knowledge/extract/store',
|
|
1786
|
+
path_params=_path_params,
|
|
1787
|
+
query_params=_query_params,
|
|
1788
|
+
header_params=_header_params,
|
|
1789
|
+
body=_body_params,
|
|
1790
|
+
post_params=_form_params,
|
|
1791
|
+
files=_files,
|
|
1792
|
+
auth_settings=_auth_settings,
|
|
1793
|
+
collection_formats=_collection_formats,
|
|
1794
|
+
_host=_host,
|
|
1795
|
+
_request_auth=_request_auth
|
|
1796
|
+
)
|
|
1797
|
+
|
|
1798
|
+
|