Skip to content

Commit d7b5449

Browse files
author
PureCloud Jenkins
committed
130.0.0
1 parent 51249f4 commit d7b5449

60 files changed

Lines changed: 3454 additions & 292 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@
588588
from .models.conversation_content_location import ConversationContentLocation
589589
from .models.conversation_content_notification_template import ConversationContentNotificationTemplate
590590
from .models.conversation_content_quick_reply import ConversationContentQuickReply
591+
from .models.conversation_content_story import ConversationContentStory
591592
from .models.conversation_deletion_protection_query import ConversationDeletionProtectionQuery
592593
from .models.conversation_detail_query_clause import ConversationDetailQueryClause
593594
from .models.conversation_detail_query_filter import ConversationDetailQueryFilter
@@ -609,6 +610,7 @@
609610
from .models.conversation_email_event_topic_uri_reference import ConversationEmailEventTopicUriReference
610611
from .models.conversation_email_event_topic_wrapup import ConversationEmailEventTopicWrapup
611612
from .models.conversation_entity_listing import ConversationEntityListing
613+
from .models.conversation_event_co_browse import ConversationEventCoBrowse
612614
from .models.conversation_event_topic_address import ConversationEventTopicAddress
613615
from .models.conversation_event_topic_after_call_work import ConversationEventTopicAfterCallWork
614616
from .models.conversation_event_topic_attachment import ConversationEventTopicAttachment
@@ -642,6 +644,7 @@
642644
from .models.conversation_event_topic_voicemail import ConversationEventTopicVoicemail
643645
from .models.conversation_event_topic_wrapup import ConversationEventTopicWrapup
644646
from .models.conversation_message_content import ConversationMessageContent
647+
from .models.conversation_message_event import ConversationMessageEvent
645648
from .models.conversation_message_event_topic_conversation_routing_data import ConversationMessageEventTopicConversationRoutingData
646649
from .models.conversation_message_event_topic_detail import ConversationMessageEventTopicDetail
647650
from .models.conversation_message_event_topic_error_body import ConversationMessageEventTopicErrorBody
@@ -1361,6 +1364,10 @@
13611364
from .models.knowledge_base_listing import KnowledgeBaseListing
13621365
from .models.knowledge_category import KnowledgeCategory
13631366
from .models.knowledge_category_request import KnowledgeCategoryRequest
1367+
from .models.knowledge_context_request import KnowledgeContextRequest
1368+
from .models.knowledge_context_response import KnowledgeContextResponse
1369+
from .models.knowledge_context_value_request import KnowledgeContextValueRequest
1370+
from .models.knowledge_context_value_response import KnowledgeContextValueResponse
13641371
from .models.knowledge_document import KnowledgeDocument
13651372
from .models.knowledge_document_bulk_request import KnowledgeDocumentBulkRequest
13661373
from .models.knowledge_document_request import KnowledgeDocumentRequest
@@ -2182,6 +2189,8 @@
21822189
from .models.selector_event_trigger import SelectorEventTrigger
21832190
from .models.send_agentless_outbound_message_request import SendAgentlessOutboundMessageRequest
21842191
from .models.send_agentless_outbound_message_response import SendAgentlessOutboundMessageResponse
2192+
from .models.sentiment_feedback import SentimentFeedback
2193+
from .models.sentiment_feedback_entity_listing import SentimentFeedbackEntityListing
21852194
from .models.sequence_schedule import SequenceSchedule
21862195
from .models.server_date import ServerDate
21872196
from .models.service_context import ServiceContext
@@ -2234,6 +2243,7 @@
22342243
from .models.sms_phone_number_entity_listing import SmsPhoneNumberEntityListing
22352244
from .models.sms_phone_number_provision import SmsPhoneNumberProvision
22362245
from .models.sms_phone_number_ref import SmsPhoneNumberRef
2246+
from .models.sms_provisioning_status import SmsProvisioningStatus
22372247
from .models.social_expression import SocialExpression
22382248
from .models.social_handle import SocialHandle
22392249
from .models.sort_item import SortItem

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def __call_api(self, resource_path, method,
295295
header_params['Cookie'] = self.cookie
296296
if header_params:
297297
header_params = self.sanitize_for_serialization(header_params)
298-
header_params['purecloud-sdk'] = '129.0.0'
298+
header_params['purecloud-sdk'] = '130.0.0'
299299

300300
# path parameters
301301
if path_params:

build/PureCloudPlatformClientV2/apis/knowledge_api.py

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,186 @@ def patch_knowledge_knowledgebase(self, knowledge_base_id, body, **kwargs):
13241324
callback=params.get('callback'))
13251325
return response
13261326

1327+
def patch_knowledge_knowledgebase_context(self, knowledge_base_id, context_id, **kwargs):
1328+
"""
1329+
Update specific context data of the knowledge base.
1330+
1331+
1332+
This method makes a synchronous HTTP request by default. To make an
1333+
asynchronous HTTP request, please define a `callback` function
1334+
to be invoked when receiving the response.
1335+
>>> def callback_function(response):
1336+
>>> pprint(response)
1337+
>>>
1338+
>>> thread = api.patch_knowledge_knowledgebase_context(knowledge_base_id, context_id, callback=callback_function)
1339+
1340+
:param callback function: The callback function
1341+
for asynchronous request. (optional)
1342+
:param str knowledge_base_id: Knowledge base ID. (required)
1343+
:param str context_id: Context ID. (required)
1344+
:param KnowledgeContextRequest body:
1345+
:return: KnowledgeContextResponse
1346+
If the method is called asynchronously,
1347+
returns the request thread.
1348+
"""
1349+
1350+
all_params = ['knowledge_base_id', 'context_id', 'body']
1351+
all_params.append('callback')
1352+
1353+
params = locals()
1354+
for key, val in iteritems(params['kwargs']):
1355+
if key not in all_params:
1356+
raise TypeError(
1357+
"Got an unexpected keyword argument '%s'"
1358+
" to method patch_knowledge_knowledgebase_context" % key
1359+
)
1360+
params[key] = val
1361+
del params['kwargs']
1362+
1363+
# verify the required parameter 'knowledge_base_id' is set
1364+
if ('knowledge_base_id' not in params) or (params['knowledge_base_id'] is None):
1365+
raise ValueError("Missing the required parameter `knowledge_base_id` when calling `patch_knowledge_knowledgebase_context`")
1366+
# verify the required parameter 'context_id' is set
1367+
if ('context_id' not in params) or (params['context_id'] is None):
1368+
raise ValueError("Missing the required parameter `context_id` when calling `patch_knowledge_knowledgebase_context`")
1369+
1370+
1371+
resource_path = '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/contexts/{contextId}'.replace('{format}', 'json')
1372+
path_params = {}
1373+
if 'knowledge_base_id' in params:
1374+
path_params['knowledgeBaseId'] = params['knowledge_base_id']
1375+
if 'context_id' in params:
1376+
path_params['contextId'] = params['context_id']
1377+
1378+
query_params = {}
1379+
1380+
header_params = {}
1381+
1382+
form_params = []
1383+
local_var_files = {}
1384+
1385+
body_params = None
1386+
if 'body' in params:
1387+
body_params = params['body']
1388+
1389+
# HTTP header `Accept`
1390+
header_params['Accept'] = self.api_client.\
1391+
select_header_accept(['application/json'])
1392+
if not header_params['Accept']:
1393+
del header_params['Accept']
1394+
1395+
# HTTP header `Content-Type`
1396+
header_params['Content-Type'] = self.api_client.\
1397+
select_header_content_type(['application/json'])
1398+
1399+
# Authentication setting
1400+
auth_settings = ['PureCloud OAuth']
1401+
1402+
response = self.api_client.call_api(resource_path, 'PATCH',
1403+
path_params,
1404+
query_params,
1405+
header_params,
1406+
body=body_params,
1407+
post_params=form_params,
1408+
files=local_var_files,
1409+
response_type='KnowledgeContextResponse',
1410+
auth_settings=auth_settings,
1411+
callback=params.get('callback'))
1412+
return response
1413+
1414+
def patch_knowledge_knowledgebase_context_value(self, knowledge_base_id, context_id, context_value_id, **kwargs):
1415+
"""
1416+
Update context value.
1417+
1418+
1419+
This method makes a synchronous HTTP request by default. To make an
1420+
asynchronous HTTP request, please define a `callback` function
1421+
to be invoked when receiving the response.
1422+
>>> def callback_function(response):
1423+
>>> pprint(response)
1424+
>>>
1425+
>>> thread = api.patch_knowledge_knowledgebase_context_value(knowledge_base_id, context_id, context_value_id, callback=callback_function)
1426+
1427+
:param callback function: The callback function
1428+
for asynchronous request. (optional)
1429+
:param str knowledge_base_id: Knowledge base ID. (required)
1430+
:param str context_id: Context ID. (required)
1431+
:param str context_value_id: Context Value ID. (required)
1432+
:param KnowledgeContextValueRequest body:
1433+
:return: KnowledgeContextValueResponse
1434+
If the method is called asynchronously,
1435+
returns the request thread.
1436+
"""
1437+
1438+
all_params = ['knowledge_base_id', 'context_id', 'context_value_id', 'body']
1439+
all_params.append('callback')
1440+
1441+
params = locals()
1442+
for key, val in iteritems(params['kwargs']):
1443+
if key not in all_params:
1444+
raise TypeError(
1445+
"Got an unexpected keyword argument '%s'"
1446+
" to method patch_knowledge_knowledgebase_context_value" % key
1447+
)
1448+
params[key] = val
1449+
del params['kwargs']
1450+
1451+
# verify the required parameter 'knowledge_base_id' is set
1452+
if ('knowledge_base_id' not in params) or (params['knowledge_base_id'] is None):
1453+
raise ValueError("Missing the required parameter `knowledge_base_id` when calling `patch_knowledge_knowledgebase_context_value`")
1454+
# verify the required parameter 'context_id' is set
1455+
if ('context_id' not in params) or (params['context_id'] is None):
1456+
raise ValueError("Missing the required parameter `context_id` when calling `patch_knowledge_knowledgebase_context_value`")
1457+
# verify the required parameter 'context_value_id' is set
1458+
if ('context_value_id' not in params) or (params['context_value_id'] is None):
1459+
raise ValueError("Missing the required parameter `context_value_id` when calling `patch_knowledge_knowledgebase_context_value`")
1460+
1461+
1462+
resource_path = '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/contexts/{contextId}/values/{contextValueId}'.replace('{format}', 'json')
1463+
path_params = {}
1464+
if 'knowledge_base_id' in params:
1465+
path_params['knowledgeBaseId'] = params['knowledge_base_id']
1466+
if 'context_id' in params:
1467+
path_params['contextId'] = params['context_id']
1468+
if 'context_value_id' in params:
1469+
path_params['contextValueId'] = params['context_value_id']
1470+
1471+
query_params = {}
1472+
1473+
header_params = {}
1474+
1475+
form_params = []
1476+
local_var_files = {}
1477+
1478+
body_params = None
1479+
if 'body' in params:
1480+
body_params = params['body']
1481+
1482+
# HTTP header `Accept`
1483+
header_params['Accept'] = self.api_client.\
1484+
select_header_accept(['application/json'])
1485+
if not header_params['Accept']:
1486+
del header_params['Accept']
1487+
1488+
# HTTP header `Content-Type`
1489+
header_params['Content-Type'] = self.api_client.\
1490+
select_header_content_type(['application/json'])
1491+
1492+
# Authentication setting
1493+
auth_settings = ['PureCloud OAuth']
1494+
1495+
response = self.api_client.call_api(resource_path, 'PATCH',
1496+
path_params,
1497+
query_params,
1498+
header_params,
1499+
body=body_params,
1500+
post_params=form_params,
1501+
files=local_var_files,
1502+
response_type='KnowledgeContextValueResponse',
1503+
auth_settings=auth_settings,
1504+
callback=params.get('callback'))
1505+
return response
1506+
13271507
def patch_knowledge_knowledgebase_language_category(self, category_id, knowledge_base_id, language_code, body, **kwargs):
13281508
"""
13291509
Update category

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,12 +941,13 @@ def delete_routing_sms_phonenumber(self, address_id, **kwargs):
941941
:param callback function: The callback function
942942
for asynchronous request. (optional)
943943
:param str address_id: Address ID (required)
944+
:param bool async: Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number.
944945
:return: None
945946
If the method is called asynchronously,
946947
returns the request thread.
947948
"""
948949

949-
all_params = ['address_id']
950+
all_params = ['address_id', 'async']
950951
all_params.append('callback')
951952

952953
params = locals()
@@ -970,6 +971,8 @@ def delete_routing_sms_phonenumber(self, address_id, **kwargs):
970971
path_params['addressId'] = params['address_id']
971972

972973
query_params = {}
974+
if 'async' in params:
975+
query_params['async'] = params['async']
973976

974977
header_params = {}
975978

@@ -7361,12 +7364,13 @@ def post_routing_sms_phonenumbers(self, body, **kwargs):
73617364
:param callback function: The callback function
73627365
for asynchronous request. (optional)
73637366
:param SmsPhoneNumberProvision body: SmsPhoneNumber (required)
7367+
:param bool async: Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request.
73647368
:return: SmsPhoneNumber
73657369
If the method is called asynchronously,
73667370
returns the request thread.
73677371
"""
73687372

7369-
all_params = ['body']
7373+
all_params = ['body', 'async']
73707374
all_params.append('callback')
73717375

73727376
params = locals()
@@ -7388,6 +7392,8 @@ def post_routing_sms_phonenumbers(self, body, **kwargs):
73887392
path_params = {}
73897393

73907394
query_params = {}
7395+
if 'async' in params:
7396+
query_params['async'] = params['async']
73917397

73927398
header_params = {}
73937399

@@ -8100,12 +8106,13 @@ def put_routing_sms_phonenumber(self, address_id, body, **kwargs):
81008106
for asynchronous request. (optional)
81018107
:param str address_id: Address ID (required)
81028108
:param SmsPhoneNumber body: SmsPhoneNumber (required)
8109+
:param bool async: Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request.
81038110
:return: SmsPhoneNumber
81048111
If the method is called asynchronously,
81058112
returns the request thread.
81068113
"""
81078114

8108-
all_params = ['address_id', 'body']
8115+
all_params = ['address_id', 'body', 'async']
81098116
all_params.append('callback')
81108117

81118118
params = locals()
@@ -8132,6 +8139,8 @@ def put_routing_sms_phonenumber(self, address_id, body, **kwargs):
81328139
path_params['addressId'] = params['address_id']
81338140

81348141
query_params = {}
8142+
if 'async' in params:
8143+
query_params['async'] = params['async']
81358144

81368145
header_params = {}
81378146

0 commit comments

Comments
 (0)