Skip to content

Commit ef94d6f

Browse files
author
PureCloud Jenkins
committed
202.0.0
1 parent fef3678 commit ef94d6f

254 files changed

Lines changed: 12728 additions & 7823 deletions

File tree

Some content is hidden

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

build/.openapi-generator/FILES

Lines changed: 92 additions & 75 deletions
Large diffs are not rendered by default.

build/APIData.json

Lines changed: 354 additions & 28 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 37 additions & 37 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def __call_api(self, resource_path, method,
357357
header_params['Cookie'] = self.cookie
358358
if header_params:
359359
header_params = self.sanitize_for_serialization(header_params)
360-
header_params['purecloud-sdk'] = '201.0.0'
360+
header_params['purecloud-sdk'] = '202.0.0'
361361

362362
# path parameters
363363
if path_params:

build/PureCloudPlatformClientV2/apis/analytics_api.py

Lines changed: 418 additions & 2 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 78 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
from ..models import MessagingSettingDefaultRequest
141141
from ..models import MessagingSettingPatchRequest
142142
from ..models import MessagingSettingRequest
143-
from ..models import MessagingStickerEntityListing
144143
from ..models import OpenEventNormalizedMessage
145144
from ..models import OpenInboundNormalizedEvent
146145
from ..models import OpenInboundNormalizedMessage
@@ -7195,91 +7194,6 @@ def get_conversations_messaging_settings_default(self, **kwargs) -> 'MessagingSe
71957194
callback=params.get('callback'))
71967195
return response
71977196

7198-
@deprecated("get_conversations_messaging_sticker is deprecated")
7199-
def get_conversations_messaging_sticker(self, messenger_type: str, **kwargs) -> 'MessagingStickerEntityListing':
7200-
"""
7201-
Get a list of Messaging Stickers (Deprecated)
7202-
This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
7203-
7204-
This method makes a synchronous HTTP request by default. To make an
7205-
asynchronous HTTP request, please define a `callback` function
7206-
to be invoked when receiving the response.
7207-
>>> def callback_function(response):
7208-
>>> pprint(response)
7209-
>>>
7210-
>>> thread = api.get_conversations_messaging_sticker(messenger_type, callback=callback_function)
7211-
7212-
:param callback function: The callback function
7213-
for asynchronous request. (optional)
7214-
:param str messenger_type: Messenger Type (required)
7215-
:param int page_size: Page size
7216-
:param int page_number: Page number
7217-
:return: MessagingStickerEntityListing
7218-
If the method is called asynchronously,
7219-
returns the request thread.
7220-
"""
7221-
7222-
all_params = ['messenger_type', 'page_size', 'page_number']
7223-
all_params.append('callback')
7224-
7225-
params = locals()
7226-
for key, val in iteritems(params['kwargs']):
7227-
if key not in all_params:
7228-
raise TypeError(
7229-
"Got an unexpected keyword argument '%s'"
7230-
" to method get_conversations_messaging_sticker" % key
7231-
)
7232-
params[key] = val
7233-
del params['kwargs']
7234-
7235-
# verify the required parameter 'messenger_type' is set
7236-
if ('messenger_type' not in params) or (params['messenger_type'] is None):
7237-
raise ValueError("Missing the required parameter `messenger_type` when calling `get_conversations_messaging_sticker`")
7238-
7239-
7240-
resource_path = '/api/v2/conversations/messaging/stickers/{messengerType}'.replace('{format}', 'json')
7241-
path_params = {}
7242-
if 'messenger_type' in params:
7243-
path_params['messengerType'] = params['messenger_type']
7244-
7245-
query_params = {}
7246-
if 'page_size' in params:
7247-
query_params['pageSize'] = params['page_size']
7248-
if 'page_number' in params:
7249-
query_params['pageNumber'] = params['page_number']
7250-
7251-
header_params = {}
7252-
7253-
form_params = []
7254-
local_var_files = {}
7255-
7256-
body_params = None
7257-
7258-
# HTTP header `Accept`
7259-
header_params['Accept'] = self.api_client.\
7260-
select_header_accept(['application/json'])
7261-
if not header_params['Accept']:
7262-
del header_params['Accept']
7263-
7264-
# HTTP header `Content-Type`
7265-
header_params['Content-Type'] = self.api_client.\
7266-
select_header_content_type(['application/json'])
7267-
7268-
# Authentication setting
7269-
auth_settings = ['PureCloud OAuth']
7270-
7271-
response = self.api_client.call_api(resource_path, 'GET',
7272-
path_params,
7273-
query_params,
7274-
header_params,
7275-
body=body_params,
7276-
post_params=form_params,
7277-
files=local_var_files,
7278-
response_type='MessagingStickerEntityListing',
7279-
auth_settings=auth_settings,
7280-
callback=params.get('callback'))
7281-
return response
7282-
72837197
def get_conversations_messaging_supportedcontent(self, **kwargs) -> 'SupportedContentListing':
72847198
"""
72857199
Get a list of Supported Content profiles
@@ -15627,6 +15541,84 @@ def post_conversations_email_participant_replace(self, conversation_id: str, par
1562715541
callback=params.get('callback'))
1562815542
return response
1562915543

15544+
def post_conversations_email_reconnect(self, conversation_id: str, **kwargs) -> None:
15545+
"""
15546+
Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
15547+
15548+
15549+
This method makes a synchronous HTTP request by default. To make an
15550+
asynchronous HTTP request, please define a `callback` function
15551+
to be invoked when receiving the response.
15552+
>>> def callback_function(response):
15553+
>>> pprint(response)
15554+
>>>
15555+
>>> thread = api.post_conversations_email_reconnect(conversation_id, callback=callback_function)
15556+
15557+
:param callback function: The callback function
15558+
for asynchronous request. (optional)
15559+
:param str conversation_id: conversationId (required)
15560+
:return: None
15561+
If the method is called asynchronously,
15562+
returns the request thread.
15563+
"""
15564+
15565+
all_params = ['conversation_id']
15566+
all_params.append('callback')
15567+
15568+
params = locals()
15569+
for key, val in iteritems(params['kwargs']):
15570+
if key not in all_params:
15571+
raise TypeError(
15572+
"Got an unexpected keyword argument '%s'"
15573+
" to method post_conversations_email_reconnect" % key
15574+
)
15575+
params[key] = val
15576+
del params['kwargs']
15577+
15578+
# verify the required parameter 'conversation_id' is set
15579+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
15580+
raise ValueError("Missing the required parameter `conversation_id` when calling `post_conversations_email_reconnect`")
15581+
15582+
15583+
resource_path = '/api/v2/conversations/emails/{conversationId}/reconnect'.replace('{format}', 'json')
15584+
path_params = {}
15585+
if 'conversation_id' in params:
15586+
path_params['conversationId'] = params['conversation_id']
15587+
15588+
query_params = {}
15589+
15590+
header_params = {}
15591+
15592+
form_params = []
15593+
local_var_files = {}
15594+
15595+
body_params = None
15596+
15597+
# HTTP header `Accept`
15598+
header_params['Accept'] = self.api_client.\
15599+
select_header_accept(['application/json'])
15600+
if not header_params['Accept']:
15601+
del header_params['Accept']
15602+
15603+
# HTTP header `Content-Type`
15604+
header_params['Content-Type'] = self.api_client.\
15605+
select_header_content_type(['application/json'])
15606+
15607+
# Authentication setting
15608+
auth_settings = ['PureCloud OAuth']
15609+
15610+
response = self.api_client.call_api(resource_path, 'POST',
15611+
path_params,
15612+
query_params,
15613+
header_params,
15614+
body=body_params,
15615+
post_params=form_params,
15616+
files=local_var_files,
15617+
response_type=None,
15618+
auth_settings=auth_settings,
15619+
callback=params.get('callback'))
15620+
return response
15621+
1563015622
def post_conversations_emails(self, body: 'CreateEmailRequest', **kwargs) -> 'EmailConversation':
1563115623
"""
1563215624
Create an email conversation

build/PureCloudPlatformClientV2/apis/journey_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
from ..models import ActionTargetListing
4848
from ..models import ActionTemplate
4949
from ..models import ActionTemplateListing
50-
from ..models import AddressableEntityListing
5150
from ..models import AppEventRequest
5251
from ..models import AppEventResponse
5352
from ..models import AsyncQueryResponse
@@ -69,6 +68,7 @@
6968
from ..models import JourneySegmentRequest
7069
from ..models import JourneyView
7170
from ..models import JourneyViewJob
71+
from ..models import JourneyViewListing
7272
from ..models import JourneyViewResult
7373
from ..models import Label
7474
from ..models import Outcome
@@ -2902,7 +2902,7 @@ def get_journey_view_version_jobs_latest(self, view_id: str, journey_version_id:
29022902
callback=params.get('callback'))
29032903
return response
29042904

2905-
def get_journey_views(self, **kwargs) -> 'AddressableEntityListing':
2905+
def get_journey_views(self, **kwargs) -> 'JourneyViewListing':
29062906
"""
29072907
Get a list of Journey Views
29082908
@@ -2918,7 +2918,7 @@ def get_journey_views(self, **kwargs) -> 'AddressableEntityListing':
29182918
29192919
:param callback function: The callback function
29202920
for asynchronous request. (optional)
2921-
:return: AddressableEntityListing
2921+
:return: JourneyViewListing
29222922
If the method is called asynchronously,
29232923
returns the request thread.
29242924
"""
@@ -2970,7 +2970,7 @@ def get_journey_views(self, **kwargs) -> 'AddressableEntityListing':
29702970
body=body_params,
29712971
post_params=form_params,
29722972
files=local_var_files,
2973-
response_type='AddressableEntityListing',
2973+
response_type='JourneyViewListing',
29742974
auth_settings=auth_settings,
29752975
callback=params.get('callback'))
29762976
return response

build/PureCloudPlatformClientV2/apis/knowledge_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3667,12 +3667,13 @@ def get_knowledge_knowledgebase_operations(self, knowledge_base_id: str, **kwarg
36673667
:param list[str] type: If specified, retrieves operations with specified operation type, comma separated values expected.
36683668
:param list[str] status: If specified, retrieves operations with specified operation status, comma separated values expected.
36693669
:param str interval: Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
3670+
:param list[str] source_id: If specified, retrieves operations associated with source ids, comma separated values expected.
36703671
:return: OperationListing
36713672
If the method is called asynchronously,
36723673
returns the request thread.
36733674
"""
36743675

3675-
all_params = ['knowledge_base_id', 'before', 'after', 'page_size', 'user_id', 'type', 'status', 'interval']
3676+
all_params = ['knowledge_base_id', 'before', 'after', 'page_size', 'user_id', 'type', 'status', 'interval', 'source_id']
36763677
all_params.append('callback')
36773678

36783679
params = locals()
@@ -3710,6 +3711,8 @@ def get_knowledge_knowledgebase_operations(self, knowledge_base_id: str, **kwarg
37103711
query_params['status'] = params['status']
37113712
if 'interval' in params:
37123713
query_params['interval'] = params['interval']
3714+
if 'source_id' in params:
3715+
query_params['sourceId'] = params['source_id']
37133716

37143717
header_params = {}
37153718

0 commit comments

Comments
 (0)