Skip to content

Commit adf7181

Browse files
author
PureCloud Jenkins
committed
127.0.0
1 parent 4f9bff4 commit adf7181

78 files changed

Lines changed: 2500 additions & 638 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/PureCloudPlatformClientV2/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@
278278
from .models.bu_schedule_reference_for_mu_route import BuScheduleReferenceForMuRoute
279279
from .models.bu_schedule_run import BuScheduleRun
280280
from .models.bu_schedule_run_listing import BuScheduleRunListing
281+
from .models.bu_scheduling_settings import BuSchedulingSettings
281282
from .models.bu_search_agent_schedules_request import BuSearchAgentSchedulesRequest
282283
from .models.bu_service_level import BuServiceLevel
283284
from .models.bu_short_term_forecast import BuShortTermForecast
@@ -690,6 +691,7 @@
690691
from .models.conversation_social_expression_event_topic_social_media_participant import ConversationSocialExpressionEventTopicSocialMediaParticipant
691692
from .models.conversation_social_expression_event_topic_uri_reference import ConversationSocialExpressionEventTopicUriReference
692693
from .models.conversation_social_expression_event_topic_wrapup import ConversationSocialExpressionEventTopicWrapup
694+
from .models.conversation_tags_update import ConversationTagsUpdate
693695
from .models.conversation_threading_window import ConversationThreadingWindow
694696
from .models.conversation_threading_window_setting import ConversationThreadingWindowSetting
695697
from .models.conversation_user import ConversationUser
@@ -2038,6 +2040,9 @@
20382040
from .models.schedule_group_entity_listing import ScheduleGroupEntityListing
20392041
from .models.schedule_interval import ScheduleInterval
20402042
from .models.scheduler_message_argument import SchedulerMessageArgument
2043+
from .models.scheduler_message_type_severity import SchedulerMessageTypeSeverity
2044+
from .models.scheduling_no_forecast_options_request import SchedulingNoForecastOptionsRequest
2045+
from .models.scheduling_options_request import SchedulingOptionsRequest
20412046
from .models.scheduling_processing_error import SchedulingProcessingError
20422047
from .models.scheduling_settings_request import SchedulingSettingsRequest
20432048
from .models.scheduling_settings_response import SchedulingSettingsResponse
@@ -2246,6 +2251,8 @@
22462251
from .models.text_bot_flow_launch_request import TextBotFlowLaunchRequest
22472252
from .models.text_bot_flow_launch_response import TextBotFlowLaunchResponse
22482253
from .models.text_bot_flow_location import TextBotFlowLocation
2254+
from .models.text_bot_flow_milestone import TextBotFlowMilestone
2255+
from .models.text_bot_flow_outcome import TextBotFlowOutcome
22492256
from .models.text_bot_flow_turn_request import TextBotFlowTurnRequest
22502257
from .models.text_bot_flow_turn_response import TextBotFlowTurnResponse
22512258
from .models.text_bot_input_output_data import TextBotInputOutputData
@@ -2453,6 +2460,7 @@
24532460
from .models.user_search_criteria import UserSearchCriteria
24542461
from .models.user_search_request import UserSearchRequest
24552462
from .models.user_skill_entity_listing import UserSkillEntityListing
2463+
from .models.user_state import UserState
24562464
from .models.user_station import UserStation
24572465
from .models.user_station_change_topic_user import UserStationChangeTopicUser
24582466
from .models.user_station_change_topic_user_station import UserStationChangeTopicUserStation

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'] = '126.0.0'
298+
header_params['purecloud-sdk'] = '127.0.0'
299299

300300
# path parameters
301301
if path_params:

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11953,6 +11953,90 @@ def put_conversation_participant_flaggedreason(self, conversation_id, participan
1195311953
callback=params.get('callback'))
1195411954
return response
1195511955

11956+
def put_conversation_tags(self, conversation_id, body, **kwargs):
11957+
"""
11958+
Update the tags on a conversation.
11959+
11960+
11961+
This method makes a synchronous HTTP request by default. To make an
11962+
asynchronous HTTP request, please define a `callback` function
11963+
to be invoked when receiving the response.
11964+
>>> def callback_function(response):
11965+
>>> pprint(response)
11966+
>>>
11967+
>>> thread = api.put_conversation_tags(conversation_id, body, callback=callback_function)
11968+
11969+
:param callback function: The callback function
11970+
for asynchronous request. (optional)
11971+
:param str conversation_id: conversation ID (required)
11972+
:param ConversationTagsUpdate body: Conversation Tags (required)
11973+
:return: str
11974+
If the method is called asynchronously,
11975+
returns the request thread.
11976+
"""
11977+
11978+
all_params = ['conversation_id', 'body']
11979+
all_params.append('callback')
11980+
11981+
params = locals()
11982+
for key, val in iteritems(params['kwargs']):
11983+
if key not in all_params:
11984+
raise TypeError(
11985+
"Got an unexpected keyword argument '%s'"
11986+
" to method put_conversation_tags" % key
11987+
)
11988+
params[key] = val
11989+
del params['kwargs']
11990+
11991+
# verify the required parameter 'conversation_id' is set
11992+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
11993+
raise ValueError("Missing the required parameter `conversation_id` when calling `put_conversation_tags`")
11994+
# verify the required parameter 'body' is set
11995+
if ('body' not in params) or (params['body'] is None):
11996+
raise ValueError("Missing the required parameter `body` when calling `put_conversation_tags`")
11997+
11998+
11999+
resource_path = '/api/v2/conversations/{conversationId}/tags'.replace('{format}', 'json')
12000+
path_params = {}
12001+
if 'conversation_id' in params:
12002+
path_params['conversationId'] = params['conversation_id']
12003+
12004+
query_params = {}
12005+
12006+
header_params = {}
12007+
12008+
form_params = []
12009+
local_var_files = {}
12010+
12011+
body_params = None
12012+
if 'body' in params:
12013+
body_params = params['body']
12014+
12015+
# HTTP header `Accept`
12016+
header_params['Accept'] = self.api_client.\
12017+
select_header_accept(['application/json'])
12018+
if not header_params['Accept']:
12019+
del header_params['Accept']
12020+
12021+
# HTTP header `Content-Type`
12022+
header_params['Content-Type'] = self.api_client.\
12023+
select_header_content_type(['application/json'])
12024+
12025+
# Authentication setting
12026+
auth_settings = ['PureCloud OAuth']
12027+
12028+
response = self.api_client.call_api(resource_path, 'PUT',
12029+
path_params,
12030+
query_params,
12031+
header_params,
12032+
body=body_params,
12033+
post_params=form_params,
12034+
files=local_var_files,
12035+
response_type='str',
12036+
auth_settings=auth_settings,
12037+
callback=params.get('callback'))
12038+
return response
12039+
1195612040
def put_conversations_call_participant_communication_uuidata(self, conversation_id, participant_id, communication_id, body, **kwargs):
1195712041
"""
1195812042
Set uuiData to be sent on future commands.

build/PureCloudPlatformClientV2/apis/quality_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def delete_quality_forms_survey(self, form_id, **kwargs):
454454
def get_quality_agents_activity(self, **kwargs):
455455
"""
456456
Gets a list of Agent Activities
457-
Including the number of evaluations and average evaluation score
457+
Includes the number of evaluations and average evaluation score. These statistics include released evaluations only when evaluatorUserId is provided. In the absence of evaluatorUserId in the request, the api excludes evaluations which are set to never release for the calculation of evaluation statistics.
458458
459459
This method makes a synchronous HTTP request by default. To make an
460460
asynchronous HTTP request, please define a `callback` function
@@ -472,8 +472,8 @@ def get_quality_agents_activity(self, **kwargs):
472472
:param list[str] expand: variable name requested by expand list
473473
:param str next_page: next page token
474474
:param str previous_page: Previous page token
475-
:param datetime start_time: Start time of agent activity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
476-
:param datetime end_time: End time of agent activity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
475+
:param datetime start_time: Start time of agent activity based on assigned date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
476+
:param datetime end_time: End time of agent activity based on assigned date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
477477
:param list[str] agent_user_id: user id of agent requested
478478
:param str evaluator_user_id: user id of the evaluator
479479
:param str name: name

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,6 +2743,84 @@ def get_user_routingstatus(self, user_id, **kwargs):
27432743
callback=params.get('callback'))
27442744
return response
27452745

2746+
def get_user_state(self, user_id, **kwargs):
2747+
"""
2748+
Get user state information.
2749+
2750+
2751+
This method makes a synchronous HTTP request by default. To make an
2752+
asynchronous HTTP request, please define a `callback` function
2753+
to be invoked when receiving the response.
2754+
>>> def callback_function(response):
2755+
>>> pprint(response)
2756+
>>>
2757+
>>> thread = api.get_user_state(user_id, callback=callback_function)
2758+
2759+
:param callback function: The callback function
2760+
for asynchronous request. (optional)
2761+
:param str user_id: User ID (required)
2762+
:return: UserState
2763+
If the method is called asynchronously,
2764+
returns the request thread.
2765+
"""
2766+
2767+
all_params = ['user_id']
2768+
all_params.append('callback')
2769+
2770+
params = locals()
2771+
for key, val in iteritems(params['kwargs']):
2772+
if key not in all_params:
2773+
raise TypeError(
2774+
"Got an unexpected keyword argument '%s'"
2775+
" to method get_user_state" % key
2776+
)
2777+
params[key] = val
2778+
del params['kwargs']
2779+
2780+
# verify the required parameter 'user_id' is set
2781+
if ('user_id' not in params) or (params['user_id'] is None):
2782+
raise ValueError("Missing the required parameter `user_id` when calling `get_user_state`")
2783+
2784+
2785+
resource_path = '/api/v2/users/{userId}/state'.replace('{format}', 'json')
2786+
path_params = {}
2787+
if 'user_id' in params:
2788+
path_params['userId'] = params['user_id']
2789+
2790+
query_params = {}
2791+
2792+
header_params = {}
2793+
2794+
form_params = []
2795+
local_var_files = {}
2796+
2797+
body_params = None
2798+
2799+
# HTTP header `Accept`
2800+
header_params['Accept'] = self.api_client.\
2801+
select_header_accept(['application/json'])
2802+
if not header_params['Accept']:
2803+
del header_params['Accept']
2804+
2805+
# HTTP header `Content-Type`
2806+
header_params['Content-Type'] = self.api_client.\
2807+
select_header_content_type(['application/json'])
2808+
2809+
# Authentication setting
2810+
auth_settings = ['PureCloud OAuth']
2811+
2812+
response = self.api_client.call_api(resource_path, 'GET',
2813+
path_params,
2814+
query_params,
2815+
header_params,
2816+
body=body_params,
2817+
post_params=form_params,
2818+
files=local_var_files,
2819+
response_type='UserState',
2820+
auth_settings=auth_settings,
2821+
callback=params.get('callback'))
2822+
return response
2823+
27462824
def get_user_station(self, user_id, **kwargs):
27472825
"""
27482826
Get station information for user
@@ -6292,6 +6370,90 @@ def put_user_routingstatus(self, user_id, body, **kwargs):
62926370
callback=params.get('callback'))
62936371
return response
62946372

6373+
def put_user_state(self, user_id, body, **kwargs):
6374+
"""
6375+
Update user state information.
6376+
6377+
6378+
This method makes a synchronous HTTP request by default. To make an
6379+
asynchronous HTTP request, please define a `callback` function
6380+
to be invoked when receiving the response.
6381+
>>> def callback_function(response):
6382+
>>> pprint(response)
6383+
>>>
6384+
>>> thread = api.put_user_state(user_id, body, callback=callback_function)
6385+
6386+
:param callback function: The callback function
6387+
for asynchronous request. (optional)
6388+
:param str user_id: User ID (required)
6389+
:param UserState body: User (required)
6390+
:return: UserState
6391+
If the method is called asynchronously,
6392+
returns the request thread.
6393+
"""
6394+
6395+
all_params = ['user_id', 'body']
6396+
all_params.append('callback')
6397+
6398+
params = locals()
6399+
for key, val in iteritems(params['kwargs']):
6400+
if key not in all_params:
6401+
raise TypeError(
6402+
"Got an unexpected keyword argument '%s'"
6403+
" to method put_user_state" % key
6404+
)
6405+
params[key] = val
6406+
del params['kwargs']
6407+
6408+
# verify the required parameter 'user_id' is set
6409+
if ('user_id' not in params) or (params['user_id'] is None):
6410+
raise ValueError("Missing the required parameter `user_id` when calling `put_user_state`")
6411+
# verify the required parameter 'body' is set
6412+
if ('body' not in params) or (params['body'] is None):
6413+
raise ValueError("Missing the required parameter `body` when calling `put_user_state`")
6414+
6415+
6416+
resource_path = '/api/v2/users/{userId}/state'.replace('{format}', 'json')
6417+
path_params = {}
6418+
if 'user_id' in params:
6419+
path_params['userId'] = params['user_id']
6420+
6421+
query_params = {}
6422+
6423+
header_params = {}
6424+
6425+
form_params = []
6426+
local_var_files = {}
6427+
6428+
body_params = None
6429+
if 'body' in params:
6430+
body_params = params['body']
6431+
6432+
# HTTP header `Accept`
6433+
header_params['Accept'] = self.api_client.\
6434+
select_header_accept(['application/json'])
6435+
if not header_params['Accept']:
6436+
del header_params['Accept']
6437+
6438+
# HTTP header `Content-Type`
6439+
header_params['Content-Type'] = self.api_client.\
6440+
select_header_content_type(['application/json'])
6441+
6442+
# Authentication setting
6443+
auth_settings = ['PureCloud OAuth']
6444+
6445+
response = self.api_client.call_api(resource_path, 'PUT',
6446+
path_params,
6447+
query_params,
6448+
header_params,
6449+
body=body_params,
6450+
post_params=form_params,
6451+
files=local_var_files,
6452+
response_type='UserState',
6453+
auth_settings=auth_settings,
6454+
callback=params.get('callback'))
6455+
return response
6456+
62956457
def put_user_station_associatedstation_station_id(self, user_id, station_id, **kwargs):
62966458
"""
62976459
Set associated station

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def to_debug_report(self):
202202
"OS: {env}\n"\
203203
"Python Version: {pyversion}\n"\
204204
"Version of the API: v2\n"\
205-
"SDK Package Version: 126.0.0".\
205+
"SDK Package Version: 127.0.0".\
206206
format(env=sys.platform, pyversion=sys.version)
207207

208208
def _update_config_from_file(self):

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@
278278
from .bu_schedule_reference_for_mu_route import BuScheduleReferenceForMuRoute
279279
from .bu_schedule_run import BuScheduleRun
280280
from .bu_schedule_run_listing import BuScheduleRunListing
281+
from .bu_scheduling_settings import BuSchedulingSettings
281282
from .bu_search_agent_schedules_request import BuSearchAgentSchedulesRequest
282283
from .bu_service_level import BuServiceLevel
283284
from .bu_short_term_forecast import BuShortTermForecast
@@ -690,6 +691,7 @@
690691
from .conversation_social_expression_event_topic_social_media_participant import ConversationSocialExpressionEventTopicSocialMediaParticipant
691692
from .conversation_social_expression_event_topic_uri_reference import ConversationSocialExpressionEventTopicUriReference
692693
from .conversation_social_expression_event_topic_wrapup import ConversationSocialExpressionEventTopicWrapup
694+
from .conversation_tags_update import ConversationTagsUpdate
693695
from .conversation_threading_window import ConversationThreadingWindow
694696
from .conversation_threading_window_setting import ConversationThreadingWindowSetting
695697
from .conversation_user import ConversationUser
@@ -2038,6 +2040,9 @@
20382040
from .schedule_group_entity_listing import ScheduleGroupEntityListing
20392041
from .schedule_interval import ScheduleInterval
20402042
from .scheduler_message_argument import SchedulerMessageArgument
2043+
from .scheduler_message_type_severity import SchedulerMessageTypeSeverity
2044+
from .scheduling_no_forecast_options_request import SchedulingNoForecastOptionsRequest
2045+
from .scheduling_options_request import SchedulingOptionsRequest
20412046
from .scheduling_processing_error import SchedulingProcessingError
20422047
from .scheduling_settings_request import SchedulingSettingsRequest
20432048
from .scheduling_settings_response import SchedulingSettingsResponse
@@ -2246,6 +2251,8 @@
22462251
from .text_bot_flow_launch_request import TextBotFlowLaunchRequest
22472252
from .text_bot_flow_launch_response import TextBotFlowLaunchResponse
22482253
from .text_bot_flow_location import TextBotFlowLocation
2254+
from .text_bot_flow_milestone import TextBotFlowMilestone
2255+
from .text_bot_flow_outcome import TextBotFlowOutcome
22492256
from .text_bot_flow_turn_request import TextBotFlowTurnRequest
22502257
from .text_bot_flow_turn_response import TextBotFlowTurnResponse
22512258
from .text_bot_input_output_data import TextBotInputOutputData
@@ -2453,6 +2460,7 @@
24532460
from .user_search_criteria import UserSearchCriteria
24542461
from .user_search_request import UserSearchRequest
24552462
from .user_skill_entity_listing import UserSkillEntityListing
2463+
from .user_state import UserState
24562464
from .user_station import UserStation
24572465
from .user_station_change_topic_user import UserStationChangeTopicUser
24582466
from .user_station_change_topic_user_station import UserStationChangeTopicUserStation

0 commit comments

Comments
 (0)