Skip to content

Commit b0af4ca

Browse files
author
PureCloud Jenkins
committed
224.1.0
1 parent 97b5e83 commit b0af4ca

5,335 files changed

Lines changed: 13570 additions & 6478 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.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Documentation can be found at https://mypurecloud.github.io/platform-client-sdk-python/
77

8-
Documentation version PureCloudPlatformClientV2 224.0.0
8+
Documentation version PureCloudPlatformClientV2 224.1.0
99

1010
## Preview APIs
1111

build/.openapi-generator/FILES

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

build/APIData.json

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

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@
855855
from .models.content_filter_item import ContentFilterItem
856856
from .models.content_generic import ContentGeneric
857857
from .models.content_list import ContentList
858+
from .models.content_location import ContentLocation
858859
from .models.content_management_single_document_topic_document_data_v2 import ContentManagementSingleDocumentTopicDocumentDataV2
859860
from .models.content_management_single_document_topic_lock_data import ContentManagementSingleDocumentTopicLockData
860861
from .models.content_management_single_document_topic_user_data import ContentManagementSingleDocumentTopicUserData
@@ -1740,6 +1741,7 @@
17401741
from .models.email_routing_transfer_event import EmailRoutingTransferEvent
17411742
from .models.email_settings import EmailSettings
17421743
from .models.email_setup import EmailSetup
1744+
from .models.email_threading_settings import EmailThreadingSettings
17431745
from .models.email_user_established_event import EmailUserEstablishedEvent
17441746
from .models.email_user_transfer_event import EmailUserTransferEvent
17451747
from .models.emails_settings import EmailsSettings
@@ -1751,6 +1753,7 @@
17511753
from .models.emergency_group_listing import EmergencyGroupListing
17521754
from .models.emergency_location import EmergencyLocation
17531755
from .models.empathy_score import EmpathyScore
1756+
from .models.employee_performance_external_metrics_definition_external_metrics_definition import EmployeePerformanceExternalMetricsDefinitionExternalMetricsDefinition
17541757
from .models.employer_info import EmployerInfo
17551758
from .models.empty import Empty
17561759
from .models.encryption_key import EncryptionKey
@@ -1982,6 +1985,7 @@
19821985
from .models.feature_state import FeatureState
19831986
from .models.feedback import Feedback
19841987
from .models.feedback_add_request import FeedbackAddRequest
1988+
from .models.feedback_update_request import FeedbackUpdateRequest
19851989
from .models.field_config import FieldConfig
19861990
from .models.field_configs import FieldConfigs
19871991
from .models.field_list import FieldList
@@ -3093,6 +3097,22 @@
30933097
from .models.outbound_messaging_messaging_campaign_progress_event_campaign_progress import OutboundMessagingMessagingCampaignProgressEventCampaignProgress
30943098
from .models.outbound_messaging_messaging_campaign_progress_event_object import OutboundMessagingMessagingCampaignProgressEventObject
30953099
from .models.outbound_messaging_messaging_campaign_progress_event_uri_reference import OutboundMessagingMessagingCampaignProgressEventUriReference
3100+
from .models.outbound_messaging_whatsapp_campaign_config_change_contact_sort import OutboundMessagingWhatsappCampaignConfigChangeContactSort
3101+
from .models.outbound_messaging_whatsapp_campaign_config_change_email_config import OutboundMessagingWhatsappCampaignConfigChangeEmailConfig
3102+
from .models.outbound_messaging_whatsapp_campaign_config_change_error_detail import OutboundMessagingWhatsappCampaignConfigChangeErrorDetail
3103+
from .models.outbound_messaging_whatsapp_campaign_config_change_from_email_address import OutboundMessagingWhatsappCampaignConfigChangeFromEmailAddress
3104+
from .models.outbound_messaging_whatsapp_campaign_config_change_integration_ref import OutboundMessagingWhatsappCampaignConfigChangeIntegrationRef
3105+
from .models.outbound_messaging_whatsapp_campaign_config_change_messaging_campaign import OutboundMessagingWhatsappCampaignConfigChangeMessagingCampaign
3106+
from .models.outbound_messaging_whatsapp_campaign_config_change_object import OutboundMessagingWhatsappCampaignConfigChangeObject
3107+
from .models.outbound_messaging_whatsapp_campaign_config_change_reply_to_email_address import OutboundMessagingWhatsappCampaignConfigChangeReplyToEmailAddress
3108+
from .models.outbound_messaging_whatsapp_campaign_config_change_response_ref import OutboundMessagingWhatsappCampaignConfigChangeResponseRef
3109+
from .models.outbound_messaging_whatsapp_campaign_config_change_sms_config import OutboundMessagingWhatsappCampaignConfigChangeSmsConfig
3110+
from .models.outbound_messaging_whatsapp_campaign_config_change_sms_phone_number_ref import OutboundMessagingWhatsappCampaignConfigChangeSmsPhoneNumberRef
3111+
from .models.outbound_messaging_whatsapp_campaign_config_change_uri_reference import OutboundMessagingWhatsappCampaignConfigChangeUriReference
3112+
from .models.outbound_messaging_whatsapp_campaign_config_change_whats_app_config import OutboundMessagingWhatsappCampaignConfigChangeWhatsAppConfig
3113+
from .models.outbound_messaging_whatsapp_campaign_progress_event_campaign_progress import OutboundMessagingWhatsappCampaignProgressEventCampaignProgress
3114+
from .models.outbound_messaging_whatsapp_campaign_progress_event_object import OutboundMessagingWhatsappCampaignProgressEventObject
3115+
from .models.outbound_messaging_whatsapp_campaign_progress_event_uri_reference import OutboundMessagingWhatsappCampaignProgressEventUriReference
30963116
from .models.outbound_only_setting import OutboundOnlySetting
30973117
from .models.outbound_route import OutboundRoute
30983118
from .models.outbound_route_base import OutboundRouteBase
@@ -3297,6 +3317,7 @@
32973317
from .models.prompt_asset import PromptAsset
32983318
from .models.prompt_asset_create import PromptAssetCreate
32993319
from .models.prompt_asset_entity_listing import PromptAssetEntityListing
3320+
from .models.prompt_asset_upload import PromptAssetUpload
33003321
from .models.prompt_entity_listing import PromptEntityListing
33013322
from .models.property_change import PropertyChange
33023323
from .models.property_index_request import PropertyIndexRequest
@@ -3656,6 +3677,7 @@
36563677
from .models.rate_limit_aggregation_view import RateLimitAggregationView
36573678
from .models.reaction import Reaction
36583679
from .models.real_time_adherence_explanation import RealTimeAdherenceExplanation
3680+
from .models.reason import Reason
36593681
from .models.recall_entry import RecallEntry
36603682
from .models.recipient import Recipient
36613683
from .models.recipient_additional_identifier import RecipientAdditionalIdentifier
@@ -3665,6 +3687,7 @@
36653687
from .models.recognition import Recognition
36663688
from .models.recognition_base import RecognitionBase
36673689
from .models.record import Record
3690+
from .models.recorders_state import RecordersState
36683691
from .models.recording import Recording
36693692
from .models.recording_annotation_flow import RecordingAnnotationFlow
36703693
from .models.recording_annotation_queue import RecordingAnnotationQueue
@@ -4764,6 +4787,7 @@
47644787
from .models.web_messaging_offer_properties import WebMessagingOfferProperties
47654788
from .models.web_messaging_quick_reply import WebMessagingQuickReply
47664789
from .models.web_messaging_recipient import WebMessagingRecipient
4790+
from .models.webhook_invocation_response import WebhookInvocationResponse
47674791
from .models.week_schedule import WeekSchedule
47684792
from .models.week_schedule_generation_result import WeekScheduleGenerationResult
47694793
from .models.week_schedule_list_item_response import WeekScheduleListItemResponse
@@ -4883,6 +4907,9 @@
48834907
from .models.wfm_historical_adherence_query_for_users import WfmHistoricalAdherenceQueryForUsers
48844908
from .models.wfm_historical_adherence_response import WfmHistoricalAdherenceResponse
48854909
from .models.wfm_historical_adherence_result_wrapper import WfmHistoricalAdherenceResultWrapper
4910+
from .models.wfm_historical_data_import_purge_complete_topic_historical_data_delete_entity import WfmHistoricalDataImportPurgeCompleteTopicHistoricalDataDeleteEntity
4911+
from .models.wfm_historical_data_import_purge_complete_topic_historical_data_disallowed_delete_entity import WfmHistoricalDataImportPurgeCompleteTopicHistoricalDataDisallowedDeleteEntity
4912+
from .models.wfm_historical_data_import_purge_complete_topic_historical_data_purge_request_complete import WfmHistoricalDataImportPurgeCompleteTopicHistoricalDataPurgeRequestComplete
48864913
from .models.wfm_historical_data_upload_purge_request_status_topic_historical_data_upload_purge_request_update import WfmHistoricalDataUploadPurgeRequestStatusTopicHistoricalDataUploadPurgeRequestUpdate
48874914
from .models.wfm_historical_data_upload_request_status_topic_historical_data_upload_request_update import WfmHistoricalDataUploadRequestStatusTopicHistoricalDataUploadRequestUpdate
48884915
from .models.wfm_historical_shrinkage_calculations_complete_topic_historical_shrinkage_calculations_complete_notification import WfmHistoricalShrinkageCalculationsCompleteTopicHistoricalShrinkageCalculationsCompleteNotification

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def __call_api(self, resource_path, method,
393393
header_params['Cookie'] = self.cookie
394394
if header_params:
395395
header_params = self.sanitize_for_serialization(header_params)
396-
header_params['purecloud-sdk'] = '224.0.0'
396+
header_params['purecloud-sdk'] = '224.1.0'
397397

398398
# path parameters
399399
if path_params:

build/PureCloudPlatformClientV2/apis/analytics_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ def get_analytics_agent_status(self, user_id: str, **kwargs) -> 'AnalyticsAgentS
489489
"""
490490
Get an agent and their active sessions by user ID
491491
492-
get_analytics_agent_status is a preview method and is subject to both breaking and non-breaking changes at any time without notice
493492
494493
This method makes a synchronous HTTP request by default. To make an
495494
asynchronous HTTP request, please define a `callback` function
@@ -4787,7 +4786,6 @@ def post_analytics_agents_status_counts(self, body: 'AgentStateCountsRequest', *
47874786
"""
47884787
Count agents by segment type
47894788
4790-
post_analytics_agents_status_counts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
47914789
47924790
This method makes a synchronous HTTP request by default. To make an
47934791
asynchronous HTTP request, please define a `callback` function
@@ -4866,7 +4864,6 @@ def post_analytics_agents_status_query(self, body: 'AgentStateQueryRequest', **k
48664864
"""
48674865
Retrieve the top 50 agents matching the query filters
48684866
4869-
post_analytics_agents_status_query is a preview method and is subject to both breaking and non-breaking changes at any time without notice
48704867
48714868
This method makes a synchronous HTTP request by default. To make an
48724869
asynchronous HTTP request, please define a `callback` function

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
from ..models import PromptAsset
101101
from ..models import PromptAssetCreate
102102
from ..models import PromptAssetEntityListing
103+
from ..models import PromptAssetUpload
103104
from ..models import PromptEntityListing
104105
from ..models import RegisterArchitectExportJob
105106
from ..models import RegisterArchitectExportJobResponse
@@ -8959,6 +8960,90 @@ def post_architect_prompt_history(self, prompt_id: str, **kwargs) -> 'Operation'
89598960
callback=params.get('callback'))
89608961
return response
89618962

8963+
def post_architect_prompt_resource_uploads(self, prompt_id: str, language_code: str, **kwargs) -> 'PromptAssetUpload':
8964+
"""
8965+
Creates a presigned URL for uploading a user prompt file
8966+
8967+
8968+
This method makes a synchronous HTTP request by default. To make an
8969+
asynchronous HTTP request, please define a `callback` function
8970+
to be invoked when receiving the response.
8971+
>>> def callback_function(response):
8972+
>>> pprint(response)
8973+
>>>
8974+
>>> thread = api.post_architect_prompt_resource_uploads(prompt_id, language_code, callback=callback_function)
8975+
8976+
:param callback function: The callback function
8977+
for asynchronous request. (optional)
8978+
:param str prompt_id: Prompt ID (required)
8979+
:param str language_code: Language (required)
8980+
:return: PromptAssetUpload
8981+
If the method is called asynchronously,
8982+
returns the request thread.
8983+
"""
8984+
8985+
all_params = ['prompt_id', 'language_code']
8986+
all_params.append('callback')
8987+
8988+
params = locals()
8989+
for key, val in iteritems(params['kwargs']):
8990+
if key not in all_params:
8991+
raise TypeError(
8992+
"Got an unexpected keyword argument '%s'"
8993+
" to method post_architect_prompt_resource_uploads" % key
8994+
)
8995+
params[key] = val
8996+
del params['kwargs']
8997+
8998+
# verify the required parameter 'prompt_id' is set
8999+
if ('prompt_id' not in params) or (params['prompt_id'] is None):
9000+
raise ValueError("Missing the required parameter `prompt_id` when calling `post_architect_prompt_resource_uploads`")
9001+
# verify the required parameter 'language_code' is set
9002+
if ('language_code' not in params) or (params['language_code'] is None):
9003+
raise ValueError("Missing the required parameter `language_code` when calling `post_architect_prompt_resource_uploads`")
9004+
9005+
9006+
resource_path = '/api/v2/architect/prompts/{promptId}/resources/{languageCode}/uploads'.replace('{format}', 'json')
9007+
path_params = {}
9008+
if 'prompt_id' in params:
9009+
path_params['promptId'] = params['prompt_id']
9010+
if 'language_code' in params:
9011+
path_params['languageCode'] = params['language_code']
9012+
9013+
query_params = {}
9014+
9015+
header_params = {}
9016+
9017+
form_params = []
9018+
local_var_files = {}
9019+
9020+
body_params = None
9021+
9022+
# HTTP header `Accept`
9023+
header_params['Accept'] = self.api_client.\
9024+
select_header_accept(['application/json'])
9025+
if not header_params['Accept']:
9026+
del header_params['Accept']
9027+
9028+
# HTTP header `Content-Type`
9029+
header_params['Content-Type'] = self.api_client.\
9030+
select_header_content_type(['application/json'])
9031+
9032+
# Authentication setting
9033+
auth_settings = ['PureCloud OAuth']
9034+
9035+
response = self.api_client.call_api(resource_path, 'POST',
9036+
path_params,
9037+
query_params,
9038+
header_params,
9039+
body=body_params,
9040+
post_params=form_params,
9041+
files=local_var_files,
9042+
response_type='PromptAssetUpload',
9043+
auth_settings=auth_settings,
9044+
callback=params.get('callback'))
9045+
return response
9046+
89629047
def post_architect_prompt_resources(self, prompt_id: str, body: 'PromptAssetCreate', **kwargs) -> 'PromptAsset':
89639048
"""
89649049
Create a new user prompt resource
@@ -9355,6 +9440,90 @@ def post_architect_systemprompt_history(self, prompt_id: str, **kwargs) -> 'Oper
93559440
callback=params.get('callback'))
93569441
return response
93579442

9443+
def post_architect_systemprompt_resource_uploads(self, prompt_id: str, language_code: str, **kwargs) -> 'PromptAssetUpload':
9444+
"""
9445+
Creates a presigned URL for uploading a system prompt file
9446+
9447+
9448+
This method makes a synchronous HTTP request by default. To make an
9449+
asynchronous HTTP request, please define a `callback` function
9450+
to be invoked when receiving the response.
9451+
>>> def callback_function(response):
9452+
>>> pprint(response)
9453+
>>>
9454+
>>> thread = api.post_architect_systemprompt_resource_uploads(prompt_id, language_code, callback=callback_function)
9455+
9456+
:param callback function: The callback function
9457+
for asynchronous request. (optional)
9458+
:param str prompt_id: Prompt ID (required)
9459+
:param str language_code: Language (required)
9460+
:return: PromptAssetUpload
9461+
If the method is called asynchronously,
9462+
returns the request thread.
9463+
"""
9464+
9465+
all_params = ['prompt_id', 'language_code']
9466+
all_params.append('callback')
9467+
9468+
params = locals()
9469+
for key, val in iteritems(params['kwargs']):
9470+
if key not in all_params:
9471+
raise TypeError(
9472+
"Got an unexpected keyword argument '%s'"
9473+
" to method post_architect_systemprompt_resource_uploads" % key
9474+
)
9475+
params[key] = val
9476+
del params['kwargs']
9477+
9478+
# verify the required parameter 'prompt_id' is set
9479+
if ('prompt_id' not in params) or (params['prompt_id'] is None):
9480+
raise ValueError("Missing the required parameter `prompt_id` when calling `post_architect_systemprompt_resource_uploads`")
9481+
# verify the required parameter 'language_code' is set
9482+
if ('language_code' not in params) or (params['language_code'] is None):
9483+
raise ValueError("Missing the required parameter `language_code` when calling `post_architect_systemprompt_resource_uploads`")
9484+
9485+
9486+
resource_path = '/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}/uploads'.replace('{format}', 'json')
9487+
path_params = {}
9488+
if 'prompt_id' in params:
9489+
path_params['promptId'] = params['prompt_id']
9490+
if 'language_code' in params:
9491+
path_params['languageCode'] = params['language_code']
9492+
9493+
query_params = {}
9494+
9495+
header_params = {}
9496+
9497+
form_params = []
9498+
local_var_files = {}
9499+
9500+
body_params = None
9501+
9502+
# HTTP header `Accept`
9503+
header_params['Accept'] = self.api_client.\
9504+
select_header_accept(['application/json'])
9505+
if not header_params['Accept']:
9506+
del header_params['Accept']
9507+
9508+
# HTTP header `Content-Type`
9509+
header_params['Content-Type'] = self.api_client.\
9510+
select_header_content_type(['application/json'])
9511+
9512+
# Authentication setting
9513+
auth_settings = ['PureCloud OAuth']
9514+
9515+
response = self.api_client.call_api(resource_path, 'POST',
9516+
path_params,
9517+
query_params,
9518+
header_params,
9519+
body=body_params,
9520+
post_params=form_params,
9521+
files=local_var_files,
9522+
response_type='PromptAssetUpload',
9523+
auth_settings=auth_settings,
9524+
callback=params.get('callback'))
9525+
return response
9526+
93589527
def post_architect_systemprompt_resources(self, prompt_id: str, body: 'SystemPromptAsset', **kwargs) -> 'SystemPromptAsset':
93599528
"""
93609529
Create system prompt resource override.

0 commit comments

Comments
 (0)