ultracart-rest-sdk 4.1.21__py3-none-any.whl → 4.1.23__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.
- ultracart/__init__.py +1 -1
- ultracart/api/conversation_api.py +576 -0
- ultracart/api/customer_api.py +2 -2
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/conversation_delete_knowledge_base_document_response.py +290 -0
- ultracart/model/conversation_insert_knowledge_base_document_request.py +264 -0
- ultracart/model/conversation_insert_knowledge_base_document_response.py +298 -0
- ultracart/model/conversation_knowledge_base_document.py +288 -0
- ultracart/model/conversation_knowledge_base_document_upload_url.py +268 -0
- ultracart/model/conversation_knowledge_base_document_upload_url_response.py +292 -0
- ultracart/model/conversation_knowledge_base_documents_response.py +292 -0
- ultracart/model/custom_report_account_config.py +10 -0
- ultracart/model/custom_report_usage_breakdown.py +268 -0
- ultracart/model/customer.py +7 -0
- ultracart/model/item_shipping_method.py +4 -0
- ultracart/model/order_payment.py +1 -0
- ultracart/model/replace_order_item_id_request.py +2 -2
- ultracart/models/__init__.py +8 -0
- {ultracart_rest_sdk-4.1.21.dist-info → ultracart_rest_sdk-4.1.23.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.21.dist-info → ultracart_rest_sdk-4.1.23.dist-info}/RECORD +24 -16
- {ultracart_rest_sdk-4.1.21.dist-info → ultracart_rest_sdk-4.1.23.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.21.dist-info → ultracart_rest_sdk-4.1.23.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.21.dist-info → ultracart_rest_sdk-4.1.23.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
|
@@ -32,6 +32,7 @@ from ultracart.model.conversation_canned_message import ConversationCannedMessag
|
|
|
32
32
|
from ultracart.model.conversation_canned_message_response import ConversationCannedMessageResponse
|
|
33
33
|
from ultracart.model.conversation_canned_messages_response import ConversationCannedMessagesResponse
|
|
34
34
|
from ultracart.model.conversation_canned_messages_search import ConversationCannedMessagesSearch
|
|
35
|
+
from ultracart.model.conversation_delete_knowledge_base_document_response import ConversationDeleteKnowledgeBaseDocumentResponse
|
|
35
36
|
from ultracart.model.conversation_department import ConversationDepartment
|
|
36
37
|
from ultracart.model.conversation_department_members_response import ConversationDepartmentMembersResponse
|
|
37
38
|
from ultracart.model.conversation_department_response import ConversationDepartmentResponse
|
|
@@ -39,7 +40,11 @@ from ultracart.model.conversation_departments_response import ConversationDepart
|
|
|
39
40
|
from ultracart.model.conversation_engagement import ConversationEngagement
|
|
40
41
|
from ultracart.model.conversation_engagement_response import ConversationEngagementResponse
|
|
41
42
|
from ultracart.model.conversation_engagements_response import ConversationEngagementsResponse
|
|
43
|
+
from ultracart.model.conversation_insert_knowledge_base_document_request import ConversationInsertKnowledgeBaseDocumentRequest
|
|
44
|
+
from ultracart.model.conversation_insert_knowledge_base_document_response import ConversationInsertKnowledgeBaseDocumentResponse
|
|
42
45
|
from ultracart.model.conversation_join_request import ConversationJoinRequest
|
|
46
|
+
from ultracart.model.conversation_knowledge_base_document_upload_url_response import ConversationKnowledgeBaseDocumentUploadUrlResponse
|
|
47
|
+
from ultracart.model.conversation_knowledge_base_documents_response import ConversationKnowledgeBaseDocumentsResponse
|
|
43
48
|
from ultracart.model.conversation_locations_response import ConversationLocationsResponse
|
|
44
49
|
from ultracart.model.conversation_messages_response import ConversationMessagesResponse
|
|
45
50
|
from ultracart.model.conversation_multimedia_upload_url_response import ConversationMultimediaUploadUrlResponse
|
|
@@ -112,6 +117,64 @@ class ConversationApi(object):
|
|
|
112
117
|
if api_client is None:
|
|
113
118
|
api_client = ApiClient()
|
|
114
119
|
self.api_client = api_client
|
|
120
|
+
self.delete_agent_profile_knowledge_base_document_endpoint = _Endpoint(
|
|
121
|
+
settings={
|
|
122
|
+
'response_type': (ConversationDeleteKnowledgeBaseDocumentResponse,),
|
|
123
|
+
'auth': [
|
|
124
|
+
'ultraCartOauth',
|
|
125
|
+
'ultraCartSimpleApiKey'
|
|
126
|
+
],
|
|
127
|
+
'endpoint_path': '/conversation/agent/profiles/{user_id}/knowledge_base/{document_uuid}',
|
|
128
|
+
'operation_id': 'delete_agent_profile_knowledge_base_document',
|
|
129
|
+
'http_method': 'DELETE',
|
|
130
|
+
'servers': None,
|
|
131
|
+
},
|
|
132
|
+
params_map={
|
|
133
|
+
'all': [
|
|
134
|
+
'user_id',
|
|
135
|
+
'document_uuid',
|
|
136
|
+
],
|
|
137
|
+
'required': [
|
|
138
|
+
'user_id',
|
|
139
|
+
'document_uuid',
|
|
140
|
+
],
|
|
141
|
+
'nullable': [
|
|
142
|
+
],
|
|
143
|
+
'enum': [
|
|
144
|
+
],
|
|
145
|
+
'validation': [
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
root_map={
|
|
149
|
+
'validations': {
|
|
150
|
+
},
|
|
151
|
+
'allowed_values': {
|
|
152
|
+
},
|
|
153
|
+
'openapi_types': {
|
|
154
|
+
'user_id':
|
|
155
|
+
(int,),
|
|
156
|
+
'document_uuid':
|
|
157
|
+
(str,),
|
|
158
|
+
},
|
|
159
|
+
'attribute_map': {
|
|
160
|
+
'user_id': 'user_id',
|
|
161
|
+
'document_uuid': 'document_uuid',
|
|
162
|
+
},
|
|
163
|
+
'location_map': {
|
|
164
|
+
'user_id': 'path',
|
|
165
|
+
'document_uuid': 'path',
|
|
166
|
+
},
|
|
167
|
+
'collection_format_map': {
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
headers_map={
|
|
171
|
+
'accept': [
|
|
172
|
+
'application/json'
|
|
173
|
+
],
|
|
174
|
+
'content_type': [],
|
|
175
|
+
},
|
|
176
|
+
api_client=api_client
|
|
177
|
+
)
|
|
115
178
|
self.delete_conversation_canned_message_endpoint = _Endpoint(
|
|
116
179
|
settings={
|
|
117
180
|
'response_type': None,
|
|
@@ -780,6 +843,58 @@ class ConversationApi(object):
|
|
|
780
843
|
},
|
|
781
844
|
api_client=api_client
|
|
782
845
|
)
|
|
846
|
+
self.get_agent_profile_knowledge_base_endpoint = _Endpoint(
|
|
847
|
+
settings={
|
|
848
|
+
'response_type': (ConversationKnowledgeBaseDocumentsResponse,),
|
|
849
|
+
'auth': [
|
|
850
|
+
'ultraCartOauth',
|
|
851
|
+
'ultraCartSimpleApiKey'
|
|
852
|
+
],
|
|
853
|
+
'endpoint_path': '/conversation/agent/profiles/{user_id}/knowledge_base',
|
|
854
|
+
'operation_id': 'get_agent_profile_knowledge_base',
|
|
855
|
+
'http_method': 'GET',
|
|
856
|
+
'servers': None,
|
|
857
|
+
},
|
|
858
|
+
params_map={
|
|
859
|
+
'all': [
|
|
860
|
+
'user_id',
|
|
861
|
+
],
|
|
862
|
+
'required': [
|
|
863
|
+
'user_id',
|
|
864
|
+
],
|
|
865
|
+
'nullable': [
|
|
866
|
+
],
|
|
867
|
+
'enum': [
|
|
868
|
+
],
|
|
869
|
+
'validation': [
|
|
870
|
+
]
|
|
871
|
+
},
|
|
872
|
+
root_map={
|
|
873
|
+
'validations': {
|
|
874
|
+
},
|
|
875
|
+
'allowed_values': {
|
|
876
|
+
},
|
|
877
|
+
'openapi_types': {
|
|
878
|
+
'user_id':
|
|
879
|
+
(int,),
|
|
880
|
+
},
|
|
881
|
+
'attribute_map': {
|
|
882
|
+
'user_id': 'user_id',
|
|
883
|
+
},
|
|
884
|
+
'location_map': {
|
|
885
|
+
'user_id': 'path',
|
|
886
|
+
},
|
|
887
|
+
'collection_format_map': {
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
headers_map={
|
|
891
|
+
'accept': [
|
|
892
|
+
'application/json'
|
|
893
|
+
],
|
|
894
|
+
'content_type': [],
|
|
895
|
+
},
|
|
896
|
+
api_client=api_client
|
|
897
|
+
)
|
|
783
898
|
self.get_agent_profiles_endpoint = _Endpoint(
|
|
784
899
|
settings={
|
|
785
900
|
'response_type': (ConversationAgentProfilesResponse,),
|
|
@@ -1211,6 +1326,64 @@ class ConversationApi(object):
|
|
|
1211
1326
|
},
|
|
1212
1327
|
api_client=api_client
|
|
1213
1328
|
)
|
|
1329
|
+
self.get_conversation_knowledge_base_document_upload_url_endpoint = _Endpoint(
|
|
1330
|
+
settings={
|
|
1331
|
+
'response_type': (ConversationKnowledgeBaseDocumentUploadUrlResponse,),
|
|
1332
|
+
'auth': [
|
|
1333
|
+
'ultraCartOauth',
|
|
1334
|
+
'ultraCartSimpleApiKey'
|
|
1335
|
+
],
|
|
1336
|
+
'endpoint_path': '/conversation//rest/v2/conversation/agent/profiles/{user_id}/knowledge_base/upload_url/{extension}',
|
|
1337
|
+
'operation_id': 'get_conversation_knowledge_base_document_upload_url',
|
|
1338
|
+
'http_method': 'GET',
|
|
1339
|
+
'servers': None,
|
|
1340
|
+
},
|
|
1341
|
+
params_map={
|
|
1342
|
+
'all': [
|
|
1343
|
+
'user_id',
|
|
1344
|
+
'extension',
|
|
1345
|
+
],
|
|
1346
|
+
'required': [
|
|
1347
|
+
'user_id',
|
|
1348
|
+
'extension',
|
|
1349
|
+
],
|
|
1350
|
+
'nullable': [
|
|
1351
|
+
],
|
|
1352
|
+
'enum': [
|
|
1353
|
+
],
|
|
1354
|
+
'validation': [
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
root_map={
|
|
1358
|
+
'validations': {
|
|
1359
|
+
},
|
|
1360
|
+
'allowed_values': {
|
|
1361
|
+
},
|
|
1362
|
+
'openapi_types': {
|
|
1363
|
+
'user_id':
|
|
1364
|
+
(int,),
|
|
1365
|
+
'extension':
|
|
1366
|
+
(str,),
|
|
1367
|
+
},
|
|
1368
|
+
'attribute_map': {
|
|
1369
|
+
'user_id': 'user_id',
|
|
1370
|
+
'extension': 'extension',
|
|
1371
|
+
},
|
|
1372
|
+
'location_map': {
|
|
1373
|
+
'user_id': 'path',
|
|
1374
|
+
'extension': 'path',
|
|
1375
|
+
},
|
|
1376
|
+
'collection_format_map': {
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
headers_map={
|
|
1380
|
+
'accept': [
|
|
1381
|
+
'application/json'
|
|
1382
|
+
],
|
|
1383
|
+
'content_type': [],
|
|
1384
|
+
},
|
|
1385
|
+
api_client=api_client
|
|
1386
|
+
)
|
|
1214
1387
|
self.get_conversation_messages_endpoint = _Endpoint(
|
|
1215
1388
|
settings={
|
|
1216
1389
|
'response_type': (ConversationMessagesResponse,),
|
|
@@ -2862,6 +3035,65 @@ class ConversationApi(object):
|
|
|
2862
3035
|
},
|
|
2863
3036
|
api_client=api_client
|
|
2864
3037
|
)
|
|
3038
|
+
self.insert_agent_profile_knowledge_base_document_endpoint = _Endpoint(
|
|
3039
|
+
settings={
|
|
3040
|
+
'response_type': (ConversationInsertKnowledgeBaseDocumentResponse,),
|
|
3041
|
+
'auth': [
|
|
3042
|
+
'ultraCartOauth',
|
|
3043
|
+
'ultraCartSimpleApiKey'
|
|
3044
|
+
],
|
|
3045
|
+
'endpoint_path': '/conversation/agent/profiles/{user_id}/knowledge_base',
|
|
3046
|
+
'operation_id': 'insert_agent_profile_knowledge_base_document',
|
|
3047
|
+
'http_method': 'POST',
|
|
3048
|
+
'servers': None,
|
|
3049
|
+
},
|
|
3050
|
+
params_map={
|
|
3051
|
+
'all': [
|
|
3052
|
+
'user_id',
|
|
3053
|
+
'knowledge_base_document_request',
|
|
3054
|
+
],
|
|
3055
|
+
'required': [
|
|
3056
|
+
'user_id',
|
|
3057
|
+
'knowledge_base_document_request',
|
|
3058
|
+
],
|
|
3059
|
+
'nullable': [
|
|
3060
|
+
],
|
|
3061
|
+
'enum': [
|
|
3062
|
+
],
|
|
3063
|
+
'validation': [
|
|
3064
|
+
]
|
|
3065
|
+
},
|
|
3066
|
+
root_map={
|
|
3067
|
+
'validations': {
|
|
3068
|
+
},
|
|
3069
|
+
'allowed_values': {
|
|
3070
|
+
},
|
|
3071
|
+
'openapi_types': {
|
|
3072
|
+
'user_id':
|
|
3073
|
+
(int,),
|
|
3074
|
+
'knowledge_base_document_request':
|
|
3075
|
+
(ConversationInsertKnowledgeBaseDocumentRequest,),
|
|
3076
|
+
},
|
|
3077
|
+
'attribute_map': {
|
|
3078
|
+
'user_id': 'user_id',
|
|
3079
|
+
},
|
|
3080
|
+
'location_map': {
|
|
3081
|
+
'user_id': 'path',
|
|
3082
|
+
'knowledge_base_document_request': 'body',
|
|
3083
|
+
},
|
|
3084
|
+
'collection_format_map': {
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
headers_map={
|
|
3088
|
+
'accept': [
|
|
3089
|
+
'application/json'
|
|
3090
|
+
],
|
|
3091
|
+
'content_type': [
|
|
3092
|
+
'application/json'
|
|
3093
|
+
]
|
|
3094
|
+
},
|
|
3095
|
+
api_client=api_client
|
|
3096
|
+
)
|
|
2865
3097
|
self.insert_conversation_canned_message_endpoint = _Endpoint(
|
|
2866
3098
|
settings={
|
|
2867
3099
|
'response_type': (ConversationCannedMessageResponse,),
|
|
@@ -4689,6 +4921,93 @@ class ConversationApi(object):
|
|
|
4689
4921
|
api_client=api_client
|
|
4690
4922
|
)
|
|
4691
4923
|
|
|
4924
|
+
def delete_agent_profile_knowledge_base_document(
|
|
4925
|
+
self,
|
|
4926
|
+
user_id,
|
|
4927
|
+
document_uuid,
|
|
4928
|
+
**kwargs
|
|
4929
|
+
):
|
|
4930
|
+
"""Delete a knowledge base document # noqa: E501
|
|
4931
|
+
|
|
4932
|
+
Delete a knowledge base document # noqa: E501
|
|
4933
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4934
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4935
|
+
|
|
4936
|
+
>>> thread = api.delete_agent_profile_knowledge_base_document(user_id, document_uuid, async_req=True)
|
|
4937
|
+
>>> result = thread.get()
|
|
4938
|
+
|
|
4939
|
+
Args:
|
|
4940
|
+
user_id (int):
|
|
4941
|
+
document_uuid (str):
|
|
4942
|
+
|
|
4943
|
+
Keyword Args:
|
|
4944
|
+
_return_http_data_only (bool): response data without head status
|
|
4945
|
+
code and headers. Default is True.
|
|
4946
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
4947
|
+
will be returned without reading/decoding response data.
|
|
4948
|
+
Default is True.
|
|
4949
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
4950
|
+
one number provided, it will be total request timeout. It can also
|
|
4951
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
4952
|
+
Default is None.
|
|
4953
|
+
_check_input_type (bool): specifies if type checking
|
|
4954
|
+
should be done one the data sent to the server.
|
|
4955
|
+
Default is True.
|
|
4956
|
+
_check_return_type (bool): specifies if type checking
|
|
4957
|
+
should be done one the data received from the server.
|
|
4958
|
+
Default is True.
|
|
4959
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
4960
|
+
are serialized names, as specified in the OpenAPI document.
|
|
4961
|
+
False if the variable names in the input data
|
|
4962
|
+
are pythonic names, e.g. snake case (default)
|
|
4963
|
+
_content_type (str/None): force body content-type.
|
|
4964
|
+
Default is None and content-type will be predicted by allowed
|
|
4965
|
+
content-types and body.
|
|
4966
|
+
_host_index (int/None): specifies the index of the server
|
|
4967
|
+
that we want to use.
|
|
4968
|
+
Default is read from the configuration.
|
|
4969
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
4970
|
+
request; this effectively ignores the authentication
|
|
4971
|
+
in the spec for a single request.
|
|
4972
|
+
Default is None
|
|
4973
|
+
async_req (bool): execute request asynchronously
|
|
4974
|
+
|
|
4975
|
+
Returns:
|
|
4976
|
+
ConversationDeleteKnowledgeBaseDocumentResponse
|
|
4977
|
+
If the method is called asynchronously, returns the request
|
|
4978
|
+
thread.
|
|
4979
|
+
"""
|
|
4980
|
+
kwargs['async_req'] = kwargs.get(
|
|
4981
|
+
'async_req', False
|
|
4982
|
+
)
|
|
4983
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
4984
|
+
'_return_http_data_only', True
|
|
4985
|
+
)
|
|
4986
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
4987
|
+
'_preload_content', True
|
|
4988
|
+
)
|
|
4989
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
4990
|
+
'_request_timeout', None
|
|
4991
|
+
)
|
|
4992
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
4993
|
+
'_check_input_type', True
|
|
4994
|
+
)
|
|
4995
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
4996
|
+
'_check_return_type', True
|
|
4997
|
+
)
|
|
4998
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
4999
|
+
'_spec_property_naming', False
|
|
5000
|
+
)
|
|
5001
|
+
kwargs['_content_type'] = kwargs.get(
|
|
5002
|
+
'_content_type')
|
|
5003
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
5004
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
5005
|
+
kwargs['user_id'] = \
|
|
5006
|
+
user_id
|
|
5007
|
+
kwargs['document_uuid'] = \
|
|
5008
|
+
document_uuid
|
|
5009
|
+
return self.delete_agent_profile_knowledge_base_document_endpoint.call_with_http_info(**kwargs)
|
|
5010
|
+
|
|
4692
5011
|
def delete_conversation_canned_message(
|
|
4693
5012
|
self,
|
|
4694
5013
|
conversation_canned_message_oid,
|
|
@@ -5762,6 +6081,89 @@ class ConversationApi(object):
|
|
|
5762
6081
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
5763
6082
|
return self.get_agent_profile_endpoint.call_with_http_info(**kwargs)
|
|
5764
6083
|
|
|
6084
|
+
def get_agent_profile_knowledge_base(
|
|
6085
|
+
self,
|
|
6086
|
+
user_id,
|
|
6087
|
+
**kwargs
|
|
6088
|
+
):
|
|
6089
|
+
"""Get the list of knowledge base documents associated with this agent profile # noqa: E501
|
|
6090
|
+
|
|
6091
|
+
Retrieve knowledge base documents # noqa: E501
|
|
6092
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6093
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6094
|
+
|
|
6095
|
+
>>> thread = api.get_agent_profile_knowledge_base(user_id, async_req=True)
|
|
6096
|
+
>>> result = thread.get()
|
|
6097
|
+
|
|
6098
|
+
Args:
|
|
6099
|
+
user_id (int):
|
|
6100
|
+
|
|
6101
|
+
Keyword Args:
|
|
6102
|
+
_return_http_data_only (bool): response data without head status
|
|
6103
|
+
code and headers. Default is True.
|
|
6104
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
6105
|
+
will be returned without reading/decoding response data.
|
|
6106
|
+
Default is True.
|
|
6107
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
6108
|
+
one number provided, it will be total request timeout. It can also
|
|
6109
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
6110
|
+
Default is None.
|
|
6111
|
+
_check_input_type (bool): specifies if type checking
|
|
6112
|
+
should be done one the data sent to the server.
|
|
6113
|
+
Default is True.
|
|
6114
|
+
_check_return_type (bool): specifies if type checking
|
|
6115
|
+
should be done one the data received from the server.
|
|
6116
|
+
Default is True.
|
|
6117
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
6118
|
+
are serialized names, as specified in the OpenAPI document.
|
|
6119
|
+
False if the variable names in the input data
|
|
6120
|
+
are pythonic names, e.g. snake case (default)
|
|
6121
|
+
_content_type (str/None): force body content-type.
|
|
6122
|
+
Default is None and content-type will be predicted by allowed
|
|
6123
|
+
content-types and body.
|
|
6124
|
+
_host_index (int/None): specifies the index of the server
|
|
6125
|
+
that we want to use.
|
|
6126
|
+
Default is read from the configuration.
|
|
6127
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
6128
|
+
request; this effectively ignores the authentication
|
|
6129
|
+
in the spec for a single request.
|
|
6130
|
+
Default is None
|
|
6131
|
+
async_req (bool): execute request asynchronously
|
|
6132
|
+
|
|
6133
|
+
Returns:
|
|
6134
|
+
ConversationKnowledgeBaseDocumentsResponse
|
|
6135
|
+
If the method is called asynchronously, returns the request
|
|
6136
|
+
thread.
|
|
6137
|
+
"""
|
|
6138
|
+
kwargs['async_req'] = kwargs.get(
|
|
6139
|
+
'async_req', False
|
|
6140
|
+
)
|
|
6141
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
6142
|
+
'_return_http_data_only', True
|
|
6143
|
+
)
|
|
6144
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
6145
|
+
'_preload_content', True
|
|
6146
|
+
)
|
|
6147
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
6148
|
+
'_request_timeout', None
|
|
6149
|
+
)
|
|
6150
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
6151
|
+
'_check_input_type', True
|
|
6152
|
+
)
|
|
6153
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
6154
|
+
'_check_return_type', True
|
|
6155
|
+
)
|
|
6156
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
6157
|
+
'_spec_property_naming', False
|
|
6158
|
+
)
|
|
6159
|
+
kwargs['_content_type'] = kwargs.get(
|
|
6160
|
+
'_content_type')
|
|
6161
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
6162
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
6163
|
+
kwargs['user_id'] = \
|
|
6164
|
+
user_id
|
|
6165
|
+
return self.get_agent_profile_knowledge_base_endpoint.call_with_http_info(**kwargs)
|
|
6166
|
+
|
|
5765
6167
|
def get_agent_profiles(
|
|
5766
6168
|
self,
|
|
5767
6169
|
**kwargs
|
|
@@ -6480,6 +6882,93 @@ class ConversationApi(object):
|
|
|
6480
6882
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
6481
6883
|
return self.get_conversation_engagements_endpoint.call_with_http_info(**kwargs)
|
|
6482
6884
|
|
|
6885
|
+
def get_conversation_knowledge_base_document_upload_url(
|
|
6886
|
+
self,
|
|
6887
|
+
user_id,
|
|
6888
|
+
extension,
|
|
6889
|
+
**kwargs
|
|
6890
|
+
):
|
|
6891
|
+
"""Get a pre-signed conversation knowledge base document upload URL # noqa: E501
|
|
6892
|
+
|
|
6893
|
+
Get a pre-signed conversation knowledge base document upload URL # noqa: E501
|
|
6894
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6895
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6896
|
+
|
|
6897
|
+
>>> thread = api.get_conversation_knowledge_base_document_upload_url(user_id, extension, async_req=True)
|
|
6898
|
+
>>> result = thread.get()
|
|
6899
|
+
|
|
6900
|
+
Args:
|
|
6901
|
+
user_id (int):
|
|
6902
|
+
extension (str):
|
|
6903
|
+
|
|
6904
|
+
Keyword Args:
|
|
6905
|
+
_return_http_data_only (bool): response data without head status
|
|
6906
|
+
code and headers. Default is True.
|
|
6907
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
6908
|
+
will be returned without reading/decoding response data.
|
|
6909
|
+
Default is True.
|
|
6910
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
6911
|
+
one number provided, it will be total request timeout. It can also
|
|
6912
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
6913
|
+
Default is None.
|
|
6914
|
+
_check_input_type (bool): specifies if type checking
|
|
6915
|
+
should be done one the data sent to the server.
|
|
6916
|
+
Default is True.
|
|
6917
|
+
_check_return_type (bool): specifies if type checking
|
|
6918
|
+
should be done one the data received from the server.
|
|
6919
|
+
Default is True.
|
|
6920
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
6921
|
+
are serialized names, as specified in the OpenAPI document.
|
|
6922
|
+
False if the variable names in the input data
|
|
6923
|
+
are pythonic names, e.g. snake case (default)
|
|
6924
|
+
_content_type (str/None): force body content-type.
|
|
6925
|
+
Default is None and content-type will be predicted by allowed
|
|
6926
|
+
content-types and body.
|
|
6927
|
+
_host_index (int/None): specifies the index of the server
|
|
6928
|
+
that we want to use.
|
|
6929
|
+
Default is read from the configuration.
|
|
6930
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
6931
|
+
request; this effectively ignores the authentication
|
|
6932
|
+
in the spec for a single request.
|
|
6933
|
+
Default is None
|
|
6934
|
+
async_req (bool): execute request asynchronously
|
|
6935
|
+
|
|
6936
|
+
Returns:
|
|
6937
|
+
ConversationKnowledgeBaseDocumentUploadUrlResponse
|
|
6938
|
+
If the method is called asynchronously, returns the request
|
|
6939
|
+
thread.
|
|
6940
|
+
"""
|
|
6941
|
+
kwargs['async_req'] = kwargs.get(
|
|
6942
|
+
'async_req', False
|
|
6943
|
+
)
|
|
6944
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
6945
|
+
'_return_http_data_only', True
|
|
6946
|
+
)
|
|
6947
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
6948
|
+
'_preload_content', True
|
|
6949
|
+
)
|
|
6950
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
6951
|
+
'_request_timeout', None
|
|
6952
|
+
)
|
|
6953
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
6954
|
+
'_check_input_type', True
|
|
6955
|
+
)
|
|
6956
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
6957
|
+
'_check_return_type', True
|
|
6958
|
+
)
|
|
6959
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
6960
|
+
'_spec_property_naming', False
|
|
6961
|
+
)
|
|
6962
|
+
kwargs['_content_type'] = kwargs.get(
|
|
6963
|
+
'_content_type')
|
|
6964
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
6965
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
6966
|
+
kwargs['user_id'] = \
|
|
6967
|
+
user_id
|
|
6968
|
+
kwargs['extension'] = \
|
|
6969
|
+
extension
|
|
6970
|
+
return self.get_conversation_knowledge_base_document_upload_url_endpoint.call_with_http_info(**kwargs)
|
|
6971
|
+
|
|
6483
6972
|
def get_conversation_messages(
|
|
6484
6973
|
self,
|
|
6485
6974
|
conversation_uuid,
|
|
@@ -9157,6 +9646,93 @@ class ConversationApi(object):
|
|
|
9157
9646
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
9158
9647
|
return self.get_virtual_agent_capabilities_endpoint.call_with_http_info(**kwargs)
|
|
9159
9648
|
|
|
9649
|
+
def insert_agent_profile_knowledge_base_document(
|
|
9650
|
+
self,
|
|
9651
|
+
user_id,
|
|
9652
|
+
knowledge_base_document_request,
|
|
9653
|
+
**kwargs
|
|
9654
|
+
):
|
|
9655
|
+
"""Insert a knowledge base document # noqa: E501
|
|
9656
|
+
|
|
9657
|
+
Insert a knowledge base document # noqa: E501
|
|
9658
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9659
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9660
|
+
|
|
9661
|
+
>>> thread = api.insert_agent_profile_knowledge_base_document(user_id, knowledge_base_document_request, async_req=True)
|
|
9662
|
+
>>> result = thread.get()
|
|
9663
|
+
|
|
9664
|
+
Args:
|
|
9665
|
+
user_id (int):
|
|
9666
|
+
knowledge_base_document_request (ConversationInsertKnowledgeBaseDocumentRequest): Insert request
|
|
9667
|
+
|
|
9668
|
+
Keyword Args:
|
|
9669
|
+
_return_http_data_only (bool): response data without head status
|
|
9670
|
+
code and headers. Default is True.
|
|
9671
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
9672
|
+
will be returned without reading/decoding response data.
|
|
9673
|
+
Default is True.
|
|
9674
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
9675
|
+
one number provided, it will be total request timeout. It can also
|
|
9676
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
9677
|
+
Default is None.
|
|
9678
|
+
_check_input_type (bool): specifies if type checking
|
|
9679
|
+
should be done one the data sent to the server.
|
|
9680
|
+
Default is True.
|
|
9681
|
+
_check_return_type (bool): specifies if type checking
|
|
9682
|
+
should be done one the data received from the server.
|
|
9683
|
+
Default is True.
|
|
9684
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
9685
|
+
are serialized names, as specified in the OpenAPI document.
|
|
9686
|
+
False if the variable names in the input data
|
|
9687
|
+
are pythonic names, e.g. snake case (default)
|
|
9688
|
+
_content_type (str/None): force body content-type.
|
|
9689
|
+
Default is None and content-type will be predicted by allowed
|
|
9690
|
+
content-types and body.
|
|
9691
|
+
_host_index (int/None): specifies the index of the server
|
|
9692
|
+
that we want to use.
|
|
9693
|
+
Default is read from the configuration.
|
|
9694
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
9695
|
+
request; this effectively ignores the authentication
|
|
9696
|
+
in the spec for a single request.
|
|
9697
|
+
Default is None
|
|
9698
|
+
async_req (bool): execute request asynchronously
|
|
9699
|
+
|
|
9700
|
+
Returns:
|
|
9701
|
+
ConversationInsertKnowledgeBaseDocumentResponse
|
|
9702
|
+
If the method is called asynchronously, returns the request
|
|
9703
|
+
thread.
|
|
9704
|
+
"""
|
|
9705
|
+
kwargs['async_req'] = kwargs.get(
|
|
9706
|
+
'async_req', False
|
|
9707
|
+
)
|
|
9708
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
9709
|
+
'_return_http_data_only', True
|
|
9710
|
+
)
|
|
9711
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
9712
|
+
'_preload_content', True
|
|
9713
|
+
)
|
|
9714
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
9715
|
+
'_request_timeout', None
|
|
9716
|
+
)
|
|
9717
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
9718
|
+
'_check_input_type', True
|
|
9719
|
+
)
|
|
9720
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
9721
|
+
'_check_return_type', True
|
|
9722
|
+
)
|
|
9723
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
9724
|
+
'_spec_property_naming', False
|
|
9725
|
+
)
|
|
9726
|
+
kwargs['_content_type'] = kwargs.get(
|
|
9727
|
+
'_content_type')
|
|
9728
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
9729
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
9730
|
+
kwargs['user_id'] = \
|
|
9731
|
+
user_id
|
|
9732
|
+
kwargs['knowledge_base_document_request'] = \
|
|
9733
|
+
knowledge_base_document_request
|
|
9734
|
+
return self.insert_agent_profile_knowledge_base_document_endpoint.call_with_http_info(**kwargs)
|
|
9735
|
+
|
|
9160
9736
|
def insert_conversation_canned_message(
|
|
9161
9737
|
self,
|
|
9162
9738
|
canned_message,
|
ultracart/api/customer_api.py
CHANGED
|
@@ -243,7 +243,7 @@ class CustomerApi(object):
|
|
|
243
243
|
)
|
|
244
244
|
self.delete_wish_list_item_endpoint = _Endpoint(
|
|
245
245
|
settings={
|
|
246
|
-
'response_type':
|
|
246
|
+
'response_type': None,
|
|
247
247
|
'auth': [
|
|
248
248
|
'ultraCartOauth',
|
|
249
249
|
'ultraCartSimpleApiKey'
|
|
@@ -1895,7 +1895,7 @@ class CustomerApi(object):
|
|
|
1895
1895
|
async_req (bool): execute request asynchronously
|
|
1896
1896
|
|
|
1897
1897
|
Returns:
|
|
1898
|
-
|
|
1898
|
+
None
|
|
1899
1899
|
If the method is called asynchronously, returns the request
|
|
1900
1900
|
thread.
|
|
1901
1901
|
"""
|
ultracart/api_client.py
CHANGED
|
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
|
77
77
|
self.default_headers[header_name] = header_value
|
|
78
78
|
self.cookie = cookie
|
|
79
79
|
# Set default User-Agent.
|
|
80
|
-
self.user_agent = 'OpenAPI-Generator/4.1.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.1.23/python'
|
|
81
81
|
|
|
82
82
|
def __enter__(self):
|
|
83
83
|
return self
|
ultracart/configuration.py
CHANGED
|
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
|
|
|
422
422
|
"OS: {env}\n"\
|
|
423
423
|
"Python Version: {pyversion}\n"\
|
|
424
424
|
"Version of the API: 2.0.0\n"\
|
|
425
|
-
"SDK Package Version: 4.1.
|
|
425
|
+
"SDK Package Version: 4.1.23".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|